Controlled Comparison of YOLO26-L and RT-DETR-L for Detecting Heads with and without Helmets in Hard Hat Detection
DOI:
https://doi.org/10.67294/1r9e8a02Keywords:
Occupational Safety, Safety Helmet, Object Detection, Computer Vision, Transfer LearningAbstract
When a head occupies a small region of the image, distinguishing between protection and non-compliance requires locating it precisely and correctly classifying its protection state. This study compared YOLO26-L and RT-DETR-L to detect the classes head_with_helmet and head_without_helmet exclusively on the Hard Hat Detection dataset. Its 5,000 images and 24,751 instances, obtained from Kaggle with Pascal VOC annotations, were processed using a custom Python pipeline that verified the integrity of the image-annotation pairs, detected exact duplicates using SHA-256, converted the boxes to YOLO format, and generated a stratified split into training, validation, and test sets of 70%, 15%, and 15%, respectively. Both detectors were initialized with COCO-pretrained weights, used a resolution of 640 × 640 pixels, and were trained with three seeds using Ultralytics 8.4.0. A common confidence threshold of 0.576 was selected exclusively on validation and subsequently kept fixed on test. At that point, YOLO26-L obtained a precision of 0.9290 ± 0.0045, a recall of 0.8610 ± 0.0139, and an mAP@0.50:0.95 of 0.6353 ± 0.0016; RT-DETR-L achieved 0.8994 ± 0.0030, 0.9093 ± 0.0067, and 0.6180 ± 0.0017, respectively. RT-DETR-L reduced false negatives for the without-helmet class from 146.0 ± 14.7 to 82.0 ± 4.4. In contrast, YOLO26-L obtained a higher mAP@0.50:0.95, presented lower latency, and required a lower computational cost. The results evidenced an operational trade-off: YOLO26-L favored localization quality and efficiency, whereas RT-DETR-L prioritized recall at the established threshold.
References
Ahmad, H. M., & Rahimi, A. (2025). SH17: A dataset for human safety and personal protective equipment detection in manufacturing industry. Journal of Safety Science and Resilience, 6(2), 175–185. https://doi.org/10.1016/J.JNLSSR.2024.09.002
Chen, X., Jiao, Z., & Liu, Y. (2025). Improved YOLOv8n based helmet wearing inspection method. Scientific Reports, 15(1), 1945. https://doi.org/10.1038/s41598-024-84555-1
Fan, Z., Wu, Y., Liu, W., Chen, M., & Qiu, Z. (2024). LG-YOLOv8: A lightweight safety helmet detection algorithm combined with feature enhancement. Applied Sciences, 14(22), 10141. https://doi.org/10.3390/APP142210141
Huang, S., Lu, Z., Cun, X., Yu, Y., Zhou, X., & Shen, X. (2025). DEIM: DETR with improved matching for fast convergence. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 15162–15171. https://doi.org/10.1109/CVPR52734.2025.01412
Jia, X., Zhou, X., Su, C., Shi, Z., Lv, X., Lu, C., & Zhang, G. (2024). High-precision and lightweight model for rapid safety helmet detection. Sensors, 24(21), 6985. https://doi.org/10.3390/S24216985
Jocher, G., Qiu, J., Liu, M., Lyu, S., Akyon, F. C., & Kalfaoglu, M. E. (2026). Ultralytics YOLO26: Unified real-time end-to-end vision models. arXiv preprint arXiv:2606.03748. https://doi.org/10.48550/arXiv.2606.03748
Larxel. (2020). Hard hat dataset. Kaggle data set. https://www.kaggle.com/datasets/andrewmvd/hard-hat-detection
Li, C. Y., Wang, J., Luo, B., Yin, T., Liu, B., & Lu, J. (2025). SD-YOLOv5: A rapid detection method for personal protective equipment on construction sites. Frontiers in Built Environment, 11, 1563483. https://doi.org/10.3389/FBUIL.2025.1563483
Li, H., Wu, D., Zhang, W., & Xiao, C. (2024). YOLO-PL: Helmet wearing detection algorithm based on improved YOLOv4. Digital Signal Processing, 144, 104283. https://doi.org/10.1016/J.DSP.2023.104283
Li, X., Hu, M., Li, B., & Tong, R. (2025). OAM-YOLO: A real-time small object detection framework for PPE compliance monitoring in industrial environments. Process Safety and Environmental Protection, 204, 108058. https://doi.org/10.1016/J.PSEP.2025.108058
Liao, L., Chen, L., Zhang, B., Liu, X., Yan, W., & Yu, Y. (2026). Dataset and approach for helmet-wearing detection with edge devices at construction sites. Concurrency and Computation: Practice and Experience, 38(7), e70692. https://doi.org/10.1002/CPE.70692
Liu, S., & Wang, J. (2026). AE-LFOG-YOLO: Robust safety helmet detection via adaptive anchors and illumination invariant learning. Scientific Reports, 16(1), 6402. https://doi.org/10.1038/s41598-026-37326-z
Liu, Y., Jiang, B., He, H., Chen, Z., & Xu, Z. (2024). Helmet wearing detection algorithm based on improved YOLOv5. Scientific Reports, 14(1), 8768. https://doi.org/10.1038/s41598-024-58800-6
Llerena, J. M., & Jung, C. R. (2025). Noise-aware evaluation of object detectors. Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, 9322–9331. https://doi.org/10.1109/WACV61041.2025.00903
Lv, W., Zhao, Y., Chang, Q., Huang, K., Wang, G., & Liu, Y. (2024). RT-DETRv2: Improved baseline with bag-of-freebies for real-time detection transformer. arXiv preprint arXiv:2407.17140. https://doi.org/10.48550/arXiv.2407.17140
Nikouei, M., Baroutian, B., Nabavi, S., Taraghi, F., Aghaei, A., Sajedi, A., & Moghaddam, M. E. (2025). Small object detection: A comprehensive survey on challenges, techniques and real-world applications. Intelligent Systems with Applications, 27, 200561. https://doi.org/10.1016/J.ISWA.2025.200561
Rasouli, S., Alipouri, Y., & Chamanzad, S. (2024). Smart personal protective equipment (PPE) for construction safety: A literature review. Safety Science, 170, 106368. https://doi.org/10.1016/J.SSCI.2023.106368
Ren, H., Fan, A., Zhao, J., Song, H., Wen, Z., & Lu, S. (2025). A dynamic weighted feature fusion lightweight algorithm for safety helmet detection based on YOLOv8. Measurement, 253, 117572. https://doi.org/10.1016/J.MEASUREMENT.2025.117572
Song, C., & Li, Y. (2025). A YOLOv8 algorithm for safety helmet wearing detection in complex environment. Scientific Reports, 15(1), 24236. https://doi.org/10.1038/s41598-025-08828-z
Song, X., Zhang, T., & Yi, W. (2024). An improved YOLOv8 safety helmet wearing detection network. Scientific Reports, 14(1), 17550. https://doi.org/10.1038/s41598-024-68446-z
Sun, Y., Sun, Z., & Chen, W. (2024). The evolution of object detection methods. Engineering Applications of Artificial Intelligence, 133, 108458. https://doi.org/10.1016/J.ENGAPPAI.2024.108458
United Nations. (2015). Transforming our world: The 2030 agenda for sustainable development (A/RES/70/1). United Nations. https://sdgs.un.org/2030agenda
Vukicevic, A. M., Petrovic, M., Milosevic, P., Peulic, A., Jovanovic, K., & Novakovic, A. (2024). A systematic review of computer vision-based personal protective equipment compliance in industry practice: Advancements, challenges and future directions. Artificial Intelligence Review, 57(12), 319. https://doi.org/10.1007/S10462-024-10978-X
Wang, A., Chen, H., Liu, L., Chen, K., Lin, Z., Han, J., & Ding, G. (2024). YOLOv10: Real-time end-to-end object detection. Advances in Neural Information Processing Systems, 37, 107984–108011. https://doi.org/10.52202/079017-3429
Wang, S. (2025). Automated non-PPE detection on construction sites using YOLOv10 and transformer architectures for surveillance and body worn cameras with benchmark datasets. Scientific Reports, 15(1), 27043. https://doi.org/10.1038/s41598-025-12468-8
Wang, S. (2026). Domain-adaptive faster R-CNN for non-PPE identification on construction sites from body-worn and general images. Scientific Reports, 16(1), 4793. https://doi.org/10.1038/s41598-026-35148-7
Wang, S., Kim, H., Yeo, J., & Kim, J. (2026). YOLOv10-based multi-scale variant object detection for multi-category PPE non-compliance monitoring on construction sites. Scientific Reports. https://doi.org/10.1038/S41598-026-53052-Y
Wang, S., Zhang, E.-L., Hong, R.-L., & Kim, J. (2026). An enhanced YOLOv10 framework for small-object safety helmet detection on construction sites. Scientific Reports. https://doi.org/10.1038/S41598-026-60485-Y
Wang, S., Xia, C., Lv, F., & Shi, Y. (2025). RT-DETRv3: Real-time end-to-end object detection with hierarchical dense positive supervision. Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, 1628–1636. https://doi.org/10.1109/WACV61041.2025.00166
Wang, Z., Zhu, Y., Zhang, Y., & Liu, S. (2025). An effective deep learning approach enabling miners’ protective equipment detection and tracking using improved YOLOv7 architecture. Computers and Electrical Engineering, 123, 110173. https://doi.org/10.1016/J.COMPELECENG.2025.110173
Wang, Z., Mu, D., Li, Z., & Dong, F. (2026). A safety helmet detection algorithm based on improved YOLOv11n for complex coal mine scenarios. Digital Signal Processing, 176, 106082. https://doi.org/10.1016/J.DSP.2026.106082
Wei, L., Liu, P., Ren, H., & Xiao, D. (2024). Research on helmet wearing detection method based on deep learning. Scientific Reports, 14(1), 7010. https://doi.org/10.1038/s41598-024-57433-z
Wen, S., Park, M., Tran, D. Q., Lee, S., & Park, S. (2024). Automated construction safety reporting system integrating deep learning-based real-time advanced detection and visual question answering. Advances in Engineering Software, 198, 103779. https://doi.org/10.1016/J.ADVENGSOFT.2024.103779
Xiuling, Z., Huijuan, W., Yu, S., Gang, C., Suhua, Z., & Quanbo, Y. (2024). Starting from the structure: A review of small object detection based on deep learning. Image and Vision Computing, 146, 105054. https://doi.org/10.1016/J.IMAVIS.2024.105054
Yang, B., Xiao, H., & Zhang, B. (2024). A unified object and keypoint detection framework for personal protective equipment use. Developments in the Built Environment, 20, 100559. https://doi.org/10.1016/j.dibe.2024.100559
Zhang, H., Li, J., Li, Z., Kong, L., & Zhao, X. (2026). Real-time safety helmet detection using multi-scale feature-gated fusion. Automation in Construction, 186, 106891. https://doi.org/10.1016/J.AUTCON.2026.106891
Zhang, W., Du, Y., & Wu, Z. (2026). Helmet-wearing detection with small object recognition via improved YOLOv8 in complex environments. Digital Signal Processing, 176, 106066. https://doi.org/10.1016/J.DSP.2026.106066
Zhang, Y., Huang, S., Qin, J., Li, X., Zhang, Z., Fan, Q., & Tan, Q. (2025). Detection of helmet use among construction workers via helmet-head region matching and state tracking. Automation in Construction, 171, 105987. https://doi.org/10.1016/J.AUTCON.2025.105987
Zhao, Y., Lv, W., Xu, S., Wei, J., Wang, G., Dang, Q., Liu, Y., & Chen, J. (2024). DETRs beat YOLOs on real-time object detection. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 16965–16974. https://doi.org/10.1109/CVPR52733.2024.01605
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Victor Manuel Alejo Andrade, Manuel J. Ibarra-Cabrera (Author)

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
























