Next Article in Journal
Numerical Analysis of Highly Sensitive Twin-Core, Gold-Coated, D-Shaped Photonic Crystal Fiber Based on Surface Plasmon Resonance Sensor
Next Article in Special Issue
Securing Industrial Control Systems: Components, Cyber Threats, and Machine Learning-Driven Defense Strategies
Previous Article in Journal
Energy-Efficient Algorithms for Path Coverage in Sensor Networks
Previous Article in Special Issue
Intelligent Warehouse in Industry 4.0—Systematic Literature Review
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Cyber-Physical System for Smart Traffic Light Control

by
Siddhesh Deshpande
and
Sheng-Jen Hsieh
*
Engineering Technology and Industrial Distribution Department, Texas A&M University, College Station, TX 77843, USA
*
Author to whom correspondence should be addressed.
Sensors 2023, 23(11), 5028; https://doi.org/10.3390/s23115028
Submission received: 25 April 2023 / Revised: 16 May 2023 / Accepted: 22 May 2023 / Published: 24 May 2023
(This article belongs to the Special Issue Cyber-Physical Systems and Industry 4.0)

Abstract

:
In recent years, researchers have proposed smart traffic light control systems to improve traffic flow at intersections, but there is less focus on reducing vehicle and pedestrian delays simultaneously. This research proposes a cyber-physical system for smart traffic light control utilizing traffic detection cameras, machine learning algorithms, and a ladder logic program. The proposed method employs a dynamic traffic interval technique that categorizes traffic into low, medium, high, and very high volumes. It adjusts traffic light intervals based on real-time traffic data, including pedestrian and vehicle information. Machine learning algorithms, including convolutional neural network (CNN), artificial neural network (ANN), and support vector machine (SVM), are demonstrated to predict traffic conditions and traffic light timings. To validate the proposed method, the Simulation of Urban Mobility (SUMO) platform was used to simulate the real-world intersection working. The simulation result indicates the dynamic traffic interval technique is more efficient and showcases a 12% to 27% reduction in the waiting time of vehicles and a 9% to 23% reduction in the waiting time of pedestrians at an intersection when compared to the fixed time and semi-dynamic traffic light control methods.

1. Introduction

The Manual on Uniform Traffic Control Devices (MUTCD) [1] states that traffic lights are an important tool for improving road safety, reducing traffic congestion, and optimizing the use of roadways. Traffic lights are used to manage and control the flow of vehicular and pedestrian traffic at intersections. By alternating the signal between green, yellow, and red, traffic lights create a system of order and direction that reduces the likelihood of collisions and accidents. They also allow pedestrians to safely cross the road by stopping traffic and giving them the right of way.
While traffic lights are an effective means of enhancing the safety of people at intersections, they have the unintended consequence of increased travel times for drivers and pedestrians who must halt at red lights. Lv et al. [2] noticed that the likelihood of people halting and waiting at an intersection increases as the number of road crossings grows. The traffic lights are designed to manage conflicting traffic flows, meaning they often prioritize one direction of traffic over others, according to the Signal Timing Manual (STM) [3]. This strategy can delay vehicles or pedestrians waiting to cross the intersection. For example, if more cars are on one road than another, the traffic light may give a longer green light to the road with more traffic, causing delays for the other route. The Highway Capacity Manual (HCM) [4] states that the travel times for vehicles and pedestrians increase if there is a lack of coordination between different intersections. In some cases, the timing of traffic lights may not be synchronized, resulting in vehicle stop-and-go traffic and longer wait times for pedestrians.
The shortcomings of the simple traffic light control system led researchers to investigate smart traffic light control systems. The term “Smart Traffic Light Control System” refers to employing sensors and algorithms to control and optimize vehicular traffic. Real-time traffic data analysis allows the system to fine-tune traffic lights and improve traffic flow to minimize congestion and maximize safety. The control system may use machine learning models and optimization techniques to reduce travel time or to find the relation between various traffic signal parameters. An intelligent traffic light control system is generally more advanced and complex than traditional ones. Overall, an intelligent traffic light system aims to manage and control traffic signals as per the traffic volume at intersections. Intelligent traffic light control systems may also include anomaly detection, passage to emergency vehicles, connection to public transport systems, and integration with other smart city technologies.

2. Literature Review

The difficulties of urban traffic and intersections have prompted several proposed remedies from researchers in recent years. Ghazal et al. [5] proposed a system that uses infrared sensors and microcontrollers to control traffic lights at simple two-way intersections based on vehicle density. Diaz et al. [6] built an intelligent traffic light system with a Raspberry Pi, PIR sensor, and LED traffic light for a simple, single-lane, two-way intersection. These two approaches consider only single-lane traffic. Additionally, the traffic modeling is not specified for the performance evaluation part.
Silva et al. [7] proposed intelligent traffic lights for low-traffic conditions. This work presented a methodology that used a LanPro module installed on the vehicles to decide the path and avoid the red traffic signals. However, as mentioned in the paper, this method is only suitable for low traffic scenarios. Alharbi et al. [8] showcased a dynamic traffic light management system, which increases the green light time if more vehicles are detected but does not explicitly mention if the green time is reduced if fewer vehicles are detected.
Sen and Head [9] proposed a system that can skip green lights for the approaches/roads without vehicle flow during a traffic light cycle. This technique is better when the traffic is less on a particular route, and the traffic volumes do not change very often. Li et al. [10] proposed a methodology to optimize the fixed traffic light timings on isolated intersections. They optimized the traffic signal plan to reduce weighted vehicle and pedestrian delays. However, their system is not smart, which will detect pedestrians and vehicles in their respective lanes and adjust the traffic signal time as per the detected traffic.
Younis and Moayeri [11] worked on the simulation of dynamic traffic lights with one method based on sensors and another based on communication between vehicles. This work shows the results based on the through-vehicle movement but does not consider turning vehicles at the intersection. Tchuitcheu et al. [12] considered adjusting traffic lights based on the waiting queue of vehicles at the intersection in incoming and outgoing lanes. Gandhi et al. [13] also considered a smart traffic light system, which calculates the green traffic light timing based on vehicles detected by the camera sensor but does not consider the phases which allow the signaling of green light to non-conflicting movements from different incoming streets.
Pratama et al. [14] proposed a system to change the green light timings based on the vehicle density in incoming and outgoing lanes. This method is effective when there are a bunch of intersections close to each other, affecting the traffic density on the streets. Chavan et al. [15] presented a sensor network with embedded technology to manage traffic flows. In this work, they did not clearly mention the traffic light parameters for their technique’s performance evaluation.
Hirankitti et al. [16] showcased an agent-based intelligent traffic light control model. In this work, they used rules which will perform actions based on inputs such as current traffic phase, traffic light timing, the queue length of vehicles, and incoming and outgoing vehicles at an intersection and outline lane space availability, but did not mention the sensor type or how frequently and when the data will be collected. Almawgani [17] used a technique that applies different image processing algorithms for nighttime and daytime traffic detection. However, the work built a simple prototype to showcase the working of an image processing system and did not include modeling traffic flows at an intersection.
Li et al. [18] used cameras to capture images or videos of traffic conditions and applied machine learning algorithms to analyze and interpret the data. Wiering et al. [19] simulated an intelligent model using reinforcement learning to optimize the traffic light setting. They evaluated the performance of their technique on a group of intersections by making decisions based on vehicles at the traffic intersection. This method is more focused on optimizing traffic light parameters and, thus, there is no mention of the sensors to collect the data.
Wei et al. [20] also used deep reinforcement learning to optimize traffic light timing. Their system minimized the delays and improved traffic flow for through-movement vehicles but did not consider the left-turning vehicles. Liu et al. [21] presented a multi-agent Q-learning approach to control the traffic lights at the intersection. This method mentions adapting to pedestrians, but the algorithm does not employ the technique when pedestrians are detected at the intersection. Linag et al. [22] proposed a method that uses deep reinforcement learning with multiple optimization elements. Their system improved the vehicle waiting time by 20%. Their system inputs are vehicle position and vehicle speed but do not include when and where the data points are captured and what should be the frequency of data capturing in real-time. Göttlich et al. [23] utilized linear programming optimization to determine the optimal traffic light timing for a given set of traffic conditions. Park et al. [24] proposed genetic algorithms to optimize specific traffic signal parameters only for high-traffic cases at intersections.
Genders and Razavi [25] proposed a technique using reinforcement learning and a convolutional neural network to optimize the traffic light timings for an intersection. The inputs to the neural network include the presence of the vehicles in a specified area, vehicle speed, and the current phase of traffic lights. Oliveira et al. [26] used multiple neural networks to optimize the traffic light timings. This method gives the same inputs to different ANN, which predicts the same output. This work focuses more on neural network performance and does not specify parameters such as traffic flows or traffic light cycles for an intersection. Abbas et al. [27] presented a high-accuracy controller that can change the next phase timing and net phase green light time based on the current phase data collected from the roadside data collection (RSDC) units but did not mention the exact type of the sensors and the frequency of data collection. Additionally, the system evaluation does not mention the details of traffic light phases.
McKenney and White [28] applied an approach to control traffic signal lights based on the number of vehicles in a section of a road near the intersections. The approach considers various parameters related to data collection to decide the traffic light switching and green light timing change. Zhou et al. [29] used a wireless sensor network to detect the traffic at multiple intersections. This work used a technique that adjusted the traffic light phases and timing based on detected vehicles’ information. Piris et al. [30] also proposed a technique to optimally place the wireless sensors in a network of intersections. Additionally, this work presented a traffic light management system that focused on controlling multiple intersections and efficient communication of messages in a sensor network.
Navarro-Espinoza et al. [31] applied various machine learning models to predict the traffic flow for intelligent traffic lights. Muntean [32] proposed a multi-agent system to estimate the traffic volumes at junctions and car parking. Neither approach presented any control strategy for the traffic lights. Artega et al. [33] proposed a fuzzy logic method to control traffic lights based on the flow rate of vehicles. Nimac et al. [34] presented pedestrian detection and a traffic light control scheme using radars, but this technique is focused on the traffic light trigger mechanism and is not optimizing the pedestrian traffic lights.
Table 1 summarizes the details of the methodologies discussed in the literature review. From the table, it is clear that many researchers tend to give weightage to one factor: solving the congestion of vehicles and optimizing the traffic light systems using various techniques and tools. These methodologies generally focus more on the vehicle parameters that impact vehicle travel time. They try to reduce the delays at the intersection using sensors and algorithms. Moreover, many approaches involve modeling the traffic flow through an intersection and then finding the timing that minimizes some measure of congestion, such as travel time or delay. They apply machine learning and optimization techniques to reduce vehicle delay, but reducing pedestrian delay is not considered.
Thus, this paper’s objective is to propose an intelligent traffic light system and dynamic traffic interval technique that considers both vehicle and pedestrian traffic volumes to minimize waiting time at intersections. The next sections of this paper will describe the proposed system’s design, implementation, and evaluation.

