首页|基于YOLOv5s网络改进的钢铁表面缺陷检测算法

基于YOLOv5s网络改进的钢铁表面缺陷检测算法

扫码查看
针对目前钢铁表面缺陷检测算法存在检测精度低、检测速度慢和模型复杂度高等问题,提出基于YOLOv5s改进的钢铁表面缺陷检测算法。将SE通道注意力模块融入骨干网络中以增大缺陷特征通道权重,降低背景干扰,提高算法对缺陷特征的提取能力;在颈部网络融入STR多头自注意力模块,提高缺陷边缘纹理等细节特征的比重;改进损失函数为SIoU,缩短预测框回归收敛过程以提高算法检测速度。实验结果表明:改进算法在NEU-DET数据集上的mAP值为80。4%,较YOLOv5s提高5。5%,每秒处理帧数为100,算法体积降低约8。3%,算法计算量降低约4。3%,对比其他的目标检测算法,改进算法在检测精度、检测速度上均明显提升,模型复杂度降低明显。改进算法可满足实时钢铁表面缺陷检测需求。
Improved Steel Surface Defect Detection Algorithm Based on YOLOv5s Network
Aiming at the problems of low detection accuracy,slow detection speed and high model complexity of the current steel surface defect detection algorithm,an improved steel surface defect detection algorithm based on YOLOv5s was proposed.The SE chan-nel attention module was integrated into the backbone network to increase the weight of defect feature channels,reduce background in-terference,and improve the extraction ability of the algorithm for defect features.The STR multi-head self-attention module was inte-grated into the neck network to increase the proportion of detail features such as defect edge texture.The loss function was improved to SIoU to shorten the prediction box regression convergence process and improve the algorithm detection speed.The experimental results show that the mAP value of the improved algorithm on the NEU-DET dataset is 80.4%,which is 5.5%higher than that of YOLOv5s,the number of processed frames per second is 100,the algorithm volume is reduced by about 8.3%,and the algorithm calculation amount is reduced by about 4.3%.Compared with other target detection algorithms,the improved algorithm has significantly improved the detection accuracy and detection speed,and the complexity of the model is significantly reduced.The improved algorithms meet the needs of real-time steel surface defect detection.

steel surface defectsSE channel attention moduleSTR moduledetection algorithm

杨涛、刘美、孟亚男、张斐、刘世杰、莫常春

展开 >

吉林化工学院信息与控制工程学院,吉林吉林 132022

广东石油化工学院自动化学院,广东茂名 525000

东莞理工学院机械工程学院,广东东莞 523419

湖南科技大学机械设备健康维护湖南省重点实验室,湖南湘潭 411201

大连交通大学机车车辆工程学院,辽宁大连 116028

展开 >

钢铁表面缺陷 SE通道注意力模块 STR模块 检测算法

国家自然科学基金面上项目湖南省重点实验室开放基金广东省普通高等学校重点领域(新一代信息技术)专项

62073091219032020ZDZX3042

2024

机床与液压
中国机械工程学会 广州机械科学研究院有限公司

机床与液压

CSTPCD北大核心
影响因子:0.32
ISSN:1001-3881
年,卷(期):2024.52(4)
  • 20