Development and simulation of adaptive traffic light controller using artificial bee colony algorithm

Автор: Risikat Folashade Adebiyi, Kabir Ahmad Abubilal, Muhammad Bashir Mu’azu, Busayo Hadir Adebiyi

Журнал: International Journal of Intelligent Systems and Applications @ijisa

Статья в выпуске: 8 vol.10, 2018 года.

Бесплатный доступ

This paper proposes an adaptive traffic control system that dynamically manages traffic phases and durations at cross-intersection. The developed model optimally schedules green light timing in accordance with traffic condition on each lane in order to minimize the Average Waiting Time (AWT) at the cross intersection. A MATLAB based Graphic User Interface (GUI) traffic control simulator was developed. Three scenarios of vehicular traffic control were simulated and the results presented. The results show that scenario one and two demonstrated the variation of the AWT and Performance of the developed algorithm with changes in the maximum allowable green light timing over the simulation interval. In the third scenario, an AWT of 38sec was recorded against a maximum allowable green light duration of 120sec, during which 1382 vehicles were evacuated from the intersection, leaving 22 vehicles behind. The algorithm also had a performance of 98.43% over a simulation duration of 1800sec.

Еще

Average Waiting Time, Artificial Bee colony, Queue Length, Graphic User Interface (GUI) and Congestion

Короткий адрес: https://sciup.org/15016517

IDR: 15016517   |   DOI: 10.5815/ijisa.2018.08.06

Текст научной статьи Development and simulation of adaptive traffic light controller using artificial bee colony algorithm

Published Online August 2018 in MECS

Maintaining an efficient transportation system has been the main concern for public authorities cities confronted with multiple traffic jams each day, which cause large parts of it to become irresponsive to traffic movement(s) [1]. In a conventional traffic light controller, the traffic lights change at constant cycle times which are clearly not optimal [2]. It would be more feasible and sensible to pass more vehicles at the green time interval if there are fewer vehicles waiting behind the red lights or vice versa. However, general traffic situation may vary according to traffic demand, incidents or work construction. In order to overcome the fluctuations in traffic demand, a real-time traffic control is required. Since an intelligent traffic signal system is a major part of an intelligent transportation system, it is a challenge to increase the work efficiency of these traffic signals in order to reduce traffic jams and congestion [3]. We applied an Artificial Bee Colony based Adaptive Dynamic Scheduling Algorithm in the traffic control system to provide intelligent green time interval responses based on dynamic traffic load inputs. Thereby overcoming the inefficiencies of the conventional traffic controllers. The features inherent in Artificial Bee Colony that play a critical role in making it the best choice for traffic control management and analysis is the ability to aid easy modification by introducing model parameters that result in better performance which makes use of fewer parameters and has a good convergence. The system proposed in this paper is that the vehicles are detected using wireless sensor detectors with the information about each vehicle on the lane transmitted from the Reduced Function Devices (RFDs) to the Full Function Devices (FFDs). The FFDs then polls the information to the First Pan Coordinators (FPC) or base station.

This paper is organized as follows: Section I is an introduction to the paper discusses traffic congestion. Section II is a literature review about the relevant related research work that has been undertaken. Section III consist of the proposed methodology while Section IV discusses the results. Then, Section V concludes the work and consideration necessary for future works.

  • II.    Related Works

This section gives a brief review of various approaches that have been employed to solve problems associated with adaptive traffic control using algorithms.

In the work of [4], a model based on image mosaicking technique was designed. The algorithm adopted the use of inter-arrival and inter-departure times to simulate the leaving of vehicles. The model provided good and satisfactory results of the Average Waiting Time.

A distributed algorithm for adaptive traffic light control which decides in a dynamic fashion, the green light sequences by selecting movements comprising of each phase and its duration was developed by [5]. The system model made use of sensors organized into four hierarchical layers with several communication paths. To ensure that the proposed method is plausible, simulations were conducted with positive results for the minimization of the average waiting time.

Application of fuzzy logic for multi-agent based autonomous traffic lights control system using wireless sensor networks was described by [6]. Real-time parameters such as traffic density and queue length were obtained by using image-processing techniques for the two junctions. The system was designed to consider emergency vehicles (ambulance, police unit, and fire brigade) coming from three different directions at the same time with different speed ratio. In the case of timevarying traffic, the proposed Fuzzy Logic System Control (FLSC) was superior to the fixed time controller. In the work of [7], an algorithm for vehicle queuing system using the Monte Carlo simulation technique was developed to reduce vehicle waiting time and vehicle queues at intersections in an urban region. The design of an adaptive traffic light controller using fuzzy logic Sugeno method was used to determine the green time interval at an intersection [8]. Three inputs namely the number of queues, waiting for time and traffic flow of vehicles were determined using simulation. Results showed that the traffic light using fuzzy logic control performed better than the fixed time control.