3. Methodology

The traffic lights control the vehicle and pedestrian flow at intersections where traffic travels in different directions. The traffic flows moving in various directions are called movements and are categorized as left-turn, through, right-turn, and pedestrian movements, as shown in Figure 1. To differentiate the traffic flows, each movement is identified by a separate number (HCM) [4]. The traffic signal phases are then used to group certain movements, which allows the traffic to move in an orderly manner.
Figure 2 depicts a ring and barrier diagram for an 8-phase intersection. In this diagram, rings organize phases so that they are synchronized without interference and consist of a series of competing stages. At barriers, phases in both rings conclude concurrently. This enables dual or two-ring operations, allowing compatible phases to run concurrently with those of the opposite ring. The phases are an important part of the system as they control the timing and sequence of the green, yellow, and red lights for the incoming traffic movements at the intersection. Typically, they distinguish between major and minor street segments. Additionally, the movements are categorized as permitted and protected movements.

3.1. Dynamic Traffic Intervals

As the number of vehicles or pedestrians waiting at the intersection increases or decreases, the time required for them to pass through the intersection changes. Thus, the traffic light timings need to be appropriately planned so they do not cause delays at the intersection. To effectively manage the traffic flow at the intersection, this work proposes a dynamic traffic interval technique where the vehicle and pedestrian volumes waiting at a red light at the intersection are divided into low, medium, high, and very high categories. This is done to efficiently use the traffic light timings for all the phases and movements. Dividing the traffic into intervals allows setting the time of the green light only for the vehicles and pedestrians that request to cross the intersection. This work selects the four categories of traffic based on the simulation parameters and results. Each category represents a group of vehicles waiting at an intersection at a red light. The number of vehicles can be different for each category for different intersections and depends on the demand for the service requested by the user. To establish the categories of traffic, it is important to perform a critical movement analysis and define the detection zone at an intersection, as explained further in this section.
Figure 3 shows dynamic traffic light timing distribution for an 8-phase intersection. Each phase has green light timing for four categories of traffic. The timing of the green light can be adjusted as per the traffic category detected. Based on the green light timing of an ongoing phase, the red-light timing for other phases and the total cycle length will change. The cycle length is the time it takes for a traffic signal to complete a full cycle of all its signal phases. The yellow clearance time alerts drivers that the right-of-way assignment at the intersection is going to change. The red clearance time allows vehicles that entered the intersection during the yellow change period to reach a safe position before the next phase begins (STM) [3]. HCM [4] has suggested the red and yellow clearance interval timing for different vehicles approaching speeds. The timing for both lights is referred to as the change period. This change period is fixed and is based on the average approaching vehicle speed at the intersection.
Critical movement analysis is performed to calculate the traffic light timings. Critical movement analysis is a methodology used to identify the movements of vehicles that have the highest potential for conflict at an intersection. Critical movement analysis aims to evaluate phasing requirements and signal timing parameters. This analysis uses conflicting phases, often a left-turn phase and an opposing through-movement phase, to identify the crucial phase pairings. To determine the critical phase pair, the total volume of cars for all sets of conflicting phases is compared. Figure 4 shows the vehicle volumes associated with each phase. The following equations determine the critical volume for an intersection.
C P P 1 = max v 1 + v 2 ,   v 5 + v 6
C P P 2 = max v 3 + v 4 ,   v 7 + v 8
C V = C P P 1 + C P P 2
where
  • C P P 1 : Critical phase pair for street 1.
  • C P P 2 : Critical phase pair for street 2.
  • v 1 8 : Critical lane volume for phases 1 to 8 (vehicles/h).
  • C V : Critical volume for an intersection.
Figure 4. Vehicle volume for different phases.
Figure 4. Vehicle volume for different phases.
Sensors 23 05028 g004
This critical volume is then divided into four volumes where the traffic is categorized as low, medium, high, and very high traffic. Thus, using the critical volumes for each category, the four different cycle lengths are calculated by the following equation based on Webster’s Least delay cycle [35]. The cycle length will be fixed for each of the four categories as it is based on the critical volume for an intersection. This equation considers the saturation flow rate of 1900 passenger cars per hour per lane as stated by HCM [4].
C = 1.5 L + 5 1.0 Y
where
  • C : Optimum, minimum delay cycle length (s).
  • L : Lost time per cycle (s).
  • Y : Sum of the critical lane volumes divided by saturation flow rate.
Then, the timing of the green light for each phase is estimated using Equations (5) and (6) [36] for four traffic conditions. This time is determined based on the expected cycle length and critical movement analysis.
A t = C C P i
G i = V A V T × A t
where
  • A t : Available time to apportion between all phases’ green interval (s).
  • C : Calculated cycle length (s).
  • C P i : Change period (yellow change interval plus red clearance interval) for each phase (s).
  • G i : Phase green interval for each phase (s).
  • V A : Critical lane volume for phase i (vehicles/h).
  • V T : Sum of critical lane volumes for all phases (vehicles/h).
