Wrong-Way Driving Detection for Enhanced Road Safety using Computer Vision and Machine Learning Techniques

Ryan Mo Xian Wee (1), Tee Connie (2), Michael Kah Ong Goh (3)
(1) Faculty of Information Science and Technology, Multimedia University, Jalan Ayer Keroh Lama, Melaka, Malaysia
(2) Faculty of Information Science and Technology, Multimedia University, Jalan Ayer Keroh Lama, Melaka, Malaysia
(3) Faculty of Information Science and Technology, Multimedia University, Jalan Ayer Keroh Lama, Melaka, Malaysia
Fulltext View | Download
How to cite (IJASEIT) :
Wee , Ryan Mo Xian, et al. “Wrong-Way Driving Detection for Enhanced Road Safety Using Computer Vision and Machine Learning Techniques”. International Journal on Advanced Science, Engineering and Information Technology, vol. 14, no. 6, Dec. 2024, pp. 2157-65, doi:10.18517/ijaseit.14.6.12376.
This paper describes a real-time vehicle detection and tracking system using deep learning techniques together with computer vision. A system based on the YOLOv4 model is developed using the Lukas-Kanade optical flow technique to locate the vehicles considering real-life traffic situations that involve atmospheric disturbances. The subsystem first assesses the trajectory of vehicles concerning the intended direction of traffic flow. Any deviation from this norm triggers a signal that will enable traffic managers to intervene in time to prevent the possibility of traffic congestion. The initial findings confirmed the system's evident ability to reduce the incidence of wrong-way driving, such that its enforcement was concentrated on specific highway sections, targeting high average accuracy rates and reducing the overall risk of base rate accidents. This paper tackles the issues related to the existing problems of surveillance systems, such as the quick detection of unusual traffic patterns and the ability to respond to critical situations quickly. Furthermore, the combination of cutting-edge AI technologies represents a practical and easy approach to implementing intelligent transport systems that are safe, cost-effective, efficient, and novel. Future work will extend the system’s adaptability to various traffic environments, refine its performance under challenging conditions, and explore advanced deep-learning models. This research ultimately contributes to smarter traffic monitoring technologies, fostering safer travel environments, mitigating road hazards, and reducing congestion for a more efficient and secure transportation ecosystem.

G. Wang, Z. Pang, F. Wang, Y. Chen, H. Dai, and B. Wang, “Urban Fiber Based Laser Interferometry for Traffic Monitoring and Analysis,” Journal of Lightwave Technology, vol. 41, no. 1, pp. 347–354, Jan. 2023, doi: 10.1109/jlt.2022.3209499.

D. A. Guastella and E. Pournaras, “Cooperative Multi-Agent Traffic Monitoring Can Reduce Camera Surveillance,” IEEE Access, vol. 11, pp. 142125–142145, 2023, doi: 10.1109/access.2023.3343620.

C.-J. Lin and J.-Y. Jhang, “Intelligent Traffic-Monitoring System Based on YOLO and Convolutional Fuzzy Neural Networks,” IEEE Access, vol. 10, pp. 14120–14133, 2022, doi:10.1109/access.2022.3147866.

S. Liang et al., “Fiber-Optic Auditory Nerve of Ground in the Suburb: For Traffic Flow Monitoring,” IEEE Access, vol. 7, pp. 166704–166710, 2019, doi: 10.1109/access.2019.2952999.

Z. Pu, Z. Cui, J. Tang, S. Wang, and Y. Wang, “Multimodal Traffic Speed Monitoring: A Real-Time System Based on Passive Wi-Fi and Bluetooth Sensing Technology,” IEEE Internet of Things Journal, vol. 9, no. 14, pp. 12413–12424, Jul. 2022, doi:10.1109/jiot.2021.3136031.

G. Liu et al., “Smart Traffic Monitoring System Using Computer Vision and Edge Computing,” IEEE Transactions on Intelligent Transportation Systems, vol. 23, no. 8, pp. 12027–12038, Aug. 2022, doi: 10.1109/tits.2021.3109481.

C. Chen, K. Ota, M. Dong, C. Yu, and H. Jin, “WITM: Intelligent Traffic Monitoring Using Fine-Grained Wireless Signal,” IEEE Transactions on Emerging Topics in Computational Intelligence, vol. 4, no. 3, pp. 206–215, Jun. 2020, doi: 10.1109/tetci.2019.2926505.

