DeepTrafic: Implementing Deep Learning for Emergency Vehicle Detection and Traffic Light Timing Optimization

Authors

  • Iven Aurananta Damaivila Universitas Islam Sultan Agung Semarang Author
  • Ayu Putri Asih Universitas Islam Sultan Agung Semarang Author
  • Muhammad Rizal Jurdan Universitas Islam Sultan Agung Semarang Author

Keywords:

Adaptive Traffic Control, Deep Learning, Emergency Vehicle Detection, Intelligent Transportation System, YOLO.

Abstract

Traffic congestion at urban intersections can significantly reduce transportation efficiency and obstruct emergency vehicles that require rapid access to critical locations. This study proposes DeepTraffic, an integrated deep-learning-based traffic-control system designed to detect vehicles, classify traffic density, identify emergency vehicles, and optimize traffic-light timing in real time. An empirical experimental system-development approach was employed by integrating Camera/CCTV, an emergency sensor, YOLO-based vehicle detection, vehicle classification and counting, traffic-density estimation, an emergency-priority decision algorithm, and a Raspberry Pi controller connected to traffic-light hardware. Traffic conditions were classified into five categories based on detected vehicle density, namely empty, normal, busy, congested, and highly congested, with adaptive green-light durations assigned according to the corresponding traffic state. Emergency vehicles, including ambulances, fire engines, and police vehicles, were assigned priority conditions that activate the corresponding green phase to facilitate rapid intersection passage. System evaluation was designed to assess vehicle-detection performance using precision, recall, F1-score, mAP@0.5, and frames per second, while traffic-density classification and signal-control performance were evaluated through classification accuracy and signal-duration execution. Emergency-priority performance was assessed through activation rate, response time, waiting-time reduction, and queue-length reduction. The proposed framework integrates real-time computer vision with adaptive signal control and emergency prioritization, providing a reproducible foundation for intelligent traffic management and future smart-city transportation applications.

 

Downloads

Download data is not yet available.

References

Aditya, N. D., Pratama, R., Piransyah, M. R., & Juita, N. (2025). Revolutionizing Traffic Light Systems: AI Implementation For Efficiency And Safety. Innovative: Journal Of Social Science Research, 5(2), 3828-3835. https://doi.org/10.31004/innovative.v5i2.18312

Alzubaidi, L., Zhang, J., Humaidi, A. J., Al-Dujaili, A., Duan, Y., Al-Shamma, O., ... & Farhan, L. (2021). Review of deep learning: concepts, CNN architectures, challenges, applications, future directions. Journal of big Data, 8(1), 53. https://doi.org/10.1186/s40537-021-00444-8

Chirra, V. R. R., Uyyala, S. R., & Kolli, V. K. K. (2019). Deep CNN: A Machine Learning Approach for Driver Drowsiness Detection Based on Eye State. Rev. d'Intelligence Artif., 33(6), 461-466. https://doi.org/10.18280/ria.330609

Diamant, A., Chatterjee, A., Vallières, M., Shenouda, G., & Seuntjens, J. (2019). Deep Learning in Head & Neck Cancer Outcome Prediction. Scientific reports, 9(1), 2764. https://doi.org/10.1038/s41598-019-39206-1

Fatimah, S., Syakdiah, S., & Kusumawiranti, R. (2022). Kebijakan Pemerintah dalam Mengatasi Kemacetan di Kota Yogyakarta (Studi Penelitian di Jalan Malioboro di JalanTentara Pelajar). POPULIKA, 10(1), 24–41. https://doi.org/10.37631/populika.v10i1.473

Firdaus, A. R., & Sunge, A. S. (2026). Perancangan Sistem Pengaturan Lampu Lalu Lintas Adaptif Berbasis YOLOv26 dan Algoritma SORT dengan Monitoring Real-Time. Jurnal RESTIKOM: Riset Teknik Informatika dan Komputer, 8(1), 561-574. https://doi.org/10.52005/cwj5dy42

Garg, L., Madaan, H., Makkar, V., Bajaj, R., Trivedi, A. K., & Mehta, R. (2026). Deep Reinforcement Learning based approach to Traffic Management. Procedia Computer Science, 283, 1462-1471. https://doi.org/10.1016/j.procs.2026.06.223

Ibraheem, A., Asiri, A., Asiri, B., & Alhefzi, H. (2025). Intelligent Traffic Light Control System for Emergency Vehicles Using Deep Learning and Signal Synchronization. IEEE Access, 13, 211832-211844. https://doi.org/10.1109/ACCESS.2025.3644805