The green light timing for each traffic category is based on the sensor detection zone. The detection zone is the area where the sensor collects the data. For this research, the cameras are considered as sensors installed at the intersection. Cameras provide data-rich information, and recent advancements in machine learning models prove that vision systems are effective in detecting traffic. This work assumes that cameras will have a clear view of the lanes and will detect the traffic at night when the lights are installed at the intersection.
The occupancy zone is divided into four segments, as shown in Figure 5 and Figure 6 for vehicles and pedestrians, respectively, according to the critical volumes for each category of traffic. Each segment represents the number of vehicles/pedestrians that will be waiting at the red light with respect to the critical volume. The traffic will occupy a certain area of the zone and the number of vehicles and pedestrians will be calculated based on these four segments. For the pedestrians, the cameras will take the image of curbside where pedestrians wait on a red signal. The traffic category and its respective occupancy percentages are given in Table 2. The 100% occupancy is the area under the detection where the camera sensor can clearly see vehicles and pedestrians.

3.2. Framework

Figure 7 depicts an overview of the framework. The proposed framework is organized into three systems: physical, cyber, and control. The physical system consists of a junction where two or more streets cross, vehicles and pedestrians who wish to cross the junction, sensors that collect data, traffic lights that allow or prevent vehicles and pedestrians from crossing, and a programmable logic controller that controls the traffic lights. The cyber system employs machine learning (ML) algorithms to predict traffic conditions and light timings, reducing delays for pedestrians and automobiles. The control system, which includes a ladder logic program, influences the physical system by altering the on and off times of the traffic lights.
The operation of the smart traffic light control system is given in Figure 8. The proposed system’s role is to detect traffic conditions and regulate intersection traffic lights. The sensors are cameras that supply the information required by the cyber system. The CNN model determines the traffic category, while the ANN/SVM predicts green light timings based on traffic photos, vehicle count, and pedestrian count. After that, the anticipated values are saved in the DDE client file, which communicates with the DDE server and ladder logic. To eliminate delays, the smart traffic light control system can adjust the timing of the green and red lights based on predictions. MATLAB was used to create machine learning models. Visual Basic for Applications (VBA) was used to convey data to ladder logic, and the control system runs on the RSLinx Classic and RSLogix platforms.

3.2.1. Physical System

This work focuses on an intersection to reduce vehicle and pedestrian travel delays. The traffic intersection is a central part of the physical system and framework. Traffic intersections can be regulated by traffic lights, stop signs, yield signs, or other traffic control devices to ensure safe and efficient traffic flow. They are critical components of transportation systems in urban areas and are designed to manage traffic movements and minimize the risk of collisions and accidents.
The collector roads are common in cities, and they connect local streets to arterial roads and are designed to provide access to local destinations, such as homes and businesses. This research considers a four-way junction on collector roads, where many users can approach the intersection at once. The junction has two streets crossing each other. Each street can have one or more incoming and outgoing vehicle lanes and two lanes for pedestrians on either side. The pedestrians can cross the junction using marked crosswalks at the intersection.
The traffic lights are usually installed at the intersection on poles or mast arms over the roadway. The lights face each lane, indicating when vehicles and pedestrians are allowed to move and when they must stop. The location and placement of traffic lights at intersections are carefully planned to convey the information and right-of-way to the users clearly. The MUTCD [1] recommends the traffic light types and installation procedures based on the intersection characteristics. This work considers the green, yellow, and red lights for each lane. Additionally, a flashing yellow light is considered for the permitted movements of the vehicle.
A traffic detection camera is the most common type of sensor utilized at intersections to detect traffic. The cameras are usually installed on the traffic poles with a certain height to get a specific view of the lanes. The camera specification is chosen based on the demand for traffic signal service and local jurisdiction guidelines TCM [4]. In this work, the cameras are programmed to capture images of the lanes when the traffic light changes from red to green. Then, the captured photos of the intersection are sent to computer vision algorithms to estimate traffic patterns and volume.
Traffic light controllers are electronic devices that control the operation of traffic lights at intersections. These are the cabinets that can be installed in a central control room, allowing operators to monitor and adjust signal timing across multiple intersections in real time. Alternatively, controllers can be distributed across individual intersections and communicate with each other to coordinate signal timing and optimize traffic flow across a wider area. The controllers are programmed to control the on/off times of all the traffic lights at the intersection. Sensors installed at the intersection continuously communicate real-time information to the controllers. The controller then sends the data to the cyber system for further processing.

3.2.2. Cyber System

The cyber system consists of machine learning models to process the sensor data. In this work, the four traffic categories are predicted using different kinds of pre-trained CNN models. In CNN models, the images are represented as numeric matrices where a single image is divided into pixels, and each pixel is assigned a numeric value. These matrices are processed by CNN models using filters or kernels, which have been trained to identify features. This process is known as convolution. The convolutional layer applies numerous convolution filters to the image. Then, the pooling, or subsampling layer acts to decrease the spatial dimensions of the data, which helps to reduce computational needs and control overfitting. Finally, the fully connected layer, functioning like a traditional multi-layer perceptron, usually employs a SoftMax activation function to classify the input image into different categories based on the training dataset.
The CNN models are provided with simulation images to detect the traffic condition, as shown in Figure 9. Here, the images of the vehicles and pedestrians are given to the algorithms separately. The output of the models is the probability for the low, medium, high, and very high categories.
This work uses a feed-forward artificial neural network (ANN) and support vector machine (SVM) model to predict the green light time for a through movement of vehicles at an intersection by using the sensor data as input. It is assumed that the sensor provides the number of vehicles and pedestrians as an input to the algorithms. The output from the models is the green light timings for the ongoing phase. For the ANN model, one hidden layer with five neurons was selected, as shown in Figure 10. The following equations describe the ANN model parameters.
u k = j = 1 2 w k j x j
y k = φ u k + b k
where
  • u k : linear combiner output;
  • w k j : weights of neuron k;
  • x j : inputs to the neural network;
  • y k : output of kth neuron;
  • φ : activation function;
  • b k : bias.
Figure 10. Feed-forward ANN architecture.
Figure 10. Feed-forward ANN architecture.
Sensors 23 05028 g010
The SVM model maps the input data into high dimensional space via mapping the function f x . The following is the equation for the SVM model.
f x = w , x + b
where
  • f x : mapping function;
  • x : input vector;
  • w : weight vector perpendicular to the higher plane;
  • b : bias term.
The predicted data are then stored in a DDE client. Dynamic data exchange (DDE) is a protocol that allows communication between applications. Here, the DDE client is the Excel file where the data are stored. In this work, to initiate the conversation with the DDE server and the ladder logic, a VBA code was used. The client then connects with the control system and sends the input data to the DDE server to adjust the traffic light timings.

3.2.3. Control System

The control system consists of a DDE server that receives the data from the cyber system. The process begins with the Excel sheet requesting data to be entered in the ladder logic. The server receives the request and retrieves the specific instruction from its memory where the data need to be updated. The controller then uses the data in the ladder logic to change the traffic light timing. Whenever the data in the Excel file change, an update is sent to the ladder logic, ensuring that the controller sending the signal to the traffic light is always up to date.
A ladder logic program is utilized to implement the dynamic traffic interval strategy. It is a programming language used in programmable logic controllers (PLCs) to create control systems for industrial processes and machines. The language is based on ladder diagrams, which represent the physical components of the control system, such as traffic lights, and the logic that connects them.
The ladder logic represents the control system as a series of rungs on a ladder. Each rung consists of one or more input conditions that must be met for the output to be activated. The input conditions are connected by logical operators such as AND, OR, and NOT, which allow complex logical operations to be performed. The output of one rung can be connected to the input of another rung, allowing for more complex control systems to be created.
In this work, the ladder logic is separated into main routines and sub-routines. The main routine is the primary program that controls the overall operation of the system. It consists of a series of rungs that are executed sequentially, with each rung controlling a specific sub-routine, as shown in Figure 11. The sub-routines represent the timing operation of the low, medium, high, and very high categories, as shown in Figure 12. Sub-routines can be called from within the main routine, allowing them to be used as building blocks to create more complex control systems.

