Skip to main content
Log in

Smart traffic control: machine learning for dynamic road traffic management in urban environments

  • Published:
Multimedia Tools and Applications Aims and scope Submit manuscript

Abstract

Roadside and outside environmental elements contribute to the road traffic setting's highly dynamic and turbulent nature. The human factor, primarily disregarded in the present research, is an essential element that contributes to the traffic context in addition to infrastructure-related elements like traffic signals, road infrastructure, and other road networks. Timing the green light and tracing the object that makes the incorrect turn using real-time visual information for traffic monitoring are still challenging tasks for the conventional traffic control system. We describe a self-adaptive real-time algorithm based on real-time traffic flow and monitoring. Combining image processing with AI-powered, self-adaptive machine learning for controlling traffic clearance at intersections is a forward-thinking approach with great potential. The suggested system uses the You Only Look Once v3 (YOLOv3) model and single image processing using a neural network to determine traffic clearance at the signal. YOLOv3 method to recognize objects from video frames. Subsequently, the centroid object tracking technique is used to monitor the movement of each vehicle within a proposed framework. We implemented algorithms to identify vehicles traveling in the incorrect direction based on their trajectories. This integrated approach enhances accurate object recognition, real-time vehicle tracking, and the detection of traffic violations, enhancing overall road safety measures. The experimental findings are quite promising, achieving an exclusive comparison between expected and actual vehicle numbers is crucial for any traffic monitoring system. The average object detection accuracy of 88.43% is impressive, and the exceptional 90.45% accuracy in tracking vehicles engaging in wrong turns or reckless driving behaviors is particularly noteworthy—it provides the system's ability to address safety concerns effectively. Integrating a Convolutional Neural Network (CNN) into the algorithm to alleviate traffic congestion at intersections is a smart move. CNNs are known for their effectiveness in image processing tasks, making them well-suited for tasks like object detection and tracking in complex environments like intersections.

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

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11
Fig. 12
Fig. 13
Fig. 14
Fig. 15

Similar content being viewed by others

Data availability

The datasets analyzed during the current study are available from https://github.com/hkphd20/Traffic-Data-Set.

