基于ESH-YOLO的小目标安全帽检测算法OA
Small Target Helmet Detection Algorithm Based on ESH-YOLO
针对现有的安全帽佩戴检测算法对复杂场景下小目标安全帽检测精度不高,存在错检和漏检的问题,提出一种基于YOLOv8n改进的安全帽佩戴检测算法ESH-YOLO.首先,将Star Blocks网络与CAA注意力机制相结合得到Star_CAA模块,并使用该模块优化原网络主干中的C2f结构,增强模型在复杂场景图像中对安全帽的识别性能,给予小目标安全帽更多的注意力权重而抑制对背景与工人区域的关注;其次,使用ELA_HSPAN作为颈部结构,通过特征选择和不同分辨率特征图的融合,更好地传递各层次特征信息,提高对不同尺度目标尤其是小目标的检测与定位能力;最后,引入PIoUv2损失函数,加快模型训练的收敛速度和提升边界框回归定位精度.实验结果表明,ESH-YOLO模型比原始模型在精确率、召回率、mAP@0.5和F1分数上分别提高了0.9个百分点、3.6个百分点、2.8个百分点、2.3个百分点,能有效减少复杂场景中小目标安全帽的漏检和误检问题.将本文算法应用在复杂施工现场可以准确地检测出工人是否佩戴安全帽,提高安全帽的佩戴率,从而保障工人的生命安全.
Aiming at the problems of low detection accuracy,false detection and missed detection of existing safety helmet wear-ing detection algorithms for small targets in complex scenes,this paper proposes an improved safety helmet wearing detection al-gorithm ESH-YOLO based on YOLOv8n.Firstly,the Star_CAA module is obtained by combining the Star Blocks network with the CAA attention mechanism,and the module is used to optimize the C2f structure in the original network backbone to enhance the recognition performance of the model for safety helmets in complex scene images,giving more attention weight to small target safety helmets and inhibiting the attention to background and worker regions.Secondly,ELA_HSPAN is used as the neck struc-ture.Through feature selection and fusion of feature maps with different resolutions,the feature information of each level is better relayed,and the detection and localization ability of objects with different scales,especially small objects,is improved.Finally,the PIoUv2 loss function is introduced to accelerate the convergence speed of model training and improve the positioning accu-racy of bounding box regression.Experimental results show that compared with the original model,the ESH-YOLO model im-proves the precision,recall rate,mAP@0.5 and F1 score by 0.9 percentage points,3.6 percentage points,2.8 percentage points and 2.3 percentage points respectively,which can effectively reduce the missed detection and false detection of small targets in complex scenes.The application of this algorithm in complex construction sites can accurately detect whether workers wear safety helmets,improve the wearing rate of safety helmets,so as to ensure the life safety of workers.
夏争乐;艾菊梅
东华理工大学软件学院,江西 南昌 330013东华理工大学软件学院,江西 南昌 330013
信息技术与安全科学
安全帽佩戴检测YOLOv8小目标检测Star_CAAELA_HSPANPIoUv2
helmet wearing detectionYOLOv8small target detectionStar_CAAELA_HSPANPIoUv2
《计算机与现代化》 2026 (3)
95-101,7
江西省放射性地学大数据技术工程实验室开放基金资助项目(JELRGBDT201805)
评论