4. Simulation and Modelling

A simulation model was built in the Simulation of Urban Mobility (SUMO) to mimic the real-world intersection and the dynamic traffic interval strategy. It is a widely used open-source microscopic traffic simulation software used for various research purposes [37]. SUMO is primarily used for modeling and analyzing different traffic light control strategies. Researchers use SUMO to simulate different strategies, such as fixed-time or actuated control, and then compare their performance in various metrics, such as average wait time or fuel consumption. This can help understand the relative performance of different strategies and inform the design and operation of traffic light systems.
This research uses a common four-way intersection in the SUMO model to demonstrate the dynamic traffic light logic shown in Figure 13. This intersection has eight phases, where the left turn movements and the through movements on the same road are divided into separate phases. The traffic light phases follow the National Electrical Manufacturers Association (NEMA) convention. Each incoming road is divided into four lanes, and the outgoing road is divided into three lanes. There is a sidewalk for every road that only pedestrians can use. The pedestrians use the crosswalks at the intersection during the through-movement phases.

4.1. Parameters

The simulation model defined the traffic flow for each lane to represent real-world traffic scenarios. The highest critical volume used in the simulations was 1000 passenger cars per hour per lane. Additionally, the flows were defined to allow vehicles or pedestrians coming from one direction to travel in all directions. The dimensions of the intersections were default values generated by SUMO. The length of the edges was 150 m. The passenger vehicles were considered to have a length of 5 m, and the minimum gap between vehicles was presumed as 2 m when the vehicles were fully stopped at the intersection. The speed limit was 25 mph for vehicles with a 10% deviation in speed. The pedestrians were considered adults with an average speed of 1.06 m/s with a speed deviation of 10%. Additionally, they would occupy a 0.3 m2 area while waiting at the curbside [38]. The detection zone length for the through-movement lanes was 61 m. The pedestrian detection zone was defined before the area where the pedestrian stops, as SUMO has no default option to place the lane area detectors where the pedestrians stop. For turning-movement lanes (left and right), the volume of vehicles was considered as 75% of the through movement lanes. Using the parameters for vehicles and pedestrians, the number of vehicles and pedestrians waiting at the intersection was calculated for low, medium, high, and very high categories, as shown in Table 3. The parameters were kept the same for all traffic flows coming from all directions.

4.2. Traffic Distributions

To generate a certain category of traffic flow in the simulation, this work uses the Poisson and binomial distribution for a vehicle flow approaching an intersection. Past line of work [39,40,41,42] shows that the Poisson probability distribution can be used to approximate the behavior of low traffic flow, and the binomial probability distribution can be used to estimate the high traffic flow. Table 4 contains Poisson probabilities for the low and medium traffic flow, whereas the binomial probabilities were used to model the high and very high traffic flow. Similarly, the Poisson probabilities were used to model the pedestrians approaching an intersection. These probabilities would generate four different traffic conditions for vehicles and pedestrians.

4.3. Dynamic Traffic Light Algorithm

This work uses the Simulation of Urban Mobility (SUMO) Traffic Control Interface (TraCI) module that controls the SUMO model using dynamic traffic logic. It allows the retrieval of item values and the live modification of their behavior by granting access to a running road traffic simulation [37]. Algorithm 1 shows the pseudo-code for adjusting the green traffic light timing based on the detected number of pedestrians and traffic detected for the through traffic phase.
Algorithm 1 Dynamic Traffic Light adjustment
1Input:n ← number of through phases
2 i ← current through phase
3 vi ← detected vehicles
4 pi ← detected pedestrians
5 ti ← traffic light timing
6Output:W1 ← average vehicle delay
7 W2 ← average pedestrian delay
8Procedure:AdjustTrafficLightTiming
9 pi = GetHaltedPedestrians (Tr → Condition)
10 vi = GetHaltedVehicles (Tr → Condition)
11 for i= (1 to n) do
12 if Tr = low then
13    ti = low
14   elseif Tr = medium then
15    ti = medium
16   elseif Tr = high then
17    ti = high
18   else Tr = very high then
19 ti = very high
20 end if
21 end for
22 Output: W1, W2
Figure 14 shows the architecture of the dynamic traffic light interval control strategy. At the beginning of each phase, the sensors input the dynamic traffic logic, and the green light timing will be altered according to the dynamic logic. This research utilizes a combination of pedestrian and vehicle green time in the simulation to reduce the waiting time for automobiles and pedestrians. The TraCI module interacts with the simulation online, whereas the communication between the TraCI and the cyber system happens in fixed iterations.

4.4. Design of Experiments

To check the performance of the dynamic control logic, it was compared with the pre-timed and semi-dynamic traffic systems. The simulation parameters were the same for all the traffic light control strategies except the traffic light timings. In the pre-timed traffic light system, the green light timings were fixed irrespective of the traffic condition. The green light timings for each phase were set to allow the highest volume to pass through the intersection without green light extension. So, the pre-timed traffic light system used the timing of the very heavy traffic condition category. For the semi-dynamic traffic light system, the traffic light timings were divided into two categories: rush hours and non-rush hours. So, here, the timings of medium and very heavy traffic conditions categories were used for the green light during non-rush hours and rush hours, respectively. The traffic demand was built in a way to mimic real-world traffic conditions for 24 h. Table 5 gives a detailed breakdown of the vehicle and pedestrian volumes at different times of the day.
The distribution of the traffic flow was based on the peak hours for urban areas from 6 am to 10 am and 4 pm to 8 pm as stated by FHWA [43], where the vehicle and pedestrian categories used around this time are medium, high, and very high. Additionally, to establish demand at an intersection, the travel time for Houston was considered over a period of day for the year 2022 [44]. The demand was built to test the control strategy for different combinations of vehicle and pedestrian volume. This demonstrates the variability in the volume of vehicles and pedestrians over the course of a day. In the simulations, the overall waiting time was checked and compared for pre-timed, semi-dynamic, and dynamic traffic systems.

5. Data Analysis and Findings

