Abstract
Vehicle detection and counting are getting progressively significant in highway administration due to the varying sizes of vehicles. This paper proposes a vision-based vehicle detection and counting framework. Initially, the COCO and BDD100K datasets are trained, employing improved YOLOv5l algorithm, using GhostBottleneck, for vehicle detection. Subsequently, the Centroid Tracking Algorithm counts the vehicles in videos uniquely. Later, vehicles are categorized as Light and Heavy vehicles. The model is evaluated over UCSD dataset for traffic estimation. Then, the speed of the recognized vehicle is computed to identify overspeeding. Lastly, number plate identification of the over speeding vehicles is performed. Vehicle detection performed well in precision, recall, F-score, and mAP. The centroid tracking algorithm had the best multiple object tracking accuracy and precision for vehicle tracking. The proposed model performed well in terms of detection rate, false alarm rate, and mean time to traffic detection.






























Similar content being viewed by others
Data availability
Data sharing not applicable to this article as no datasets were generated or analyzed during the current study.
References
Al-Smadi M, Abdulrahim K, Salam R A, Manikandan R, Ramakrishnan R (2016) 2013. Video object extraction by using background subtraction techniques for sports applications. Digit Image Process 5(9):435–440
Al-Smadi M, Abdulrahim K, Salam R A (2016) Traffic surveillance: a review of vision based vehicle detection, recognition and tracking. Int J Appl Eng Res 11(1):713–726
Badue C, Guidolini R, Carneiro R V, Azevedo P, Cardoso V B, Forechi A, Jesus L, Berriel R, Paixao T M, Mutz F, de Paula Veronese L (2021) Self-driving cars: a survey. Expert Syst Appl 165:113816
Bewley A, Ge Z, Ott L, Ramos F, Upcroft B (2016) Simple online and realtime tracking. In: 2016 IEEE International conference on image processing (ICIP). IEEE, pp 3464–3468
Bhalla A, Nikhila M S, Singh P (2020) Simulation of self-driving car using deep learning. In: 2020 3rd International conference on intelligent sustainable systems (ICISS). IEEE, pp 519–525
Byun S, Shin I K, Moon J, Kang J, Choi S I (2021) Road traffic monitoring from UAV images using deep learning networks. Remote Sens 13(20):4027
Cai Y, Wang H, Chen X, Jiang H (2015) Trajectory-based anomalous behaviour detection for intelligent traffic surveillance. IET Intell Transp Syst 9(8):810–816
Chan A B, Vasconcelos N (2005) Classification and retrieval of traffic video using auto-regressive stochastic processes. In: IEEE Proceedings. Intelligent vehicles symposium. IEEE, pp 771–776
Chen S (2019) Multimedia for autonomous driving. IEEE Multimed 26(3):5–8
Chen L, Ai H, Zhuang Z, Shang C (2018) Real-time multiple people tracking with deeply learned candidate selection and person re-identification. In: 2018 IEEE International conference on multimedia and expo (ICME). IEEE, pp 1–6
Chen S, Chen Y, Zhang S, Zheng N (2019) A novel integrated simulation and testing platform for self-driving cars with hardware in the loop. IEEE Trans Intell Veh 4(3):425–436
Dai J, Li Y, He K, Sun J (2016) R-fcn object detection via region-based fully convolutional networks. In: Advances in neural information processing systems, pp 379–387
Daily M, Medasani S, Behringer R, Trivedi M (2017) Self-driving cars. Computer 50(12):18–23
Das T K, Tripathy A K, Mishra A K (2017) Optical character recognition using artificial neural network. In: 2017 International conference on computer communication and informatics (ICCCI). IEEE, pp 1–4
Fekri-Ershad S, Tajeripour F (2017) Impulse-noise resistant color-texture classification approach using hybrid color local binary patterns and Kullback–Leibler divergence. Comput J 60(11):1633–1648
Ferryman J M, Worrall A D, Sullivan G D, Baker K D (1995) A generic deformable model for vehicle recognition. In: Proceedings of the British machine vision conference 1995. British Machine Vision Association. https://doi.org/10.5244/c.9.13
García-González J, Molina-Cabello M A, Luque-Baena R M, Ortiz-de-Lazcano-Lobato JM, López-Rubio E (2021) Road pollution estimation from vehicle tracking in surveillance videos by deep convolutional neural networks. Appl Soft Comput 113:107950
Ghazal B, ElKhatib K, Chahine K, Kherfan M (2016) Smart traffic light control system. In: 2016 Third international conference on electrical, electronics, computer engineering and their applications (EECEA). IEEE, pp 140–145
Girshick R, Donahue J, Darrell T, Malik J (2014) Rich feature hierarchies for accurate object detection and semantic segmentation. In: 2014 IEEE conference on computer vision and pattern recognition. IEEE. https://doi.org/10.1109/cvpr.2014.81
Greenblatt N A (2016) Self-driving cars and the law. IEEE Spectr 53(2):46–51
Han D, Leotta M J, Cooper D B, Mundy J L (2006) Vehicle class recognition from video-based on 3d curve probes. In: 2005 IEEE International workshop on visual surveillance and performance evaluation of tracking and surveillance. IEEE. https://doi.org/10.1109/vspets.2005.1570927
Han K, Wang Y, Tian Q, Guo J, Xu C, Xu C (2020) Ghostnet: more features from cheap operations. In: Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp 1580–1589
He K, Gkioxari G, Dollár P, Girshick R (2017) Mask r-cnn. In: Proceedings of the IEEE international conference on computer vision, pp 2961–2969
Howard A, Sandler M, Chu G, Chen L C, Chen B, Tan M, Wang W, Zhu Y, Pang R, Vasudevan V, Le Q V (2019) Searching for mobilenetv3. In: Proceedings of the IEEE/CVF international conference on computer vision, pp 1314–1324
Jocher G, Nishimura K, Mineeva T , Vilariño R (2020) YOLOv5. GitHub repository: https://github.com/ultralytics/yolov5
Kanopoulos N, Vasanthavada N, Baker R L (1988) Design of an image edge detection filter using the Sobel operator. IEEE J Solid-State Circ 23 (2):358–367
Kim J H, Huh J H, Jung S H, Sim C B (2021) A study on an enhanced autonomous driving simulation model based on reinforcement learning using a collision prevention model. Electronics 10(18):2271
Li J, Bao H, Han X, Pan F, Pan W, Zhang F, Wang D (2017) Real-time self-driving car navigation and obstacle avoidance using mobile 3D laser scanner and GNSS. Multimed Tools Appl 76(21):23017–23039
Liang H, Song H, Yun X, Sun S, Wang Y, Zhang Z (2022) Traffic incident detection based on a global trajectory spatiotemporal map. Complex Intell Syst 8(2):1389–1408
Lin T Y, Maire M, Belongie S, Hays J, Perona P, Ramanan D, Dollár P, Zitnick C L (2014) Microsoft coco Common objects in context. In: European conference on computer vision. Springer, Cham, pp 740–755
Lin T Y, Dollár P, Girshick R, He K, Hariharan B, Belongie S (2017) Feature pyramid networks for object detection. In: Proceedings of the IEEE conference on computer vision and pattern recognition, pp 2117–2125
Liu C M, Juang J C (2021) Estimation of lane-level traffic flow using a deep learning technique. Appl Sci 11(12):5619
Liu Y, Yao L, Shi Q, Ding J (2014) Optical flow based urban road vehicle tracking. In: 2013 Ninth international conference on computational intelligence and security. IEEE. https://doi.org/10.1109/cis.2013.89
Liu W, Anguelov D, Erhan D, Szegedy C, Reed S, Fu C Y, Berg A C (2016) Ssd: single shot multibox detector. In: European conference on computer vision. Springer, Cham, pp 21–37
Liu J, Cong W, Li H (2020) Vehicle detection method based on ghostnet-SSD. In: 2020 International conference on virtual reality and intelligent systems (ICVRIS). IEEE, pp 200–203
Mou L, Xie H, Mao S, Zhao P, Chen Y (2020) Vision-based vehicle behaviour analysis: a structured learning approach via convolutional neural networks. IET Intell Transp Syst
Nepal U, Eslamiat H (2022) Comparing YOLOv3, YOLOv4 and YOLOv5 for autonomous landing spot detection in faulty UAVs. Sensors 22(2):464
Park K, Lee D, Park Y (2007) Video-based detection of street-parking violation. In: International conference on image processing. https://www.tib.eu/en/search/id/BLCP
Qiu-Lin L I, Jia-Feng HE (2011) Vehicles detection based on three-frame-difference method and cross-entropy threshold method. Comput Eng 37(4):172–174
Redmon J, Divvala S, Girshick R, Farhadi A (2016) You only look once: unified, real-time object detection. In: Proceedings of the IEEE conference on computer vision and pattern recognition, pp 779–788
Reid D (1979) An algorithm for tracking multiple targets. IEEE Trans Autom Control 24(6):843–854
Ren S, He K, Girshick R, Sun J (2015) Faster r-cnn: towards real-time object detection with region proposal networks
Simple object tracking with OpenCV. https://www.pyimagesearch.com/2018/07/23/simple-object-tracking-with-opencv/ accessed on 17th June 2022
Song H, Liang H, Li H, Dai Z, Yun X (2019) Vision-based vehicle detection and counting system using deep learning in highway scenes. Eur Transp Res Rev 11(1):1–16
Uijlings J R R, van de Sande K E A, Gevers T, Smeulders A W M (2013) Selective search for object recognition. Int J Comput Vis 104(2):154–171
Wang Z, Zheng L, Liu Y, Li Y, Wang S (2020) Towards real-time multi-object tracking. In: European conference on computer vision. Springer, Cham, pp 107–122
Wojke N, Bewley A, Paulus D (2017) Simple online and realtime tracking with a deep association metric. In: 2017 IEEE International conference on image processing (ICIP). IEEE, pp 3645–3649
Yang H, Qu S (2017) Real-time vehicle detection and counting in complex traffic scenes using background subtraction model with low-rank decomposition. IET Intell Transp Syst 12(1):75–85
Yu F, Chen H, Wang X, Xian W, Chen Y, Liu F, Madhavan V, Darrell T (2020) Bdd100k: a diverse driving dataset for heterogeneous multitask learning. In: Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp 2636–2645
Zhang Y, Li X, Zhang Z, Wu F, Zhao L (2015) Deep learning driven blockwise moving object detection with binary scene modeling. Neurocomputing 168:454–463
Zhao Z Q, Zheng P, Xu S T, Wu X (2018) Object detection with deep learning: a review. arXiv:1807.05511
Zhu L, Yu F R, Wang Y, Ning B, Tang T (2018) Big data analytics in intelligent transportation systems: a survey. IEEE Trans Intell Transp Syst 20(1):383–398
Acknowledgements
The authors express their gratitude to Department of Science & Technology (DST), India for the obtained financial support in performing this research work. This work is one of the outcomes of the project entitled “IoT based real time and effective traffic signal scheduling for smart city” with sanction no. DST/ICPS/CPS-Individual/2018/678(G) dated 03.01.2019, sponsored by DST.
Author information
Authors and Affiliations
Corresponding author
Ethics declarations
Conflict of interest
The authors declare that they have no conflict of interest.
Additional information
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Singh, N., Saini, P., Shubham, O. et al. Improved YOLOv5l for vehicle detection: an application to estimating traffic density and identifying over speeding vehicles on highway scenes. Multimed Tools Appl 83, 5277–5307 (2024). https://doi.org/10.1007/s11042-023-15520-9
Received:
Revised:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s11042-023-15520-9