OriginalPaper | Open access | Published: August 31, 2026

Computer Vision Simulation for Traffic Violation Detection

Alex Wenda, Muchamad Sobri Sungkar
JINAV: Journal of Information and Visualization, Vol. 7 No. 2 (2026), pp. 270-279 https://doi.org/10.35877/454RI.jinav4887 Published: 2026-08-31
Get Permissions

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.

Keywords

References (23)

  1. 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
  2. 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
  3. 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
  4. 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
  5. 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
  6. 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.
  7. 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
  8. 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
  9. 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
  10. 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

How to Cite

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

Copyright & license

Copyright (c) 2026 Alex Wenda, Muchamad Sobri Sungkar