Abstract
The idea of applying AI in embedded systems is growing in all sectors, from airplanes to drones, cars, cell phones and robots. The challenge for this type of embedded systems is to ensure real-time functioning, with accurate results under a robust system. In this paper, we propose an embedded and real-time road traffic classification system based on AI techniques. The software part includes the different blocks dedicated to vehicle counting and classification, which is performed by using background subtraction, Histograms of Oriented Gradients and Support Vector Machine. The proposed method also includes a set of linear and non-linear filtering techniques for noise removal. The occlusion handling is applied during classification process by training the model on classes containing occlusion images. The hardware part of the system consists of Raspberry Pi board with an operating system installed for flexibility purposes. The implemented algorithm has been improved to guarantee a real time operation and a minimal storage in the memory. The proposed system achieved a counting accuracy of 96.34%, and a processing speed around 4.55 FPS, which is adequate with all the performance and real time criteria.
Similar content being viewed by others
References
Aggarwal S (2014) Flask framework cookbook. Packt Publishing Ltd.
Alphonse AS, Starvin MS (2019) A novel maximum and minimum response-based Gabor (MMRG) feature extraction method for facial expression recognition. Multimed Tools Appl 78:23369–23397. https://doi.org/10.1007/s11042-019-7646-9
Chang C-C, Lin C-J (2011) LIBSVM: a library for support vector machines. ACM Trans Intell Syst Technol 2, 3, article 27, 27 pages. https://doi.org/10.1145/1961189.1961199
Chang J, Wang L, Meng G, Xiang S, Pan C (Summer 2018) Vision-based occlusion handling and vehicle classification for traffic surveillance systems. IEEE Intell Transp Syst Mag 10(2):80–92. https://doi.org/10.1109/MITS.2018.2806619
Comer ML, Delp EJ III (1999) Morphological operations for color image processing. J Electron Imaging 8(3):279. https://doi.org/10.1117/1.482677
Dai Z, Song H, Wang X, Fang Y, Yun X, Zhang Z, Li H (2019) Video-based vehicle counting framework. IEEE Access 7::64460–64470
Dalal N, Triggs B (2005) Histograms of oriented gradients for human detection. 2005 IEEE computer society conference on computer vision and pattern recognition (CVPR'05), pp 886-893 vol 1. https://doi.org/10.1109/CVPR.2005.177
Derrouz H, Elbouziady A, Abdelali HA, Thami ROH, El Fkihi S, Bourzeix F (2019) Moroccan video intelligent transport system: vehicle type classification based on three-dimensional and two-dimensional features. IEEE Access 7:72528–72537
Ding L, Goshtasby A (2001) On the canny edge detector. Pattern Recogn 34(3):721–725. https://doi.org/10.1016/S0031-3203(00)00023-6
Dziri A, Duranton M, Chapuis R (2016) Real-time multiple objects tracking on Raspberry-Pi-based smart embedded camera. J Electron Imaging 25(4):041005
Espejel-García D, Ortíz-Anchondo LR, Alvarez-Herrera C, Hernandez-López A, Espejel-García VV, Villalobos-Aragón A (2017) An alternative vehicle counting tool using the Kalman filter within MATLAB. Civil Eng J 3(11):1029–1035
Garcia-Garcia B, Bouwmans T, Silva AJR (2020) Background subtraction in real applications: challenges, current models and future directions. Comput Sci Rev 35:100204
Ghosh A, Sabuj MS, Sonet HH, Shatabda S, Farid DM (2019) An adaptive video-based vehicle detection, classification, counting, and speed-measurement system for real-time traffic data collection. In: 2019 IEEE region 10 symposium (TENSYMP) (pp 541-546). IEEE
Greenhalgh P (2011) Big. LITTLE processing with ARM Cortex-A15 & Cortex-A7: Improving energy efficiency in high-performance mobile platforms. White paper, ARM Ltd.
Guerrero-Gomez-Olmedo R, Lopez-Sastre RJ, Maldonado-Bascon S, Fernandez-Caballero A (2013) Vehicle tracking by simultaneous detection and viewpoint estimation. In: IWINAC 2013, Part II, LNCS 7931, pp 306–316
Huang GB, Wang DH, Lan Y (2011) Extreme learning machines: a survey. Int J Mach Learn Cybern 2(2):107–122
Huang DY, Chen CH, Chen TY, Hu WC, Lin YL (2016) A vehicle flow counting system in rainy environment based on vehicle feature analysis. J Inf Hiding Multimed Signal Process 7(1):101–114
Kim K, Chalidabhongse TH, Harwood D, Davis L (2005) Real-time foreground–background segmentation using codebook model. Real-Time Imaging 11(3):172–185
Kim K, Harwood D, Davis LS (2005) Background updating for visual surveillance. In: International symposium on visual computing. Springer, Berlin, Heidelberg, pp 337–346
Maddalena L, Petrosino A (2018) Background subtraction for moving object detection in RGBD data: a survey. J Imaging 4(5):71
Moutakki Z, Ouloul IM, Afdel K, Amghar A (2017) Real-time video surveillance system for traffic management with background subtraction using codebook model and occlusion handling. Transp Telecommun 18(4):297–306
Moutakki Z, Ouloul IM, Afdel K, Amghar A (2018) Real-time system based on feature extraction for vehicle detection and classification. Transp Telecommun 19(2):93–102
Piccardi M (2004) Background subtraction techniques: a ereview. In: 2004 IEEE international conference on systems, man and cybernetics (IEEE Cat. No. 04CH37583) (vol 4, pp 3099-3104). IEEE
Raspberry Pi Ltd. (2019) Raspberry Pi 4 Model B. https://datasheets.raspberrypi.com/rpi4/raspberry-pi-4-datasheet.pdf. Accessed 5 Jul 2021
Raspberry Pi Ltd. (n.d.) BCM2711 ARM Peripherals. https://datasheets.raspberrypi.com/bcm2711/bcm2711-peripherals.pdf. Accessed 7 Apr 2021
Shanableh T (2021) Feature extraction and machine learning solutions for detecting motion vector data embedding in HEVC videos. Multimed Tools Appl 80:27047–27066. https://doi.org/10.1007/s11042-020-09826-1
Soleh M, Jati G, Hilman MH (2018) Multi object detection and tracking using optical flow density–Hungarian Kalman filter (Ofd-Hkf) algorithm for vehicle counting. Jurnal Ilmu Komputer dan Informasi 11(1):17–26
Srijongkon K, Duangsoithong R, Jindapetch N, Ikura M, Chumpol S (2017) SDSoC based development of vehicle counting system using adaptive background method. In: 2017 IEEE Regional Symposium on Micro and Nanoelectronics (RSM), pp 235–238. https://doi.org/10.1109/RSM.2017.8069172
Stauffer C, Grimson WEL (1999) Adaptive background mixture models for real-time tracking. In: Proceedings. 1999 IEEE computer society conference on computer vision and pattern recognition (Cat. No PR00149) (vol 2, pp 246-252). IEEE
Sun W, Zhang G, Zhang X, Zhang X, Ge N (2021) Fine-grained vehicle type classification using lightweight convolutional neural network with feature optimization and joint learning strategy. Multimed Tools Appl 80:30803–30816. https://doi.org/10.1007/s11042-020-09171-3
Tapp C (2008) An introduction to MISRA C++. SAE International Journal of Passenger Cars-Electronic and Electrical Systems 1(2008-01-0664):265–268
Velazquez-Pupo R, Sierra-Romero A, Torres-Roman D, Shkvarko YV, Santiago-Paz J, Gómez-Gutiérrez D, Robles-Valdez D, Hermosillo-Reynoso F, Romero-Delgado M (2018) Vehicle detection with occlusion handling, tracking, and OC-SVM classification: a high performance vision-based system. Sensors 18:374. https://doi.org/10.3390/s18020374
Wen X, Shao L, Xue Y, Fang W (2015) A rapid learning algorithm for vehicle classification. Inf Sci 295:395–406
Xu Y, Li Z, Wang S, Li W, Sarkodie-Gyan T, Feng S (2021) A hybrid deep-learning model for fault diagnosis of rolling bearings. Measurement 169:108502
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
Zhao N, Xia Y, Xu C, Shi X, Liu Y (2016) APPOS: an adaptive partial occlusion segmentation method for multiple vehicles tracking. J Vis Commun Image Represent 37:25–31. https://doi.org/10.1016/j.jvcir.2015.04.011
Author information
Authors and Affiliations
Corresponding author
Ethics declarations
Conflict of interest
The authors declare no conflicts 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
Moutakki, Z., Ouloul, I.M., Amghar, A. et al. Embedded and real time vehicle classification system with occlusion handling. Multimed Tools Appl 82, 24407–24423 (2023). https://doi.org/10.1007/s11042-023-14852-w
Received:
Revised:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s11042-023-14852-w