Intelligent Personal Protective Equipment Detection System Using YOLOv8 and Computer Vision
DOI:
https://doi.org/10.67294/b1hfct23Keywords:
Personal Protective Equipment, Object Detection, YOLOv8, Computer Vision, Occupational SafetyAbstract
The correct use of personal protective equipment (PPE) is an essential requirement to reduce risks in industrial and construction environments. However, manual visual inspection is costly, intermittent, and difficult to scale. This work presents an automatic PPE detection system based on computer vision, deep learning, and a web application for real-time monitoring. The solution employs a fine-tuned YOLOv8s model with a dataset of ten classes related to people, safety elements, and industrial context. The local dataset contains 2,570 training images, 113 validation images, and 81 test images. The model was trained at a resolution of 640×640 pixels, with a batch size of 16. The deployment application, developed with Flask, Flask-SocketIO, OpenCV, and SQLite, processes camera video, displays detections, determines PPE compliance based on configurable rules, issues alerts, and saves photographic evidence of non-compliance. Two training runs of 80 and 200 epochs were compared; the first achieved a mAP@50 of 0.94374 and a mAP@50–95 of 0.59035, while the second achieved a mAP@50 of 0.89474 and a mAP@50–95 of 0.61517. Due to its better mAP@50, the 80-epoch model was finally integrated into the deployment application. The results indicate that the system is viable as a support tool for preventive supervision, although it requires validation under real operating conditions and a more robust person–PPE association for scenarios with multiple workers.
References
Aboah, A., Wang, B., Bagci, U., & Adu-Gyamfi, Y. (2023). Real-time multi-class helmet violation detection using few-shot data sampling technique and YOLOv8. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW) (pp. 5350–5358). https://doi.org/10.1109/CVPRW59228.2023.00564
Barlybayev, A., Amangeldy, N., Kurmetbek, B., Krak, I., Razakhova, B., Tursynova, N., & Turebayeva, R. (2024). Personal protective equipment detection using YOLOv8 architecture on object detection benchmark datasets: A comparative study. Cogent Engineering, 11(1), 2333209. https://doi.org/10.1080/23311916.2024.2333209
Bradski, G. (2000). The OpenCV library. Dr. Dobb’s Journal of Software Tools, 25(11), 120–126. https://jacobfilipp.com/DrDobbs/articles/DDJ/2000/0011/0011k/0011k.htm
Cheng, J. P., Wong, P. K. Y., Luo, H., Wang, M., & Leung, P. H. (2022). Vision-based monitoring of site safety compliance based on worker re-identification and personal protective equipment classification. Automation in Construction, 139, 104312. https://doi.org/10.1016/j.autcon.2022.104312
Elmotarajjy, A., Sabri, A. (2026). Anomaly Detection in Scenes, Images, and Video Using YOLOv8: Crime Detection. In: Motahhir, S., Bossoufi, B., Guerrero, J.M. (eds) Digital Technologies and Applications. ICDTA 2025. Lecture Notes in Networks and Systems, vol 1641. Springer, Cham. https://doi.org/10.1007/978-3-032-06061-7_29
Fang, Q., Li, H., Luo, X., Ding, L., Luo, H., Rose, T. M., & An, W. (2018). Detecting non-hardhat-use by a deep learning method from far-field surveillance videos. Automation in Construction, 85, 1–9. https://doi.org/10.1016/j.autcon.2017.09.018
Grinberg, M. (2018). Flask web development: Developing web applications with Python (2nd ed.). O’Reilly Media.
Hussain, M. (2024). YOLOv1 to v8: Unveiling each variant—a comprehensive review of YOLO. IEEE Access, 12, 42816–42833. https://doi.org/10.1109/ACCESS.2024.3378568
International Labour Organization. (2023, November 26). Nearly 3 million people die of work-related accidents and diseases. ILO News. https://www.ilo.org/resource/news/nearly-3-million-people-die-work-related-accidents-and-diseases
Jocher, G., Chaurasia, A., & Qiu, J. (2023). Ultralytics YOLOv8 [Software]. GitHub. https://github.com/ultralytics/ultralytics
Kim, D., & Xiong, S. (2025). Enhancing Worker Safety: Real-Time Automated Detection of Personal Protective Equipment to Prevent Falls from Heights at Construction Sites Using Improved YOLOv8 and Edge Devices. Journal of Construction Engineering and Management, 151(1). https://Doi.Org/10.1061/Jcemd4.Coeng-14985
Kiran, V. L. S., Varma, V. C., Raju, B. C., Avinash, P., Kireeti, S. H. K., & Rao, V. R. (2026). Intelligent Weapon Detection System for Real Time Surveillance Using Deep Learning with YOLOV8. Smart Innovation, Systems and Technologies, 477 SIST, 383–391. https://doi.org/10.1007/978-3-032-18849-6_33
Kiran, V.L.S., Varma, V.C., Raju, B.C., Avinash, P., Kireeti, S.H.K., Rao, V.R. (2026). Intelligent Weapon Detection System for Real Time Surveillance Using Deep Learning with YOLOV8. In: Bhateja, V., Patel, P., Khattri, V. (eds) Evolution in Computational Intelligence. FICTA 2025. Smart Innovation, Systems and Technologies, vol 477. Springer, Cham. https://doi.org/10.1007/978-3-032-18849-6_33.
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: Fleet, D., Pajdla, T., Schiele, B., Tuytelaars, T. (eds) Computer Vision – ECCV 2014. ECCV 2014. Lecture Notes in Computer Science, vol 8693. Springer, Cham. https://doi.org/10.1007/978-3-319-10602-1_48
Murugan, T., Nasurudeen Ahamed, N., Semaihi, A. O. A., Alkindi, M. M. R., Alnaqbi, E. M. R., & Alketbi, G. H. T. (2026). Research Study on Real-Time Weapon Detection in Surveillance Systems using YOLO Models. Procedia Computer Science, 283, 2382–2391. https://doi.org/10.1016/j.procs.2026.06.308
Nath, N. D., Behzadan, A. H., & Paal, S. G. (2020). Deep learning for site safety: Real-time detection of personal protective equipment. Automation in Construction, 112, 103085. https://doi.org/10.1016/j.autcon.2020.103085
Redmon, J., Divvala, S., Girshick, R., & Farhadi, A. (2016). You Only Look Once: Unified, real-time object detection. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 779–788. https://doi.org/10.1109/CVPR.2016.91
Redmon, J., & Farhadi, A. (2018). YOLOv3: An incremental improvement. ArXiv E-Prints. arXiv:1804.0276. https://arxiv.org/abs/1804.02767
Roboflow Universe. (2023). Construction site safety image dataset. Roboflow. https://universe.roboflow.com/roboflow-universe-projects/construction-site-safety
Saraswathi MT, Lakshayprethish M S, Pradeep P (2026). Explainable AI-Driven Smart Home Surveillance for Real-Time Anomaly Detection. In: Proceedings of 8th International Conference on Intelligent Sustainable Systems (ICISS). pp 406–414. https://doi.org/10.1109/ICISS67859.2026.11453558
Satheesh Kumar M, Akash P, Balashowreelu G, et al (2026). Safe Vision: AI Surveillance and Alert System using YOLOv8 for Robbery Prevention. In: Proceedings of the 5th International Conference on Sentiment Analysis and Deep Learning, ICSADL 2026. pp 1371–1376. IEEE. https://doi.org/10.1109/ICSADL67539.2026.11451804
Shelge A, Thavva R, Sharanya KS (2026). YOLOv8-based Weapon Tracking and Triangulation with a 3-Camera Setup. In: Proceedings - 2026 International Conference on Innovations in Computational Intelligence, ICICI 2026. Ghaziabad, India. https://doi.org/10.1109/ICICI68867.2026.11564882
SQLite Consortium. (2026). SQLite documentation. https://www.sqlite.org/atomiccommit.html#_persistent_rollback_journals
Terven, J., Córdova-Esparza, D.-M., & Romero-González, J.-A. (2023). A comprehensive review of YOLO architectures in computer vision: From YOLOv1 to YOLOv8 and YOLO-NAS. Machine Learning and Knowledge Extraction, 5(4), 1680–1716. https://doi.org/10.3390/make5040083
The Pallets Projects. (2026). Flask documentation. https://flask.palletsprojects.com/
Yaseen, M. (2024). What is YOLOv8: An in-depth exploration of the internal features of the next-generation object detector. arXiv. https://doi.org/10.48550/arXiv.2408.15857
Zubair SB, Zubair SB, Raheem A, Bari MA (2026). Real-Time Automated Weapon Detection Using YOLOv8 for Enhanced Surveillance. In: Lecture Notes in Networks and Systems. pp 361–374. Springer, Cham. https://doi.org/10.1007/978-3-032-25958-5_27
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Cristian Peralta, Manuel J. Ibarra Cabrera (Author)

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
