B. E B, A. M, S. G, D. Jose, and H. J. Magadum, “Intelligent Traffic Monitoring and Management System,” 2023 International Conference on Computer, Electronics & Electrical Engineering & their Applications (IC2E3), pp. 1–5, Jun. 2023, doi:10.1109/ic2e357697.2023.10262689.

A. Alruban, H. A. Mengash, M. M. Eltahir, N. S. Almalki, A. Mahmud, and M. Assiri, “Artificial Hummingbird Optimization Algorithm With Hierarchical Deep Learning for Traffic Management in Intelligent Transportation Systems,” IEEE Access, vol. 12, pp. 17596–17603, 2024, doi: 10.1109/access.2023.3349032.

M. S. I. Mohd Zubil, Z. Che Embi, and K. I. Ghauth, “Assessing the Efficiency of Deep Learning Methods for Automated Vehicle Registration Recognition for University Entrance,” Journal of Informatics and Web Engineering, vol. 3, no. 2, pp. 57–69, Jun. 2024, doi: 10.33093/jiwe.2024.3.2.4.

L. Hu, H. Li, P. Yi, J. Huang, M. Lin, and H. Wang, “Investigation on AEB Key Parameters for Improving Car to Two-Wheeler Collision Safety Using In-Depth Traffic Accident Data,” IEEE Transactions on Vehicular Technology, vol. 72, no. 1, pp. 113–124, Jan. 2023, doi:10.1109/tvt.2022.3199969.

X. Chen and Y. Zhai, “A multi-objective traffic flow detection system based on an improved yolov4 algorithm,” 2023 IEEE 2nd International Conference on Electrical Engineering, Big Data and Algorithms (EEBDA), pp. 726–730, Feb. 2023, doi:10.1109/eebda56825.2023.10090516.

C. Dewi, R.-C. Chen, Y.-T. Liu, X. Jiang, and K. D. Hartomo, “Yolo V4 for Advanced Traffic Sign Recognition With Synthetic Training Data Generated by Various GAN,” IEEE Access, vol. 9, pp. 97228–97242, 2021, doi: 10.1109/access.2021.3094201.

Q. Liu, X. Fan, Z. Xi, Z. Yin, and Z. Yang, “Object detection based on Yolov4-Tiny and Improved Bidirectional feature pyramid network,” Journal of Physics: Conference Series, vol. 2209, no. 1, p. 012023, Feb. 2022, doi: 10.1088/1742-6596/2209/1/012023.

U. Ali, M. A. Ismail, R. A. Ariyaluran Habeeb, and S. R. Ali Shah, “Performance Evaluation of YOLO Models in Plant Disease Detection,” Journal of Informatics and Web Engineering, vol. 3, no. 2, pp. 199–211, Jun. 2024, doi: 10.33093/jiwe.2024.3.2.15.

J. J. Ng, K. O. M. Goh, and C. Tee, “Traffic Impact Assessment System using Yolov5 and ByteTrack,” Journal of Informatics and Web Engineering, vol. 2, no. 2, pp. 168–188, Sep. 2023, doi:10.33093/jiwe.2023.2.2.13.

S. V.-U. Ha, H.-H. Nguyen, H. M. Tran and P. Ho-Thanh, "Improved optical flow estimation in wrong way vehicle detection", Journal of Information Assurance and Security, vol. 9, no. 5, pp. 165-169, 2014.

H. Tan, Y. Zhai, Y. Liu, and M. Zhang, “Fast anomaly detection in traffic surveillance video based on robust sparse optical flow,” 2016 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pp. 1976–1980, Mar. 2016, doi:10.1109/icassp.2016.7472022.

H. Niu, Y. Lu, A. Savvaris, and A. Tsourdos, “Efficient Path Planning Algorithms for Unmanned Surface Vehicle,” IFAC-PapersOnLine, vol. 49, no. 23, pp. 121–126, 2016, doi: 10.1016/j.ifacol.2016.10.331.

A. Kumar H D and P. C J, “Detection and Tracking of Lane Crossing Vehicles in Traffic Video for Abnormality Analysis,” International Journal of Engineering and Advanced Technology, vol. 10, no. 4, pp. 1–9, Apr. 2021, doi: 10.35940/ijeat.c2141.0410421.

