Call For Paper - Upcoming Conferences

Research Article | Open Access | Download PDF
Volume 13 | Issue 6 | Year 2026 | Article Id. IJECE-V13I6P101 | DOI : https://doi.org/10.14445/23488549/IJECE-V13I6P101

Wrong Side Vehicle Detection and Illegal Parking Detection using the Centroid Method and YOLOv8


Palakkumar B. Bhatt, Dipesh Kamdar

Received Revised Accepted Published
04 Mar 2026 03 Apr 2026 02 May 2026 27 Jun 2026

Citation :

Palakkumar B. Bhatt, Dipesh Kamdar, "Wrong Side Vehicle Detection and Illegal Parking Detection using the Centroid Method and YOLOv8," International Journal of Electronics and Communication Engineering, vol. 13, no. 6, pp. 1-11, 2026. Crossref, https://doi.org/10.14445/23488549/IJECE-V13I6P101

Abstract

Traffic violations such as illegal parking and wrong-side vehicle driving significantly contribute to traffic congestion and road accidents in urban environments. According to recent reports, India records nearly five lakh road accidents annually, resulting in approximately 1.8 lakh fatalities. Continuous monitoring of traffic using conventional manual surveillance is inefficient and requires automated intelligent systems. This paper proposes a computer vision-based framework for detecting illegal parking and wrong-side vehicle movement using traffic surveillance videos. The proposed system integrates deep learning-based vehicle detection with motion analysis and centroid-based tracking to identify traffic violations in real time. Initially, a Region of Interest (ROI) and a reference direction line are defined during scene initialization. Vehicles are detected in each frame using the YOLOv8 object detection model, and centroid positions of detected bounding boxes are calculated for tracking vehicle movement across frames. Displacement analysis of centroid positions is used to determine vehicle motion and direction. Wrong-side driving is detected by evaluating vehicle movement against the predefined traffic direction, while illegal parking is identified using ROI-based spatial validation combined with temporal duration analysis. The proposed system was evaluated using CCTV traffic videos from different locations in Ahmedabad. Experimental results show that the system successfully detected illegal parking with 90% accuracy and wrong-side driving with 83.33% accuracy. The results demonstrate the effectiveness of the proposed approach for automated traffic violation monitoring in real-world surveillance environments.

Keywords

Traffic violation detection, Illegal parking detection, Wrong-side vehicle detection, YOLOv8, Traffic surveillance.

References

  1. Nitin Gadkari Flags 5 Lakh Road Accidents a Year, Says Behaviour Change Key to Saving Lives, The Economic Times, 2026. [Online]. Available: https://economictimes.indiatimes.com/news/india/nitin-gadkari-flags-5-lakh-road-accidents-a-year-says-behaviour-change-key-to-saving-lives/articleshow/128804544.cms
  2. Sen-ching S. Cheung, and Chandrika Kamath, “Robust Techniques for Background Subtraction in Urban Traffic Video,” Proceedings of SPIE – Visual Communications and Image Processing, vol. 5308, pp. 881-892, 2004.
    [
    CrossRef] [Google Scholar] [Publisher Link]
  3. Jong Taek Lee et al., “Real-Time Illegal Parking Detection in Outdoor Environments Using 1-D Transformation,” IEEE Transactions on Circuits and Systems for Video Technology, vol. 19, no. 7, pp. 1014-1024, 2009.
    [
    CrossRef] [Google Scholar] [Publisher Link]
  4. Jian Wang, and Feng Chen, “Multi-Vehicle Tracking Based Traffic Illegal Parking Detection,” Advanced Materials Research, vol. 532-533, pp. 540-545, 2012.
    [
    CrossRef] [Google Scholar] [Publisher Link]
  5. Waqas Hassan et al., “Real-Time Occlusion Tolerant Detection of Illegally Parked Vehicles,” International Journal of Control, Automation and Systems, vol. 10, pp. 972-981, 2012.
    [
    CrossRef] [Google Scholar] [Publisher Link]
  6. Lucia Maddalena, and Alfredo Petrosino, “Stopped Object Detection by Learning Foreground Model in Videos,” IEEE Transactions on Neural Networks and Learning Systems, vol. 24, no. 5, pp. 723-735, 2013.
    [
    CrossRef] [Google Scholar] [Publisher Link]
  7. Santosh G. Kashid, and Sanjay A. Pardeshi, “Detection and Identification of Illegally Parked Vehicles at No Parking Area,” 2014 International Conference on Communication and Signal Processing, Melmaruvathur, India, pp. 1025-1029, 2014.
    [
    CrossRef] [Google Scholar] [Publisher Link]
  8. Tian Wang, and Hichem Snoussi, “Detection of Abnormal Visual Events via Global Optical Flow Orientation Histogram,” IEEE Transactions on Information Forensics and Security, vol. 9, no. 6, pp. 988-998, 2014.
    [
    CrossRef] [Google Scholar] [Publisher Link]
  9. Sarker Md. Mostafa Kamal, Weihua Cai, and Song Moon Kyou, “Detection and Recognition of Illegally Parked Vehicles Based on an Adaptive Gaussian Mixture Model and a Seed Fill Algorithm,” Journal of Information and Communication Convergence Engineering, vol. 13, no. 3, pp. 197-204, 2015.
    [
    CrossRef] [Google Scholar] [Publisher Link]
  10. Wahyono, Alexander Filonenko, and Kang-Hyun Jo, “Illegally Parked Vehicle Detection Using Adaptive Dual Background Model,” IECON 2015 - 41st Annual Conference of the IEEE Industrial Electronics Society, Yokohama, Japan, pp. 2225-2228, 2015.
    [
    CrossRef] [Google Scholar] [Publisher Link]
  11. Mu Chunyang, Ma Xing, and Zhang Panpan, “Smart Detection of Vehicle in Illegal Parking Area by Fusing of Multi-Features,” 2015 9th International Conference on Next Generation Mobile Applications, Services and Technologies, Cambridge, UK, pp. 388-392, 2015.
    [
    CrossRef] [Google Scholar] [Publisher Link]
  12. Wahyono, Alexander Filonenko, and Kang-Hyun Jo, “Detecting Illegally Parked Vehicle Based on Cumulative Dual Foreground Difference,” 2016 IEEE 14th International Conference on Industrial Informatics (INDIN), Poitiers, France, pp. 772-775, 2016.
    [
    CrossRef] [Google Scholar] [Publisher Link]
  13. Joseph Redmon et al., “You Only Look Once: Unified, Real-Time Object Detection,” 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA, pp. 779-788, 2016.
    [
    CrossRef] [Google Scholar] [Publisher Link]
  14. Wahyono, and Kang-Hyun Jo, “Cumulative Dual Foreground Differences for Illegally Parked Vehicles Detection,” IEEE Transactions on Industrial Informatics, vol. 13, no. 5, pp. 2464-2473, 2017.
    [
    CrossRef] [Google Scholar] [Publisher Link]
  15. Rami Akhawaji, Mohamed Sedky, and Abdel-Hamid Soliman, “Illegal Parking Detection Using Gaussian Mixture Model and Kalman Filter,” 2017 IEEE/ACS 14th International Conference on Computer Systems and Applications (AICCSA), Hammamet, Tunisia, pp. 840-847, 2017.
    [
    CrossRef] [Google Scholar] [Publisher Link]
  16. Xuemei Xie et al., “Real-Time Illegal Parking Detection System Based on Deep Learning,” Proceedings of the 2017 International Conference on Deep Learning Technologies, pp. 23-27, 2017.
    [
    CrossRef] [Google Scholar] [Publisher Link]
  17. Milan P. Patel, and Keyur Shah, “Recognition of Illegal Parked Vehicle Using Machine Learning Approach & Hybrid Classification Method,” Journal of Emerging Technologies and Innovative Research, vol. 6, no. 5, pp. 276-280, 2019.
    [
    Publisher Link]
  18. Jiawei Jiang, Yuchen Chen, and Hsun-Ping Hsieh, “Detection of Illegal Parking Events Using Spatial-Temporal Features,” Proceedings of the 28th International Conference on Advances in Geographic Information Systems, pp. 667-668, 2020.
    [
    CrossRef] [Google Scholar] [Publisher Link]
  19. Prachi Sodegaonkar, and R.A. Khan, “A Comprehensive Review on Deep Learning Models for Illegally Parked Vehicle Detection in Smart Cities,” Journal of Emerging Technologies and Innovative Research, vol. 12, no. 8, pp. 15-23, 2025.
    [
    Publisher Link]
  20. Xinggan Peng et al., “Real-Time Illegal Parking Detection Algorithm in Urban Environments,” IEEE Transactions on Intelligent Transportation Systems, vol. 23, no. 11, pp. 20572-20587, 2022.
    [
    CrossRef] [Google Scholar] [Publisher Link]
  21. Rachel George, “Review of the Vehicle Detection System for No Parking,” International Journal of Science and Advanced Technology, vol. 16, no. 1, pp. 1-6, 2025.
    [
    CrossRef] [Google Scholar] [Publisher Link]
  22. Goncalo Monteiro et al., “Wrong-Way Drivers Detection Based on Optical Flow,” 2007 IEEE International Conference on Image Processing, San Antonio, TX, USA, pp. 141-144, 2007.
    [
    CrossRef] [Google Scholar] [Publisher Link]
  23. Synh Viet-Uyen Ha et al., “Improved Optical Flow Estimation in Wrong Way Vehicle Detection,” Journal of Information Assurance and Security, vol. 9, no. 5, pp. 278-287, 2014.
    [
    Google Scholar] [Publisher Link]
  24. Qin Zou et al., “Robust Lane Detection From Continuous Driving Scenes Using Deep Neural Networks,” IEEE Transactions on Vehicular Technology, vol. 69, no. 1, pp. 41-54, 2020.
    [
    CrossRef] [Google Scholar] [Publisher Link]
  25. Zillur Rahman, Amit Mazumder Ami, and Muhammad Ahsan Ullah, “A Real-Time Wrong-Way Vehicle Detection Based on YOLO and Centroid Tracking,” 2020 IEEE Region 10 Symposium (TENSYMP), Dhaka, Bangladesh, pp. 916-920, 2020.
    [
    CrossRef] [Google Scholar] [Publisher Link]
  26. Khac Tuan Nguyen et al., “Anomaly Detection in Traffic Surveillance Videos with GAN-Based Future Frame Prediction,” Proceedings of the 2020 International Conference on Multimedia Retrieval, pp. 457-463, 2020.
    [
    CrossRef] [Google Scholar] [Publisher Link]
  27. Saidasul Usmankhujaev, Shokhrukh Baydadaev, and Kwon Jang Woo, “Real-Time, Deep Learning Based Wrong Direction Detection,” Applied Sciences, vol. 10, no. 7, pp. 1-13, 2020.
    [
    CrossRef] [Google Scholar] [Publisher Link]
  28. Pintusorn Suttiponpisarn et al., “Detection of Wrong Direction Vehicles on Two-Way Traffic,” 2021 13th International Conference on Knowledge and Systems Engineering (KSE), Bangkok, Thailand, pp. 1-6, 2021.
    [
    CrossRef] [Google Scholar] [Publisher Link]
  29. Qing Chang et al., “Identifying Wrong-Way Driving Incidents from Regular Traffic Videos Using Unsupervised Trajectory-Based Method,” Transportation Research Record, vol. 2676, no. 2, pp. 440-450, 2022.
    [
    CrossRef] [Google Scholar] [Publisher Link]
  30. Arya Haghighat, and Anuj Sharma, “A Computer Vision-Based Deep Learning Model to Detect Wrong-Way Driving Using Pan–Tilt–Zoom Traffic Cameras,” Computer-Aided Civil and Infrastructure Engineering, vol. 38, no. 1, pp. 119-132, 2023.
    [
    CrossRef] [Google Scholar] [Publisher Link]
  31. Pintusorn Suttiponpisarn et al., “An Enhanced System for Wrong-Way Driving Vehicle Detection with Road Boundary Detection Algorithm,” Procedia Computer Science, vol. 204, pp. 164-171, 2022.
    [
    CrossRef] [Google Scholar] [Publisher Link]
  32. Cheng-Jian Lin, and Jyun-Yu Jhang, “Intelligent Traffic-Monitoring System Based on YOLO and Convolutional Fuzzy Neural Networks,” IEEE Access, vol. 10, pp. 14120-14133, 2022.
    [
    CrossRef] [Google Scholar] [Publisher Link]
  33. Sriram Narayana Cummaragunta, K.S. Srinandan, and Jyoti Shetty, “Wrong Side Driving Detection,” International Journal of Technology and Emerging Sciences, vol. 2, no. 3, pp. 5-9, 2022.
    [
    Google Scholar] [Publisher Link]
  34. Abu Bakar Siddique Mahi, Farhana Sultana Eshita, and Tanjina Helaly, “An Automated System for Wrong-Way Vehicle Detection Using YOLO and DeepSORT,” Proceedings of the IEEE International Conference on Sustainable Technologies for Industry 5.0 (STI), pp. 1-6, 2023.
    [
    CrossRef] [Google Scholar] [Publisher Link]
  35. Rakhi Bharadwaj et al., “Wrong Way Vehicle Detection in Single and Double Lane,” International Journal on Recent and Innovation Trends in Computing and Communication, vol. 11, no. 6s, pp. 457-462, 2023.
    [
    CrossRef] [Google Scholar] [Publisher Link]
  36. M. Harsha Vardhan et al., “Wrong Route Vehicles Detection Using Deep Learning,” 2023 International Conference on Next Generation Electronics (NEleX), Vellore, India, pp. 1-6, 2023.
    [
    CrossRef] [Google Scholar] [Publisher Link]
  37. S.M. Renuka Devi et al., “A Real-Time Multiple Traffic Violation Detection System Using DeepSORT,” 2024 4th International Conference on Artificial Intelligence and Signal Processing (AISP), Vijayawada, India, pp. 1-6, 2024.
    [
    CrossRef] [Google Scholar] [Publisher Link]
  38. Ryan Mo Xian Wee, Tee Connie, Michael Kah Ong Goh, “Wrong-Way Driving Detection for Enhanced Road Safety Using Computer Vision and Machine Learning Techniques,” International Journal of Advanced Science, Engineering and Information Technology, vol. 14, no. 6, pp. 2157-2165, 2024.
    [
    CrossRef] [Google Scholar] [Publisher Link]
  39. Aniket Navneet Patil, Vikram Naglot, and Pallavi Thakur, “Wrong Lane Vehicle Detection Using YOLOv8,” International Journal of Innovative Research in Technology, vol. 11, no. 12, pp. 8175-8181, 2025.
    [
    Publisher Link]
  40. Comus Bala, Nishant Gupta, and Saurabh Kumar, “Real-Time Detection and Alert System for Wrong-Side Driving: A Machine Learning Approach,” 2025 International Conference on Networks and Cryptology (NETCRYPT), New Delhi, India, pp. 541-546, 2025.
    [
    CrossRef] [Google Scholar] [Publisher Link]
  41. Kiranmaie, Abhisatwika Reddy Chada, and Ilaiah Kavati, “Wrong-Way Driving Detection with YOLOv9 and Convolutional Neural Networks,” Procedia Computer Science, vol. 258, pp. 2060-2069, 2025.
    [
    CrossRef] [Google Scholar] [Publisher Link]
  42. Alphons Zacharia James, “Wrong-Way Vehicle Detection Using YOLOv7 for Enhanced Traffic Safety,” Masters Thesis, National College of Ireland, pp. 1-25, 2025.
    [
    Google Scholar] [Publisher Link]