Computer Vision Simulation for Traffic Violation Detection

Authors

  • Alex Wenda Universitas Islam Negeri Sultan Syarif Kasim Riau
  • Muchamad Sobri Sungkar Universitas Harkat Negeri

DOI:

https://doi.org/10.35877/454RI.jinav4887

Keywords:

Computer Vision, Traffic Violation Detection, Red-Light Running, Object Detection, Intelligent Transportation Systems

Abstract

Traffic safety remains a critical concern in modern urban mobility, and the violation of red traffic signals is among the most dangerous and frequent forms of non-compliance, contributing substantially to intersection collisions, injuries, and fatalities. Conventional monitoring, which relies on human officers and fixed cameras reviewed manually, is labour-intensive, error-prone, and unable to provide continuous, scalable coverage across the many intersections of a growing city. This study proposes and demonstrates a computer-vision framework for the automatic detection of red-light running, formalised through the logical rule Violation = RedLight ? VehicleCrossesStopLine. The system integrates traffic-light state recognition, vehicle detection through bounding boxes, and stop-line region-of-interest analysis within a sequential processing pipeline comprising frame extraction, preprocessing, detection, and decision modules. A browser-based prototype built with HTML5 Canvas and JavaScript was developed to embody the complete detection logic, enabling red, yellow, and green signal states, a defined stop-line region, and moving vehicles to be evaluated in real time. The system was assessed on 200 simulated events spanning four representative scenarios using accuracy, precision, recall, and F1-score. Experimental results yielded an accuracy of 94.5%, precision of 95.2%, recall of 93.1%, and an F1-score of 94.1%, confirming reliable discrimination between violating and compliant vehicles. The principal contribution is a lightweight, transparent, and extensible detection scheme that provides a foundation for intelligent transportation systems, supporting future integration with CCTV networks, YOLOv8 detectors, web dashboards, and electronic ticketing.

References

Ahmed, S. K., Mohammed, M. G., Abdulqadir, S. O., El?Kader, R. G. A., El?Shall, N. A., Chandran, D., Rehman, M. E. U., & Dhama, K. (2023). Road traffic accidental injuries and deaths: A neglected global health issue. Health Science Reports, 6(5). https://doi.org/10.1002/hsr2.1240

Arief, L., Tantowi, A. Z., Novani, N. P., & Sundara, T. A. (2020). Implementation of YOLO and smoke sensor for automating public service announcement of cigarette’s hazard in public facilities. 2020 International Conference on Information Technology Systems and Innovation, ICITSI 2020 - Proceedings, 101–107. https://doi.org/10.1109/ICITSI50517.2020.9264972

Balderas, L., Lastra, M., & Benítez, J. M. (2024). Optimizing Convolutional Neural Network Architectures. Mathematics, 12(19), 1–25. https://doi.org/10.3390/math12193032

Bataineh, A. M. (2025). Monocular 3D Human Pose Estimation for REBA Ergonomics?: A Critical Review of Recent Advances. Computers, Materials and Continua, 84(1), 93–124. https://doi.org/https://doi.org/10.32604/cmc.2025.064250

Cohn, E. G., Kakar, S., Perkins, C., Steinbach, R., & Edwards, P. (2020). Red light camera interventions for reducing traffic violations and traffic crashes: A systematic review. Campbell Systematic Reviews, 16(2). https://doi.org/10.1002/cl2.1091

Dewa, A. L. (2023). Empirical Analysis of Street Safety: Driver Behavior and Traffic Characteristics on Traffic Accidents in Semarang. Research Horizon, 3(5), 499–508.

Fan, Z., & Loo, B. P. Y. (2025). Urban visual clusters and road transport fatalities: A global city-level image analysis. Communications in Transportation Research, 5, 100193. https://doi.org/10.1016/j.commtr.2025.100193

Gao, J., French, A., Pound, M., He, Y., Pridmore, T., & Pieters, J. (2020). Deep convolutional neural networks for image-based Convolvulus sepium detection in sugar beet fields. Plant Methods, 16. https://doi.org/10.1186/s13007-020-00570-z

Gengeç, N., Eker, O., Çevi?Kalp, H., Yazici, A., & Yavuz, H. S. (2021). Visual object detection for autonomous transport vehicles in smart factories. Turkish Journal of Electrical Engineering and Computer Sciences, 29(4), 2101–2115. https://doi.org/10.3906/ELK-2008-62

