摘要
针对现有井下人员安全帽佩戴检测方法未考虑遮挡、目标较小、背景干扰等因素,存在检测精度差及模型不够轻量化等问题,提出一种改进YOLOv8n模型,并将其应用于井下人员安全帽佩戴检测。在颈部网络中加入P2小目标检测层,提高模型对小目标的检测能力,更好地捕捉安全帽目标细节;在主干网络中添加卷积块注意力模块(CBAM)提取图像关键特征,减少背景信息的干扰;将CIoU损失函数替换为WIoU损失函数,提升模型对检测目标的定位能力;采用轻量化共享卷积检测头(LSCD),通过共享参数的方式降低模型复杂度,并将卷积中的归一化层替换为群组归一化(GN),在尽可能保证精度的同时实现模型轻量化。实验结果表明:与YOLOv8n模型相比,改进YOLOv8n模型在交并比阈值为0.5时的平均精度均值(mAP@50)提升了1.8%,参数量减少了23.8%,计算量下降了10.4%,模型大小减小了17.2%;改进YOLOv8n模型检测精度高于SSD,YOLOv3-tiny,YOLOv5n,YOLOv7和YOLOv8n,模型复杂度仅高于YOLOv5n,较好地平衡了模型检测精度与复杂度;在井下复杂场景下,改进YOLOv8n模型能够实现对井下人员安全帽佩戴的准确检测,改善了漏检问题。
Existing methods for detecting safety helmet wearing among underground personnel fail to consider factors such as occlusion,small target size,and background interference,leading to poor detection accuracy and insufficient model lightweighting.This paper proposed an improved YOLOv8n model applied to safety helmet wearing detection in underground.A P2 small target detection layer was added to the neck network to enhance the model's ability to detect small targets and better capture details of safety helmets.A convolutional block attention module(CBAM)was integrated into the backbone network to extract key image features and reduce background interference.The CIoU loss function was replaced with the WIoU loss function to improve the model's localization capability for detection targets.A lightweight shared convolution detection head(LSCD)was used to reduce model complexity through parameter sharing,and normalization layers in convolutions were replaced with group normalization(GN)to reduce model weight while maintaining accuracy as much as possible.The experimental results showed that compared to the YOLOv8n model,the improved YOLOv8n model increased the mean average precision at an intersection over union threshold of 0.5(mAP@50)by 1.8%,reduced parameter count by 23.8%,lowered computational load by 10.4%,and decreased model size by 17.2%.The improved YOLOv8n model outperformed SSD,YOLOv3-tiny,YOLOv5n,YOLOv7,and YOLOv8n in detection accuracy,with a complexity only slightly higher than YOLOv5n,effectively balancing detection accuracy and complexity.In complex underground scenarios,the improved YOLOv8n model were able to achieve accurate detection of safety helmet wearing among underground personnel,addressing the issue of missed detections.
作者
王琦
夏鲁飞
陈天明
韩鸿胤
王亮
WANG Qi;XIA Lufei;CHEN Tianming;HAN Hongyin;WANG Liang(College of Mechanical and Electronic Engineering,Shandong University of Science and Technology,Qingdao 266590,China)
出处
《工矿自动化》
CSCD
北大核心
2024年第9期124-129,共6页
Journal Of Mine Automation
基金
国家自然科学基金项目(51974170)。