首页|基于YOLOv8-NFMC的带钢表面缺陷检测算法

基于YOLOv8-NFMC的带钢表面缺陷检测算法

扫码查看
针对YOLOv8算法在应用于带钢表面缺陷检测时存在漏检和错检等问题,提出了一种改进 YOLOv8算法.针对数据集中的小目标的标签,在原损失 CIOU 的基础上面加入标准化高斯瓦瑟斯坦距离(normalized Gaussian Wasserstein dis-tance,NWD),提升模型对小目标缺陷的检测能力;采用聚焦调制(focal modulation)替换 YOLOv8模型的空间池化金字塔(spatial pyramid pooling-fast,SPPF),在轻量化的同时,提高多尺度特征的表达能力;采用移动翻转瓶颈卷积(mobile inverted bottleneck conv,MBConv)替换 C2f中的 Conv构建新模块C2f-MB,同时使用C2f-MB替换原有的 C2f模块,增强特征表达能力和多尺度特征融合能力;在主干部分加入卷积块注意力机制(convolutional block attention module,CBAM)来抑制背景干扰,能更好捕获全局信息,提升了主干部分的特征提取能力.实验结果表明,改进后的 YOLOv8算法在计算量下降的同时,mAP@0.5提高了3%,对漏检和错检等问题有明显改善.
Surface defect detection algorithm for strip steel based on YOLOv8-NFMC
Aiming at the problems of leakage and wrong detection when the YOLOv8 algorithm is applied to the surface defect detection of strip steel,an improved YOLOv8 algorithm is proposed.For the labels of small targets in the dataset,normalized Gaussian Wasserstein distance(NWD)is added on top of the original lossy CIOU,which improves the model's ability to detect defects of small targets.Focal Modulation is used to replace the spatial pooling pyramid of the YOLOv8 model,which improves the expression ability of multi-scale features while lightweighting.Mobile inverted bottleneck Conv(MBConv)is used to replace the Conv in C2f to construct a new module C2f-MB,and at the same time replace the original C2f-MB with C2f-MB.MB to replace the original C2f module with C2f-MB,which enhances the feature expression ability and multi-scale feature fusion ability.the convolutional block attention module(CBAM)is added in the backbone part to suppress the background interference,which can better capture the global information and improve the feature extraction ability of the backbone part.Experiment results show that the improved YOLOv8 algorithm improves mAP@0.5 by 3%while decreasing the computation amount,which significantly improves the problems of missed detection and wrong detection.

steel surface defectsNWDFocal ModulationMB Convattention mechanism

朱成杰、刘乐乐、朱洪波

展开 >

安徽理工大学电气与信息工程学院 淮南 232001

带钢表面缺陷 NWD Focal Modulation MBConv 注意力机制

国家自然科学基金

62003001

2024

国外电子测量技术
北京方略信息科技有限公司

国外电子测量技术

CSTPCD
影响因子:1.414
ISSN:1002-8978
年,卷(期):2024.43(7)
  • 22