1. Introduction
The increasing number of vehicles on the road around the world has intensified congestion, driving up fuel consumption, increasing carbon dioxide (CO
2) emissions, and increasing accident risks [
1,
2]. Every year, more than 1.35 million people lose their lives in road traffic accidents, representing approximately 2.2% of global deaths [
3]. In Saudi Arabia, traffic accidents are one of the leading causes of death and disability, with annual losses estimated at USD 16 billion (approximately SAR 60 billion) [
4,
5]. Secondary accidents, triggered by driver distraction or sudden maneuvers near a primary crash, further exacerbate congestion and increase the severity of the injury. Beyond the human toll, road crashes impose significant socio-economic costs, including healthcare expenses, property damage, and lost productivity. These wide-ranging impacts underscore the urgency of adopting intelligent transportation initiatives that enhance both safety and environmental sustainability [
6].
Urban intersections are among the most critical and hazardous points in road networks. Their complex layouts, involving multiple lanes, signal phases, and conflicting traffic flows, demand heightened attention from all road users. A large-scale analysis of over 10 billion traffic observations revealed a non-linear causal relationship between congestion and accident frequency [
7], underscoring the urgent need to enhance both safety and mobility at intersections.
Traditional traffic light systems, typically operating on fixed schedules, are ill-suited for dynamic traffic conditions. Manual adjustments are often required, leading to longer delays, higher emissions, and elevated accident risk. To address these limitations, researchers have proposed intelligent traffic control systems that leverage Artificial Intelligence (AI) and the Internet of Things (IoT) for adaptive and efficient traffic management [
8,
9,
10,
11,
12,
13,
14,
15,
16,
17].
In smart cities, well-managed urban transportation networks are essential for road safety, reduced congestion, shorter travel times, economic growth, and environmental sustainability [
18,
19]. While AI techniques have been applied extensively to either traffic congestion detection [
20,
21,
22,
23,
24,
25] or accident detection [
26,
27,
28,
29,
30,
31,
32], most intelligent traffic light systems address these issues separately. This separation is problematic because congestion and accidents are closely interrelated—each can worsen the impact of the other [
33,
34].
Only a few existing solutions integrate both congestion and accident detection while actively notifying drivers [
35]. To bridge this gap, we propose Passable, an intelligent traffic light control system, translated as “Salik” in Arabic, that employs deep learning and computer vision techniques to unify incident detection, adaptive signal control, driver communication, and centralized monitoring. Unlike previous studies, Passable integrates the following contributions in a fully functional adaptive traffic light system:
Detects congestion and accidents simultaneously using AI-based computer vision.
Adjusts green time adaptively based on real-time traffic conditions.
Alerts drivers via in-vehicle wireless communication.
Provides centralized monitoring through a cloud-integrated dashboard.
Although individual components are based on established methods, their combined implementation and synchronization in a fully integrated and functional prototype tailored to urban traffic conditions offer a practical advancement in the deployment of intelligent transportation.
The remainder of this paper is organized as follows.
Section 2 reviews related work on congestion detection, accident detection, and adaptive traffic control.
Section 3 introduces the proposed system framework.
Section 4 and
Section 5 describe the data collection methods and system design.
Section 6 and
Section 7 detail the deep learning models and system software and hardware implementation.
Section 8 presents the Passable system testing and analytical evaluation.
Section 9 discusses the system performance and limitations, highlighting directions for future work. Finally,
Section 10 presents the conclusions.
4. Data Collection and System Requirements
Different data collection methods were employed to gain a comprehensive understanding of the problem from multiple perspectives and identify the requirements of the proposed system. Two primary data-gathering methods were utilized to determine the Passable system requirements: a survey of stakeholders, specifically drivers, and interviews with officers from the General Department of Transportation (GDT). This integrated approach aims to inform and guide the development of the Passable system, ensuring that it effectively meets the needs and expectations of all stakeholders. All participants in the survey or interviews were informed about the system’s objectives, the types of questions, and the anonymous nature of their responses. They were told that participation was voluntary, that they could skip any question or withdraw from the session at any time, and that the collected data would be treated confidentially. Before participating in the survey or interviews, written informed consent was obtained, outlining the data privacy measures and the intended use of the results.
4.1. Drivers’ Survey
A comprehensive survey was designed to gather valuable insights from drivers about their experiences with road congestion and accidents, as well as their general attitudes towards the proposed intelligent traffic light system and notification alerts. The survey consisted of 16 questions and was distributed via QR code and social media to reach a broad audience, unrestricted by geography or time zones. Responses were received from 442 individuals.
Table 2 shows the demographic information of the participants. The demographic data shows a primarily young population, with 73.6% of participants aged 18 to 24. Geographically, the majority (85.9%) live in the Mecca region, indicating a geographical concentration that may limit overall representativeness in Saudi Arabia. Most of the participants are students (67.4%). Regarding driving habits, a significant proportion (53.4%) do not drive, likely due to their age and student status, whereas 26.3% drive more than five times a week.
Table 3 presents a detailed list of the survey questions, the answer options, and the percentage of responses for each question. A significant majority (90.9%) report suffering from traffic congestion at intersections, highlighting a widespread issue. Notably, 86.5% have experienced waiting at a red light while other directions had no cars, suggesting inefficiencies in traffic light coordination. Furthermore, when asked about the maximum number of times a traffic light cycled before they could pass, 41.6% of respondents said twice, and 31.1% said three times, emphasizing issues with traffic light timing. Additionally, 10.9% of respondents have been involved in a secondary accident due to the occurrence of an accident ahead, while 33.4% know someone who has been involved in such an accident. When asked about accidents caused by sudden acceleration or stops at traffic lights, 20.2% reported having encountered such accidents, while 26.7% know someone who has, and 53.1% have not faced this issue. When estimating wait times at traffic lights, 49.3% of respondents report waiting 5 min or less, while 33.4% wait around 10 min, 11.4% wait around 15 min, and 5.9% wait around 20 min, indicating variability in wait durations. These insights underscore the need for improved traffic management and more efficient traffic light systems to alleviate congestion and reduce wait times. A majority (90%) of respondents prefer to be aware of accidents or severe congestion ahead and change their route accordingly. These results indicate a strong preference for advanced warnings about traffic conditions and highlight the significant impact of traffic accidents and sudden stops at traffic lights on drivers’ safety. When questioned about their willingness to use a vehicle equipped with communication technology for receiving congestion or accident notifications, 82.1% responded affirmatively, 2.1% responded negatively, and 15.8% were uncertain. Furthermore, 64.8% of respondents preferred receiving alerts via voice notifications, 34.9% through text messages, and 63% via light alerts. Additionally, when asked if an AI-powered system would save time, prevent accidents, reduce traffic congestion, and optimize resource use, 80.1% believed it would be helpful, 1.5% did not, and 18.5% were unsure.
4.2. Traffic Officer Interviews
Three interviews were conducted to gather information about the current traffic light system. The first interview was unstructured and was conducted with a colonel serving as the Traffic Director of Jeddah City in Saudi Arabia. The second interview was with a colonel serving as the Director of Public Relations. This was undertaken to engage with experts in road safety and traffic control. The third interview, semistructured and consisting of open questions, was conducted with different officers at the GDT. These interviews discussed strategies for managing traffic congestion and mitigating accidents. In addition, the roles of the different departments, including the Accidents Department, Traffic Safety Department, and the Saher Department, were explained.
When asked about the strategies for managing traffic congestion and mitigating accidents, the colonel outlined three primary methods used to identify congested and accident-prone areas: relying on 911 call reports from drivers and traffic police, conducting periodic traffic patrols, and utilizing a network of surveillance cameras. Additionally, when asked about the types of cameras used to detect signal violations, the colonel emphasized the importance of data collection in their operations, highlighting the use of a diverse range of modern and traditional CCTV cameras.
When asked whether they used a current system that is similar to Passable, the colonel discussed a related system called “Sawaher,” which focuses on enhancing security control at Makkah City entrances during Hajj and Ramadan. This system includes individual and vehicle identification and can detect wanted persons traveling through the city. A similar system named “Salim”, currently under review, was also mentioned, aimed at preventing accidents and assisting traffic officers in locating incidents.
The third interview was with the Director of the Traffic Studies Department, which provided insights into the current traffic light system. When asked about the use of modern technology for signal control, the interviewee explained that the current traffic light systems are manually programmed to change signals based on predetermined timings specific to each intersection section. When asked about the primary cause of accidents at intersections, he pointed to sudden stops and changing driving direction as the leading factors.
The series of interviews concluded with valuable insights from an individual who had implemented a similar traffic management system in Tabuk City. This system, similar to Passable but without AI, utilized live cameras on main roads to identify congestion and accidents. This discussion enriched the understanding of practical implementation and offered valuable advice on engaging with relevant authorities to support the system.
4.3. Functional and Non-Functional Requirements of Passable System
For the functional requirements, the proposed system should allow authorized users to log in and out, provide administrators with access to traffic statistics and the real-time status of intersections, and record incident details, including congestion and accidents. Additionally, the system should notify drivers of traffic congestion and accidents, respond to real-time incidents by dynamically adjusting traffic signals, and calculate optimal green light durations based on the current traffic conditions.
For non-functional requirements, security is paramount, as it influences traffic management and the safety of people. User authentication and authorization are needed to ensure that only authorized traffic department users can log in using their email and password and access system data.
4.4. Data Requirements
The Passable system relies on fundamental data requirements to deliver efficient traffic management and an improved driving experience. These key data elements include incident details such as Incident ID, date, time, image, intersection ID, and type (congestion or accidents). The system tracks the Traffic Light ID, status, number, location, and newly calculated green light time for traffic lights. Intersection data includes Intersection ID, name, area, location, and number of traffic lights within the intersection section. These core data requirements form the basis for Passable’s ability to make real-time decisions and communicate effectively.
4.5. Software Requirements and Tools
The software requirements lay the foundation for the development of the Passable system, ensuring that it effectively manages traffic, enhances road safety, and provides an improved driving experience for all users. The software prototype of the Passable system integrates several essential components. The following subsections outline the primary software components of the proposed system, including their key features and requirements.
4.5.1. Traffic Monitoring Dashboard
The designed traffic monitoring dashboard is a user-friendly dashboard interface that allows administrators to oversee the system’s operations, monitor traffic status, and interact with the system. The front end of the monitoring dashboard was designed using Power BI, a powerful business analytics tool developed by Microsoft. It enables users to visualize and analyze data from various sources. With its intuitive interface and robust features, Power BI allows users to create interactive reports and dashboards that can be shared across organizations. Moreover, Power BI seamlessly integrates with Microsoft Azure, facilitating data retrieval. Power BI Desktop version 2.127.1080.0 (
https://www.microsoft.com/en-us/power-platform/products/power-bi, accessed on 15 January 2025) is a prominent software program for data visualization and business intelligence. Additionally, Hypertext Markup Language (HTML) and Cascading Style Sheets (CSS) were used to structure and style the contents of the dashboard interface. Moreover, JavaScript was used to create interactive elements and dynamic behavior, enhancing the user experience with the dashboard interface.
For the implementation of the dashboard’s back-end, the Django framework was used. Django provides a high-level abstraction of database operations. It is designed to facilitate the creation of complex, database-driven websites. Django utilizes Python version 3.9 (
https://www.python.org, accessed on 15 January 2025) to create scripting code for server-side application logic. Django is a Python web framework renowned for its rapid development capabilities, robust security features, and exceptional scalability. It simplifies web application development with built-in components for database management, authentication, and URL routing. Moreover, it can be integrated with AI models to create web applications with intelligent features. It was used for the front-end and the back-end development to integrate the entire system. It linked the AI models to the database and the AI models’ outputs to the hardware. Visual Studio Code version 1.88 (
https://code.visualstudio.com, accessed on 15 January 2025) (VS Code) is a lightweight yet powerful code editor developed by Microsoft. It supports multiple programming languages, offers features such as syntax highlighting and debugging, and features a vast library of extensions for customization. VS Code was used to write the Django system code.
4.5.2. Detected Incidents Database
Microsoft Azure and MySQL were used for database development. Microsoft Azure offers various cloud database services, including Azure Database for MySQL, Azure SQL database, Azure Cosmos DB, and Azure Database for MariaDB. These managed database solutions provide high availability, scalability, and analytics capabilities, enabling businesses to efficiently store and manage their data in the cloud. MySQL is a widely used open-source relational database management system (RDBMS) known for its reliability, scalability, and ease of use. It utilizes Structured Query Language (SQL) for data management and supports various features, including transactions, replication, and user authentication.
4.5.3. AI Models for Accident and Congestion Detection
Two deep learning models are developed to detect accidents and congestion from camera images. For the AI models of the system, the “You Only Look Once” (YOLOv8) algorithm for real-time object detection is utilized, and its performance is compared with the Faster Region Convolutional Neural Networks (Faster RCNN) model. The Yolov8 model was chosen for its speed and accuracy in object detection, making it ideal for real-time traffic analysis. Faster RCNN was selected because it is considered one of the primary models for object detection. The models are implemented in Google Colaboratory (Google Colab), a cloud-based environment for running Python programming language code. Google Colab is a free cloud-based platform provided by Google that allows users to write and execute Python code in a browser-based environment. It provides access to powerful computing resources, including GPUs and TPUs, enabling users to run complex machine learning and data analysis tasks without the need to set up their infrastructure. Additionally, Python is a versatile programming language widely used for web development, data analysis, and Artificial Intelligence (AI). It is known for its simplicity, extensive library, and accessibility to developers of all levels, with strong community support.
4.5.4. Traffic Light Control and Notification Service
Two software modules are needed to control the traffic light operation and notify drivers of detected incidents. One is responsible for calculating and dynamically adjusting the traffic light timings based on real-time traffic conditions and congestion detection. The other software module is responsible for sending real-time alert messages to drivers regarding traffic conditions using wireless communication between the traffic light and the vehicles. Additionally, a software module is responsible for receiving alert messages from vehicles using in-vehicle wireless communication and relaying these messages to other neighboring vehicles.
The Arduino Integrated Development Environment (Arduino IDE) was utilized to develop the traffic light control and notification components. The Arduino IDE is a user-friendly software platform for programming microcontrollers, such as the Arduino and ESP32. It supports the C/C++ programming language. With a simple and intuitive interface, the Arduino IDE enables users to create and control electronic systems by writing code, utilizing multiple libraries, and interacting with sensors, actuators, and other components. It was used to program the ESP32 microcontroller for the prototype.
4.6. Hardware Prototype Requirements and Tools
The hardware prototype of Passable consists of several components that work together to optimize traffic light operations and report detected road incidents. The system also enables vehicles to receive alerts and relay them to nearby vehicles.
To facilitate effective operation and testing, several hardware components are required. The system administrator uses a computer system with Internet connectivity to access the Passable dashboard and visualize real-time traffic data. For the traffic light infrastructure, cameras are necessary to monitor traffic conditions in real time. In our prototype, traffic lights are connected to a laptop equipped with a camera and configured to run AI models for detecting road incidents. Additionally, traffic lights must be equipped with wireless communication technologies to send alerts about detected congestion or accidents to nearby vehicles. Similarly, vehicles must have wireless communication capabilities to receive these warnings and exchange information with other nearby vehicles.
The core hardware components used in our prototype are illustrated in
Figure 2. These include Female-to-Female jumper wires, four 5 V Traffic Light LED Module Boards, a 2 × 16 liquid crystal display (LCD) for showing alert messages to drivers, and an Espressif32 (ESP32) module—a system-on-chip microcontroller with integrated Wi-Fi and dual-mode Bluetooth. Both traffic lights and vehicles are equipped with ESP32 modules, which enable instant transmission and reception of alert messages. Vehicles can also retransmit these alerts to other nearby vehicles.
As a proof of concept, Wi-Fi is used for communication between traffic lights and vehicles, as well as for vehicle-to-vehicle (V2V) communication. The prototype functionality and ESP32 modules are programmed using C++ in the Arduino IDE, a widely used tool for microcontroller development.
In real-world deployments, CCTV cameras are typically installed on traffic lights at intersections. These lights should be integrated with processing units capable of running deep learning models to analyze images and detect incidents. For broader and more robust communication, advanced technologies such as 5G can be used to enhance data exchange between infrastructure and vehicles.
8. Passable System Testing and Evaluation
System testing is an essential phase of system development that verifies the system’s performance and functionality. Various testing techniques were employed throughout the development of Passable to ensure the system’s consistent performance and functionality. The testing types include unit testing, back-end testing, integration testing, and usability testing. Additionally, hardware testing was performed to ensure proper functioning and effectiveness of the hardware components.
8.1. Unit Testing
The unit testing includes testing the dashboard interface and the AI model interface. The dashboard’s unit testing focuses on validating the functionality of individual pages, as well as the behavior and responsiveness of each page’s features. The results confirmed that all components operated as intended, with no major detected defects.
To evaluate the performance of the developed AI models for congestion and accident detection, a dedicated test page was designed and integrated with the models using Django. The testing process utilized new, previously unseen images to ensure unbiased evaluation. The interface allows users to upload an image and select either accident or congestion detection. The models accurately detected all relevant objects, successfully identifying congestion and accidents with high accuracy. As illustrated in
Figure 18, the output for an accident image consists of a Boolean result indicating the presence of an accident, accompanied by an annotated image highlighting the detected event. The output for a congestion image, as shown in
Figure 19, includes the estimated congestion density, the number of detected vehicles, and an annotated image highlighting the identified vehicles.
8.2. Hardware Prototype Testing
Hardware testing is essential to ensure the proper functioning of system components. We conducted tests to evaluate the interaction between the hardware prototype elements, with a particular focus on wireless connectivity using Wi-Fi. The primary objective was to verify the wireless communication between the traffic light and vehicle modules by determining whether the ESP32 microcontrollers in the vehicles could successfully receive data from the traffic light’s ESP32 module.
To assess connection success, we initially relied on the LCD display to present the data received via Wi-Fi. However, the display occasionally failed to show information, either due to connection issues or display-related errors. To facilitate debugging, we implemented a terminal-like interface using the serial monitor, where the message delivery status was printed. If the vehicle was not detected on the network, the message “Delivery Fail” was displayed; otherwise, a successful transmission was indicated by “Delivery Success”, as shown in
Figure 20.
Additionally, we tested the responsiveness of the vehicle-mounted LCDs to alert messages received from the traffic lights. To simulate various detection scenarios for congestion and accidents, we assigned random binary values—where 1 indicated the detection of an event (accident or congestion) and 0 indicated no detection. These values were printed on the serial monitor for verification, while corresponding alert messages were displayed on the LCD screen, as illustrated in
Figure 21.
Another crucial aspect of hardware testing was the integration testing of all hardware components. The objective was to ensure that the intersection was correctly controlled and that all traffic lights operated in the correct sequence and order. The testing produced positive results, confirming that the intersection hardware functioned as intended and that all traffic lights performed correctly.
8.3. Integration Testing
Integration testing ensures the whole work of the system’s components. Any action taken at the inputs will affect the outputs accordingly. For the dashboard–database integration testing, when adding any entry to the tables connected to the dashboard (e.g., an accident is detected), the dashboard will automatically be updated, and the numbers will be incremented.
During the hardware–Django server integration testing, the response to an HTTP GET request was successfully received and displayed in the Arduino IDE serial monitor, as illustrated in
Figure 22, confirming proper integration.
8.4. Dashboard Usability Testing
Usability testing is a method used to evaluate the effectiveness and user-friendliness of a user interface (UI). For our system, Passable, the objective of usability testing was to assess how intuitive and easy the dashboard interfaces are for GDT users, and how well these interfaces support them in achieving their tasks. The process involved setting up a controlled testing environment, selecting appropriate participants, and observing their performance as they completed specific usability tasks.
Five GDT employees with experience in managing traffic-related issues participated in the dashboard testing, including four traffic officers and one traffic manager. Participants’ ages ranged from 28 to 45 years. The usability test was conducted at the GDT office in Jeddah, in a semi-quiet environment that closely simulated their actual workplace conditions. Participants were asked to complete eight core tasks that covered key dashboard functionalities. The test followed an unmoderated format, allowing participants to perform the tasks independently without real-time guidance.
Participants were briefed and informed about the testing’s objectives, the specific tasks they would be expected to perform, and how their interactions with the system would be observed to evaluate the system’s usability. They were informed that no personally identifiable information would be stored on file and that the sole purpose of their feedback would be to assess and improve the system’s usability. Before participation, which was entirely voluntary, written informed permission was acquired. The consent form contained details regarding participant rights, data processing, and the non-invasive nature of the testing procedure.
Participants were evaluated based on the time it took to complete tasks and the number of clicks required. In addition, they rated the ease of each task and their overall satisfaction with the dashboard experience.
Table 8 presents the usability tasks assigned to participants along with the corresponding success criteria, defined by completion time (in seconds) and number of clicks. The participants’ performance was then analyzed in relation to these criteria to assess task efficiency and effectiveness.
All participants successfully completed the tasks. The time taken to complete each assigned task is recorded for each user in seconds.
Table 9 shows the task completion time for each user and the average completion time per task. The task completion time results indicate that most dashboard functions were performed efficiently, with tasks such as retrieving traffic data (Tasks 3, 5, 7, and 8) completed in under 5.5 s on average, reflecting good usability and intuitive design. Moderately time-consuming tasks like login and regional queries (Tasks 2 and 6) suggest minor interaction complexity but remained within acceptable limits. Task 1, involving user sign-up, had the highest average completion time (33.2 s), indicating a potential need to simplify the registration process. Task 4 also showed higher variability, suggesting that region-based filtering could benefit from interface improvements. Overall, the results demonstrate a satisfactory level of efficiency, with opportunities for refinement in a few areas.
The number-of-clicks metric measures the total number of clicks performed by users to complete a task.
Table 10 shows the number of clicks performed by each user to accomplish each of the assigned tasks and the average number of clicks per task. The number of clicks required to complete each task provides insight into the efficiency and simplicity of the dashboard interface. Tasks 3 and 8 had the lowest average number of clicks (0 and 1.2, respectively), indicating that these actions were either automated or accessible through a single view. Similarly, Tasks 2, 5, and 7 required minimal interaction, averaging three clicks or fewer, thereby suggesting a straightforward user flow. In contrast, Task 1 (sign-up) involved the highest number of clicks (an average of six), reflecting its more complex nature, possibly due to form field requirements. Tasks 4 and 6 showed the most variability and the highest interaction level among data retrieval tasks (an average of 3.4 and 3.8 clicks, respectively), indicating potential room for streamlining the steps involved. Overall, the click data confirms that most tasks were completed with minimal effort, supporting the dashboard’s usability goals.
After completing all the tasks, participants were asked to rate the difficulty of each task as easy, moderate, or hard. The results showed that four out of five participants (80%) rated the dashboard as easy to use, while one participant (20%) reported a moderate level of ease. Participants were also asked about their overall satisfaction with the dashboard. All participants (100%) indicated that they were satisfied with their experience. Overall, the dashboard was well-received by participants for its clean and modern interface.
Participant feedback provided valuable insights into usability and areas for enhancement. Common suggestions included adding more detailed sections, integrating a map to visualize incident locations, and offering personalization and customization features. While some users reported smooth and responsive interactions, others experienced occasional lag or slow loading times, indicating potential areas for performance optimization.
8.5. Analytical Performance Evaluation
To illustrate the effectiveness of the proposed adaptive traffic light system, an analytical performance evaluation was performed based on the Highway Capacity Manual (HCM 6th Edition) [
40]. Similar analytical approaches have been used in adaptive signal control research to quantify improvements in intersection performance without full-scale field testing, such as in [
13,
16,
41,
42]. The analysis considered a conventional fixed-time traffic signal with a cycle duration of 60 s, of which 20 s were allocated to the green phase. In the proposed adaptive approach, the green light time
is calculated using Equation (
1). In this study, only the car vehicle class is considered, with an average vehicle passing time of 2.6 s. Thus, the equation can be written as
The capacity per cycle can be defined as the maximum number of vehicles that can pass through an intersection during the green phase of a single signal cycle. Given the number of lanes
L, per-lane saturation flow rate
, and green phase duration
, the number of served vehicles in each signal cycle can be calculated using the following equation:
With an average discharge headway
of 2.6 s per vehicle, the per-lane saturation flow rate can be estimated as
vehicles per second. Assuming a scenario with two lanes, multiplying
by two yields a total discharge rate
of 0.7692 vehicles per second. Therefore, the total number of vehicles served during the green phase (capacity per cycle) for the two lanes can be written as
For example, with s, the capacity is approximately 15.38 vehicles per cycle, and with s, the capacity increases to 29.23 vehicles per cycle.
To evaluate the effectiveness of the proposed adaptive traffic light approach, the average delay and traffic throughput are used as evaluation metrics. Assuming uniform (non-random) arrivals and no initial queue, the average
per vehicle for an undersaturated signal can be approximated as
where
is the cycle length in seconds and
is the effective red time in seconds. The delay approximation in Equation (
5) is based on Webster’s classical uniform delay model [
40,
43], and it is consistent with its simplified treatment in [
44].
Traffic throughput
is the actual number of vehicles that have passed through an intersection in a given period of time and can be calculated using the following equation:
where Demand is the traffic arrival rate measured by the number of vehicles per unit time.
The percentage reduction in average delay is calculated as
where
and
are the average delays of the fixed and adaptive traffic lights, respectively, calculated using Equation (
5).
Similarly, the percentage of throughput improvement is
where
and
are the traffic throughput of the adaptive and fixed traffic lights, respectively, calculated using Equation (
8).
To evaluate the effectiveness of the proposed system, three traffic density scenarios consistent with the density classification in
Table 7 were considered: low density (6 vehicles per minute), medium density (18 vehicles per minute), and high density (28 vehicles per minute). To ensure comparability, the evaluation was benchmarked against a traditional fixed-time traffic light cycle set at 60 s with a fixed green time of 20 s, a commonly used baseline in prior studies such as [
13,
16].
Table 11 summarizes the results of the analytical evaluation for the three considered density scenarios.
Under low demand (e.g., six vehicles), this is more than sufficient to clear the queue each cycle, producing a stable operation with an average uniform delay of 13.33 s per vehicle. However, at medium- and high-demand levels (e.g., 18 and 28 vehicles), the fixed-time system becomes overloaded since the service capacity of 15.38 (veh/min) is less than the arrival rates of 21.54 and 29.23 veh/min for the medium and high densities, respectively. In these settings, lines accumulate from cycle to cycle, and the average vehicle delay rapidly surpasses the red phase duration (more than 40 s for medium density, well over 60 s for high density), resulting in substantial congestion and possibly spillback onto upstream intersections. In addition, the throughput cannot exceed the capacity of 15.38 (veh/min) despite the increase in vehicle densities.
In the adaptive traffic light scenario, the effective green light time is calculated in real time using Equation (
1) based on the number of detected vehicles. The green time is then adjusted by the traffic controller to consider the minimum/maximum operational bounds, simulation-based calibration, and cross-street fairness. For the low-density case, the green phase remains at 20 s to avoid overserving the approach, producing results identical to the fixed-time case (average delay of 13.33 s per vehicle). For the medium-density case, the adaptive algorithm increases the green phase to 28 s, resulting in a capacity of 21.54 vehicles per cycle, which exceeds demand and restores stable operation. The corresponding delay is reduced to 8.53 s per vehicle (78.7% reduction), and throughput increases by approximately 17.0% compared to the fixed-time baseline (15.38 vs. 18). For the high-density case, the green phase is extended to 38 s, near the 40 s cap set by the control algorithm. This yields a capacity of 29.23 vehicles per cycle, which is sufficient to serve the 28-vehicle demand without residual queues. The average delay is reduced to just 4.03 s per vehicle (93.3% reduction), and throughput increases by approximately 82.1% compared to the fixed-time baseline (15.38 vs. 28).
Overall, the results show that the proposed adaptive system eliminates oversaturation and significantly improves throughput in medium and high traffic volumes while maintaining performance under low demand. These results indicate that Passable improves traffic flow efficiency. On the safety aspect, the system’s ability to send immediate alerts about incidents contributes to reducing the risk of secondary accidents. This claim is supported by survey responses showing that 90% of drivers prefer to reroute if informed of an incident ahead, which aligns with findings in [
33,
34], highlighting the benefits of early warnings.
9. Discussion
This study contributes to intelligent transportation research by providing a realistic system that integrates incident detection, response, and alert communication to enhance traffic efficiency and road safety. The proposed system, Passable, is an intelligent traffic light system that combines deep learning-based incident detection, dynamic signal control, and wireless driver alerting. The technology demonstrated potential capabilities in addressing two interconnected urban traffic challenges—congestion and accidents—through immediate reaction and communication. Passable can detect accidents and congestion using trained YOLOv8 models and alter green light durations based on vehicle density. The results of YOLOv8 are consistent with the vision-based approaches in prior works utilizing earlier versions of YOLO, such as YOLOv5 [
30,
32]. Additionally, Passable can alert drivers to detected incidents, enabling them to take proper actions and reduce the impact and potential danger of these incidents.
Unlike most previous studies, which individually tackle accident and congestion tasks and ignore the fact of their interrelations [
33,
34], Passable adopted a comprehensive system approach that both supports detection tasks and implements proper reaction and communication strategies, reducing the risk of additional accidents and allowing better traffic flow. The adopted strategy is aligned with the recent efforts proposed by [
35] but advances them further by integrating wireless driver alerts at the prototype level.
This strategy is vital in congested metropolitan areas, where accidents can immediately exacerbate traffic problems. Furthermore, the proposed prototype utilized a representative wireless communication technology, specifically Wi-Fi via ESP32 microcontrollers, which demonstrates the effectiveness of alerting nearby vehicles. This feature mitigates the impact of detected incidents and reduces the likelihood of potential secondary accidents, a frequently overlooked aspect in most existing intelligent traffic light systems.
The stakeholder survey and usability results confirmed that the system conformed to user expectations. Over 80% of participants reported a desire to use vehicle-based alert systems, and 90% favored rerouting if told of an event. Traffic officers emphasized the importance of automated solutions to support manual monitoring methods, which are now heavily reliant on patrols and CCTV networks.
While this work does not introduce a novel deep learning algorithm or optimization model, its contribution lies in the system-level design and operational integration of different technologies. Passable demonstrates how deep learning, IoT, wireless communication, and cloud platforms can be practically integrated in a deployable prototype to address multiple urban traffic challenges simultaneously—an aspect often missing in theoretical models or simulation-only studies.
Despite the demonstrated effectiveness of the proposed integrated traffic light system, there are some limitations. One of these limitations is related to the Passable hardware prototype that utilizes Wi-Fi, which is effective for demonstration but may not accurately reflect the robustness of more scalable communication technologies, such as DSRC, 5G, or LoRaWAN [
16].
Another limitation is that vision-based detection can be affected by variations in light, weather conditions, and camera angles, thus reducing the detection accuracy. These limitations were noted in previous studies [
21,
23]. In addition, because our YOLOv8 models were trained on 720p CCTV footage, the model performance may suffer in scenarios with poor weather (e.g., rain, fog), low illumination (e.g., nightfall), or partial occlusions (e.g., huge cars obscuring the view). These characteristics, together with diminished visibility and contrast, can impair detection confidence and accuracy. To address this issue, pre-processing techniques, such as denoising and training with data that include adverse conditions and targeted augmentations, such as brightness variation and partial blurring, could be used to obtain more stable performance under adverse weather conditions and improve generalization. In locations with problematic conditions, the use of sensor fusion techniques that combine vision with complementary sensors (e.g., mmWave radar or LiDAR) could be considered to offer depth and motion cues that are less impacted by visual noise, thereby enhancing accuracy and minimizing misses in complicated urban situations.
Consistent with prior work [
45,
46,
47,
48], this study conducts a preliminary, proof-of-concept analytical evaluation of only the signal-control component using a fixed-time traffic light as a baseline. Fixed-time control was chosen as the baseline since it is widely used around the world, particularly in developing areas and smaller cities, due to its lower installation and maintenance costs compared to fully adaptive and actuated signal control systems [
49]. In the future, an end-to-end performance evaluation of all Passable system components will be conducted. This evaluation will assess the impact of congestion or incident detection accuracy, as well as driver alerts, rather than focusing only on the signal timing component. In addition, the evaluation will compare the proposed adaptive signal control to other actuated and adaptive signal control strategies, providing a more rigorous benchmark than a fixed-time baseline.
While the current prototype was tested at a single intersection, the architecture was designed with modularity in mind. Each intersection operates as an independent edge node, equipped with its own camera, AI module, and communication unit. To scale the proposed system to multiple intersections, these nodes can be connected to a central management platform via a cloud or fog layer, enabling coordination, data aggregation, and inter-node communication. A hierarchical architecture could be used where each intersection has an edge node that runs CCTV-based detectors and a local green light timing algorithm, while fog or cloud nodes coordinate neighboring junctions (e.g., green-wave preemption for incidents). In addition, the dashboard’s city-level views make it an ideal supervisory layer for monitoring and policy modifications by decision-makers. Moreover, as the system is deployed in real-world scenarios, it will transition from using Wi-Fi to DSRC/5G/LoraWAN for increased resilience. Moreover, the AI models used can be enhanced by federated learning across junctions without sharing raw footage, thereby increasing efficiency and security. The alert protocol can be expanded by assigning unique identities to each intersection and sending location-specific messages to neighboring vehicles. This ensures that alerts are context-aware, avoiding overlap or confusion. Furthermore, advanced broadcast protocols employing event IDs and hop limits, as well as message scheduling and queuing controls, might be used to manage simultaneous alert messages across several junctions.
Integrating aerial monitoring based on UAVs and VLC-assisted V2X communication, as demonstrated in the work performed in [
36], represents a promising enhancement to the Passable system. While our current implementation focuses on ground-based cameras and Wi-Fi communication, future deployments could leverage UAVs to provide overhead visibility of wider road segments and improve incident detection in occluded or congested areas. In addition, VLC can offer a low-latency, interference-resistant communication channel for short-range alerts using vehicles and traffic signals. However, VLC requires a clear line of sight, which may restrict its immediate implementation viability in mixed-traffic scenarios. Therefore, VLC could be used as a supplementary technology rather than a replacement for other communication technologies such as DSCRC, 5G, and LaRaWAN.
Furthermore, future work could focus on the specific issues presented by congested urban intersections, where channel congestion, interference, and “broadcast storm” phenomena can drastically limit system performance. To overcome these issues, edge-side message aggregation and de-duplication algorithms, as well as severity- and proximity-aware scheduling, could be utilized to guarantee that urgent and near-field hazards are prioritized in crowded situations. To further reduce redundant messages, several techniques could be implemented, including unique event IDs, spatial grouping for co-located alerts, adaptive rate limitation with exponential backoff, and TTL-based broadcast control. Additionally, intelligent vehicle-assisted relaying protocols could be used to increase coverage in urban canyons. Moreover, we could transition our prototype to V2X communication protocols such as DSRC, C-V2X, or 5G, which provide superior congestion management and quality-of-service assurances in high-density scenarios.
10. Conclusions
This paper presented Passable, a prototype for an intelligent traffic light system that utilized peer-to-peer communication between traffic lights and vehicles using ESP32. Although the developed prototype is a proof of concept, it offers strong insights about the applicability of the proposed intelligent traffic light system. To the best of our knowledge, Passable is the first traffic light control system that integrates accident detection, congestion detection, driver alerts, and centralized monitoring. The implemented prototype uses an ESP32 microcontroller with integrated Wi-Fi capabilities. Wi-Fi is used for peer-to-peer communication between the traffic light and vehicles, as well as between vehicles, enabling the dissemination of alert messages. The accident and congestion detection models utilize the YOLOv8 deep learning algorithm. The average incident detection accuracy of both models is 96%, effectively reducing traffic light waiting times, managing intersections, and sending alerts to vehicles using wireless technology. The prototype demonstrates the feasibility and effectiveness of using the IoT and computer vision in designing adaptive traffic light control systems. The design of such systems can contribute to improved traffic flow, enhanced safety, and reduced fuel consumption and carbon emissions by minimizing vehicle idling times. While our work currently focuses on a single intersection, it can be extended to include two or more neighboring intersections, which involves coordinating their cycles. This will improve the efficiency of the intelligent traffic light system, resulting in a smoother traffic flow throughout a larger area. The system’s capabilities can be further extended to detect emergency vehicles, such as ambulances. By prioritizing their passage, this technology can play a crucial role in saving lives and improving response times. The developed hardware prototype and analytical evaluation of Passable demonstrate improvements in reducing delays and increasing traffic throughput. However, they cannot fully capture the variability of real-world conditions. Thus, field validation is essential to assess robustness under diverse environments and scalability across multiple intersections. In addition, optimizing detection models and utilizing advanced communication technologies and protocols, such as DSRC, 5G, or LoRaWAN, could be part of our future work to test our prototype in real-world settings.