1. Introduction
Traffic control system is one of the key subsystems in intelligent transport systems (ITSs) [
1]. Smart vehicles, as well as smart infrastructure, are our main research areas [
2,
3,
4]. Traffic congestion is a pressing issue in urban areas globally, leading to increased travel time, fuel consumption, and environmental pollution. Efficient traffic signal control systems play a pivotal role in mitigating congestion and enhancing transportation efficiency. Over time, various methods and technologies have been developed to optimize traffic signal timings and improve traffic flow. Understanding the evolution of traffic signal control methods, from conventional fixed-time approaches to more adaptive and intelligent systems, is crucial for addressing the challenges posed by urban traffic congestion.
Traffic signal control methods, as outlined in recent studies, include conventional fixed-time control [
1], adaptive control [
2], fuzzy logic-based approaches [
3,
4,
5], reinforcement learning (RL)-based methods [
6,
7,
8,
9], and fuzzy inference system (FIS)-based approaches [
9]. Each method offers unique advantages and challenges in optimizing traffic signal settings and managing traffic flow.
Examination of the existing body of research provides insights into the strengths and limitations of each approach, as demonstrated in recent studies. It highlights their applicability in real-world traffic management scenarios. We have reviewed emerging trends and future directions in traffic signal control. Published research emphasizes the need for innovative solutions to address the complexities of modern urban transportation systems. Despite the advancements in traffic signal control systems, several gaps remain in the existing research. Fixed-time control systems, such as those initially developed in the mid-20th century, are inherently static and unable to adapt to real-time traffic conditions. These systems often struggle to handle varying traffic volumes and patterns, resulting in significant inefficiencies, especially during peak hours and under diverse traffic scenarios [
1]. Adaptive traffic control systems like the Sydney Coordinated Adaptive Traffic System (SCATS) dynamically adjust signal timings based on real-time traffic data. However, these systems are complex and costly to implement and maintain. Their effectiveness is highly dependent on the quality and accuracy of collected traffic data, which can be inconsistent, leading to potential reliability issues [
2].
Fuzzy logic, as a powerful control systems approach, was introduced by Lotfi A. Zadeh, in the last century [
4,
5,
7], but relatively recently compared to digital control logic. Our research team is already using fuzzy logic in various science disciplines [
8,
9].
Fuzzy logic-based traffic control systems offer a promising alternative by relying on expert knowledge to define rules that manage traffic flow. Nevertheless, the creation of accurate and comprehensive fuzzy rules is challenging. The performance of these systems can be inconsistent if the input data are highly variable, limiting their scalability and generalizability across different traffic conditions and intersection types [
3,
4,
5].
Reinforcement learning (RL)-based methods have emerged as another innovative approach, requiring substantial computational resources and large amounts of training data to learn optimal policies. The real-time applicability of RL methods is often restricted by the need for continuous learning and adaptation, which can be computationally intensive and time-consuming [
6,
7,
8,
9].
Similarly, fuzzy inference systems (FIS) like those using Mamdani models have proven effective in specific traffic scenarios. However, their scalability and integration into existing traffic management infrastructure remain limited. These systems may struggle to handle complex and dynamic urban traffic patterns, with performance potentially degrading as system complexity increases [
9].
Our proposed fuzzy logic controller (FLC) aims to address some of these gaps by integrating the strengths of fuzzy logic with real-time traffic data to provide dynamic and adaptive traffic signal control. The key features of the novel FLC include definition of dynamic input variables, such as the number of vehicles in red and green lanes, and the waiting time of vehicles in red lanes. FLC constructs rule-based inference systems to map inputs to outputs through a set of fuzzy logic rules, encapsulating expert knowledge and empirical data about traffic flow dynamics. Efficient defuzzification converts fuzzy outputs into crisp values, determining precise control actions for traffic signals. This process ensures that the traffic signal control actions are both precise and effective in optimizing traffic flow. By addressing existing gaps, the proposed FLC offers a promising solution for dynamic and adaptive traffic signal control, potentially leading to reduced congestion and improved traffic flow in urban areas.
Traffic signal control is crucial for managing traffic flow and reducing congestion in urban areas. Over the years, various methods have been proposed and implemented to optimize traffic signal settings. This literature review provides an overview of different traffic signal control methods, categorizing them based on their underlying principles and approaches.
Traditional traffic signal control methods, such as fixed timing and vehicle actuation, have long been used in traffic management systems [
1]. These methods provide predetermined signal timings or adjust signals based on vehicle presence at intersections. However, they are limited in adaptability to changing traffic conditions and may lead to suboptimal traffic flow.
Adaptive control methods, like the split cycle offset optimization technique (SCOOT) and SCATS, respond to real-time traffic demands by adjusting signal timings accordingly [
2]. These systems use fixed detector data to optimize signal settings but may suffer from limitations in handling dynamic traffic scenarios effectively. However, gaps exist in the literature concerning their implementation and performance. Firstly, these systems heavily rely on fixed detector data, potentially overlooking the need for advanced sensor technologies or data sources to enhance responsiveness and accuracy. Secondly, while effective in typical scenarios, they may not fully account for the complexities of dynamic traffic situations. Future research should explore innovative approaches for data integration and algorithm optimization to enhance their adaptability in diverse urban environments.
Fuzzy logic-based controllers offer an alternative approach, allowing for dynamic adjustments based on uncertain or imprecise inputs [
3,
4,
5]. These controllers utilize fuzzy rules to optimize signal timings, considering factors such as traffic volume, congestion levels, and lane-specific data. By dynamically adjusting green light durations, fuzzy logic controllers aim to improve traffic flow and reduce congestion. Fuzzy logic-based controllers offer a dynamic approach to optimizing signal timings for improved traffic flow and congestion reduction. However, their current representation may overlook critical variables such as their adaptability to varying traffic scenarios. Additionally, inaccuracies in input data or deviations from predefined rules may affect their performance.
Recent advancements in deep reinforcement learning (DRL) have shown promise in optimizing traffic signal control systems [
6,
7,
8,
9]. RL-based methods learn optimal control policies through interaction with the environment, utilizing techniques like deep deterministic policy gradient (DDPG), proximal policy optimization (PPO), and deep Q-networks (DQNs). These methods offer adaptability and performance improvements by learning from real-time traffic data and optimizing signal timings accordingly. However, current research overlooks challenges in practical implementation, such as computational complexity. There is a gap in understanding the constraints and limitations of DRL-based methods in real-world traffic management.
Fuzzy inference system (FIS)-based methods leverage fuzzy logic to dynamically adapt signal timings according to real-time traffic conditions [
9]. These controllers integrate variables like traffic volume, queue length, and arrival flow to enhance traffic flow and alleviate congestion. Specifically, the Mamdani-type FIS offers a structured approach to decision-making, utilizing fuzzy rules and linguistic variables, which renders it applicable to traffic systems facing unpredictable conditions. However, existing research may underestimate the challenges associated with integrating FIS-based controllers into extensive urban traffic networks, along with the potential performance decline as system complexity increases.
Comparative studies among various control methods illuminate the strengths and weaknesses of each approach [
1,
2,
3,
4,
5,
6,
7,
8,
9]. RL-based methods exhibit significant enhancements in traffic flow and efficiency when compared to traditional fixed-time control and adaptive control methods [
6,
7,
8,
9]. Similarly, fuzzy logic-based controllers prove effective in reducing queue counts, waiting times, and overall congestion at intersections [
4,
5]. However, challenges persist in accurately modeling dynamic traffic scenarios and ensuring robust performance in real-world applications. Despite shedding light on the advantages and drawbacks of different control strategies, these comparative studies often overlook the integration challenges and scalability issues faced by RL-based and fuzzy logic-based approaches [
1,
2,
3,
4,
5,
8,
9]. These methods may not fully address the complexities of dynamic traffic scenarios or ensure reliable performance in practical settings, creating gaps in understanding their implementation and effectiveness.
Recent advancements in intelligent transport systems (ITS) have significantly impacted the way urban traffic is managed, emphasizing the integration of smart vehicles and infrastructure [
10]. A study by the European Commission highlights the importance of ITS in improving transport safety, efficiency, and sustainability through the application of various information and communication technologies. These technologies are pivotal in addressing Europe’s growing emission and congestion problems by enhancing transport safety and efficiency. The report underscores the importance of coherent and coordinated deployment of ITS across the EU to ensure consistent benefits. Public acceptance and cooperation between vehicles and road infrastructure are crucial for the successful implementation of these systems, which aim to create safer, more efficient, and more sustainable transport networks.
Recent advancements in intelligent transport systems (ITS) have significantly impacted the way urban traffic is managed, emphasizing the integration of smart vehicles and infrastructure. A study by Gupta et al. (2023) [
11] explores the application of fuzzy logic in ITS, highlighting its effectiveness in enhancing traffic management systems. The research reviews various fuzzy logic approaches and their role in handling the complexity and uncertainty of urban traffic environments. Fuzzy logic controllers (FLCs) have been shown to improve traffic flow and safety by dynamically adjusting traffic signals based on real-time data, reducing congestion and improving overall efficiency.
Foundational works by Zadeh [
11,
12,
13] on fuzzy logic and decision-making in fuzzy environments have paved the way for modern adaptive control systems. These principles are now applied in traffic management systems to handle the uncertainty and variability inherent in urban traffic. While these works provide a theoretical basis for fuzzy logic, they do not dive into the practical application of fuzzy logic in large-scale traffic networks.
Simic’s study on cascaded fuzzy logic for adaptive cruise control [
14] exemplifies the application of fuzzy logic in real-time traffic management. This approach enables dynamic adaptation to changing traffic conditions, enhancing both traffic flow and safety. Such systems are particularly relevant for autonomous vehicle technology and intelligent traffic signal control. The broader application of this approach to other traffic management scenarios, such as intersection control or freeway management, is not explored. The study also does not discuss the challenges of integrating fuzzy logic controllers with other ITS components.
Traffic signal control methods have evolved from conventional fixed-time approaches to more adaptive and intelligent systems. While traditional methods provide a baseline, adaptive control methods, fuzzy logic-based controllers, RL-based approaches, and FIS-based approaches offer enhanced adaptability and performance in managing dynamic traffic scenarios. Future research should focus on refining existing methods, addressing challenges, and integrating emerging technologies to further improve traffic management systems and alleviate urban congestion.
2. Materials and Methods
We have set up a traffic system with simulation that models two adjacent intersections equipped with traffic lights, each controlled by a separate fuzzy logic controller. The two intersections are positioned side by side, simulating a scenario where two neighboring junctions are present along a road network. At each intersection, we employ a fuzzy logic controller to manage traffic flow. These controllers consider inputs such as the number of vehicles in red and green lanes and the maximum waiting time in red lanes. The goal is to optimize traffic flow and reduce congestion by controlling the timing of traffic light changes.
One unique aspect of our simulation is that the traffic lights at both intersections switch synchronously. This switching ensures coordination between the intersections, allowing for a smooth flow of traffic along the main horizontal road. Furthermore, priority is given to the road, which is the main thoroughfare, ensuring that it has an advantage over side roads. This prioritization is achieved by setting longer green phases for the main road, allowing for uninterrupted traffic flow along this crucial route. By implementing two fuzzy logic controllers working synchronously, and coordinating the traffic lights between adjacent intersections, our simulation aims to replicate real-world traffic management strategies and evaluate their effectiveness in improving traffic flow and reducing congestion.
The simulation models two adjacent intersections equipped with traffic lights, each controlled by a separate fuzzy logic controller. The two intersections are positioned side by side, simulating a scenario where two neighboring junctions are present along a road network. At each intersection, we employ a fuzzy logic controller to manage traffic flow. These controllers consider inputs such as the number of vehicles in red and green lanes and the maximum waiting time in red lanes. The goal is to optimize traffic flow and reduce congestion by controlling the timing of traffic light changes.
One unique aspect of our simulation is that the traffic lights at both intersections switch synchronously. This switching ensures coordination between the intersections, allowing for a smooth flow of traffic along the main horizontal road. This prioritization is achieved by setting longer green phases for the horizontal road, allowing for uninterrupted traffic flow along this crucial route.
In our research, Simulation of Urban Mobility (SUMO) version 1.9.2 was utilized. SUMO is an open-source, highly portable, and microscopic traffic simulation package designed to handle large road networks. The simulation involves two intersections, each with two lanes in either direction, connected horizontally, as shown in the
Figure 1. Traffic is generated to enter the simulation road network at all six lane entries, as shown in a snapshot of the setup in SUMO.
Traffic Control Interface (Traci) was used to integrate SUMO with the fuzzy logic controller. Traci facilitates communication between SUMO and the Python-based fuzzy controller, which is implemented using SciKit Fuzzy and NumPy libraries. This interface allows the simulation to send real-time traffic data to the fuzzy controller, such as the number of cars and their waiting times.
The fuzzy logic controller uses three inputs: the number of vehicles in the red lanes, the number of vehicles in the green lanes, and the maximum waiting time of vehicles in the red lanes. These inputs are processed by the fuzzy controller to evaluate the current traffic conditions. The fuzzy controller’s outputs determine whether the traffic lights at either intersection should be toggled. By adjusting the traffic light timings, at intersections as shown in the
Figure 2, based on real-time data, the system aims to improve traffic flow and reduce waiting times.
The simulation runs for a specified duration of 1000 steps. During this period, vehicles are generated at a rate of [vehicles per hour] and introduced into the network at predefined locations such as A, B, etc. The types of vehicles, including their size and speed, are varied to reflect realistic traffic conditions, with speeds set to [Vehicle Speed Range] and sizes categorized as [Vehicle Size Categories]. The probability of vehicles changing lanes or turning at intersections is defined as [Probability Values].
To ensure robust statistical analysis, each simulation is repeated 10 times under identical conditions. The data collected from these repetitions are then analyzed to evaluate the performance of the fuzzy logic controller.
In a standard SUMO simulation, default settings govern the behavior and characteristics of vehicles within the simulated environment. The default vehicle type, typically referred to as “passenger” or “passenger car”, embodies the archetype of a typical car found on city streets. With a length averaging between 4 to 5 m and a width of around 2 m, these vehicles reflect the dimensions of everyday passenger cars. Their speed parameters, often set within a range of 10 to 20 m per second (36 to 73 km/h), mirror the typical velocities encountered in urban traffic. Additionally, the default behavior includes the probability of lane changing, capturing the dynamic nature of traffic flow, and a standard turning behavior at intersections, enabling vehicles to navigate left, right, or straight ahead based on the road network layout and traffic signals [
15]. The default setting for lane changing behavior is typically governed by the lane change model specified in the simulation configuration. By default, SUMO uses the “LC2013” lane change model, which is based on the intelligent driver model (IDM) and the MOBIL lane change model. These default settings provide a foundational framework for simulating realistic traffic scenarios within SUMO, facilitating nuanced analysis and experimentation in urban mobility research and planning.
To ensure robust statistical analysis, each simulation is repeated 10 times under identical conditions. The data collected from these repetitions is then analyzed to evaluate the performance of the controller.
The fuzzy logic controller is implemented using SciKit Fuzzy (skfuzzy). The fuzzy logic controller accepts three inputs: the number of vehicles on the red lanes (no_vehicle_red_lane), the number of vehicles on the green lanes (no_vehicle_green_lane), and the maximum waiting time of vehicles on the red lanes (waiting_time_red_lane).
3. Control Parameters
The fuzzy logic controller uses three inputs: the number of vehicles in the red lanes, the number of vehicles in the green lanes, as shown in the
Figure 3, and the maximum waiting time of vehicles in the red lanes, as shown in the
Figure 4. These inputs are processed by the fuzzy controller to evaluate the current traffic conditions. We defined the number of vehicles using an array of integers from 0 to 22. Then we used three types of membership functions to define the memberships. Values from 0 to 8 were defined as “Low” using a z-shaped membership function (zmf). Values from 2 to 18 were defined as “Moderate” using a triangular membership function (trimf). Values from 12 to 20 were defined as “High” using an s-shaped membership function (smf).
Waiting time was defined using an array of integers from 0 to 80. From our network, we found that the maximum waiting time of vehicles before the traffic light switches falls within the range of 0 to 80. We used three types of membership functions to define the memberships. Waiting times from 0 to 30 were defined as “negligible” using a z-shaped membership function (zmf). Waiting times from 10 to 70 were defined as “medium” using a triangular membership function (trimf). Waiting times from 50 to 80 were defined as “a lot” using an s-shaped membership function (smf).
The output of the fuzzy logic controller, shown in the
Figure 5, has a value between 0 and 1, implemented by passing an array containing 0 and 1 as the consequent. If the output is 0, then the traffic light is “okay”; if it is 1, then it needs switching. The output is defined using two membership functions: “okay”, with a z-shaped membership function (zmf) from 0 to 0.5, and “need-switching”, with an s-shaped membership function (smf) from 0.5 to 1.
These sets of antecedents and consequents were grouped into fuzzy rules used to create the control system. The control system was then simulated and used to compute outputs based on the three inputs. The output of the fuzzy logic controller is a value from 0 to 1. The output zero indicates that the traffic controller is okay, and the value one means that the controller needs switching. When running the simulation, the output usually falls between 0.3 and 0.7, so we set a bar at 0.5. If the output is below 0.5, the traffic light will not be changed; otherwise, it would be switched.
The fuzzy-based controller has 27 rules as shown in
Table 1. The output of the rules will determine the tendency of the set of traffic lights to toggle its signal in the next iteration. “Okay” indicates a low tendency, while “switch TF” indicates a high tendency.
The design rationale of the rule is that whenever the queue length and/or waiting time is/are long, the traffic light signal should toggle such that the queue can be emptied. For instance, when the number of vehicles on the primary road is “low”, and the number of vehicles on the secondary road is “high”, toggling the traffic light can resolve the queue on the secondary road and vice versa. In contrast, when the number of vehicles on the secondary road is “low” while the maximum waiting time on the primary road is “negligible”, it indicates that traffic on either side has not yet been built up. Thus, no change is needed for the next iteration.
Based on the evaluation of the fuzzy logic controller implemented in the provided code, it can be inferred that a more intelligent traffic light control system holds the potential to enhance throughput at intersections and diminish overall traffic congestion. Typically, prioritizing certain vehicles entails imposing additional waiting time on others, termed as “unprioritized” vehicles. However, in this project, no such delay was observed for unprioritized vehicles. Consequently, the average waiting time for unprioritized vehicles decreased, reduction in their average waiting time. Furthermore, there was a notable increase in the average number of moving vehicles within the intersection, accompanied by a reduction in the number of vehicles halted by traffic signals.
Algorithm 1 FLC control algorithm pseudocode is a pseudocode for the interaction between the simulator and the fuzzy controller. This algorithm outlines the steps for initializing the simulator and fuzzy controller, generating vehicles, and updating traffic light states based on real-time traffic data inputs. The fuzzy controller processes the number of vehicles and waiting times to determine whether to toggle the traffic lights.
Algorithm 1: Interaction Between Simulator and Fuzzy Controller |
Input: T, τ, λ, ν_range, σ_categories, p_lane_change, p_turn |
Output: Traffic flow and waiting time statistics |
Initialize simulator |
Initialize fuzzy controller |
Define road network and entry points |
Generate vehicles at rate λ |
for t = 0 to T do |
if t mod τ == 0 then |
lanes_currently_moving, lanes_stopped_by_light ← |
getLaneLists(lanes_in_D1B2, lanes_in_G2H1, trafficLightID) |
vehicles_in_red_lanes ← getVehiclesIn |
Lane(lanes_stopped_by_light) |
vehicles_in_green_lanes ← getVehiclesInLane(lanes_cur |
rently_mov ing) |
N_r ← len(vehicles_in_red_lanes) |
N_g ← len(vehicles_in_green_lanes) |
W_max ← getMaxWaitingTime(vehicles_in_red_lanes) |
output ← fuzzyControllerFunction(N_r, N_g, W_max) |
if output ≥ θ then |
toggleTrafficLights(trafficLightID) |
end if |
end for |
closeSimulator() |
The Algorithm 1 pseudocode outlines the interaction between a traffic simulation system and a fuzzy logic controller to manage traffic flow at intersections. Initially, the simulator and fuzzy controller are initialized, and the road network and entry points are defined. Vehicles are generated at a specified rate to enter the network. The main simulation loop runs from time t = 0 to t = T. At every interval τ, the simulator updates the number of vehicles on red and green lanes (Nr and Ng) and the maximum waiting time on the red lanes (Wmax). These parameters are passed to the fuzzy controller, which processes them and returns an output. If the output exceeds a predefined threshold θ, the traffic lights are toggled. The simulator then proceeds to the next simulation step, and data are collected for analysis. After completing the simulation, the system closes, the data are collected, and the results are outputted.
The flow chart given in the
Figure 6 outlines the process for a fuzzy logic-based traffic control simulation. The simulation begins with initialization, setting the step count to zero. The system continuously checks the traffic light state, collecting data on vehicles in both green (moving) and red (stopped) lanes. Depending on the traffic light ID, it determines which lanes are moving or stopped. The core of the simulation runs in a loop until 1000 steps are reached, during which the system applies a fuzzy inference system (FIS) to control the traffic lights based on the real-time vehicle data. Every
n steps, the traffic lights may be toggled according to fuzzy logic rules. This dynamic approach aims to optimize traffic flow by adjusting signals based on current conditions, thereby reducing vehicle waiting times. The simulation concludes once the step count reaches nmax, effectively ending the process. This flow chart demonstrates a structured methodology for enhancing traffic management using fuzzy logic.
Fuzzy logic controller (FLC) was implemented in Python version 3.10 using the scikit-fuzzy library, a powerful tool for fuzzy logic systems. This implementation involved several key steps. Firstly, the input and output variables were defined, including linguistic terms and their associated membership functions. For example, input variables such as “no_vehicle_red_lane” and “waiting_time_red_lane” were defined with terms like “low”, “moderate”, and “high”, each with appropriate membership functions. Next, fuzzy rules were established to govern the system’s behavior, specifying how inputs should be mapped to outputs. These rules were constructed based on expert knowledge of traffic flow dynamics. Once the rules were defined, a control system was created to simulate the FLC’s behavior using the control system class provided by scikit-fuzzy. Finally, the controller was integrated into the larger traffic simulation environment, interacting with the SUMO traffic simulator via the Traci interface. This implementation allows for real-time traffic control decisions based on fuzzy logic principles, offering an effective and adaptive solution for managing complex traffic scenarios.
4. Results
Figure 7 presents comparation the average vehicle waiting times at red lights between two different traffic control strategies: a SUMO fixed-time traffic controller and a fuzzy logic traffic controller. The results indicate that the fuzzy logic traffic controller significantly reduces the average waiting time at red lights compared to the fixed-time controller. Specifically, the average waiting time with the fuzzy logic controller is much lower, demonstrating its effectiveness in dynamically adjusting traffic light phases based on real-time traffic conditions. This reduction in waiting time likely leads to smoother traffic flow and decreased congestion, highlighting the advantages of using fuzzy logic for adaptive traffic management.
Figure 8 compares the performance of two traffic control systems: a fuzzy logic-controlled traffic system and a fixed time-controlled traffic system, over a series of 1000 time steps. The y-axis represents the waiting time of vehicles, while the x-axis represents the time steps.
The fuzzy logic-controlled traffic, depicted by the blue line, consistently shows lower average vehicle waiting times compared to the fixed time-controlled traffic, represented by the orange line. Throughout the 1000 time steps, the waiting times for the fixed time-controlled traffic demonstrate a recurring pattern of sharp increases, indicating periods where vehicles experience significant delays. These peaks can reach over 1200 s, suggesting that the fixed-time system is less efficient in managing varying traffic conditions.
In contrast, the fuzzy logic-controlled traffic exhibits a more stable pattern with smaller and less frequent peaks. This indicates that the fuzzy logic system is more effective in adapting to changing traffic conditions, thereby reducing the overall waiting time for vehicles. The ability of the fuzzy logic system to maintain lower waiting times is evident, as it avoids the extreme delays observed with the fixed-time control.
Overall, the graph highlights the superior performance of the fuzzy logic traffic controller in minimizing vehicle waiting times, thus demonstrating its effectiveness in enhancing traffic flow and reducing congestion. This adaptive approach allows for more responsive traffic management, aligning closely with real-world traffic dynamics and improving overall efficiency.
5. Discussion
To achieve optimal results in our traffic control system, fine-tuning of the fuzzy logic controller was essential. One crucial aspect of this fine-tuning process was determining an appropriate threshold value to trigger traffic light phase changes. This threshold value significantly influences the frequency and timing of phase changes, thereby directly impacting traffic flow efficiency. To determine the optimal threshold value, a series of trials were conducted, varying the threshold from 0.30 to 0.60. Each trial was evaluated based on its ability to improve traffic flow and reduce congestion, as shown in the
Table 2.
Threshold values of 0.30 and 0.35 both resulted in identical average waiting times of approximately 72,252 s, with 48 signal changes and an average vehicle speed of around 16.65 km/h. A slight improvement is observed at a threshold value of 0.40, where the average waiting time decreases to 71,470 s, with 46 signal changes and a marginal increase in vehicle speed to 16.72 km/h.
At a threshold value of 0.45, the average waiting time increases to 84,246 s, while the number of signal changes drops to 33, leading to an improved average vehicle speed of 18.30 km/h. However, further increasing the threshold value to 0.50 and 0.60 results in significant increases in average waiting times (246,974 and 206,403 s, respectively) and a notable reduction in the number of signal changes (19 and 0, respectively). Despite the higher waiting times, these higher thresholds correspond to higher average vehicle speeds of approximately 28.99 and 28.88 km/h, respectively.
The data suggest that lower threshold values (0.30 to 0.40) result in more frequent signal changes and lower vehicle speeds, while higher threshold values (0.50 and 0.60) reduce the number of signal changes but at the cost of increased waiting times. The threshold value of 0.45 appears to strike a balance, achieving moderate waiting times, a reasonable number of signal changes, and improved vehicle speeds. This balance indicates that 0.45 is a potentially optimal threshold for efficient traffic management using fuzzy logic.
The trials revealed that the most effective threshold value was 0.45. At this threshold, the controller demonstrated a balanced response, effectively managing traffic flow without causing unnecessary phase changes. Lower threshold values tended to make the controller overly sensitive, resulting in frequent and sometimes unnecessary phase changes, leading to reduced efficiency and increased driver frustration. Conversely, higher threshold values made the controller less responsive, causing delays in adapting to changing traffic conditions and potentially worsening congestion.
By carefully analyzing the outcomes of these trials, we were able to fine-tune the fuzzy logic controller to achieve optimal performance in our traffic control system. This highlights the importance of iterative testing and refinement in designing effective traffic management solutions.
Effective traffic management relies on carefully timed adjustments to traffic light control. In this section, we explore the rationale behind selecting an update interval of 40 simulation steps for our traffic light control system. By choosing this interval, we aim to strike a balance between responsiveness and stability, simulating real-life traffic scenarios while optimizing traffic flow and minimizing disruptions.
The decision to update the traffic light control every 40 simulation steps was a choice made to establish a balance between responsiveness and stability. This interval was carefully selected to align with real-life scenarios, where frequent traffic light changes can disrupt traffic flow and increase driver frustration. By updating the traffic light control every 40 steps, we aim to achieve less frequent switching of traffic lights. This approach mirrors real-life traffic management strategies, where traffic light changes are not made impulsively but rather in response to significant changes in traffic conditions.
Choosing an interval of 40 s allows the traffic light control system to adapt to evolving traffic patterns without excessively frequent changes. This helps in maintaining smoother traffic flow and reducing the likelihood of unnecessary disruptions. By emulating real-life traffic scenarios, our simulation provides a more accurate representation of traffic dynamics, enabling us to evaluate the effectiveness of our control strategies in a manner that aligns with real-world conditions.
Table 3 illustrates the average vehicle waiting times at red lights using two different types of traffic controllers: the SUMO fixed-time traffic controller and the fuzzy logic traffic controller. Across various conditions, the SUMO fixed-time traffic controller consistently resulted in a waiting time of 400 s. In contrast, the fuzzy logic traffic controller demonstrated more variability and generally shorter waiting times, except at the highest update interval. For instance, with traffic light updates at 35 s and 40 s, the fuzzy logic traffic controller had an average waiting time of 250 s, significantly lower than the fixed controller. As the update intervals increased, the waiting time for the v also increased, with 300 s at a 45-s update, 370 s at a 50-s update, and eventually matching the fixed controller at 400 s for a 60-s update.
Based on these data, the choice to use a 40-s update interval in the code is justified because it offers the optimal balance between efficiency and performance. At 40 s, the fuzzy logic traffic controller achieves a significant reduction in waiting times (250 s) compared to the fixed-time controller, maximizing the benefits of the fuzzy logic system while maintaining stability. This interval ensures minimal vehicle wait times without the diminishing returns observed at longer update intervals, making it the most efficient option among the tested scenarios.
In addition to the fuzzy logic controllers managing traffic light timings, we fine-tuned the traffic flows entering the two intersections in our SUMO simulation. These adjustments were made to prevent gridlocks and ensure that the roads do not reach full capacity, thus maintaining a smooth flow of traffic.
By carefully adjusting the traffic flows, we aim to replicate real-world traffic conditions where road capacities are not exceeded, preventing congestion and ensuring efficient movement of vehicles. This involved balancing the inflow of vehicles into each intersection, considering factors such as the number of lanes, road capacities, and expected traffic volumes.
Through iterative adjustments and simulation runs, we optimized the traffic flows to maintain a steady flow of vehicles without overwhelming the road network. This fine-tuning process is crucial for creating a realistic simulation environment that accurately reflects traffic conditions in urban areas. Combining the fine-tuned traffic flows with the fuzzy logic controllers for traffic light management allows us to comprehensively evaluate the effectiveness of our traffic management strategies in minimizing congestion and improving traffic flow.
The proposed study focuses on addressing key limitations in existing intelligent traffic management systems by integrating advanced fuzzy logic controllers. Firstly, ensuring high-quality and real-time traffic data is critical. The proposed system aims to enhance data collection accuracy and mitigate potential delays by employing robust sensor networks and advanced data processing techniques. Secondly, the proposed system aims to bridge the gap between simulation environments and real-world traffic scenarios. By incorporating unpredictable factors such as driver behavior, weather conditions, and road incidents into the simulation models, the study seeks to provide a more accurate representation of real-world traffic conditions.
6. Future Research Directions
One promising direction is the integration of advanced sensor technologies, such as computer vision, to improve the accuracy and reliability of real-time traffic data collection. Enhanced data quality can significantly boost the performance of fuzzy logic controllers. Another important area is investigating the scalability of fuzzy logic-based traffic controllers in larger and more complex urban networks. Examining the generalizability of the proposed system across different intersection types and traffic conditions is crucial to ensure robust performance in diverse urban environments.
Moreover, developing hybrid control systems that combine fuzzy logic with other advanced methods, such as deep reinforcement learning (DRL), could leverage the strengths of multiple approaches to achieve superior traffic management outcomes. Real-world implementation and testing of the proposed fuzzy logic traffic controller, in collaboration with local traffic authorities, would provide valuable insights into the practical challenges and benefits of deploying such systems in urban traffic networks. Additionally, creating adaptive and self-learning fuzzy logic controllers that can continuously learn and adjust their parameters based on evolving traffic patterns would enhance the adaptability and long-term effectiveness of the traffic control system. Addressing these future research directions will contribute to the development of more efficient, adaptable, and widely accepted intelligent traffic management systems.
Integrating recent developments in autonomous vehicle technology can also be beneficial. For instance, the work by Liang J, Tian Q, and Feng J. on a polytopic model-based robust predictive control scheme for path tracking of autonomous vehicles [
16] highlights advanced control methodologies that can be adapted for traffic signal control. This integration can improve the coordination between autonomous vehicles and traffic signals, further enhancing traffic flow and safety.
7. Conclusions
This paper presents a comprehensive study on the implementation and evaluation of an intelligent traffic light controller (ITLC) using fuzzy logic to optimize urban traffic flow. By integrating real-time traffic data and leveraging fuzzy logic algorithms, the ITLC system dynamically adjusts traffic light timings to improve vehicle flow at intersections. The simulation results demonstrate that the fuzzy logic-based controller significantly reduces average vehicle waiting times compared to the traditional fixed-time traffic controller. Specifically, the fuzzy logic controller effectively adapts to changing traffic conditions, maintaining lower waiting times, and avoiding the extreme delays observed with the fixed-time controller.
The key contributions of this study include the development of a novel fuzzy logic-based traffic light controller, detailed mathematical modelling and analysis of road capacity and traffic flow dynamics, and the rigorous testing and validation of the ITLC system using SUMO simulations. By integrating real-time traffic data, this study highlights the importance of accurate and timely data for enhancing the performance of fuzzy logic controllers. Additionally, this paper provides practical insights and methodologies for implementing and fine-tuning fuzzy logic-based traffic controllers in real-world urban environments, offering a promising solution for dynamic and adaptive traffic signal control.
It is important to note that the proposed ITLC system represents a significant advancement in traffic management technology. By utilizing fuzzy logic, the system can adapt to real-time traffic conditions, providing a more responsive and efficient solution compared to traditional fixed-time controllers. The integration of real-time data and the ability to dynamically adjust traffic light timings are critical for managing urban traffic flow effectively, reducing congestion, and improving overall transportation efficiency.
Moreover, the methodologies and insights presented in this study can serve as a foundation for further research and development in the field of intelligent traffic systems. Practitioners and researchers can build on these findings to develop more sophisticated and adaptable traffic management solutions, ultimately contributing to the advancement of smart city initiatives and enhancing the quality of urban life.
The study underscores the potential of fuzzy logic systems in enhancing traffic management, reducing congestion, and improving overall urban transportation efficiency. Future research should focus on additional refining these systems, considering factors such as mixed vehicle fleets and advanced data integration to verify and enhance the performance of traffic control algorithms. Intelligent traffic control systems are crucial subsystems in the future ITS.