Computer Engineering and Applications ›› 2025, Vol. 61 ›› Issue (3): 144-154.DOI: 10.3778/j.issn.1002-8331.2409-0334

• Special Issue on YOLOv8 Improvements and Applications • Previous Articles     Next Articles

GCW-YOLOv8n: Lightweight Safety Helmet Wearing Detection Algorithm

XU Zhuang, QIAN Yurong, YAN Feng   

  1. 1.Key Laboratory of Software Engineering, Xinjiang University, Urumqi 830091, China
    2.Key Laboratory of Signal Detection and Processing in Xinjiang Uygur Autonomous Region, Xinjiang University, Urumqi 830046, China
    3.School of Computer Science and Technology, Xinjiang University, Urumqi 830046, China
  • Online:2025-02-01 Published:2025-01-24

GCW-YOLOv8n:轻量级安全帽佩戴检测算法

徐壮,钱育蓉,颜丰   

  1. 1.新疆大学 软件工程重点实验室,乌鲁木齐 830091
    2.新疆维吾尔自治区信号检测与处理重点实验室,乌鲁木齐 830046
    3.新疆大学 计算机科学与技术学院,乌鲁木齐 830046

Abstract: China is a major industrial country in the world. In various construction environments, the falling of construction materials and collisions on construction sites are the main causes of casualties. Accidents caused by head injuries often occur, and wearing safety helmets can ensure the safety of construction personnel to the greatest extent possible. In order to solve the problems of poor timeliness and low management efficiency of manual management, the existing models have strict requirements for computing power, large memory requirements, and handling of load and data transmission delay of industrial equipment, and to achieve edge computing and real-time control, a modified helmet wearing detection algorithm based on YOLOv8n is proposed. Firstly, a new GS-C2f module is proposed, which introduces GhostConv and SE (squeeze and excitation) attention mechanism, effectively reducing the computational complexity of the model and helping the network extract features effectively. Secondly, the CBAM attention mechanism is introduced in the Neck section to enhance the model focus on effective features. Finally, Wise-IoUv3 is introduced to further improve the accuracy of the model. Through experiments, compared with the original YOLOv8n model, this model achieves a 21.24% reduction in computational parameters and a 0.01 improvement in recognition accuracy, achieving satisfactory results between model accuracy and complexity.

Key words: YOLOv8n, safety helmet wearing detection, GhostConv, CBAM attention mechanism

摘要: 我国是世界工业大国,在各种施工环境下,施工材料的坠落以及施工现场的碰撞是造成伤亡事故的主要原因。因头部伤害而导致的伤亡事故时有发生,而佩戴安全帽可以最大程度上保证施工人员的安全。为解决人工管理的时效性差、管理效率低下,现有模型对算力需求较为严苛,内存需求大,以及工业设备在处理负载和数据传输延迟的问题,实现边缘计算、实时管控,提出一种基于YOLOv8n的改进安全帽佩戴检测算法。提出了一种新的GS-C2f模块,该模块引入GhostConv及SE(squeeze-and-excitation)注意力机制,有效降低了模型计算量及其复杂度,同时帮助网络有效提取特征。在Neck部分引入CBAM注意力机制,使模型加强对有效特征的关注。引入Wise-IoUv3进一步提高模型的精度。经实验,该模型对比原YOLOv8n模型,在计算参数下降21.24%的同时,识别精度提升了0.01,在模型精度和复杂度之间均取得了令人满意的效果。

关键词: YOLOv8n, 安全帽佩戴检测, GhostConv, CBAM注意力机制