Management of an intelligent traffic light using the genetic algorithm that detected the level of congestion and the abnormal situations in two main highways and four intersections was proposed by [3]. The collection of data was achieved using a video imaging system. A realtime decision that determined the interval of green light time for each traffic light at each intersection was achieved. It was evident that the algorithm counted vehicles accurately with 96% performance.

An advanced traffic light system based on congestion estimation using fuzzy logic was presented [9]. The scenario of an isolated traffic junction was simulated based on congestion estimation. The results showed that the advanced traffic light control system outperformed the fixed traffic light control and the even the actuated traffic controllers. The evaluation of an adaptive traffic light control system in Istanbul, Turkey was introduced by [10]. They used a combination of the fuzzy and genetic algorithm as the optimization tool. Optimum signal timings were determined according to measured real-time traffic and occupancy. The performance had a 10% improvement in terms of cycle time and 15% for travel time.

It is evident that many researchers have made an effort to improve the efficiency of traffic signals using many intelligent systems evaluated using unrealistic traffic models which often include single intersection and static traffic volumes. The proposed model for this work introduced a more realistic control strategy through the development of an adaptive dynamic scheduling algorithm based on an artificial bee colony that is capable of controlling the vehicular traffic at road intersections.

  • III.    Proposed Method

The Artificial Bee Colony (ABC) algorithm is a population-based meta-heuristic optimization which is inspired by the foraging behaviour of honeybee swarm. The ABC colony is divided into employed bees and onlooker bee. In ABC algorithm, the position of a food source represents a possible solution to the optimization problem and the nectar amount of a food source corresponds to the quality (fitness) of the associated solution [11]. It has been established that ABC algorithm can be employed to determine the appropriate green light duration for each of the roads forming the intersection [12]. Hence, a new structure of traffic control system was described using Artificial Bee Colony based Adaptive Dynamic Scheduling Algorithm. The methodology used a Vehicular Traffic Control System model in order to ease implementation of traffic scenarios at a cross – intersection.

In our proposed algorithm, the following assumptions were made:

  • 1.    Each of the road forming the intersection has two lanes that are wide enough to support three separate vehicle queue

  • 2.    Vehicles are allowed to queue-up on each lane according to their intended motion direction decision, i.e.

  • a)    Left decision → Left part of the lane

  • b)    Right decision → right part of the lane c) Straight decision → center of the lane

  • 3.    Delay is not caused by service vehicles crossing the intersection in a non-conflicting manner i.e. vehicles do not maneuver their way while at the intersection.

  • 4.    The sensors can detect vehicles on each of the

lanes regardless of their speed and position i.e. vehicles are accurately counted.

Using a VTCS equation for an objective function that has been minimized at any instant in time

n

N = £ N oi + A i t - p i t             (1)

i = 1

Where, N = Queue length

N oi = Initial Queue length

  • λ i = Initial Arrival rate

  • µ i = Initial Departure rate

The ABC computes the fitness of a candidate solution x using (2) [13] .

m k = £ (Ai- ^i)

i = 1

Therefore:

t g    t g max g ( x i

Where,

g(xi) = is a function of (xi)

Since xi represent the ith bee, xi is a row of number of parameters ( np ) which is a set of random real numbers taken in the range (0,1), tg can be redefined as follows.

Let:

fitness ( x i ) = <  1 + f ( x i )

iff ( x ) ^ 0

1 + | f ( x i )|   otherwise

g ( x i ) =

np

£ xi k=1

np

For the problem of function optimization, where, f is the function to be minimized.

The conventional objective function of ABC algorithm shown in equation (2) which best suites minimization problem. Meaning that the objective function will have the maximum value of unity. For values of f ( x 1 ) 0, the objective function becomes greater than zero. This case is rare since the populations are usually set of random values ranging from zero and one.

Thus,

F obj = N ( < g )                  (3)

f )       (4)

where t g = green light duration

N = queue length

F obj = Objective Function of ABC

By considering the average arrival rate, λ and the average departure rate, µ of the intersection

The green light timing t g , the minimized equation in (2) yields:

N

  • 1    - £ ( N OI + A i*g - ^ g )

f ( x i ) =      ------------------- (5)

£ ( N0I + A i t g - ц t g )

i = 1

In this work, t     limits the value of t . Let t be a

, gmax                       g       g function of the population of bees (xi) and

By substituting g ( xi ), k into equation (5) yields;

The equation (6) represents the ABC based VTCS objective function.

np nP - ktg max £ xi f (xi) =------n^         (6)

kt g max £ x .

k = 1

The Adaptive dynamic Scheduling algorithm runs real-time traffic light regulation of phase sequence and green time duration based on data gathered by the Wireless Sensor Network (WSN) on the road [14] . The phase sequence is determined by using queue length for each input variable or flow or by sorting them in descending order of priority [15] . The phase sequence assigns priority to each phase equal to the maximum queue length of that phase. The calculation of green time is then considered.

The flowchart describing an Adaptive Dynamic Scheduling Algorithm based Vehicular Traffic Control System is shown in Fig. 1.

  • IV.    Results and Discussion

The simulations use provisions of Average Arrival Rate (AAR), Average Departure Rate (ADR), ABC parameters and other parameters which includes Start time, green light timing, tgmax and simulation duration. The objective of these parameters is to observe the adaptive traffic light controller using Artificial Bee Colony based Adaptive Dynamic Scheduling Algorithm that minimizes AWT at cross-intersections. The developed MATLAB GUI is shown in the Fig. 2. The GUI aids in inputting various parameters required for simulations. In Table 1, Scenario one considers equal values of Average Arrival and Departure Rates. The maximum allowable green light duration is varied between 50 and 150 seconds and simulated over a duration of 300 seconds. The values for the percentage performance were noted and plotted against the maximum allowable green light duration as shown in Fig. 3. A vehicular traffic controller is designed with the aim of maintaining the average waiting time within a safe maximum. The lower the AWT, the better the controller. AWT may vary depending on the condition of the intersection at any given instant in time. Table 2, is intended to simulate a case in which the Average Arrival and Departure Rates are unequal across the cross-road for scenario two. It could be observed in Fig. 4, that the variation of Average Waiting Time (AWT) curve is less compared to that of Fig. 3. This may be associated with the pattern of the Average Arrival Rate (AAR). In scenario three shown in Table 3 generates and discusses all the features of the developed simulator. The maximum green light timing duration was kept at 2 minutes (120 seconds) and simulated over a duration of

30 minutes (1800 seconds). The simulation was initialized with t = 60 seconds, implying that vehicles were allowed to queue-up for 1 minute across the entire roads. Fig. 5 shows the variation of queue length with simulation time. It could be observed that a zero green light duration was generated by the controller at approximate point(s) 500, 900 and 1700 seconds which corresponds to a cleared condition. The ADSA is designed to generate a no green light (T gi ) of zero whenever any road has no vehicle on it. This means that roads with no vehicles are skipped during simulation for improvement in performance. Fig. 6 illustrates the cumulative sum of all the vehicles evacuation from the intersection. The peak of the curve indicates that at the end of the simulation time of 30 minutes, almost 1400 vehicles were cleared from the intersection. The Fig. 7 can be observed to have almost exact form as Fig. 5. This is based on the fact that the AWT is fully controlled by the green lights scheduled for the individual roads forming the intersection. The AWT is highly sensitive to green light duration and queue length. Some of the important output parameters generated by the developed simulator were recorded at the end of Scenario 3. These parameters are presented in Table 4.

Table 1. Scenario One (Constant Arrival and Departure rates)

Scenario One (Constant Arrival and Departure rates)

Road S/N

AAR

ADR

ABC Par.

Value

Other Parameters

Value

1

5/60

5/60

Pop size

10

Start time

0

2

5/60

5/60

Maxgen

10

т _ gmax

50-150s

3

5/60

5/60

Np

10

Simualtion Duration

300s

4

5/60

5/60

Table 2. Scenario Two (Variable Arrival and Departure rates)

Scenario Two (Variable Arrival and Departure rates)

Road S/N

AAR

ADR

ABC Par.

Value

Other Parameters

Value

1

1(5/60)

4(5/60)

Pop size

10

Start time

0

2

2(5/60)

3(5/60)

Maxgen

10

т _ gmax

50-150s

3

3(5/60)

2(5/60)

Np

10

Simualtion Duration

300s

4

4(5/60)

1(5/60)

Table 3. Scenario Three (Arrival and Departure rates at 0.2 and 0.5 respectively)

Scenario Three (Arrival and Departure rates at 0.2 and 0.5 respectively)

Road S/N

AAR

ADR

ABC Par.

Value

Other Parameters

Value

1

0.2

0.5

Pop size

10

Start time

0

2

0.2

0.5

Maxgen

10

т _ gmax

120s

3

0.2

0.5

Np

10

Simualtion Duration

1800s

4

0.2

0.5

Fig.1. Flowchart of ADSA Algorithm for VTCS

Fig.2. Graphic User Interface of the Developed Simulator

Fig.3. Variation of AWT and % Performance with T gmax (Scenario one)

Fig.4. Variation of AWT and % Performance with T gmax (Scenario two)

Variation of Queue Length with time

Time (s)

Fig.5. Variation of Queue Length with Time

Fig.6. Evacuation of Vehicles at the Intersection

Table 4. Simulation Results for Scenario 3

PARAMETER

VALUE

т _ gmax

120s

AWT

38s

Clearing Time

1640s

Simulation Duration

1800s

Total Departure after

1800s

1382 vehicles

Total Queue Length at t = 1800s

22 vehicles.

Performance

98.43%

Start Time

60s

Fig.7. Vehicles Average Waiting Time

  • V.    Conclusion

In this paper, a proposed algorithm to control traffic light at cross intersections. The developed model optimally scheduled green light timing was done in accordance with traffic condition in order to minimize the Average Waiting Time (AWT) at the cross intersection. A MATLAB based Graphic User Interface (GUI) traffic control simulator was developed. Three scenarios of vehicular traffic control were simulated and results presented. The results showed satisfactory result in response to AWT at cross intersection.

In future work, the developed vehicular traffic control simulator should be replicated with java, while incorporating traffic motion controllers and compiled into real software that can run on various PCs in order to aid students in simulating any desired traffic control situation.

Список литературы Development and simulation of adaptive traffic light controller using artificial bee colony algorithm

  • Cosariu, C., L. Prodan, and M. Vladutiu. Toward traffic movement optimization using adaptive inter-traffic signaling. in Computational Intelligence and Informatics (CINTI), 2013 IEEE 14th International Symposium on. 2013. IEEE.
  • Subramaniam, S., M. Esro, and F. Aw, Self-Algorithm Traffic Light Controllers for Heavily Congested Urban Route. WSEAS Transactions on Circuits and Systems, 2012. 11(4): p. 115-124.
  • Odeh, S.M., Management of an intelligent traffic light system by using genetic algorithm. Journal of Image and Graphics, 2013. 1(2): p. 90-93.
  • Mittal, P.K. and Y. Singh, Analysis and designing of proposed intelligent road traffic congestion control system with image mosaicking technique. International Journal of IT, Engineering and Applied Science Research (IJIEASR) Vol, 2013. 2: p. 27-31.
  • Faye, S., C. Chaudet, and I. Demeure. A distributed algorithm for adaptive traffic lights control. in Intelligent Transportation Systems (ITSC), 2012 15th International IEEE Conference on. 2012. IEEE.
  • Salehi, M., I. Sepahvand, and M. Yarahmadi, TLCSBFL: A Traffic Lights Control System Based on Fuzzy Logic. International Journal of u-and e-Service, Science and Technology, 2014. 7(3).
  • Wang, F., et al., Simulation Analysis and Improvement of the Vehicle Queuing System on Intersections Based on MATLAB. Open Cybernetics & Systemics Journal, 2014. 8: p. 217-223.
  • Erwan, E.P., W. Oyas, and S. Selo, Design and Simulation of Adaptive Traffic Light Controller Using Fuzzy Logic Control Sugeno Method. International Journal of Scientific and Research Publications, 2015. 5(4): p. 6.
  • Alam, J., Advance traffic light system based on congestion estimation using fuzzy logic. 2014.
  • Gündoğan, F., et al., An Evaluation of Adaptive Traffic Control System in Istanbul, Turkey. Journal of Traffic and Logistics Engineering Vol, 2014. 2(3).
  • Karaboga, D., et al., A comprehensive survey: artificial bee colony (ABC) algorithm and applications. Artificial Intelligence Review, 2014. 42(1): p. 21-57.
  • Adebiyi, R.F., et al., Management of Vehicular Traffic System Using Artificial Bee Colony Algorithm. International Journal of Images, Graphics and Signal Processing 2017. 9(11): p. 18-28.
  • Priti Bansal, S.S. and Nitish Mittal, A Hybrid Artificial Bee Colony and Harmony Search Algorithm to Generate Covering Arrays for Pair-wise Testing. International Journal of Intelligent Systems and Applications (IJISA), 2017. 9(8): p. 59-70.
  • Aljaafreh, A. and N. Al Oudat. Optimized Timing Parameters for Real-Time Adaptive Traffic Signal Controller. in Computer Modelling and Simulation (UKSim), 2014 UKSim-AMSS 16th International Conference on. 2014. IEEE.
  • Pau, G. and G. Scata, Smart traffic light junction management using wireless sensor networks. WSEAS transactions on communication, 2014. 14: p. 2224-2864.
Еще
Статья научная