Abstract
Computer simulations using agent-based approach aimed at modeling human behavior require a robust dataset derived from actual observation to serve as ground truth. This paper details an approach for developing a movement behavior dataset generator from CCTV footages with respect to two health-related behaviors: face mask wearing and physical distancing, while addressing the privacy concerns of confidential CCTV data. A two-stage YOLOv8-based cascaded approach was implemented for object tracking and detection. The first stage involves tracking of individuals in the video feed to determine physical distancing behavior using the pre-trained YOLOv8 xLarge model paired with Bot-SORT multi-object tracker and OpenCV Perspective-n-Point pose estimation. The second stage involves determining the mask wearing behavior of the tracked individuals using the best-performing model among the five YOLOv8 models (nano, small, medium, large, and xLarge), each trained for 50 epochs on a custom CCTV dataset. Results show that the custom-trained xLarge model performed the best on the mask detection task with the following metric scores: mAP50 = 0.94; mAP50-95 = 0.63; and F1 = 0.872. The faces of all the tracked individuals are blurred-out in the resulting video frames to preserve the privacy of the CCTV data. Finally, the developed system is able to generate the corresponding mask-distancing behavior dataset and annotated output videos from the input CCTV raw footages.
Ateneo Social Computing Laboratory and DOST-Engineering Research and Development for Technology (ERDT).
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Aharon, N., Orfaig, R., Bobrovsky, B.Z.: Bot-sort: robust associations multi-pedestrian tracking. arXiv preprint arXiv:2206.14651 (2022)
An, L., et al.: Challenges, tasks, and opportunities in modeling agent-based complex systems. Ecol. Model. 457, 109685 (2021)
Jocher, G., Chaurasia, A., Qiu, J.: Yolo by ultralytics (2023). https://github.com/ultralytics/ultralytics. Accessed 26 Mar 2023
Kasai, T.: Adapting to life with covid-19 and staying safe (2021). https://www.who.int/westernpacific/news-room/commentaries/detail-hq/adapting-to-life-with-covid-19-and-staying-safe. Accessed May 2023
Nazir, A., Wani, M.A.: You only look once-object detection models: a review. In: 2023 10th International Conference on Computing for Sustainable Global Development (INDIACom), pp. 1088–1095. IEEE (2023)
OpenCV: Perspective-n-point (pnp) pose computation (nd). https://docs.opencv.org/4.x/d5/d1f/calib3d_solvePnP.html. Accessed 26 Mar 2023
Ravaioli, G., Domingos, T., Teixeira, R.F.M.: A framework for data-driven agent-based modelling of agricultural land use. Land 12(4) (2023). https://doi.org/10.3390/land12040756
Terven, J., Cordova-Esparza, D.: A comprehensive review of yolo: from yolov1 to yolov8 and beyond. arXiv preprint arXiv:2304.00501 (2023)
Weiss, G.M.: Foundations of imbalanced learning. In: Imbalanced Learning: Foundations, Algorithms, and Applications, pp. 13–41 (2013)
World Health Organization: Statement on the fifteenth meeting of the ihr (2005) emergency committee on the covid-19 pandemic (2023). https://www.who.int/news/item/05-05-2023-statement-on-the-fifteenth-meeting-of-the-international-health-regulations-(2005)-emergency-committee-regarding-the-coronavirus-disease-(covid-19)-pandemic. Accessed 10 May 2023
Xiao, Y., et al.: A review of object detection based on deep learning. Multimedia Tools Appl. 79, 23729–23791 (2020). https://doi.org/10.1007/s11042-020-08976-6
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this paper
Cite this paper
Abao, R.P., Estuar, M.R.J.E., Abu, P.A.R. (2023). Physical Distancing and Mask Wearing Behavior Dataset Generator from CCTV Footages Using YOLOv8. In: Thomson, R., Al-khateeb, S., Burger, A., Park, P., A. Pyke, A. (eds) Social, Cultural, and Behavioral Modeling. SBP-BRiMS 2023. Lecture Notes in Computer Science, vol 14161. Springer, Cham. https://doi.org/10.1007/978-3-031-43129-6_29
Download citation
DOI: https://doi.org/10.1007/978-3-031-43129-6_29
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-031-43128-9
Online ISBN: 978-3-031-43129-6
eBook Packages: Computer ScienceComputer Science (R0)