Research Article

Traffic light control with reinforcement learning

Taoyu Pan*
Hangzhou Foreign Language School,

* Corresponding author: [email protected]

Abstract

Urban traffic signal optimization is important for alleviating congestion in urban transportation systems. This study proposes a real-time traffic light control algorithm based on deep Q learning with a reward function that accounts for queue lengths, delays, travel times, and throughput. The model dynamically decides phase changes based on current traffic conditions. The training of the deep Q network involves an offline stage from pre-generated data with fixed signal timing and an online stage using real-time traffic data. A deep Q network structure with a“phase gate component is used to simplify the model's learning task under different phases. A“memory palace" mechanism is used to address sample imbalance during the training process. Both synthetic and real-world traffic flow data are used to validate our approach under an urban road intersection scenario in Hangzhou, China. Results demonstrate significant performance improvements of the proposed method in reducing vehicle waiting time (57.1% to 100%), queue lengths (40.9% to 100%), and total travel time (16.8% to 68.0%) compared to traditional fixed signal timing plans.

Keywords: Traffic Light Control; Reinforcement Learning; Deep Q Learning; Traffic Simulation
Published: February 26, 2024
DOI: 10.54254/2755-2721/43/20230804
Volume: ACE Vol.43
pp. 26-43
Download PDF

