DOI : 10.17577/IJERTCONV14IS060053- Open Access

- Authors : Dr Haritha K S, Kushal B, Anoop B Patel, Chandana Vs, Aman Maharathi
- Paper ID : IJERTCONV14IS060053
- Volume & Issue : Volume 14, Issue 06, ACSCON – 2026
- Published (First Online) : 15-06-2026
- ISSN (Online) : 2278-0181
- Publisher Name : IJERT
- License:
This work is licensed under a Creative Commons Attribution 4.0 International License
AI Powered Traffic Management
Dr Haritha K S Department of Electronics and Communication Engineering
Rajarajeswari college of Engineering Bangalore, India harithainhere@gmail.com
Kushal B Department of Electronics and
Communication Engineering Rajarajeswari college of Engineering Bangalore, India kushalnaidu5104@gmail.com
Anoop B Patel Department of Electronics and Communication Engineering
Rajarajeswari college of Engineering Bangalore, India anoopbpatel2208@gmail.com
Chandana VS Department of Electronics and Communication Engineering
Rajarajeswari college of Engineering Bangalore, India chandanaaa05@gmail.com
Aman Maharathi Department of Electronics and Communication Engineering
Rajarajeswari college of Engineering Bangalore, India maharathiaman17@gmail.com
Abstract Urban traffic congestion creates travel delays, high fuel consumption, and pollution. Traditional fixed- time signals fail to adapt to real-time conditions, causing significant inefficiencies. This project introduces an AI- powered traffic management system using computer vision and deep learning to analyze live camera feeds, estimate vehicle density, and dynamically adjust signal timings. The solution prioritizes emergency vehicles and optimizes pedestrian crossings, improving response times and road safety. Implemented via Python and integrated with real- time hardware, the system is designed for scalability in smart cities. Key features include accident detection, inter- signal communication for synchronized flow, and cloud- based analytics for monitoring. By replacing static controls with intelligent, adaptive algorithms, this project revolutionizes urban management, making it more efficient, environmentally friendly, and responsive to dynamic conditions.
Keywords Artificial Intelligence, Traffic Management, Computer Vision, YOLOv5, Smart Traffic System, IoT, Vehicle Detection, Adaptive Signal Control
-
INTRODUCTION
Rapid urbanization has dramatically increased vehicle density on roads, leading to widespread traffic congestion, particularly during peak hours. The consequences are evident in longer commute times, elevated fuel consumption, and a significant rise in air pollution. These problems not only affect the environment but also reduce the overall quality of life in urban areas. Traditional traffic signal systems operate on fixed timers and do not respond to real-time traffic conditions. These outdated systems are inefficient, often causing unnecessary delays and failing to accommodate dynamic traffic patterns. As a result, intersections become choke points that hinder smooth vehicle movement and increase stress among commuters to address these challenges, there is a growing need for intelligent and adaptive traffic management solutions. Artificial Intelligence (AI) offers a promising approach by providing real-time data processing and decision- making capabilities. AI-powered systems use live camera feeds and object detection algorithms to monitor vehicle and
pedestrian activity at intersections. With the help of computer vision and deep learning models, the system estimates vehicle density and dynamically adjusts signal timings to optimize traffic flow. This reduces idle time, improves fuel efficiency, and minimizes environmental impact. Moreover, AI-based traffic systems can prioritize emergency vehicles through technologies such as RFID tags or sound-based detection, ensuring they pass through intersections swiftly and safely. Pedestrian safety is also enhanced as the system identifies individuals at crossings and adjusts signals accordingly. By integrating intelligent, real-time traffic control, cities can significantly improve road efficiency, reduce congestion, and create safer and more sustainable urban environments. The proposed system integrates Artificial Intelligence (AI), Internet of Things (IoT), and real-time computer vision technologies to create an adaptive and efficient traffic management framework. Utilizing a Raspberry Pi 3B as the core processing unit, the system captures live video feeds from traffic cameras and processes them using deep learning models such as YOLOv8 and OpenCV for vehicle detection and density estimation. Based on this analysis, the signal durations are dynamically adjusted to maintain optimal flow across all lanes. The design ensures scalability and affordability, making it suitable for deployment in developing urban environments. Moreover, the architecture supports advanced features such as cloud-based data analytics, centralized monitoring, and inter- junction coordination, enabling synchronized signal operations and long-term traffic pattern analysis. By introducing an intelligent, self-adaptive decision-making mechanism, the system moves beyond conventional fixed-timer methods and contributes toward a smarter, safer, and more sustainable urban mobility ecosystem.
-
RELATED WORK
In the past decade, significant research has been conducted to enhance urban traffic management using Artificial Intelligence (AI), Internet of Things (IoT), and Computer Vision technologies. Traditional traffic systems, which rely on fixed- time or manually controlled signals, fail to adapt to dynamic road conditions, leading to inefficiency and congestion. Researchers worldwide have attempted to address these issues through adaptive and intelligent solutions. Mihir Gandhi et al. (2024) designed an AI-powered control system using live camera feeds and vehicle density estimation to optimize signal switching in real time. Although this approach improved road throughput, it required high performance hardware and suffered from limited scalability in resource-constrained regions. Similarly, Abu Salman Shaikat and Rumana Tasnim (2019) implemented an image-processing-based model for Dhaka city using Haar Cascade classifiers for vehicle detection and automatic signal control. While their solution achieved moderate accuracy, it lacked responsiveness to sudden changes in traffic flow and could not efficiently handle low-light or weather-affected conditions. In another study, Gopinathan and Abishek (2020) developed an IoT-based framework integrating deep learning models to detect ambulance sirens and provide automatic right-of-way clearance. Despite its success in emergency prioritization, the system was restricted to single- lane operations and did not include density-based optimization. Mahima Jaiswal and Neetu Gupta (2020) advanced this approach by employing neural networks for real-time congestion prediction and vehicle rerouting, improving efficiency but introducing heavy computational overhead. More recent research by Aravind Pillai (2024) integrated YOLOv5 and Convolutional Neural Networks (CNNs) for high-accuracy vehicle detection, enabling adaptive traffic light control based on congestion levels. However, its dependency on high-end GPUs limited its implementation in low-cost environments. Similarly, Changjian Cai et al. (2024) employed Deep Reinforcement Learning (DRL) algorithms to optimize traffic signal timing through iterative learning, demonstrating strong simulation performance but requiring extensive datasets and training cycles. Collectively, these works highlight the global pursuit of smart traffic systems that combine AI and IoT for real-time decision-making. Divya Menon and Arjun Nair (2022) implemented a fuzzy logicbased traffic control mechanism where vehicle count and density were the key input parameters. Their system performed well in handling irregular traffic conditions but suffered from low scalability due to manual tuning of fuzzy rules and thresholds. S. Kumar and A. Gupta (2023) explored AI-assisted emergncy vehicle prioritization using RFID and image recognition techniques. The system successfully identified ambulances and cleared lanes automatically; however, integration with larger traffic networks and cloud analytics remained incomplete. However, gaps remain in affordability, scalability, and real-time adaptability for developing nations. The proposed system bridges these gaps by employing a Raspberry Pi 3B for on-site AI processing, integrating YOLOv5 for vehicle detection, and leveraging IoT-based cloud analytics for remote monitoring. This combination ensures cost-effectiveness, real-time
responsiveness, and easy scalability. Additionally, the system includes features like emergency vehicle prioritization, pedestrian detection, accident monitoring, and inter-signal communication, addressing limitations found in previous research. Thus, it builds upon existing work while presenting a practical, deployable, and sustainable solution for next-generation intelligent traffic management in smart city environments. Furthermore, recent advancements in intelligent transportation systems emphasize the importance of multi-intersection coordination and distributed decision-making to overcome the limitations of isolated junction control. Many earlier systems focused primarily on single- intersection optimization, which often led to suboptimal traffic flow at a network level. Studies have shown that without communication between adjacent signals, congestion can simply shift from one intersection to another rather than being mitigated holistically. This has motivated the integration of inter-signal communication mechanisms, enabling traffic controllers to share congestion data and collaboratively adjust signal timings for smoother corridor-level traffic movement. Another critical dimension explored in recent research is pedestrian and vulnerable road user safety. Traditional traffic signal systems largely prioritize vehicular flow, often neglecting pedestrians and cyclists. AI-based vision systems have enabled more inclusive traffic control by detecting pedestrian presence, estimating crossing demand, and dynamically adjusting pedestrian signal phases.
-
METHODOLOGY
-
Image and Data Acquisition
Traffic cameras installed at intersections function as visual sensors, capturing continuous real-time video feeds. These high-definition feeds are transmitted to the Raspberry Pi 3B central processing hub, providing the raw data necessary for vehicle and density analysis.
-
Signal Processing and Vehicle Detection
The incoming video frames are processed locally using the YOLOv5 (You Only Look Once) deep learning model. This algorithm performs high-speed object detection to identify vehicles and categorize traffic density into three states:
-
Low Density Minimum Green Light Duration
-
Medium Density Standard Green Light Duration
-
High Density Extended Green Light Duration
-
-
Intelligent Decision-Making and Signal Control
The Raspberry Pi acts as the central microcontroller, translating density data into timing logic. It manages signal operations via GPIO pins connected to LEDs or relay circuits. The system dynamically prioritizes lanes with higher congestion and grants immediate right-of-way to detected emergency vehicles (ambulances/fire trucks).
-
IoT Monitoring and Remote Interface
The system integrates with a cloud-based monitoring interface via the
Blynk platform. This provides traffic authorities with:
-
Real-time visualization of traffic loads.
-
Live signal status and system analytics.
-
Manual Override capabilities for emergency or maintenance situations.
-
-
Safety and Pedestrian Integration
Beyond vehicle flow, the system incorporates safety modules for vulnerable road users. Pedestrian detection ensures that crossing signals are optimized for safety, while integrated sensors (or sound analysis) provide a fail-safe for emergency vehicle response.
-
System Flow
-
Video Capture: Live feeds captured by intersection cameras.
-
Object Detection: YOLOv5 identifies vehicles and calculates density.
-
Logic Processing: Raspberry Pi determines optimal signal timings.
-
Command Execution: GPIO pins trigger physical signal changes (LEDs/Relays).
-
IoT Sync: Traffic data and system status uploaded to the Blynk Cloud.
-
Adaptive Feedback: Continuous real-time adjustments based on changing road conditions.
Fig. 1. Block Diagram
-
Hardware Design
The proposed intelligent traffic control system integrates a modular framework of sensing, processing, and communication hardware to enable adaptive urban mobility. At the edge of the network, high-definition camera modules function as primary visual sensors, capturing continuous real-time video streams of traffic intersections. These data feeds are processed by an ESP32 microcontroller (or Raspberry Pi 3B), which serves as the central computational hub. The unit executes the YOLOv5 (You Only Look Once) deep learning algorithm to identify vehicles and categorize lane density into low, medium, or high states in real time
To provide local feedback, a 16×2 I2C LCD module is interfaced with the controller to display immediate traffic status and system health metrics. The system translates density analytics into actuation commands through GPIO pins, which drive LED arrays or relay circuits to dynamically adjust signal timings. Specialized detection modules are integrated to recognize emergency vehicles, such as ambulances, allowing the controller to override standard cycles and grant immediate right-of-way.
For remote oversight, the hardware includes a Blynk-powered IoT interface, enabling authorities to visualize congestion and perform manual overrides via mobile applications. A Telegram-controlled ESP32-CAM provides on-demand visual verification of road conditions. Additionally, auxiliary vibration and proximity sensors detect accidents or breakdowns, triggering high-priority alerts. This integrated suite ensures a scalable, responsive, and data-driven approach to modern urban traffic management.
-
Software Design
The software framework of the proposed system is engineered to perform real-time image processing, density analysis, and automated signal coordination. The core logic is developed using Python, leveraging the OpenCV library for image manipulation and the PyTorch framework for deep learning inference. The YOLOv5 (You Only Look Once) model is deployed at the heart of the detection module to perform high-speed object recognition and vehicle counting across multiple lanes simultaneously.
The software operation begins with the continuous acquisition of video frames from intersection cameras. These frames undergo preprocessing, including resizing and normalization, before being fed into the YOLOv5 engine. The algorithm classifies detected objects and calculates traffic density, which the system categorizes into discrete levels (Low, Medium, or High). Based on these levels, a dynamic timing algorithm calculates the optimal green light duration, prioritizing congested routes to minimize idling time.
Furthermore, the software integrates with the Blynk IoT platform using API protocols to transmit real-time traffic statistics and system health datato a cloud-based dashboard. A dedicated Telegram Bot API is implemented on the ESP32-CAM module, allowing users to request and receive live snapshots of the traffic junction via encrypted messaging. For enhanced safety, the logic incorporates an emergency vehicle preemption routine and an automated alert system that triggers notifications if sensors detect anomalies, such as accidents or stalled vehicles. This multi-layered software architecture ensures a responsive, scalable, and autonomous urban traffic management solution.
Fig. 2. Flow Chart
-
Circuit Diagram
The circuit architecture is designed to facilitate a seamless interface between the image processing unit and the physical signal hardware. The central control logic resides within the Raspberry Pi 3B / ESP32 microcontroller, which is interfaced with a high-resolution camera module via a CSI or USB interface. The microcontrollers General-Purpose Input/Output (GPIO) pins serve as the primary actuation interface, connected to a series of relay modules or LED driver circuits that simulate the red, yellow, and green phases of a standard traffic signal.
To ensure system stability, a dedicated power regulation stage is implemented to provide a steady 5V/3A supply to the microcontroller while isolating the high-current signal lamps. An I2C communication bus is utilized to interface a 16×2 LCD screen for local data visualization. For remote connectivity, the onboard Wi-Fi module establishes a secure link to the Blynk IoT Cloud, while auxiliary pins are reserved for ultrasonic sensors and vibration sensors used in vehicle queue length estimation and accident detection, respectively.
-
System Setup
The physical deployment of the system involves the strategic positioning of the sensing and execution units at a four-way intersection. The Image Acquisition Unit (camera) is mounted at a heightened elevation to ensure a wide field of view (FOV) for accurate vehicle density estimation across all lanes. This unit is connected to the central processing hub, which is housed in a weather-resistant enclosure containing the microcontroller, power management circuits, and cooling fans to prevent thermal throttling during intensive deep learning inference.
Fig. 3. IR Detection
The execution unit consists of the physical signal poles equipped with high-intensity LED arrays. These are synchronized with the processing hub through wired or wireless RF links to ensure zero-latency timing adjustments. The IoT Gateway is configured to maintain a persistent connection with the cloud server, allowing for real-time telemetry and remote manual overrides. Finally, the Emergency Vehicle Priority (EVP) module is calibrated to recognize specific visual or acoustic signatures, ensuring that the circuit logic can immediately toggle green-wave patterns for first responders.
Fig. 4. Hardware Setup
-
Advantages of the Proposed System
-
The proposed AI-powered traffic management system provides a highly adaptive and efficient alternative to traditional infrastructure by utilizing real-time density estimation to significantly minimize intersection idle times and urban congestion. One of its most critical contributions to public safety is the integrated emergency vehicle preemption routine, which identifies first responder vehicles like ambulances and fire trucks to grant them immediate right-of-way, thereby reducing life-critical response times. From an environmental perspective, the system promotes eco-friendly urban mobility by optimizing vehicle flow and reducing the frequent "stop-and-go" patterns that lead to high fuel consumption and excessive carbon emissions.
-
-
RESULT AND DISCUSSION
The performance of the AI-powered traffic management system was validated through real-time testing of the detection algorithms and the monitoring interface. The processing unit successfully executed the YOLOv5 model, achieving high-speed inference on live video feeds. The system demonstrated a high degree of accuracy in identifying various vehicle classes and calculating lane density under diverse lighting conditions. Based on these density metrics, the control logic dynamically adjusted signal timings, confirming that the software could effectively translate visual data into hardware actuation commands through the GPIO interface. The integrated monitoring dashboard provided a comprehensive visualization of the systems operational status, mirroring the real-time flow of traffic data. The interface displayed a continuous stream of traffic density values, represented through dynamic graphs that fluctuated according to the number of vehicles detected in each lane. High peaks in the data stream corresponded to periods of heavy congestion, triggering the system to allocate extended green light durations, while lower troughs indicated clear roads and shorter signal cycles. This live telemetry confirmed stable sensor connectivity and accurate signal mapping, providing traffic authorities with a reliable tool for remote oversight.
Furthermore, the systems communication logs verified the successful transmission of commands to the signal hardware and the IoT cloud. The processing unit generated specific binary-coded outputs for different traffic statessuch as high-density priority or emergency vehicle overrideswhich were transmitted with minimal latency. Real-time debugging through the command interface confirmed that neural-network-driven decisions were correctly mapped to physical signal changes. These results demonstrate that the modular framework of microcontrollers, deep learning, and IoT integration provides a robust and responsive solution for autonomous urban traffic regulation.
Fig.5. Cloud Output
The hardware architecture, centered around cost-effective edge computing units like the ESP32 and Raspberry Pi, proves that sophisticated smart city infrastructure can be deployed with minimal financial overhead. By optimizing traffic flow, the system not only reduces travel delays and driver frustration but also contributes to a significant reduction in urban carbon footprints. Ultimately, this project offers a scalable, modular, and sustainable solution that aligns with the evolving requirements of modern smart city infrastructure.
-
CONCLUSION
The AI-powered traffic management system offers a transformative solution to persistent urban challenges such as traffic congestion, inefficient signal timing, and delayed emergency responses. By leveraging advanced technologies, including computer vision, real-time object detection, and deep learning algorithms, the system continuously monitors vehicle and pedestrian densities across intersections and road networks, enabling dynamic optimization of traffic signal timings for smoother flow and minimal delays. This intelligent adjustment not only reduces travel time and fuel consumption but also significantly lowers vehicular emissions, contributing to environmental sustainability. Beyond optimizing traffic, the system incorporates emergency vehicle prioritization, allowing ambulances, fire trucks, and police vehicles to traverse intersections without hindrance, thereby improving public safety and response efficiency. Smart pedestrian detection and safety measures further ensure the protection of non-motorized road users, reducing accidents. Designed for compatibility with existing infrastructure, the system is a scalable and cost- effective solution for modern smart cities. Its adaptive nature allows continuous learning from historical and real-time traffic patterns, refining predictions and signal strategies over time. By integrating AI-driven insights into urban traffic management, the system enhances commuter experience, reduces conestion, and promotes safer, more sustainable mobility. This project exemplifies how intelligent, data-driven technologies can revolutionize urban transportation networks, offering a practical and forward-looking approach to creating smarter, more responsive, and highly efficient cities where traffic flow is optimized, emergency responses are expedited, and overall urban mobility is significantly improved.
-
FUTURE SCOPE
The current implementation of the AI-powered traffic management system provides a versatile foundation for several advanced technological integrations. Future iterations could incorporate Vehicle-to-Infrastructure (V2I) communication protocols, enabling the traffic controller to transmit real-time speed recommendations and signal phase timing directly to connected vehicles to harmonize traffic flow. This would be complemented by predictive traffic analytics using Long Short-Term Memory (LSTM) networks to forecast congestion patterns based on historical data and city-wide events.
To further enhance reliability, the system could integrate multi-modal sensing, such as acoustic sensors for emergency siren detection as a redundancy to visual identification. Furthermore, upgrading the communication layer to 5G or Wi-Fi 6 would support higher data throughput for cloud-based deep learning analytics. The deployment of a distributed mesh network across multiple intersections would enable a city-wide "Green Wave" synchronization, drastically reducing travel times across large metropolitan areas. Finally, improvements in edge computing hardware and solar-assisted power modules could make the system entirely energy-autonomous and more cost-effective for deployment in remote urban zones.
REFERENCES
[1]. Changjian Cai, Min Wei, Adaptive Urban Traffic Signal Control Based on Enhanced Deep Reinforcement Learning, Scientific Reports, September 2024. [2]. Hao Yu, Rui Ma, Hong-Ming Zhang, Artificial Intelligence-Based Adaptive Traffic Signal Control System: A Comprehensive Review, Electronics, 2024. [3]. Amit Kumar Tiwari, Raghvendra Kumar Pandey, Saharsh Singh, Gaurav Tiwari, Ambuj Kumar, Prateek Mishra, Smart Traffic Signal Control System Using Artificial Intelligence, Innovations in Data Analytics, Springer, July 2024. [4]. Kushal Patel, Jayraj Singh, Deep Learning-Based Real- Time Vehicle Detection for Intelligent Traffic Control, IEEE Transactions on Intelligent Transportation Systems, August 2024. [5]. Pradnya Patil, Dimple Chaudhari, Intelligent Traffic Signal Control System Based on Machine Learning Algorithms, Advances in Intelligent Systems and Computing,Springer, June 2024
[6] Zhang H., Fang Z., Chen Y., Dai H., Jiang Q., Zeng X., Traffic signal optimization control method based on attention mechanism updated weights double deep Q network, Complex & Intelligent Systems (Springer), published 19 March 2025. [7]. Zaman M., Saha S., Zohrabi N., Abdelwahed S., Deep Learning Approaches for Vehicle and Pedestrian Detection in Adverse Weather, In Proc. 2023 IEEE Transportation Electrification Conference and Expo, IEEE, 2023 [8]. Wu C., Kim I., Ma Z., Deep Reinforcement Learning Based Traffic Signal Control: A Comparative Analysis, Procedia Computer Science, Vol. 220, pp. 275282, Elsevier, 2023. [9]. Sun Q.-W., Han S.-Y., Zhou J., Chen Y.-H., Yao K., Deep Reinforcement-Learning-Based Adaptive Traffic Signal Control with Real-Time Queue Lengths, In Proc. 2022 IEEE International Conference on Systems, Man, and Cybernetics (SMC), IEEE, Oct 2022. [10]. Liu X., Wang Y., Yu D., Yuan Z., YOLOv8-FDD: AReal-time Vehicle Detection Method based on Improved YOLOv8, IEEE, Jan 2024
[11]. Shelke M. P., Ranjan N. M., Ukirde P., Pagade S., Hanchate S., Mehtre N., A Research Survey on Traffic Management, Accident Detection and Emergency Notification Systems to Improve Society Health, In Proc. 2023 7th Int. Conf. on Computing, Communication, Control And Automation,IEEE, Aug 2023
[12]. B. Rebsamen, E. Burdet, C. Guan, H. Zhang, C. L. Teo,Q. Z g, C. Laugier, and M. Ang, "Controlling a wheelchair indoors using thought," IEEE Intelligent Systems, vol. 22, pp. 1824, 2007.
[13]. Abdulhai B., Pringle R., Karakoulas G. J., Reinforcement Learning for True Adaptive Traffic Signal Control, Journal of Transportation Engineering, ASCE, 2003. [14]. Koonce P., Rodegerdts L., Traffic Signal Timing Manual, Federal Highway Administration (FHWA), U.S. Department of Transportation, 2008. [15]. Bochkovskiy A., Wang C.-Y., Liao H.-Y. M., YOLOv4: Optimal Speed and Accuracy of Object Detection, arXiv preprint arXiv:2004.10934, 2020.