L. Tišljarić, S. Fernandes, T. Carić, and J. Gama, “Spatiotemporal Traffic Anomaly Detection on Urban Road Network Using Tensor Decomposition Method,” Discovery Science, pp. 674–688, 2020, doi:10.1007/978-3-030-61527-7_44.

M. V, V. V.R, and N. A, “A Deep Learning RCNN Approach for Vehicle Recognition in Traffic Surveillance System,” 2019 International Conference on Communication and Signal Processing (ICCSP), pp. 0157–0160, Apr. 2019, doi:10.1109/iccsp.2019.8698018.

D. Tian, C. Zhang, X. Duan, and X. Wang, “An Automatic Car Accident Detection Method Based on Cooperative Vehicle Infrastructure Systems,” IEEE Access, vol. 7, pp. 127453–127463, 2019, doi: 10.1109/access.2019.2939532.

H. Ghahremannezhad, H. Shi, and C. Liu, “Real-Time Accident Detection in Traffic Surveillance Using Deep Learning,” 2022 IEEE International Conference on Imaging Systems and Techniques (IST), Jun. 2022, doi: 10.1109/ist55454.2022.9827736.

P. Wang, L. Li, Y. Jin, and G. Wang, “Detection of unwanted traffic congestion based on existing surveillance system using in freeway via a CNN-architecture trafficnet,” 2018 13th IEEE Conference on Industrial Electronics and Applications (ICIEA), pp. 1134–1139, May 2018, doi: 10.1109/iciea.2018.8397881.

K.-T. Nguyen, D.-T. Dinh, M. N. Do, and M.-T. Tran, “Anomaly Detection in Traffic Surveillance Videos with GAN-based Future Frame Prediction,” Proceedings of the 2020 International Conference on Multimedia Retrieval, pp. 457–463, Jun. 2020, doi:10.1145/3372278.3390701.

F. Zhang, F. Yang, C. Li, and G. Yuan, “CMNet: A Connect-and-Merge Convolutional Neural Network for Fast Vehicle Detection in Urban Traffic Surveillance,” IEEE Access, vol. 7, pp. 72660–72671, 2019, doi: 10.1109/access.2019.2919103.

F. E. Fernandes and G. G. Yen, “Automatic Searching and Pruning of Deep Neural Networks for Medical Imaging Diagnostic,” IEEE Transactions on Neural Networks and Learning Systems, vol. 32, no. 12, pp. 5664–5674, Dec. 2021, doi: 10.1109/tnnls.2020.3027308.

J.-R. Lee, K.-W. Ng, and Y.-J. Yoong, “Face and Facial Expressions Recognition System for Blind People Using ResNet50 Architecture and CNN,” Journal of Informatics and Web Engineering, vol. 2, no. 2, pp. 284–298, Sep. 2023, doi: 10.33093/jiwe.2023.2.2.20.

J. Lv, H. Ji, Y. Jiang, and B. Wang, “A New Flow Pattern Identification Method for Gas–Liquid Two-Phase Flow in Small Channel Based on an Improved Optical Flow Algorithm,” IEEE Sensors Journal, vol. 23, no. 22, pp. 27634–27644, Nov. 2023, doi:10.1109/jsen.2023.3321632.

K. L. Leonida, K. V. Sevilla, and C. O. Manlises, “A Motion-Based Tracking System Using the Lucas-Kanade Optical Flow Method,” 2022 14th International Conference on Computer and Automation Engineering (ICCAE), pp. 86–90, Mar. 2022, doi:10.1109/iccae55086.2022.9762423.

R. K. Bhogal and V. Devendran, “Motion Estimating Optical Flow for Action Recognition : (Farneback, Horn Schunck, Lucas Kanade and Lucas-Kanade Derivative Of Gaussian),” 2023 International Conference on Intelligent Data Communication Technologies and Internet of Things (IDCIoT), pp. 675–682, Jan. 2023, doi:10.1109/idciot56793.2023.10053515.

Creative Commons License

This work is licensed under a Creative Commons Attribution 4.0 International License.

Authors who publish with this journal agree to the following terms:

    1. Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
    2. Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
    3. Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).