References

  1. Chinese Ministry of Public Security, “The number of motor vehicles in the country has reached 417 million, with more than 500 million drivers,” https://www.gov.cn/xinwen/2023-01/11/content 5736278.htm, 2023, accessed: 2023-08-13.
  2. A. J. Miller, “Settings for fixed-cycle traffic signals,” Journal of the Operational Research Society, vol. 14, no. 4, pp. 373–386, 1963.
  3. L. Li, Y. Lv, and F.-Y. Wang, “Traffic signal timing via deep reinforcement learning,” IEEE/CAA Journal of Automatica Sinica, vol. 3, no. 3, pp. 247–254, 2016.
  4. H. Wei, G. Zheng, H. Yao, and Z. Li, “Intellilight: A reinforcement learning approach for intelligent traffic light control,” in Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, 2018, pp. 2496–2505.
  5. F. Dion, H. Rakha, and Y.-S. Kang, “Comparison of delay estimates at under-saturated and over-saturated pre-timed signalized intersections,” Transportation Research Part B: Methodological, vol. 38, no. 2, pp. 99–122, 2004.
  6. F. V. Webster, “Traffic signal settings,” Tech. Rep., 1958.
  7. I. Porche and S. Lafortune, “Adaptive look-ahead optimization of traffic signals,” Journal of Intelligent Transportation System, vol. 4, no. 3-4, pp. 209–254, 1999.
  8. S.-B. Cools, C. Gershenson, and B. D’Hooghe, “Self-organizing traffic lights: A realistic simulation,” Advances in applied self-organizing systems, pp. 45–55, 2013.
  9. V. Mnih, K. Kavukcuoglu, D. Silver, A. A. Rusu, J. Veness, M. G. Bellemare, A. Graves, M. Riedmiller, A. K. Fidjeland, G. Ostrovski et al., “Human-level control through deep reinforcement learning,” Nature, vol. 518, no. 7540, pp. 529–533, 2015.
  10. A. Perera and P. Kamalaruban, “Applications of reinforcement learning in energy systems,” Renewable and Sustainable Energy Reviews, vol. 137, p. 110618, 2021.
  11. Q. Fu, Z. Han, J. Chen, Y. Lu, H. Wu, and Y. Wang, “Applications of reinforcement learning for building energy efficiency control: A review,” Journal of Building Engineering, vol. 50, p. 104165, 2022.
  12. H. A. Al-Rawi, M. A. Ng, and K.-L. A. Yau, “Application of reinforcement learning to routing in distributed wireless networks: a review,” Artificial Intelligence Review, vol. 43, pp. 381–416, 2015.
  13. B. Hambly, R. Xu, and H. Yang, “Recent advances in reinforcement learning in finance,” Mathematical Finance, vol. 33, no. 3, pp. 437–503, 2023.
  14. Y. Yan, A. H. Chow, C. P. Ho, Y.-H. Kuo, Q. Wu, and C. Ying, “Reinforcement learning for logistics and supply chain management: Methodologies, state of the art, and future opportunities,” Transportation Research Part E: Logistics and Transportation Review, vol. 162, p. 102712, 2022.
  15. A. Haydari and Y. Yılmaz, “Deep reinforcement learning for intelligent transportation systems: A survey,” IEEE Transactions on Intelligent Transportation Systems, vol. 23, no. 1, pp. 11–32, 2020.
  16. K. Arulkumaran, M. P. Deisenroth, M. Brundage, and A. A. Bharath, “Deep reinforcement learning: A brief survey,” IEEE Signal Processing Magazine, vol. 34, no. 6, pp. 26–38, 2017.
  17. L. Kuyer, S. Whiteson, B. Bakker, and N. Vlassis, “Multiagent reinforcement learning for urban traffic control using coordination graphs,” in Machine Learning and Knowledge Discovery in Databases: European Conference, ECML PKDD 2008, Antwerp, Belgium, September 15-19, 2008, Proceedings, Part I 19. Springer, 2008, pp. 656–671.
  18. P. Mannion, J. Duggan, and E. Howley, “An experimental review of reinforcement learning algorithms for adaptive traffic signal control,” Autonomic Road Transport Support Systems, pp. 47–66, 2016.
  19. M. A. Wiering et al., “Multi-agent reinforcement learning for traffic light control,” in Machine Learning: Proceedings of the Seventeenth International Conference (ICML’2000), 2000, pp. 1151–1158.
  20. B. Abdulhai, R. Pringle, and G. J. Karakoulas, “Reinforcement learning for true adaptive traffic signal control,” Journal of Transportation Engineering, vol. 129, no. 3, pp. 278–285, 2003.
  21. B. Bakker, S. Whiteson, L. Kester, and F. C. Groen, Traffic Light Control by Multiagent Reinforcement Learning Systems. Springer, 2010.
  22. M. Abdoos, N. Mozayani, and A. L. Bazzan, “Holonic multi-agent system for traffic signals control,” Engineering Applications of Artificial Intelligence, vol. 26, no. 5-6, pp. 1575–1587, 2013.
  23. S. El-Tantawy, B. Abdulhai, and H. Abdelgawad, “Multiagent reinforcement learning for integrated network of adaptive traffic signal controllers (marlin-atsc): Methodology and large-scale application on downtown Toronto,” IEEE Transactions on Intelligent Transportation Systems, vol. 14, no. 3, pp. 1140–1150, 2013.
  24. E. Van der Pol and F. A. Oliehoek, “Coordinated deep reinforcement learners for traffic light control,” Proceedings of Learning, Inference and Control of Multi-Agent Systems (at NIPS 2016), vol. 8, pp. 21–38, 2016.
  25. C. Szepesv´ari, “Algorithms for reinforcement learning,” Synthesis Lectures on Artificial Intelligence and Machine Learning, vol. 4, no. 1, pp. 1–103, 2010.
  26. R. S. Sutton and A. G. Barto, Reinforcement Learning: An Introduction. MIT Press, 2018.
  27. C. J. Watkins and P. Dayan, “Q-learning,” Machine Learning, vol. 8, pp. 279–292, 1992.
  28. B. Mo, H. N. Koutsopoulos, Z.-J. M. Shen, and J. Zhao, “Individual path recommendation under public transit service disruptions considering behavior uncertainty,” arXiv preprint arXiv:2301.00916, 2023.
  29. ——, “Robust path recommendations during public transit disruptions under demand uncertainty,” Transportation Research Part B: Methodological, vol. 169, pp. 82–107, 2023.
  30. B. Mo, Z. Ma, H. N. Koutsopoulos, and J. Zhao, “Ex post path choice estimation for urban rail systems using smart card data: An aggregated time-space hypernetwork approach,” Transportation Science, vol. 57, no. 2, pp. 313–335, 2023.
  31. J. Gao, Y. Shen, J. Liu, M. Ito, and N. Shiratori, “Adaptive traffic signal control: Deep reinforcement learning algorithm with experience replay and target network,” arXiv preprint arXiv:1705.02755, 2017.
  32. W. Genders and S. Razavi, “Using a deep reinforcement learning agent for traffic signal control,” arXiv preprint arXiv:1611.01142, 2016.
  33. P. A. Lopez, M. Behrisch, L. Bieker-Walz, J. Erdmann, Y.-P. Fl¨otter¨od, R. Hilbrich, L. L¨ucken, J. Rummel, P. Wagner, and E. Wießner, “Microscopic traffic simulation using sumo,” in The 21st IEEE International Conference on Intelligent Transportation Systems. IEEE, 2018.
  34. Z. Li, H. Wei, G. Zheng, C. Chen, X. Zang, Y. Xiong, N. Xu, and H. Zhang, “Reinforcement learning for traffic signal control,” https://traffic-signal-control.github.io/, 2018, accessed: 2023-09-4.
  35. G. Zheng, Y. Xiong, X. Zang, J. Feng, H. Wei, H. Zhang, Y. Li, K. Xu, and Z. Li, “Learning phase competition for traffic signal control,” in Proceedings of the 28th ACM International Conference on Information and Knowledge Management, 2019, pp. 1963–1972.
  36. H. Wei, N. Xu, H. Zhang, G. Zheng, X. Zang, C. Chen, W. Zhang, Y. Zhu, K. Xu, and Z. Li, “Colight: Learning network-level cooperation for traffic signal control,” in Proceedings of the 28th ACM International Conference on Information and Knowledge Management, 2019, pp. 1913–1922.
  37. H. Wei, G. Zheng, V. Gayah, and Z. Li, “A survey on traffic signal control methods,” arXiv preprint arXiv:1904.08117, 2019.
  38. Federal Highway Administration Department of Transportation, “Signal timing on a shoestring,” https://ops.fhwa.dot.gov/publications/signal timing/03.htm, 2022, accessed: 2023-05-20.
  39. C. Osorio and K. Nanduri, “Urban transportation emissions mitigation: Coupling high-resolution vehicular emissions and traffic models for traffic signal optimization,” Transportation Research Part B: Methodological, vol. 81, pp. 520–538, 2015.
  40. B. Mo, Z. Ma, H. N. Koutsopoulos, and J. Zhao, “Calibrating path choices and train capacities for urban rail transit simulation models using smart card and train movement data,” Journal of Advanced Transportation, vol. 2021, pp. 1–15, 2021.
  41. ——, “Capacity-constrained network performance model for urban rail systems,” Transportation Research Record, vol. 2674, no. 5, pp. 59–69, 2020.