References

  1. Humayun M, Afsar S et al (2022) Smart traffic management system for metropolitan cities of kingdom using cutting edge technologies. J Adv Transp 2022:1–13. https://doi.org/10.1155/2022/4687319

    Article  Google Scholar 

  2. Khan H, Kushwah K, Maurya MR, Singh S et al (2022) Machine learning driven intelligent and self adaptive system for traffic management in smart cities. Computing 104(5):1203–1217. https://doi.org/10.1007/s00607-021-01038-1

    Article  Google Scholar 

  3. Redmon J and Farhadi A (2018) YOLOv3: An incremental improvement. Comput Sci arXiv:1804.02767. http://arxiv.org/abs/1804.02767

  4. Rath M (2018) Smart traffic management system for traffic control using automated mechanical and electronic devices. IOP Conf Ser: Mater Sci Eng 377:012201. https://doi.org/10.1088/1757-899x/377/1/012201

    Article  Google Scholar 

  5. De Souza AM, Brennand CA, Yokoyama RS et al (2017) Traffic management systems: a classification, review, challenges, and future perspectives. Int J Distrib Sens Netw 13(4):155014771668361. https://doi.org/10.1177/1550147716683612

    Article  Google Scholar 

  6. Komsiyah S, Desvania E (2021) Traffic lights analysis and simulation using fuzzy inference system of mamdani on three-signaled intersections. Procedia Comput Sci 179:268–280. https://doi.org/10.1016/j.procs.2021.01.006

    Article  Google Scholar 

  7. Toh CK, Sanguesa JA, Cano JC, Martinez FJ (2020) Advances in smart roads for future smart cities. Proc Royal Soc A: Math Phys Eng Sci 476(2233):20190439. https://doi.org/10.1098/rspa.2019.0439

    Article  Google Scholar 

  8. Allstrom A, Barcelo J et al (2016) Traffic management for smart cities. Designing, Developing, and Facilitating Smart Cities 211–240. https://doi.org/10.1007/978-3-319-44924-1_11

  9. Asha CS, Narasimhadhan AV (2018) Vehicle counting for traffic management system using yolo and correlation filter. In: 2018 IEEE International conference on electronics, computing and communication technologies (CONECCT). https://doi.org/10.1109/conecct.2018.8482380

  10. Alpatov BA, Babayan PV, Ershov MD (2018) Vehicle detection and counting system for real-time traffic surveillance. In: 2018 7th Mediterranean conference on embedded computing (MECO). https://doi.org/10.1109/meco.2018.8406017

  11. Basil E, Sawant S (2017) IoT based traffic light control system using Raspberry Pi. In; 2017 International conference on energy, communication, data analytics and soft computing (ICECDS). https://doi.org/10.1109/icecds.2017.8389604

  12. Corovic A, Ilic V, Duric S et al (2018) The real-time detection of traffic participants using YOLO algorithm. In: 2018 26th Telecommunications forum (TELFOR). https://doi.org/10.1109/telfor.2018.8611986

  13. Pop MD (2018) Traffic lights management using optimization tool. Procedia Soc Behav Sci 238:323–330. https://doi.org/10.1016/j.sbspro.2018.04.008

    Article  Google Scholar 

  14. Genders W, Razavi S (2018) Evaluating reinforcement learning state representations for adaptive traffic signal control. Procedia Comput Sci 130:26–33. https://doi.org/10.1016/j.procs.2018.04.008

    Article  Google Scholar 

  15. Thunig T, Scheffler R, Strehler M, Nagel K (2019) Optimization and simulation of fixed-time traffic signal control in real-world applications. Procedia Comput Sci 151:826–833. https://doi.org/10.1016/j.procs.2019.04.113

    Article  Google Scholar 

  16. Ma Z, Cui T, Deng W, Jiang F, Zhang L (2021) Adaptive optimization of traffic signal timing via deep reinforcement learning. J Adv Transp 2021:1–14. https://doi.org/10.1155/2021/6616702

    Article  Google Scholar 

  17. Bosse S (2020) Self-adaptive traffic and logistics flow control using learning agents and ubiquitous sensors. Procedia Manuf 52:67–72. https://doi.org/10.1016/j.promfg.2020.11.013

    Article  Google Scholar 

  18. Malecki K, Iwan S (2019) Modeling traffic flow on two-lane roads with traffic lights and countdown timer. Trans Res Procedia 39:300–308. https://doi.org/10.1016/j.trpro.2019.06.032

    Article  Google Scholar 

  19. Bandaragoda T, Adikari A et al (2020) Artificial intelligence based commuter behaviour profiling framework using Internet of things for real-time decision-making. Neural Comput Appl 32(20):16057–16071. https://doi.org/10.1007/s00521-020-04736-7

    Article  Google Scholar 

  20. Garcia-Nieto J, Alba E, Carolina OA (2012) Swarm intelligence for traffic light scheduling: Application to real urban areas. Eng Appl Artif Intell 25(2):274–283. https://doi.org/10.1016/j.engappai.2011.04.011

    Article  Google Scholar 

  21. Jia H, Lin Y, Luo Q, Li Y, Miao H (2019) Multi-objective optimization of urban road intersection signal timing based on particle swarm optimization algorithm. Adv Mech Eng 11(4):168781401984249. https://doi.org/10.1177/1687814019842498

    Article  Google Scholar 

  22. Li D, Wu J, Xu M, Wang Z, Hu K (2020) Adaptive traffic signal control model on intersections based on deep reinforcement learning. J Adv Transp 2020:1–14. https://doi.org/10.1155/2020/6505893

    Article  Google Scholar 

  23. Wang Y, Yang X, Liang H, Liu Y (2018) A review of the self-adaptive traffic signal control system based on future traffic environment. J Adv Transp 2018:1–12. https://doi.org/10.1155/2018/1096123

    Article  Google Scholar 

  24. Sangeetha SKB, Kushwah VS, Sumangali K, Sangeetha R, Raja KT, Mathivanan SK (2023) Effect of urbanization through land coverage classification. Radio Sci 58(11). https://doi.org/10.1029/2023rs007816

  25. Hilmani A, Maizate A, Hassouni L (2020) Automated real-time intelligent traffic control system for smart cities using wireless sensor networks. Wirel Commun Mob Comput 2020:1–28. https://doi.org/10.1155/2020/8841893

    Article  Google Scholar 

  26. De Beer D, Matthee M (2020) Approaches to identify fake news: a systematic literature review. Integr Sci Digit Age 2020:13–22. https://doi.org/10.1007/978-3-030-49264-9_2

    Article  Google Scholar 

  27. Wu Z, Li H, Wang X et al (2022) New benchmark for household garbage image recognition. Tsinghua Sci Technol 27(5):793–803. https://doi.org/10.26599/tst.2021.9010072

    Article  Google Scholar 

  28. Zheng Y, Ge J (2021) Binocular intelligent following robot based on YOLO-LITE. MATEC Web Conf 336:03002. https://doi.org/10.1051/matecconf/202133603002

    Article  Google Scholar 

  29. Husein AM, Noflianhar LK et al (2024) Computer vision-based intelligent traffic surveillance: multi-vehicle tracking and detection. Sinkron 9(1):384–391. https://doi.org/10.33395/sinkron.v9i1.13204

    Article  Google Scholar 

  30. Zhang X, Qiu Z et al (2018) Application research of Yolo v2 combined with color identification. In: 2018 International conference on cyber-enabled distributed computing and knowledge discovery (CyberC). https://doi.org/10.1109/cyberc.2018.00036

  31. Gubbi J, Varghese A, Balamuralidhar P (2017) A new deep learning architecture for detection of long linear infrastructure. In: 2017 Fifteenth IAPR international conference on machine vision applications (MVA). https://doi.org/10.23919/mva.2017.7986837

  32. Chen S, Lin W (2019) Embedded system real-time vehicle detection based on improved Yolo network. In: 2019 IEEE 3rd advanced information management, communicates, electronic and automation control conference (IMCEC). https://doi.org/10.1109/imcec46724.2019.8984055

  33. Li J, Gu J, Huang Z, Wen J (2019) Application research of improved YOLOv3 algorithm in PCB electronic component detection. Appl Sci 9(18):3750. https://doi.org/10.3390/app9183750

    Article  Google Scholar 

  34. Yue T, Yang Y, Niu JM (2021) A light-weight ship detection and recognition method based on YOLOv4. In: 2021 4th International conference on advanced electronic materials, computers and software engineering (AEMCSE). https://doi.org/10.1109/aemcse51986.2021.00137

  35. Cheng Z, Zhang F (2020) Flower end-to-end detection based on YOLOv4 using a mobile device. Wirel Commun Mob Comput 2020:1–9. https://doi.org/10.1155/2020/8870649

    Article  Google Scholar 

  36. Kasper-Eulaers M, Hahn N et al (2021) Short communication: Detecting heavy goods vehicles in rest areas in winter conditions using YOLOv5. Algorithms 14(4):114. https://doi.org/10.3390/a14040114

    Article  Google Scholar 

  37. Kumar VS, Jaganathan M, Viswanathan A et al (2023) Rice leaf disease detection based on bidirectional feature attention pyramid network with YOLOv5 model. Environ Res Commun 5(6):065014. https://doi.org/10.1088/2515-7620/acdece

    Article  Google Scholar 

  38. Dai M, Sun W et al (2023) Pepper leaf disease recognition based on enhanced lightweight convolutional neural networks. Front Plant Sci14. https://doi.org/10.3389/fpls.2023.1230886

  39. Liang Z, Xiao G et al (2023) Motion track: Rethinking the motion cue for multiple objects tracking in USV videos. Vis Comput 40(4):2761–2773. https://doi.org/10.1007/s00371-023-02983-y

    Article  Google Scholar 

  40. Lin B (2024) Safety helmet detection based on improved YOLOv8. IEEE Access 12:28260–28272. https://doi.org/10.1109/access.2024.3368161

    Article  Google Scholar 

  41. Shi J, Bai Y et al (2023) Multi-crop navigation line extraction based on improved YOLOv8 and Threshold-DBSCAN under complex agricultural environments. Agriculture 14(1):45. https://doi.org/10.3390/agriculture14010045

    Article  Google Scholar 

  42. Ju RY, Cai W (2023) Fracture detection in pediatric wrist trauma X-ray images using YOLOv8 algorithm. Sci Reports 13(1). https://doi.org/10.1038/s41598-023-47460-7

  43. Elsagheer Mohamed SA, AlShalfan KA (2021) Intelligent traffic management system based on the internet of vehicles (IoV). J Adv Transp 2021:1–23. https://doi.org/10.1155/2021/4037533

    Article  Google Scholar 

  44. Martinez-Alpiste I, Golcarenarenji G et al (2021) A dynamic discarding technique to increase speed and preserve accuracy for YOLOv3. Neural Comput Appl 33(16):9961–9973. https://doi.org/10.1007/s00521-021-05764-7

    Article  Google Scholar 

  45. Qadri SSSM, Gokce MA, Oner E (2020) State-of-art review of traffic signal control methods: challenges and opportunities. European Trans Res Rev 12(1). https://doi.org/10.1186/s12544-020-00439-1

  46. Liu X, Wang H, Dong C (2021) An improved method of nonmotorized traffic tracking and classification to acquire traffic parameters at intersections. Int J Intell Transp Syst Res 19(2):312–323. https://doi.org/10.1007/s13177-020-00247-w

    Article  Google Scholar 

  47. Wang Z, Cui J, Zha H, Kagesawa M et al (2014) Foreground object detection by motion-based grouping of object parts. Int J Intell Transp Syst Res 12(2):70–82. https://doi.org/10.1007/s13177-013-0074-8

    Article  Google Scholar 

  48. Saleem M, Abbas S et al (2022) Smart cities: Fusion-based intelligent traffic congestion control system for vehicular networks using machine learning techniques. Egyptian Inform J 23(3):417–426. https://doi.org/10.1016/j.eij.2022.03.003

    Article  Google Scholar 

Download references

Acknowledgements

The authors gratefully acknowledge the official Incubation Center Smart City of the State Government of Madhya Pradesh, India, a public research and development organization, for providing the dataset in this study.

Funding

No funding was received for this work.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Hameed Khan.

Ethics declarations

Conflict of interest

The authors have no competing interests to declare that are relevant to the content of this article.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Khan, H., Thakur, J.S. Smart traffic control: machine learning for dynamic road traffic management in urban environments. Multimed Tools Appl (2024). https://doi.org/10.1007/s11042-024-19331-4

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1007/s11042-024-19331-4

Keywords

Navigation