中国安全科学学报 ›› 2024, Vol. 34 ›› Issue (7): 38-43.doi: 10.16265/j.cnki.issn1003-3033.2024.07.2030

• 安全社会科学与安全管理 • 上一篇    下一篇

基于改进YOLOv5的工业现场不安全行为检测

纪执安(), 周云奕, 张玉媛, 郭新然, 石坤   

  1. 中国特种设备检测研究院,北京 100029
  • 收稿日期:2024-01-08 修回日期:2024-04-13 出版日期:2024-07-28
  • 作者简介:

    纪执安 (1994—),男,河北沧州人,硕士,工程师,主要从事机器学习、智能检测和图像处理等方面的工作。E-mail:

    周云奕 工程师;

    张玉媛 工程师;

    郭新然 工程师;

    石 坤 研究员

  • 基金资助:
    国家市场监督管理总局科技计划项目(2023MK208); 中国特种设备检测研究院青年基金资助(2023youth07)

Industrial site unsafe behavior detection based on improved YOLOv5

JI Zhi'an(), ZHOU Yunyi, ZHANG Yuyuan, GUO Xinran, SHI Kun   

  1. China Special Equipment Inspection and Research Institute, Beijing 100029, China
  • Received:2024-01-08 Revised:2024-04-13 Published:2024-07-28

摘要:

为准确识别复杂工业现场人员的不安全行为,减少安全事故的发生,提出一种改进的YOLOv5不安全行为检测模型。首先,在YOLOv5的backbone部分引入注意力机制,提高卷积网络对不安全行为特征的敏感度;其次,通过图像几何变换和像素级处理丰富训练样本数量,提升检测模型在不同工业环境中的泛化能力;然后,蒸馏检测模型并优化网络结构参数来加速模型的训练;最后,将模型训练迭代200次,模拟起重吊索、机器人自动化产线和操作间3类工业现场,检测人员是否穿戴安全帽、工作服以及是否在安全区域工作,并依据行为划定危险等级,判定人员是否安全生产。结果表明:该模型能检测昏暗、光照和遮挡等多类复杂工业环境下人员的12种不安全行为,且在不安全行为测试集上精确率为98.6%,召回率为99.2%,平均精度为97.58%。

关键词: YOLOv5, 工业现场, 不安全行为, 检测模型, 注意力机制

Abstract:

In order to accurately identify unsafe behaviors of personnel in complex industrial sites and reduce the occurrence of safety accidents, an improved YOLOv5 unsafe behavior detection model was proposed. Firstly, an attention mechanism was introduced in the backbone of YOLOv5 to enhance the sensitivity of convolutional networks to unsafe behavior features. Secondly, enriching the number of training samples through image geometric transformation and pixel-level processing enhanced the generalization ability of the detection model in different industrial environments. Then, the detection model was distilled, and the network structure parameters were optimized to accelerate the training of the mode. Finally, the model was trained and iterated 200 times to simulate three types of industrial sites: lifting slings, robot-automated production lines, and operating rooms. It detected whether personnel were wearing safety helmets, work clothes and working in safe areas, and determined the level of danger based on their behavior to ascertain whether they were working safely. The results show that the model can detect 12 types of unsafe behaviors of personnel in complex industrial environments, such as dim light, lighting, and occlusion. The accuracy on the unsafe behavior test set is 98.6%, the recall rate is 99.2%, and the average accuracy is 97.58%.

Key words: YOLOv5, industrial site, unsafe behavior, detection model, attention module

中图分类号: