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

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

Industrial site unsafe behavior detection based on improved YOLOv5

纪执安 周云奕 张玉媛 郭新然 石坤
中国安全科学学报2024,Vol.34Issue(7) :38-43.DOI:10.16265/j.cnki.issn1003-3033.2024.07.2030

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

Industrial site unsafe behavior detection based on improved YOLOv5

纪执安 1周云奕 1张玉媛 1郭新然 1石坤1
扫码查看

作者信息

  • 1. 中国特种设备检测研究院,北京 100029
  • 折叠

摘要

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

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%.

关键词

YOLOv5/工业现场/不安全行为/检测模型/注意力机制

Key words

YOLOv5/industrial site/unsafe behavior/detection model/attention module

引用本文复制引用

基金项目

国家市场监督管理总局科技计划项目(2023MK208)

中国特种设备检测研究院青年基金资助(2023youth07)

出版年

2024
中国安全科学学报
中国职业安全健康协会

中国安全科学学报

CSTPCD北大核心
影响因子:1.548
ISSN:1003-3033
参考文献量4
段落导航相关论文