China Safety Science Journal ›› 2026, Vol. 36 ›› Issue (10): 167-173.doi: 10.16265/j.cnki.issn1003-3033.2026.10.0319

• Safety Technology and Engineering • Previous Articles     Next Articles

Lightweight detection algorithm for safety helmet wearing based on improved YOLOv5

Liu Tiechao(), Sun Chao, Wang Bo**(), Yao Lichao   

  1. School of Measurement and Communication Engineering, Harbin University of Science and Technology, Harbin Heilongjiang 150080, China
  • Received:2026-04-22 Revised:2026-07-10 Online:2026-10-28 Published:2027-04-28
  • Contact: Wang Bo

Abstract:

To address the problems of large parameter volume, high memory consumption, and slow inference speed in current detection algorithms for safety helmet wearing, a lightweight object detection algorithm based on improved YOLOv5 was proposed. First, the MobileNetV3-C3 module was adopted. It replaced the C3 structure in the original backbone network, reducing the parameter volume and computational complexity of the algorithm. Second, a BiFPN structure was constructed. It replaced the Path Aggregation Network structure in the original feature fusion stage, restructuring the multi-scale feature fusion paths. Finally, a WIoU was introduced. It replaced complete intersection over union (CIoU), reducing the impact of low-quality anchor boxes on high-quality anchor boxes. The results show that the parameter volume of the improved algorithm is decreased to 2.750 632 MB. The inference time is shortened to 1.2 ms, and the detection accuracy reaches 95.2%. The improved algorithm is suitable for safety helmet wearing detection tasks in hardware resource-constrained scenarios.

Key words: YOLOv5, safety helmet wearing, lightweight, detection algorithm, bidirectional feature pyramid network (BiFPN), weighted intersection over union (WIoU)

CLC Number: