Skip to main content

Real-Time Traffic Light Scheduling Algorithm Based on Genetic Algorithm and Machine Learning

  • Conference paper
  • First Online:

Part of the book series: Lecture Notes in Computer Science ((LNISA,volume 9502))

Abstract

Traffic signals are essential to provide safe driving that allows all traffic flows to share road intersection. However, they decrease the traffic flow fluency because of the queuing delay at each road intersection. In order to improve the traffic efficiency all over the road network, Intelligent Traffic Light Scheduling (ITLS) algorithm has been proposed. In this work, we introduce an ITLS algorithm based on Genetic Algorithm (GA) merging with Machine Learning (ML) algorithm. This algorithm schedules the time phases of each traffic light according to each real-time traffic flow that intends to cross the road intersection, whilst considering next time phases of traffic flow at each intersection by ML. In order to get each next time phases of traffic flow, we use Linear Regression (LR) algorithm as ML algorithm. The introduced algorithm aims to increase traffic fluency by decreasing the total waiting delay of all traveling vehicles at each road intersection in the road network. We compare the performance of our algorithm with the unimproved one for different simulated data. Results shows that, our algorithm increases the traffic fluency and decreases the waiting delay by 21.5 % compared with the unimproved one.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

References

  1. Krajzewicz, D., Erdmann, J., Behrisch, M., et al.: Recent development and applications of SUMO–simulation of urban mobility. Int. J. Adv. Syst. Meas. 5(3,4), 128–138 (2012)

    Google Scholar 

  2. Maslekar, N., Boussedjra, M., Mouzna, J., et al.: VANET based adaptive traffic signal control. In: 2011 IEEE 73rd Vehicular Technology Conference (VTC Spring), IEEE, pp. 1–5 (2011)

    Google Scholar 

  3. Gradinescu, V., Gorgorin, C., Diaconescu, R., et al.: Adaptive traffic lights using car-to-car communication. In: IEEE 65th Vehicular Technology Conference, 2007 VTC2007-Spring IEEE, pp. 21–25 (2007)

    Google Scholar 

  4. Pandit, K., Ghosal, D., Zhang, H.M., et al.: Adaptive traffic signal control with vehicular ad hoc networks. IEEE T. Veh. Technol. 62(4), 1459–1471 (2013)

    Article  Google Scholar 

  5. Priemer, C., Friedrich, B.: A decentralized adaptive traffic signal control using V2I communication data. In: 12th International IEEE Conference on Intelligent Transportation Systems, ITSC 2009. IEEE, pp. 1–6 (2009)

    Google Scholar 

  6. Bani, Y.M., Boukerche, A.: An intelligent traffic light scheduling algorithm through VANETs. In: 2014 IEEE 39th Conference on Local Computer Networks Workshops (LCN Workshops), IEEE, pp. 637–642 (2014)

    Google Scholar 

  7. Behrisch, M., Bieker, L., Erdmann, J., et al.: SUMO– simulation of urban mobility: an overview. In: Simul the Third International Conference on Advances in System Simulation, pp. 63–68 (2011)

    Google Scholar 

  8. Krajzewicz, D., Brockfeld, E., Mikat, J., et al.: Simulation of modern traffic lights control systems using the open source traffic simulation SUMO. In: Proceedings of Industrial Simulation Conference (2005)

    Google Scholar 

  9. Gordon, R.L., Tighe, W.: Traffic control systems handbook Publication FHWA-HOP-06-006. In: Road Engineering Association of Asia & Australasia Conference Kuala Lumpur Malaysia, September 2005

    Google Scholar 

  10. Goldberg, D.E.: Genetic algorithms in search, optimization, and machine Learning. Addion wesley, Boston (1989)

    MATH  Google Scholar 

  11. Gen M, Cheng R. Genetic algorithms and engineering optimization. John Wiley & Sons, (2000) [20]

    Google Scholar 

  12. Eiben, A.E., Schippers, C.A.: On evolutionary exploration and exploitation. Fundam. Informaticae 35(1), 35–50 (1998)

    MATH  Google Scholar 

  13. Golberg, D.E.: Genetic algorithms in search, optimization, and machine learning. Addion wesley, Boston (1989)

    Google Scholar 

  14. Goldberg, D.E.: Real-coded genetic algorithms, virtual alphabets, and blocking. Urbana 51, 61801 (1990)

    Google Scholar 

  15. Holland, J.H.: Adaptation in natural and artificial systems: an introductory analysis with applications to biology, control, and artificial intelligence. In: Taniguchi, E., Thompson, R.G., Yamada, T. et al. U Michigan Press, 1975. City Logistics. Network modeling and intelligent transport systems (2001)

    Google Scholar 

  16. Carroll, D.L.: Genetic algorithms and optimizing chemical oxygen-iodine lasers. Dev. Theor. Appl. Mech. 18(3), 411–424 (1996)

    Google Scholar 

  17. Xu, Y.G., Li, G.R., Wu, Z.P.: A novel hybrid genetic algorithm using local optimizer based on heuristic pattern move. Appl. Artif. Intell. 15(7), 601–631 (2001)

    Article  Google Scholar 

  18. Chan, C.H.: Actuator Hysteresis Modelling and Compensation with an Adaptive Search Space Based Genetic Algorithm (2003)

    Google Scholar 

Download references

Acknowledgment

This work is supported by the national natural science foundation of China under grant (No.61370082, No.61173046, No.91318301)), natural science foundation of Guangdong province under grant (No.S2011010004905). This work is also supported by Shanghai Knowledge Service Platform Project (No.ZF1213) and NSFC Creative Team 61321064 and Shanghai Project 012FU125X15.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Biao Zhao .

Editor information

Editors and Affiliations

Appendix: ITLSGMLR Scenario

Appendix: ITLSGMLR Scenario

A Scene Simplification

In order to expedite scheduling algorithm modeling, we have to simplify the problem as follows:

  1. (1)

    Only red light and green light are taken into consideration, regardless of yellow illumination;

  2. (2)

    Driving directions have three conditions which are going straight, turning left or right, without turning around;

  3. (3)

    At each intersection, the probability of going straight, turning left or right respectively are α = 0.8, β = 0.1, γ = 0.1, where α + β + γ = 1;

  4. (4)

    On Traffic signal location network, we just care about 4-leg intersection or 3-leg intersection;

  5. (5)

    T is unit time and the initial time of red and green light is T;

  6. (6)

    Traffic light cycle time must be set in multiples of T;

  7. (7)

    At each light cycle scheduling, light must switch to another color without exceeding maximum allowable time (4T) for that phase;

  8. (8)

    The distance between any two traffic lights is equal, meanwhile, any vehicle just cost T time from one traffic light to another adjacent traffic light.

B Data structure schema

It illustrates the location of traffic light in the road network which can be expressed as table as above. All type of table field are Integer.

Table 4. Traffic_light_table

This table is a dynamic time dependent table. It was shown as above at the moment of tx. All type of table field are Integer. ‘1’ as green light on, ‘0’ as red light on, ‘-1’ as no light in this direction.

Table 5. Traffic_light_status_table(t x )
Table 6. Traffic_flow_table

It says traffic flow between two traffic signals during the period in the simulated scenario. The type of table field, TrafficLightID and FromID are Integer. trafficFlow’s type is Array (Table 7).

Table 7. Vehicle_through_rate_table

It illustrates how many number of vehicles can pass the green light during unit time T.

C Penalty

Penalty denotes total waiting unit time of all traveling vehicles at each road intersection in the road network.

At moment t0, from Fig. 9, we can get traffic_flow_table (tl4, tl1, t0) = 23. This variable states that 23 vehicles will arrive at tl4 from tl1 at moment t0. According to α = 0.8, β = 0.1, γ = 0.1(APPENDIX A.3), the number of cars going straightly, turning left and turning right are 18, 2 and 3 respectively. Then, the traffic_light_status_table(t0)(APPENDIX B.Table 8) presents that the straightLight of road tl1-tl4 is green, with the red leftLight and rightLight. Since straightThroughRate is 16, only 16 cars which go straightly can pass tl4, 2 cars stay. Cars turning left or turning right stay. At last,

Fig. 9.
figure 9

Part of road network

Table 8. Traffic_light_status_table(t0)
$$ {\text{Penalty }}\left( {{\text{tl}}_{ 4} ,{\text{ tl}}_{ 1} ,{\text{ t}}_{0} } \right) = 2 + 2 + 3 = 7 $$

Now, we get penalty of intersection tl4 at time t0. Using this method, we can get each road penalty at time t0. At moment t1, traffic_flow_table (tl4, tl1, t1) = 15. According to α = 0.8, β = 0.1, γ = 0.1(APPENDIX A.3), the number of cars going straightly, turning left and turning right are 12, 2 and 1 respectively. The traffic_light_status_table(t1)(APPENDIX B.Table 9) illustrates that the straightLight and rightLight color of road tl1-tl4 are green, while the leftLight is red. So the 12 going straight cars with 2 cars which was stayed during last unit time(t0), as well as the straightThroughRate is 16, 14 cars can all pass the intersection tl4 straightly. The number of turning left and turning right cars are both 4(already add the number of stayed cars during last unit time(t0)). While rightThroughRate is 2, so 2 turning right cars have to stay. And, the 4 turning left cars also have to stay because of the red leftLight. Eventually, the penalty at t1 of the road tl1-tl4 is:

Table 9. Traffic_light_status_table(t1)

Penalty (tl4, tl1, t1) = 2 + 4 = 6

The total penalty:

Penalty (tl4, tl1, t0 + t1) = 7 + 6 = 13

Now, we get penalty of road tl1-tl4 during t0 and t1.

The key point is: the less the penalty, the less the waiting delay.

Rights and permissions

Reprints and permissions

Copyright information

© 2015 Springer International Publishing Switzerland

About this paper

Cite this paper

Zhao, B., Zhang, C., Zhang, L. (2015). Real-Time Traffic Light Scheduling Algorithm Based on Genetic Algorithm and Machine Learning. In: Hsu, CH., Xia, F., Liu, X., Wang, S. (eds) Internet of Vehicles - Safe and Intelligent Mobility. IOV 2015. Lecture Notes in Computer Science(), vol 9502. Springer, Cham. https://doi.org/10.1007/978-3-319-27293-1_34

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-27293-1_34

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-27292-4

  • Online ISBN: 978-3-319-27293-1

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics