A Simple Vehicle Counting System Using Deep Learning with YOLOv3 Model

Sistem Penghitungan Kendaraan Sederhana Menggunakan Pembelajaran Jauh dengan Model YOLOv3

  • Muhammad Fachrie Universitas Teknologi Yogyakarta
Keywords: deep learning, yolov3, object detection, vehicle counting, traffic monitoring


Deep Learning is a popular Machine Learning algorithm that is widely used in many areas in current daily life. Its robust performance and ready-to-use frameworks and architectures enables many people to develop various Deep Learning-based software or systems to support human tasks and activities. Traffic monitoring is one area that utilizes Deep Learning for several purposes. By using cameras installed in some spots on the roads, many tasks such as vehicle counting, vehicle identification, traffic violation monitoring, vehicle speed monitoring, etc. can be realized. In this paper, we discuss a Deep Learning implementation to create a vehicle counting system without having to track the vehicles movements. To enhance the system performance and to reduce time in deploying Deep Learning architecture, hence pretrained model of YOLOv3 is used in this research due to its good performance and moderate computational time in object detection. This research aims to create a simple vehicle counting system to help human in classify and counting the vehicles that cross the street. The counting is based on four types of vehicle, i.e. car, motorcycle, bus, and truck, while previous research counts the car only. As the result, our proposed system capable to count the vehicles crossing the road based on video captured by camera with the highest accuracy of 97.72%.


Download data is not yet available.


N. K. Chauhan and K. Singh, “A Review on Conventional Machine Learning vs Deep Learning,” 2018 Int. Conf. Comput. Power Commun. Technol., pp. 347–352, 2018.

N. O. Mahony et al., “Deep Learning vs . Traditional Computer Vision,” no. Cv.

M. F. Rachmadi, M. C. Valdés-hernández, M. Leonora, F. Agan, and T. Komura, “Deep Learning vs . Conventional Machine Learning : Pilot Study of WMH Segmentation in Brain MRI with Absence or Mild Vascular Pathology †,” pp. 1–19.

J. Hagerty, R. J. Stanley, and W. V Stoecker, “Medical Image Processing in the Age of Deep Learning Is There Still Room for Conventional Medical Image Processing Techniques ?,” no. Visigrapp, pp. 306–311, 2017.

J. T. G. Nodado, M. A. P. Abugan, A. C. Aralar, and H. C. P. Morales, “Intelligent Traffic Light System Using Computer Vision with Android Monitoring and Control,” TENCON 2018 - 2018 IEEE Reg. 10 Conf., no. October, pp. 2461–2466, 2018.

A. J. Kun and Z. Vámossy, “Traffic Monitoring with Computer Vision,” in 7th Int’l Symposium on Applied Machine Intelligence and Informatics, 2009, pp. 131–134.

Z. Iftikhar, P. Dissanayake, and P. Vial, “Computer Vision Based Traffic Monitoring System for Multi-track Freeways,” in 2014 Int’l. Conf. on Intelligent Computing, 2014, pp. 339–349.

Krishna, M. Poddar, M. K. Giridhar, and A. S. Prabhu, “Automated Traffic Monitoring System Using Computer Vision,” in 2016 Int’l. Conf. n ICT in Business Industry & Governance, 2016.

S. Alghyaline, N. K. T. El-Omari, R. M. Al-Khatib, and H. Y. Al-Kharbshh, “RT-VC: An Efficient Real Time Vehicle Counting Approach,” J. Theor. Appl. Inf. Technol., vol. 97, no. 7, pp. 2062–2075, 2019.

T. Paula, C. Florina, R. Brad, L. Br, and M. Greavu, “An Image Feature-Based Method for Parking Lot Occupancy,” Futur. Internet, vol. 11, no. 169, pp. 1–17, 2019.

T. Fabian, “A Vision-Based Algorithm for Parking Lot Utilization Evaluation Using Conditional Random Fields,” in 2013 Int’l Symposium on Visual Computing, 2013, pp. 222–233.

B. Y. Cai, R. Alvarez, M. Sit, F. Duarte, and C. Ratti, “Deep Learning Based Video System for Accurate and Real-Time Parking Measurement,” IEEE Internet Things J., vol. 6, no. 5, pp. 7693–7701, 2019.

W. Wu, O. Bulan, E. A. Bernal, and R. P. Loce, “Detection of Moving Violations,” Comput. Vis. Imaging Intell. Transp. Syst., vol. 1, pp. 101–130, 2017.

N. Seenouvong and U. Watchareeruetai, “A Computer Vision Based Vehicle Detection and Counting System,” in 8th International Conference on Knowledge and Smart Technology, 2016, pp. 224–227.

B. Benjdira, T. Khurseed, A. Koubaa, A. Ammar, and K. Ouni, “Car Detection using Unmanned Aerial Vehicles: Comparison between Faster R-CNN and YOLOv3,” in 1st Unmanned Vehicle Systems Conference, 2018, pp. 1–6.

M. Bugeja, A. Dingli, M. Attard, D. Seychell, and T. I. S. Roma, “Comparison of Vehicle Detection Techniques applied to IP Camera Video Feeds for use in Intelligent Transport Systems,” Transp. Res. Procedia, vol. 45, pp. 971–978, 2020.

J. Redmon, “YOLOv3: An Incremental Improvement.”

L. Ouyang and H. Wang, “Vehicle target detection in complex scenes based on YOLOv3 algorithm,” IOP Conf. Ser. Mater. Sci. Eng., vol. 569, pp. 1–7, 2019.

H. Song and H. Liang, “Vision-based vehicle detection and counting system using deep learning in highway scenes,” Song Eur. Transp. Res. Rev., vol. 11, no. 51, pp. 1–16, 2019.

J. Uus and T. Krilaviˇ, “Detection of different types of vehicles from aerial imagery,” vol. 3, 2019.

X. Ding and R. Yang, “Vehicle and Parking Space Detection Based on Improved YOLO Network Model Vehicle and Parking Space Detection Based on Improved YOLO Network Model,” J. Phys. Conf. Ser., 2019.

R. Girshick, J. Donahue, S. Member, T. Darrell, and J. Malik, “Region-based Convolutional Networks for Accurate Object Detection and Segmentation,” IEEE Trans. Pattern Anal. Mach. Intell., vol. 38, no. 1, pp. 1–16, 2016.

R. Girshick, “Fast R-CNN,” in 2015 IEEE International Conference on Computer Vision (ICCV), 2015.

S. Ren, K. He, R. Girshick, and J. Sun, “Faster R-CNN : Towards Real-Time Object Detection with Region Proposal Networks,” in Neural Information Processing Systems (NIPS) 2015, 2015, pp. 1–14.

R. F. C. Networks and J. Dai, “R-FCN: Object Detection via Region-based Fully Convolutional Networks,” in Neural Information Processing Systems (NIPS) 2016, 2016.

J. Redmon, S. Divvala, R. Girshick, and A. Farhadi, “You Only Look Once: Unified, Real-Time Object Detection,” in 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2016.

W. Liu et al., “SSD : Single Shot MultiBox Detector,” in European Conference on Computer Vision (ECCV) 2016, 2016.

J. Redmon and A. Farhadi, “YOLO9000: Better, Faster, Stronger,” in 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017, pp. 1–9.

K. He, G. Gkioxari, P. Dollar, and R. Girshick, “Mask R-CNN,” in IEEE International Conference on Computer Vision (ICCV), 2017.

How to Cite
Fachrie, M. (2020). A Simple Vehicle Counting System Using Deep Learning with YOLOv3 Model. Jurnal RESTI (Rekayasa Sistem Dan Teknologi Informasi), 4(3), 462 - 468. https://doi.org/10.29207/resti.v4i3.1871
Artikel Teknologi Informasi