Simulations were conducted using the parameters given in Table 6 to check the effect of pedestrian volume on vehicle waiting time and vehicle volume on pedestrian waiting time. In total, 160 simulations were conducted, where ten samples were taken for each combination of pedestrian and vehicle volume. The pedestrian volume was changed, and the average waiting of the vehicles and pedestrians was noted over the one-hour simulation period with an average of 30 traffic cycle lengths, keeping the vehicle’s volume constant. All the parameters were kept same in one combination set of vehicle and pedestrian volume, while changing the seed value for each simulation. This would generate slightly different spawning patterns of vehicles and pedestrians in the simulation.
A one-way ANOVA (analysis of variance) test was performed to compare the difference of mean among the various combinations of traffic category groups as listed. It is a statistical method used to analyze the differences between the means of three or more independent groups based on a single categorical independent variable. A one-way ANOVA aims to determine whether there is a significant difference among the means of the groups, suggesting that the factor has a significant effect on the continuous dependent variable. Table 7 lists the vehicle waiting time for pedestrian volume change, and Table 8 lists the pedestrian waiting time for vehicle volume change.
The results show that the p-value for each group combination is less than the 0.05 significance level. Thus, the null hypothesis is rejected, and there is a difference in the mean of the groups. Similarly, for the pedestrian waiting time, the p-value for each group combination is less than the significance level, indicating that the change in user volumes affects the other users at the intersections. Additionally, an examination of the average waiting times reveals that the traffic waiting time increases as the volumes change from low to high. The results are given in Table 9 and Table 10.
The machine learning performance was also tested. The ANN and SVM models were given 1200 data samples to predict the green light timing for detected traffic conditions. Out of all the samples in the dataset, 70% of the data were used for training, and 30% were used in testing the neural networks. Table 11 shows the mean square error (MSE), R2 value, average training, and testing accuracy of both models. The results indicate that both models performed well, with the SVM model performing slightly better than the ANN model.
SVM’s performance was better in this case because the relationship between the input and output data was fairly linear so that the model could find an optimal decision boundary, called the maximum–margin hyperplane, which tends to generalize well to unseen data. Additionally, the models did not need to predict any complex patterns in the traffic light timing. Moreover, SVM models tend to be more interpretable than ANNs, as they involve finding a hyperplane that separates the data. This can be important when the goal is not only to make predictions but also to understand the underlying patterns in the data.
On the other hand, the ANN model accuracy was very close to the SVM model accuracy. However, ANN models are more vulnerable to overfitting, which may reduce the accuracy of the ANN model in predicting the output.
Ten different pre-trained CNNs were used to predict the traffic condition from images. The pre-trained models are typically trained on a large dataset and have learned valuable features that can be reused in a new task. The training and testing accuracies of all the networks are listed in Table 12. The results show that almost all the models performed well in detecting the vehicles. Darknet53 achieved the highest accuracy of 97.5% validation accuracy compared to others. Darknet53 is a CNN model that has a total of 53 layers. This model performs well in detecting the objects from the given image dataset. Similarly, Darknet19, Alextnet, and Inceptionv3 are known for their high accuracy in object recognition.
The performance of the different CNN models depends on their architecture. Different architectures have unique strengths and weaknesses. Resnet18 is designed to handle deeper networks by introducing skip connections, while Mobilenetv2 uses depth-wise separable convolutions for efficient computation. More complex models such as Resnet101 can capture more intricate patterns but may require more computation and be prone to overfitting. Simpler models such as SqueezeNet and Mobilenetv2 are designed for efficiency, trading off some accuracy for reduced computational requirements. Thus, their validation accuracies are 47.5% and 80%, respectively, which are the least compared to other models.
However, the validation accuracy of all models plunged for pedestrian detection cases. This happened because of the incorrect data from the simulation. Some images of the pedestrian lanes taken during the simulation represented more pedestrians than the detected category. Pedestrians can move in two directions on a single lane, whereas the vehicle forms a proper queue and moves in a single direction only on a single lane. So, while capturing the images of the pedestrians looking towards the signal, the camera also captured the pedestrians moving in the opposite direction of the traffic signal.
The method proposed in this work was compared with the time-gap-based and delay-based traffic light actuation methods [45,46]. These two methods are established methods and have been proven to reduce traffic delays at intersections in real settings and in simulations. Table 13 compares the average waiting time of vehicles for 12 h simulations for low, medium, high, and very high volumes of vehicles. In these simulations, pedestrian flows were not considered. From the table, some instructive points can be noted. The time-gap-based and delay-based traffic light control strategy performed better for the low and medium volume of vehicles, whereas the waiting time was similar for a high traffic volume. The dynamic traffic interval technique presented in this work outperformed the others under the condition of very high traffic volume. This is because, in the dynamic traffic intervals technique, the times are fixed for a detected volume of traffic for a given phase in a cycle. Thus, even if there are more cars coming at an intersection after a certain gap or time delay, the signal will remain green for the fixed period.
The dynamic traffic light interval technique was also tested alongside fixed time and semi-dynamic traffic light plans to evaluate the performance in terms of the delay. In these simulations, the pedestrian and vehicle flows were considered. Twenty-five simulations were conducted to test out the proposed technique thoroughly. The experimental design was structured to adjust the categories according to the time of day. The fixed-time traffic light plan used very-high-category-traffic timing, and it remained fixed irrespective of the change in input probabilities. Similarly, the semi-dynamic traffic plan used the timings of medium- and very-high-category traffic. The time in semi-dynamic traffic lights would change based on the rush and non-rush hours of the day.
Based on the simulation results, there was a 20.11% to 26.67% reduction in the overall vehicle waiting time for an intersection compared to the fixed-time traffic light system and an 11.99% to 18.09% reduction compared to the semi-dynamic traffic light system. Additionally, a 20.38% to 23.16% drop was observed in the overall pedestrian waiting time at an intersection compared to the fixed-time traffic light system and an 8.55% to 10.95% reduction compared to the semi-dynamic traffic light system. Table 14 shows the performance comparison for the three different traffic light control strategies.

6. Conclusions and Future Work

This work proposed a system that simultaneously reduced the waiting time of vehicles and pedestrians by categorizing the vehicle and pedestrian volume into categories. The model achieved this result by adjusting the green light timings of the ongoing phase. Reducing the waiting time of vehicles at the intersection means indirectly lowering vehicle emissions, reducing fuel consumption, and effectively utilizing the traffic signal cycle length. Moreover, lowering the delays for pedestrians decreases the chances of the dangerous behavior of people trying to cross the roads.
This work also demonstrated a framework to implement the dynamic traffic interval strategy. The cyber system, using CNN, proved its usefulness in detecting traffic conditions at the intersection. ANN/SVM helped to set the timing for the combination of the pedestrian and vehicle traffic condition. Moreover, ladder logic programming controlled the traffic light timings based on the traffic condition detected. In this model, all vehicles were assumed as passenger cars having an equal length, and each car approaching the intersection maintained the same distance from the other. Additionally, the simulation considered the same critical volume for all through movements of vehicles. As this technique is dependent on the service requested by the users, it will not be applicable at all intersections. This is particularly true in areas where the demand is very low, where few pedestrians are requesting a service, or when traffic variation is minimal over the course of the day.
In the future, more parameters can be provided as inputs to machine learning models to predict traffic conditions accurately. Moreover, green light timing was calculated based on the number of vehicles and pedestrians. In the future, more parameters will be considered, such as pedestrians and vehicle speed, and other vehicles, such as trucks, buses, and motorbikes, to adjust the green light time. One crucial assumption in this research was that the cameras provide all the data to the cyber system. However, this may not be possible in all scenarios; thus, data from different sensors such as ultrasonic and infrared will be considered in the future. Additionally, this work focused on the working of signal intersections. So, future work will include a control strategy considering multiple coordinating intersections.

Author Contributions

Methodology, S.D.; Formal analysis, S.D.; Writing—original draft, S.D.; Supervision, S.-J.H. All authors have read and agreed to the published version of the manuscript.

Funding