Kaladevi, P., Balamurugan, M., Gokul, D., & Gopika, S. (2025, April). Real-time traffic monitoring and ambulance prioritization using yolov9 and deep learning. In 2025 3rd International Conference on Communication, Security, and Artificial Intelligence (ICCSAI) (Vol. 3, pp. 2172-2177). IEEE. https://doi.org/10.1109/ICCSAI64074.2025.11063915

Khasawneh, M. A., & Awasthi, A. (2023). Intelligent Meta-Heuristic-Based Optimization of Traffic Light Timing Using Artificial Intelligence Techniques. Electronics, 12(24), 4968. https://doi.org/10.3390/electronics12244968

Kesuma, D. T. H., Kusumawardani, M., & Imammuddin, A. M. (2025). Prototype Traffic Light Control System Based on Ambulance Objects Using YOLO Method. JURNAL JARTEL: Jurnal Jaringan Telekomunikasi, 15(2), 158-168. https://doi.org/10.33795/jartel.v15i2.6184

Kurniati, A. (2021). Kemacetan Lalu Lintas di Kawasan Tlogosari Semarang. Pondasi, 26(2), 101-109. https://dx.doi.org/10.30659/pondasi.v26i2.18934

Li, X., Li, Z., & Wang, Y. (2026). Intelligent traffic management with Mamba-ATSP: Optimizing signal control and path planning using multi-modal data fusion. Alexandria Engineering Journal, 137, 414-423. https://doi.org/10.1016/j.aej.2026.01.010

Maliha, A. T. N., Prasetyo, Y., & Firdaus, H. S. (2023). Pemetaan Kemacetan Lalu Lintas di Universitas Diponegoro (Studi Kasus: Kecamatan Tembalang dan Kecamatan Banyumanik, Kota Semarang. Jurnal Geodesi Undip, 12(4), 351-360. https://doi.org/10.14710/jgundip.2023.39381

Ottom, M. A., & Al-Omari, A. (2023). An Adaptive Traffic Lights System Using Machine Learning. Int. Arab J. Inf. Technol., 20(3), 407-418. https://doi.org/10.34028/iajit/20/3/13

Puspita, K., Septiyani, S., & Satria, I. G. S. (2020). Efektivitas tim escort sebagai pembuka jalan ambulans di Indonesia. Jurnal Hukum Bisnis Bonum Commune, 189-200. https://doi.org/10.30996/jhbbc.v3i2.3576

Ravi Chandra, B., Krishna Chaithanya, J., Roy, A., & Lokanath Reddy, C. (2025). Smart city: challenges and opportunities detection and identification of autonomous vehicles using sensor synthesis. Explainable IoT Applications: A Demystification, 143-158. https://doi.org/10.1007/978-3-031-74885-1_9

Rosyady, P. A., Feter, M. R., Ikhsan, M., & Ahmad, Z. (2022). Prototipe Sistem Deteksi Kemacetan Jalan Raya Berbasis Internet Of Things (IoT). Aviation Electronics, Information Technology, Telecommunications, Electricals, Controls, 4(2), 197-210. https://doi.org/10.28989/avitec.v4i2.1270

Sahal, M., Hidayat, Z., Bilfaqih, Y., Hady, M. A., & Tampubolon, Y. M. H. (2023). Smart traffic light using YOLO based camera with deep reinforcement learning algorithm. JAREE (Journal on Advanced Research in Electrical Engineering), 7(1). https://doi.org/10.12962/jaree.v7i1.335

Sohan, M., Sai Ram, T., & Rami Reddy, C. V. (2024). A review on yolov8 and its advancements. In International conference on data intelligence and cognitive informatics (pp. 529-545). Springer, Singapore. https://doi.org/10.1007/978-981-99-7962-2_39

Wahidin, F. R., Witanti, W., & Ramadhan, E. (2025). Pengontrolan Lampu Lalu Lintas Menggunakan Teknologi Deteksi Kendaraan YOLOV4. Jurnal Teknologi Informasi dan Ilmu Komputer, 12(5), 975-984. https://doi.org/10.25126/jtiik.2025125

Downloads

Published

2026-08-24

How to Cite

DeepTrafic: Implementing Deep Learning for Emergency Vehicle Detection and Traffic Light Timing Optimization. (2026). Technema: Journal of Intelligent Engineering and Computing, 1(3), 14-28. https://sovereignresearch.org/technema/article/view/276