Skip to main content
Log in

Detection of passenger flow on and off buses based on video images and YOLO algorithm

  • 1193: Intelligent Processing of Multimedia Signals
  • Published:
Multimedia Tools and Applications Aims and scope Submit manuscript

Abstract

Bus passenger flow information is very important as a reference data for bus company line optimization, schedule scheduling basis, and passenger travel mode arrangement. With the development of image processing technology, it has become a current research trend to count passenger flow with the help of surveillance video of passengers getting on and off the bus. The specific research contents of this paper based on video image detection and statistics of passengers are as follows:(1) Collect head target image samples through a variety of ways, including 3960 positive head target samples and 4150 negative head target samples, which together constitute the head target feature database. (2) Established a head target detection model based on deep learning. First, the labeling of the head target training data set is completed. Then, after 15,000 iterations of model training, the YOLOv3 head target detection network model was obtained, with a recall rate of 92.12% and an accuracy rate of 89.71%. (3) A multi-target matching tracking algorithm based on the combination of Cam-shift and YOLOv3 is proposed. First, the Cam-shift algorithm is used to track the head target. Secondly, the head target tracking data and the YOLOv3 detection data are combined to solve the problem of drift during the tracking of the Cam-shift algorithm through the data association matching method based on the minimum distance, and then combined with the time constraint, a passenger location information judgment rule is proposed. Optimize the error and missed detection in the process of head target detection and tracking, and improve the reliability of passenger trajectory tracking. (4) A statistical algorithm for the detection of passengers getting on and off the bus is proposed. First, the trajectory of passengers in the bus boarding and disembarking area is analyzed, and a process for judging passengers’ boarding and boarding behavior is proposed. At the same time, a passenger position information judgment rule is proposed according to the different situations of whether there are new passengers or missing passengers, so as to optimize the problem of wrong detection and missing detection in the process of head target detection and tracking. (5) Finally, experiments are carried out in actual bus scenes and simulation scenes. The experiment proves that the statistical algorithm for the detection of passengers getting on and off the bus proposed in this paper has good detection, tracking and statistics effects in bus scenes and simulation scenes.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11
Fig. 12
Fig. 13
Fig. 14
Fig. 15

Similar content being viewed by others

References

  1. Bradski GR (1998) Computer vision face tracking for using in a perceptual user interface[J]. Intel Technol J 2:1–15

    Google Scholar 

  2. Gao M (2019) Research on passenger flow statistics algorithm based on binocular stereo vision [D]. Changchun University of Science and Technology

  3. Hare S, Saffari A, Torr PHS (2011) Structured output tracking with kernels[C]//2011 IEEE international conference on computer vision. Barcelona, Spain, pp 263–270

    Google Scholar 

  4. Hongzhi Z, Jinhuan Z, Hui Y et al (2006) Target tracking algorithm based on CamShift [J]. Comput Eng Design 27(011):2012–2014

    Google Scholar 

  5. Hu J, Li G (2006) Design of city-bus intelligent control system framework[C]//proceedings of the 2006 IEEE international conference mechatronics and automation. Luoyang, China, pp 2307–2311

    Google Scholar 

  6. Huiying J (2018) Research on video people counting method based on machine learning algorithm [D]. Beijing Jiaotong University

  7. Joao F, Caseiro R, Martins P (2015) High-speed tracking with Kernelized correlation filters[J]. IEEE Trans Pattern Anal Mach Intell 37(3):583–596

    Article  Google Scholar 

  8. Kalal Z, Mikolajczyk K, Matas J (2011) Tracking learning detection[J]. IEEE Trans Pattern Anal Mach Intell 34(7):1409–1422

    Article  Google Scholar 

  9. Kalman RE (1960) A new approach to linear filtering and prediction problems[J]. J Basic Eng 82(1):35–45

    Article  MathSciNet  Google Scholar 

  10. Li B (2019) Analysis and application of bus surveillance video[D]. Huaqiao university

  11. Li M (2019) Research on prediction of short-time bus passenger flow based on deep learning [D]. Beijing Jiaotong University

  12. Liu X (2013) The method and realization of bus passenger flow statistics based on stereo vision [D]. Yanshan University

  13. Liu Q (2019) Exploration of urban intelligent bus management system based on big data[C]// Proceedings of the 3rd International Conference on Computer Engineering, Information Science & Application Technology (ICCIA 2019), Nanchang, China, 21-23 June. France: Atlantis Press:152–157

  14. Ouyang L, Wang H (2019) Vehicle target detection in complex scenes based on YOLOv3 algorithm[J]. IOP Conference Series: Materials Science and Engineering 569:052018

    Article  Google Scholar 

  15. Redmon J, Farhadi A. (2018) YOLOv3: An incremental improvement [J]. arXiv:1804.02767v1

  16. Redmon J, Divvala S, Girshick R et al (2016) You only look once: unified, real-time object detection[C]//2016 IEEE conference on computer vision and pattern recognition. Las Vegas, NV, USA, pp 779–788

    Google Scholar 

  17. Shao Y, Zhihua Q, Deng T et al (2019) Pedestrian detection method and evaluation based on CapsNet[J]. Journal of Transportation Systems Engineering and Information Technology 3:54–61

    Google Scholar 

  18. Shi T (2011) Research on improvement of data acquisition device of public transportation counting system [D]. Northeastern University

  19. Tang Q (2014) Research and realization of the key technology of bus passenger flow statistics analysis based on video [D]. South China University of Technology

  20. Wang Z, Yang X, Xu Y, Yu S (2009) CamShift guided particle filter for visual tracking[J]. Pattern Recogn Lett 30(4):407–413

    Article  Google Scholar 

  21. Xian X, Shi Y, Tang Y et al (2015) A method to judge bus passenger flow based on multi - movement behavior [J]. Comput Eng 4:176–180

    Google Scholar 

  22. Xu B, Chen X (2010) Development of passenger flow statistics system of city bus based on infrared sensor [J]. Bus Technology and Research 32(05):12–14+17

    Google Scholar 

  23. Yi Z (2017) Research on public transportation surveillance video passenger flow statistics system based on deep learning [D]. Chongqing University

  24. Zhang W (2018) Research on bus passenger flow statistics method based on machine learning [D]. Chang'an University

  25. Zhang K, Zhang L, Yang MH et al (2014) Fast visual tracking via dense spatio-temporal context learning[C]//2014 13th European conference computer vision (ECCV) proceedings. Zurich:127–141

  26. Zhao Q (2016) Research and implementation of bus passenger flow statistics based on video analysis [D]. Chongqing University

  27. Zhou X (2020) A statistical study of bus passenger detection based on video image[D]. Beijing Jiaotong University

Download references

Acknowledgements

This work is supported by the National Key R&D Program of China (2019YFB1600200), National Natural Science Foundation of China (71871011, 71890972/71890970, 71621001), and the first batch of science and technology projects of Jingde Expressway(JD-202014).

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Jiandong Zhao.

Ethics declarations

Conflict of interests

The authors declare that there is no conflict of interests regarding the publication of this article.

Additional information

Publisher’s note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Zhao, J., Li, C., Xu, Z. et al. Detection of passenger flow on and off buses based on video images and YOLO algorithm. Multimed Tools Appl 81, 4669–4692 (2022). https://doi.org/10.1007/s11042-021-10747-w

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11042-021-10747-w

Keywords

Navigation