China Safety Science Journal ›› 2022, Vol. 32 ›› Issue (5): 194-200.doi: 10.16265/j.cnki.issn1003-3033.2022.05.0714

• Occupational health • Previous Articles     Next Articles

Safety helmet wearing detection algorithm in complex construction environment based on improved YOLOv3

ZHAO Hongcheng1(), TIAN Xiuxia1, YANG Zesen1, BAI Wanrong2   

  1. 1 School of Computer Science and Technology, Shanghai University of Electric Power, Shanghai 200090, China
    2 State Grid Gansu Electric Power Research Institute Gansu, Lanzhou Gansu 730070, China
  • Received:2021-12-11 Revised:2022-03-12 Online:2022-08-17 Published:2022-11-28

Abstract:

In order to address problems of inaccurate or failed detection of safety helmet wearing under intelligent monitoring due to complex environment in construction sites, an improved YOLOv3 detection algorithm was proposed. Focal Loss was adopted to train difficult positive samples so as to improve the model's robustness in complex environment. Then, its multi-scale detection capabilities were improved by using spatial pyramid multi-level pooling based on initial network. Thirdly, attention mechanism was introduced, and channel and spatial attention modules were respectively integrated into YOLOv3's backbone and residual structure of detection layer network, so that it would focus on helmet feature learning. Finally, GIoU was utilized to improve positioning accuracy, and the algorithm's effectiveness was verified under different visual conditions in a complex construction environment. The results show that the improved model's mean accuracy reaches 88%, 13.3% higher than the original one, among which the precision of person and helmet are increased by 17.2% and 9.5%, while recall rate is increased by 15.3% and 7.6%.

Key words: you only look once(YOLOv3), complex construction environment, helmet wearing, detection algorithm, Focal Loss, spatial pyramid pooling(SPP), attention mechanism, generalized intersection over union (GIoU)