The work is partially supported by Texas A&M-FAPESP award No. 2019-3-01. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the authors and do not necessarily reflect the views of Texas A&M University.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data presented in this study are openly available in FigShare at https://doi.org/10.6084/m9.figshare.22689676, reference number 22689676 (accessed on 12 May 2023).

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Manual on Uniform Traffic Control Devices for Streets and Highways; FHWA: Washington, DC, USA, 2009. Available online: https://mutcd.fhwa.dot.gov/pdfs/2009/mutcd2009edition.pdf (accessed on 10 May 2023).
  2. Lv, W.; Zhou, X.; Fang, Z.; Huo, F.; Li, X. Simulation study of vehicle travel time on route with signals considering comprehensive influencing factors. Phys. A Stat. Mech. its Appl. 2019, 530, 121389. [Google Scholar] [CrossRef]
  3. Urbanik, T.; Tanaka, A.; Lozner, B.; Lindstrom, E.; Lee, K.; Quayle, S.; Beaird, S.; Tsoi, S.; Ryus, P.; Gettman, R.; et al. Signal Timing Manual; Transportation Research Board: Washington, DC, USA, 2015; Volume 1.
  4. Highway Capacity Manual: A Guide for Multimodal Mobility Analysis, 6th ed.; Transportation Research Board: Washington, DC, USA, 2016.
  5. Ghazal, B.; ElKhatib, G.; Chahine, K.; Kherfan, M. Smart traffic light control system. In Proceedings of the 2016 Third International Conference on Electrical, Electronics, Computer Engineering and Their Applications (EECEA), Beirut, Lebanon, 21–23 April 2016; pp. 140–145. [Google Scholar]
  6. Díaz, N.; Guerra, J.; Nicola, J. Smart traffic light control system. In Proceedings of the 2018 IEEE Third Ecuador Technical Chapters Meeting (ETCM), Cuenca, Ecuador, 15–19 October 2018; pp. 1–4. [Google Scholar]
  7. Silva, C.M.; Aquino, A.L.L.; Meira, W. Smart traffic light for low traffic conditions: A solution for improving the drivers safety. Mob. Netw. Appl. 2015, 20, 285–293. [Google Scholar] [CrossRef]
  8. Alharbi, A.; Halikias, G.; Sen, A.A.A.; Yamin, M. A framework for dynamic smart traffic light management system. Int. J. Inf. Technol. 2021, 13, 1769–1776. [Google Scholar] [CrossRef]
  9. Sen, S.; Head, K.L. Controlled optimization of phases at an intersection. Transp. Sci. 1997, 31, 5–17. [Google Scholar] [CrossRef]
  10. Li, M.; Alhajyaseen, W.; Nakamura, H. A traffic signal optimization strategy considering both vehicular and pedestrian flows. In Proceedings of the Compendium of Papers CD-ROM, the 89th Annual Meeting of the Transportation Research Board, Washington, DC, USA, 8–10 January 2010; pp. 10–14. [Google Scholar]
  11. Younis, O.; Moayeri, N. Employing cyber-physical systems: Dynamic traffic light control at road intersections. IEEE Internet Things J. 2017, 4, 2286–2296. [Google Scholar] [CrossRef]
  12. Tchuitcheu, W.C.; Bobda, C.; Pantho, M.J.H. Internet of smart-cameras for traffic lights optimization in smart cities. Internet Things 2020, 11, 100207. [Google Scholar] [CrossRef]
  13. Gandhi, M.M.; Solanki, D.S.; Daptardar, R.S.; Baloorkar, N.S. Smart control of traffic light using artificial intelligence. In Proceedings of the 2020 5th IEEE International Conference on Recent Advances and Innovations in Engineering (ICRAIE), Jaipur, India, 1–3 December 2020; pp. 1–6. [Google Scholar]
  14. Pratama, B.; Christanto, J.; Hadyantama, M.T.; Muis, A. Adaptive traffic lights through traffic density calculation on road pattern. In Proceedings of the 2018 International Conference on Applied Science and Technology (iCAST), Manado, Indonesia, 26–27 October 2018; pp. 82–86. [Google Scholar]
  15. Chavan, S.S.; Deshpande, R.S.; Rana, J.G. Design of intelligent traffic light controller using embedded system. In Proceedings of the 2009 Second International Conference on Emerging Trends in Engineering & Technology, Nagpur, India, 16–18 December 2009; pp. 1086–1091. [Google Scholar]
  16. Hirankitti, V.; Krohkaew, J. An agent approach for intelligent traffic-light control. In Proceedings of the First Asia International Conference on Modelling & Simulation (AMS’07), Phuket, Thailand, 27–30 March 2007; pp. 496–501. [Google Scholar]
  17. Almawgani, A.H.M. Design of real time smart traffic light control system. Int. J. Ind. Electron. Electr. Eng. 2018, 6, 43–47. [Google Scholar]
  18. Li, Y.; Chen, Y.; Yuan, S.; Liu, J.; Zhao, X.; Yang, Y.; Liu, Y. Vehicle detection from road image sequences for intelligent traffic scheduling. Comput. Electr. Eng. 2021, 95, 107406. [Google Scholar] [CrossRef]
  19. Wiering, M.A.; van Veenen, J.; Vreeken, J.; Koopman, A. Intelligent Traffic Light Control; Utrech University: Utrech, The Netherlands, 2004. [Google Scholar]
  20. Wei, H.; Zheng, G.; Yao, H.; Li, Z. Intellilight: A reinforcement learning approach for intelligent traffic light control. In Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, London, UK, 19–23 August 2018; pp. 2496–2505. [Google Scholar]
  21. Liu, Y.; Liu, L.; Chen, W.-P. Intelligent traffic light control using distributed multi-agent Q learning. In Proceedings of the 2017 IEEE 20th International Conference on Intelligent Transportation Systems (ITSC), Yokohama, Japan, 16–19 October 2017; pp. 1–8. [Google Scholar]
  22. Liang, X.; Du, X.; Wang, G.; Han, Z. A deep reinforcement learning network for traffic light cycle control. IEEE Trans. Veh. Technol. 2019, 68, 1243–1253. [Google Scholar] [CrossRef]
  23. Göttlich, S.; Potschka, A.; Ziegler, U. Partial outer convexification for traffic light optimization in road networks. SIAM J. Sci. Comput. 2017, 39, B53–B75. [Google Scholar] [CrossRef]
  24. Park, B.; Messer, C.J.; Urbanik, T. Traffic signal optimization program for oversaturated conditions: Genetic algorithm approach. Transp. Res. Rec. 1999, 1683, 133–142. [Google Scholar] [CrossRef]
  25. Genders, W.; Razavi, S. Using a deep reinforcement learning agent for traffic signal control. arXiv 2016, arXiv:1611.01142. [Google Scholar]
  26. De Oliveira, M.B.W.; De Almeida Neto, A. Optimization of traffic lights timing based on multiple neural networks. In Proceedings of the 2013 IEEE 25th International Conference on Tools with Artificial Intelligence, Herndon, VA, USA, 4–6 November 2013; pp. 825–832. [Google Scholar]
  27. Abbas, M.K.; Karsiti, M.N.; Napiah, M.; Samir, B.B.; Al-Jemeli, M. High accuracy traffic light controller for increasing the given green time utilization. Comput. Electr. Eng. 2015, 41, 40–51. [Google Scholar] [CrossRef]
  28. McKenney, D.; White, T. Distributed and adaptive traffic signal control within a realistic traffic simulation. Eng. Appl. Artif. Intell. 2013, 26, 574–583. [Google Scholar] [CrossRef]
  29. Zhou, B.; Cao, J.; Wu, H. Adaptive traffic light control of multiple intersections in wsn-based ITS. In Proceedings of the 2011 IEEE 73rd Vehicular Technology Conference (VTC Spring), Budapest, Hungary, 15–18 May 2011; pp. 1–5. [Google Scholar]
  30. Cruz-Piris, L.; Rivera, D.; Fernandez, S.; Marsa-Maestre, I. Optimized sensor network and multi-agent decision support for smart traffic light management. Sensors 2018, 18, 435. [Google Scholar] [CrossRef]
  31. Navarro-Espinoza, A.; López-Bonilla, O.R.; García-Guerrero, E.E.; Tlelo-Cuautle, E.; López-Mancilla, D.; Hernández-Mejía, C.; Inzunza-González, E. Traffic Flow Prediction for Smart Traffic Lights Using Machine Learning Algorithms. Technologies 2022, 10, 5. [Google Scholar] [CrossRef]
  32. Muntean, M.V. Multi-Agent System for Intelligent Urban Traffic Management Using Wireless Sensor Networks Data. Sensors 2022, 22, 208. [Google Scholar] [CrossRef]
  33. Madrigal Arteaga, V.M.; Pérez Cruz, J.R.; Hurtado-Beltrán, A.; Trumpold, J. Efficient Intersection Management Based on an Adaptive Fuzzy-Logic Traffic Signal. Appl. Sci. 2022, 12, 6024. [Google Scholar] [CrossRef]
  34. Nimac, P.; Krpič, A.; Batagelj, B.; Gams, A. Pedestrian Traffic Light Control with Crosswalk FMCW Radar and Group Tracking Algorithm. Sensors 2022, 22, 1754. [Google Scholar] [CrossRef]
  35. Webster, F.V. Traffic Signal Settings. Road Research Technical; Paper no. 39; Transport Research Laboratory: Berkshire, UK, 1958. [Google Scholar]
  36. Traffic Design Manual Traffic Signal Design—Operations and Coordination; TDOT: Nashville, TN, USA, 2020.
  37. Lopez, P.A.; Behrisch, M.; Bieker-Walz, L.; Erdmann, J.; Flötteröd, Y.P.; Hilbrich, R.; Lücken, L.; Rummel, J.; Wagner, P.; Wießner, E. Microscopic Traffic Simulation using SUMO. In Proceedings of the 2019 IEEE Intelligent Transportation Systems Conference (ITSC), Maui, HI, USA, 4–7 November 2018; IEEE: Piscataway, NJ, USA, 2018; pp. 2575–2582. [Google Scholar]
  38. Rouphail, N.; Hummer, J.; Allen, P.; Milazzo, I.I. Capacity Analysis of Pedestrian and Bicycle Facilities; No. FHWA-HRT-98-106; US Department of Transportation. Federal Highway Administration, Research, Development, and Technology, Turner-Fairbank Highway Research Center: McLean, VA, USA, 1998.
  39. Darroch, J.N. On the traffic-light queue. Ann. Math. Stat. 1964, 35, 380–388. [Google Scholar] [CrossRef]
  40. Little, J.D.C. Approximate expected delays for several maneuvers by a driver in Poisson traffic. Oper. Res. 1961, 9, 39–52. [Google Scholar] [CrossRef]
  41. Newell, G.F. Approximation methods for queues with application to the fixed-cycle traffic light. SIAM Rev. 1965, 7, 223–240. [Google Scholar] [CrossRef]
  42. Otis, S.C.; Machemehl, R.B. Analysis of Pedestrian Signalization in Suburban Areas; No. SWUTC/99/472840-00065-l; University of Texas at Austin, Center for Transportation Research: Austin, TX, USA, 1999. [Google Scholar]
  43. Transportation Performance Management—Peak Hour Excessive Delay Measure; FHWA: Washington, DC, USA, 2017.
  44. Houston Traffic Report. 2022. Available online: https://www.tomtom.com/traffic-index/houston-traffic/ (accessed on 10 May 2023).
  45. Oertel, R.; Wagner, P. Delay-time actuated traffic signal control for an isolated intersection. In Proceedings of the 90th Annual Meeting Transportation Research Board (TRB), Washington, DC, USA, 23–27 January 2011. [Google Scholar]
  46. Erdmann, J.; Oertel, R.; Wagner, P. VITAL: A simulation-based assessment of new traffic light controls. In Proceedings of the 2015 IEEE 18th International Conference on Intelligent Transportation Systems, Gran Canaria, Spain, 15–18 September 2015; pp. 25–29. [Google Scholar]
