Outline

Ingegneria Sismica

Ingegneria Sismica

Safety Helmet Wearing Detection Algorithm based on Improved YOLOv5s in Complex Environment

Author(s): Taoying Hu1, Jiusheng Zhou2
1School of Computer and Information Engineering, Maanshan Teacher’s College, Maanshan 243041, Anhui, China
2Equipment management department,Special Steel Company of Masteel Co., Ltd., China Baowu Group, Maanshan 243000, Anhui, China
Hu, Taoying. and Zhou, Jiusheng. “Safety Helmet Wearing Detection Algorithm based on Improved YOLOv5s in Complex Environment.” Ingegneria Sismica Volume 43 Issue 3: 1-15, doi:10.65102/is20261181.

Abstract

Safety helmet wearing detection has become particularly important in work sites such as construction, steel and mining. However, the complex environment of the work sites, with numerous equipment, dense personnel, and insufficient lighting, poses a challenge to safety helmet detection. To solve these issues, a target detection algorithm based on improved YOLOv5s is proposed. The BiFormer attention mechanism is added to the neck layer of YOLOv5s to reduce the computational burden by utilizing the Bi-Level Routing Attention (BRA) mechanism, which implements dynamic querying through sparse matrices and focuses on the key information. By introducing the BiFormer attention mechanism, the model can capture key features in images, especially under low-light and high-reflection conditions, enhancing the recognition capability of safety helmet features. Additionally, the introduction of Wise-IoU optimizes the performance evaluation of the model for detecting targets of varying sizes and complexities through a weighted intersection-over-union approach. Experimental results show that the improved YOLOv5s enhances detection accuracy and speed, particularly excelling in the detection of small and overlapping targets. Compared to the YOLOv5s model, the improved model achieved an improvement of 4.4% in accuracy, 2.3% in recall, and 14FPS in detection speed by. Additionally, it can be seen from the experimental transformation curves that mAP@0.5 and mAP@0.5:0.95 have increased significantly. Tests in real-world scenarios validate the practicality and robustness of the algorithm.

Keywords
YOLOv5s, Safety Helmet Wearing Detection, BiFormer, Wise-IoU.

Related Articles

Liqin Zheng1, Dongrui Qing2, Yan Zhang1
1School of Mathematics and Statistics, Shaan Xi Xue Qian Normal University Xi’an 710100, P.R.China
2School of Marxism, Xi’an University of Finance and Economics Xi’an 710100, P.R.China
Yanan Gao1, Aiqun Peng2, Nina Ma2
1Management School of Anhui Business and Technology College Hefei 230000, Anhui, China
2Economics and Trade School of Anhui Business and Technology College Hefei 230000, Anhui, China
Ya’ning Liu1, Ping Ma1
1School of Teacher Education, Shihezi University, Shihezi, Xinjiang, 832000, China
Yuhui Li1, Zhongliang Gong1
1College of Mechanical and Intelligent Manufacturing, Central South University of Forestry and Technology, Changsha, Hunan, 410004, China
Hanqing Hu1, Chengjin Liu1, Tianmu Tian1
1School of Management Science and Engineering, Beijing Information Science & Technology University, Beijing 100192