Hasibuan, N. N., Zarlis, M., & Efendi, S. (2021). Detection and Tracking Different Type of Cars With YOLO model combination and deep sort algorithm based on computer vision of traffic controlling. Sinkron, 5(2B), 210–221. https://doi.org/10.33395/sinkron.v6i1.11231

Jeon, Y.-D., Kang, M.-J., Kuh, S.-U., Cha, H.-Y., Kim, M.-S., You, J.-Y., Kim, H.-J., Shin, S.-H., Chung, Y.-G., & Yoon, D.-K. (2024). Deep Learning Model Based on You Only Look Once Algorithm for Detection and Visualization of Fracture Areas in Three-Dimensional Skeletal Images. Diagnostics, 14(1). https://doi.org/10.3390/diagnostics14010011

Khalid, M., Sarfraz, M. S., Iqbal, U., Aftab, M. U., Niedba?a, G., & Rauf, H. T. (2023). Real-Time Plant Health Detection Using Deep Convolutional Neural Networks. Agriculture, 13(2), 510. https://doi.org/10.3390/agriculture13020510

Khanam, R., & Hussain, M. (2024). YOLOv11: An Overview of the Key Architectural Enhancements. 2024, 1–9.

Komol, M. M. R., Elhenawy, M., Pinnow, J., Masoud, M., Rakotonirainy, A., Glaser, S., Wood, M., & Alderson, D. (2024). Prediction of Drivers’ Red-Light Running Behaviour in Connected Vehicle Environments Using Deep Recurrent Neural Networks. Machine Learning and Knowledge Extraction, 6(4), 2855–2875. https://doi.org/10.3390/make6040136

Li, P., Wang, H., Li, Y., & Liu, M. (2020). Analysis of face detection based on skin color characteristic and AdaBoost algorithm. Journal of Physics: Conference Series, 1601(5). https://doi.org/10.1088/1742-6596/1601/5/052019

Ng, S. C., & Kwok, C. P. (2020). An intelligent traffic light system using object detection and evolutionary algorithm for alleviating traffic congestion in hong kong. International Journal of Computational Intelligence Systems, 13(1), 802–809. https://doi.org/10.2991/ijcis.d.200522.001

Patil, S. S., Patil, S. H., Pawar, A. M., Bewoor, M. S., Kadam, A. K., Patkar, U. C., Wadare, K., & Sharma, S. (2023). Vehicle Number Plate Detection using YoloV8 and EasyOCR. 2023 14th International Conference on Computing Communication and Networking Technologies, ICCCNT 2023, 1–4. https://doi.org/10.1109/ICCCNT56998.2023.10307420

Putra, R. G., Pribadi, W., Yuwono, I., Sudirman, D. E. J., & Winarno, B. (2021). Adaptive Traffic Light Controller Based on Congestion Detection Using Computer Vision. Journal of Physics: Conference Series, 1845(1). https://doi.org/10.1088/1742-6596/1845/1/012047

Rashid, A. Bin, & Kausik, M. D. A. K. (2024). AI revolutionizing industries worldwide: A comprehensive overview of its diverse applications. Hybrid Advances, 7, 100277. https://doi.org/https://doi.org/10.1016/j.hybadv.2024.100277

Shen, Y., Hua, J., Jin, C., & Huang, D. (2019). TCL: Tensor-CNN-LSTM for Travel Time Prediction with Sparse Trajectory Data. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics): 11448 LNCS. https://doi.org/10.1007/978-3-030-18590-9_39

Thumthong, W., & Meesad, P. (2024). Automatic Vehicle License Plate Detection from Security Cameras using Deep Learning Techniques. 2024 Research, Invention, and Innovation Congress: Innovative Electricals and Electronics (RI2C), 224–230. https://doi.org/10.1109/RI2C64012.2024.10784452

Vo, T., Nguyen, T., & Le, C. T. (2018). Race Recognition Using Deep Convolutional Neural Networks. Symmetry 2018, Vol. 10, Page 564, 10(11), 564. https://doi.org/10.3390/SYM10110564

Zhang, W., Gao, X. zhong, Yang, C. fu, Jiang, F., & Chen, Z. yuan. (2022). A object detection and tracking method for security in intelligence of unmanned surface vehicles. Journal of Ambient Intelligence and Humanized Computing, 13(3), 1279–1291. https://doi.org/10.1007/s12652-020-02573-z

Published

2026-07-03

How to Cite

Wenda, A., & Sungkar, M. S. (2026). Computer Vision Simulation for Traffic Violation Detection. JINAV: Journal of Information and Visualization, 7(2). https://doi.org/10.35877/454RI.jinav4887

Issue

Section

Articles