Figure 1. Traffic movement at an intersection.
Figure 1. Traffic movement at an intersection.
Sensors 23 05028 g001
Figure 2. Ring and barrier diagram.
Figure 2. Ring and barrier diagram.
Sensors 23 05028 g002
Figure 3. Traffic light timing distribution.
Figure 3. Traffic light timing distribution.
Sensors 23 05028 g003
Figure 5. Vehicle occupancy zone.
Figure 5. Vehicle occupancy zone.
Sensors 23 05028 g005
Figure 6. Pedestrian occupancy zone.
Figure 6. Pedestrian occupancy zone.
Sensors 23 05028 g006
Figure 7. Overview of Cyber-Physical System.
Figure 7. Overview of Cyber-Physical System.
Sensors 23 05028 g007
Figure 8. Operation of smart traffic light control system.
Figure 8. Operation of smart traffic light control system.
Sensors 23 05028 g008
Figure 9. CNN architecture.
Figure 9. CNN architecture.
Sensors 23 05028 g009
Figure 11. Ladder logic program—Main routine.
Figure 11. Ladder logic program—Main routine.
Sensors 23 05028 g011
Figure 12. Ladder logic program—Sub routine.
Figure 12. Ladder logic program—Sub routine.
Sensors 23 05028 g012
Figure 13. A 4-way, 8-phase intersection.
Figure 13. A 4-way, 8-phase intersection.
Sensors 23 05028 g013
Figure 14. Dynamic traffic light algorithm.
Figure 14. Dynamic traffic light algorithm.
Sensors 23 05028 g014
Table 1. Comparison of various intelligent traffic light systems.
Table 1. Comparison of various intelligent traffic light systems.
Previous WorkSensor(s) Type MentionedController Type MentionedSimulation Platform MentionedMachine Learning UsedResults PresentedCategorization of Traffic
Ghazal et al. [5]IR sensorsPIC 16F877A microcontrollerNoYesNoYes: high density and low density
Diaz et al. [6]PIR sensorsRaspberry PiNoNoNoNo
Silva et al. [7]Cameras, radarsNoNoNoYesNo
Alharbi et al. [8]WSN, RFID tagsNoMATLABNoYesNo
Younis and Moayeri [11]Piezoelectric (proposed)Raspberry Pi 3 (proposed)C++NoYesYes: light traffic and heavy traffic
Tchuitcheu et al. [12]WSNNoSUMONoYesNo
Gandhi et al. [13]CamerasNoPython, PygamesYesYesNo
Pratama et al. [14]IR sensorsPIC 16F876A microcontrollerN/ANoYesNo
Chavan et al. [15]IR sensorsAT 89C51 microcontrollerMicrocontroller assembly languageNoYesNo
Hirankitti et al. [16]NoNoNetLogo simulatorNoYesNo
Almawgani [17]CameraArduinoNoNoYesNo
Li et al. [18]UAV/
cameras
NoSUMOYesYesNo
Wiering et al. [19]NoNoGreen Light District simulatorYesYesNo
Wei et al. [20]CameraNoC++, MATLABYesYesNo
Liu et al. [21]CamerasNoSUMOYesYesNo
Linag et al. [22]Vehicular/
Sensor networks
NoSUMOYesYesNo
Genders and Razavi [25]NoNoSUMOYesYesNo
Oliveira et al. [26]NoNoSUMOYesYesYes: small, medium, and large vehicles
Abbas et al. [27]NoNoSIRDA intersection simulator, MATLABNoYesNo
McKenney and White [28]NoNoSUMONoYesNo
Zhou et al. [29]WSNNoNoNoYesNo
Piris et al. [30]WSNNoSUMONoYesNo
Navarro-Espinoza et al. [31]NoNoNoYesYesNo
Muntean [32]WSNNoNoYesYesNo
Artega et al. [33]On-road sensorsNoSUMONoYesYes: very low, low, medium, high, and very high
Nimac et al. [34]RadarNoNoNoNoNo
Table 2. Traffic categories and corresponding occupancy.
Table 2. Traffic categories and corresponding occupancy.
Traffic CategoryOccupancy
Low traffic0–25%
Medium traffic26–50%
High traffic51–75%
Very high traffic76–100%
Table 3. Parameters for traffic categories.
Table 3. Parameters for traffic categories.
ParametersTraffic Conditions
LowMediumHighVery High
Critical volume (vehicles/h/lane)4167189201071
Detection zoneVehicle (length) (m)16324861
Pedestrian (area) (m2)1.863.725.587.44
No. of vehiclesLeft vehicles0–12–34–56–7
Through vehicle0–23–45–67–8
No. of pedestrians0–23–45–67–8
Green Light timing (s)Pedestrian4567
Left movement9121519
Through movement16–1916–192026
Table 4. Probabilities for four traffic conditions.
Table 4. Probabilities for four traffic conditions.
Traffic ConditionsLane Probabilities (Vehicles/s)Pedestrian Probability
(Pedestrians/s)
Through VehicleLeft Vehicle
Low0.0330.0240.012
Medium0.0570.0420.024
High0.0650.0490.035
Very High0.0790.0590.047
Table 5. Vehicle and Pedestrian volume for 24 h simulation.
Table 5. Vehicle and Pedestrian volume for 24 h simulation.
Time of the DayTraffic Conditions
VehiclesPedestrians
12:00 a.m.–5:00 a.m.LowLow
5:00 a.m.–6:00 a.m.LowMedium
6:00 a.m.–7:30 a.m.MediumMedium
7:30 a.m.–9:00 a.m.Very highHigh
9:00 a.m.–10:30 a.m.Very highVery high
10:30 a.m.–12:00 p.m.HighMedium
12:00 p.m.–1:30 p.m.MediumHigh
1:30 p.m.–3:00 p.m.LowVery high
3:00 p.m.–4:30 p.m.LowHigh
4:30 p.m.–6:00 p.m.MediumVery high
6:00 p.m.–6:45 p.m.HighHigh
6:45 p.m.–7:30 p.m.HighVery high
7:30 p.m.–8:15 p.m.Very highMedium
8:15 p.m.–9:00 p.m.Very highLow
9:00 p.m.–10:30 p.m.HighLow
10:30 p.m.–12:00 a.m.MediumLow
Table 6. Parameter settings for hypothesis test simulations.
Table 6. Parameter settings for hypothesis test simulations.
Volume CategoryTraffic Light Timing
VehiclePedestrianThrough VehiclesPedestriansLeft Turn Vehicles
LowLow1249
Medium1259
High1269
Very high1279
MediumLow12412
Medium12512
High12612
Very high12712
HighLow16415
Medium16515
High16615
Very high16715
Very highLow22419
Medium22519
High22619
Very high22719
Table 7. Effect of pedestrian volume change on vehicle waiting time.
Table 7. Effect of pedestrian volume change on vehicle waiting time.
Vehicle VolumePedestrian VolumeVehicle Waiting Time (s)AverageStd. Dev.
LowLow12.311.41212.412.312.212.112.312.211.712.0840.31711
Medium13.112.412.812.612.71212.111.712.112.712.4220.45161
High13.113.813.612.91312.512.812.9131313.0650.37041
Very high13.313.71313.513.213.41313.813.61313.3340.30537
MediumLow16.416.315.915.716.715.915.215.915.715.115.8630.50953
Medium16.416.215.71716.115.616.1171716.616.3680.52434
High16.117.41716.517.51716.41616.317.716.7870.61056
Very high17.517.216.516.417.716.917.216.516.51817.0370.55331
HighLow19.418.51920.119.419.318.618.819.218.619.0770.48585
Medium19.921.220.619.22020.720.420.12020.120.2070.55542
High20.821.12220.119.919.719.920.920.621.520.630.75673
Very high20.919.619.921.321.921.722.321.820.121.121.0620.91183
Very highLow28.629.826.828.225.627.52632.528.127.928.0951.9663
Medium32.627.530.828.226.33227.130.132.429.829.6682.31398
High32.128.133.333.230.830.332.531.529.231.331.2271.68779
Very high32.131.630.731.130.232.93333.328.831.631.5161.40426
Table 8. Effect of vehicle volume change on pedestrian waiting time.
Table 8. Effect of vehicle volume change on pedestrian waiting time.
Pedestrian VolumeVehicle VolumePedestrian Waiting Time (s)AverageStd. Dev.
LowLow29.126.326.227.729.427.928.327.727.927.927.8250.97328
Medium3128.528.730.629.829.128.527.529.330.529.3431.04039
High3633.434.336.735.434.434.433.933.835.134.7370.97946
Very high42.244.341.841.940.1414139.742.341.341.5471.21186
MediumLow29.630.129.93030.630.43027.529.328.429.5660.92792
Medium31.130.730.732.231.731.232.23230.731.431.3810.58911
High35.935.13635.236.837.737.136.235.53636.1540.80135
Very high42.843.342.441.842.943.840.742.342.844.642.7421.0153
HighLow32.231.628.329.93031.530.930.43030.630.5391.0476
Medium32.733.532.532.732.232.332.832.332.132.732.5650.37824
High3737.837.438.436.838.23635.937.538.637.3490.90547
Very high4342.644.844.84444.742.34445.844.244.0191.0458
Very highLow31.730.631.331.431.43131.230.431.732.231.280.49786
Medium33.633.835.333.533.833.433.533.833.643.334.7482.88001
High39.237.438.54038.44138.639.239.539.539.1370.94161
Very high4745.444.843.645.546.346.245.445.346.645.6190.92143
Table 9. Results of ANOVA test for vehicle waiting time.
Table 9. Results of ANOVA test for vehicle waiting time.
One-Way ANOVA TestFp-ValueF CriticalHypothesis Result
Low vehicle vs. variable pedestrian volume24.653668257.58 × 10−92.866265551Reject null hypothesis
Medium vehicle vs. variable pedestrian volume8.7150967050.0001772.866265551Reject null hypothesis
High vehicle vs. variable pedestrian volume14.925968121.79 × 10−62.866265551Reject null hypothesis
Very high vehicle vs. variable pedestrian volume7.1018650680.0007212.866265551Reject null hypothesis
Table 10. Results of ANOVA test for pedestrian waiting time.
Table 10. Results of ANOVA test for pedestrian waiting time.
One-Way ANOVA TestFp-ValueF CriticalHypothesis Result
Low pedestrian vs. variable vehicle volume311.45568.51 × 10−62.866266Reject null hypothesis
Medium pedestrian vs. variable vehicle volume432.70932.77 × 10−282.866266Reject null hypothesis
High pedestrian vs. variable vehicle volume409.71627.21 × 10−282.866266Reject null hypothesis
Very high pedestrian vs. variable vehicle volume133.9251.39 × 10−192.866266Reject null hypothesis
Table 11. Performance of ANN and SVM models.
Table 11. Performance of ANN and SVM models.
Neural NetworksTraining AccuracyValidation AccuracyMSER2
ANN97.897%97.678%0.448340.93813
SVM98.557%98.191%0.477390.93412
Table 12. Performance of CNN models.
Table 12. Performance of CNN models.
Pre-Trained NetworksVehicle DetectionPedestrian Detection
Training AccuracyValidation AccuracyTraining AccuracyValidation Accuracy
squeezenet46.875%47.5%36.7188%42.5%
googlenet69.5313%82.5%54.6875%57.5%
resnet1892.1875%90%73.4375%55%
mobilenetv288.2813%80%78.1250%62.5%
resnet5092.1875%82.5%85.9375%57. 5%
resnet101100%85%100%60%
inceptionv398.4375%90%95.3125%53.5%
alexnet87.5%92.5%75%67.5%
darknet19100%90%100%60%
darknet53100%97.5%100%55%
Table 13. Waiting time of vehicles for three different traffic light control strategies.
Table 13. Waiting time of vehicles for three different traffic light control strategies.
Traffic VolumeDynamic Traffic Intervals (s)Gap-Based (s)Delay-Based (s)
Low12.139.729.09
Medium13.8113.2212.27
High15.0615.7715.06
Very high20.1928.4635.48
Table 14. Performance comparison of different traffic light control strategies.
Table 14. Performance comparison of different traffic light control strategies.
TechniqueVehicle Waiting Time (s)Pedestrian Waiting Time (s)
AverageStd. Dev.MinimumMaximumAverageStd. DevMinimumMaximum
Fixed time24.580.561623.9326.2542.360.153342.2242.53
Semi-dynamic22.030.517121.2523.536.160.165436.6337
Dynamic18.771.465318.2819.2533.160.257632.7633.33
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Deshpande, S.; Hsieh, S.-J. Cyber-Physical System for Smart Traffic Light Control. Sensors 2023, 23, 5028. https://doi.org/10.3390/s23115028

AMA Style

Deshpande S, Hsieh S-J. Cyber-Physical System for Smart Traffic Light Control. Sensors. 2023; 23(11):5028. https://doi.org/10.3390/s23115028

Chicago/Turabian Style

Deshpande, Siddhesh, and Sheng-Jen Hsieh. 2023. "Cyber-Physical System for Smart Traffic Light Control" Sensors 23, no. 11: 5028. https://doi.org/10.3390/s23115028

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop