欢迎访问《图学学报》 分享到:

图学学报 ›› 2024, Vol. 45 ›› Issue (1): 112-125.DOI: 10.11996/JG.j.2095-302X.2024010112

• 图像处理与计算机视觉 • 上一篇    下一篇

基于MCB-FAH-YOLOv8的钢材表面缺陷检测算法

崔克彬1,2(), 焦静颐1   

  1. 1.华北电力大学计算机系,河北 保定 071003
    2.复杂能源系统与智能计算教育部工程研究中心,河北 保定 071003
  • 收稿日期:2023-07-17 接受日期:2023-10-12 出版日期:2024-02-29 发布日期:2024-02-29
  • 作者简介:

    崔克彬(1979-),男,讲师,博士。主要研究方向为数字图像处理与模式识别。E-mail:ncepuckb@163.com

Steel surface defect detection algorithm based on MCB-FAH-YOLOv8

CUI Kebin1,2(), JIAO Jingyi1   

  1. 1. Department of Computer Science, North China Electric Power University, Baoding Hebei 071003, China
    2. Engineering Research Center of Intelligent Computing for Complex Energy Systems, Ministry of Education, Baoding Hebei 071003, China
  • Received:2023-07-17 Accepted:2023-10-12 Online:2024-02-29 Published:2024-02-29
  • About author:

    CUI Kebin (1979-), lecturer, Ph.D. His main research interests cover digital image processing and pattern recognition. E-mail:ncepuckb@163.com

摘要:

针对现有基于深度学习的钢材表面缺陷检测算法存在误检、漏检和检测精度低等问题,提出一种基于改进CBAM(modified CBAM,MCB)和可替换四头ASFF预测头(four-head ASFF prediction head,FAH)的YOLOv8钢材表面缺陷检测算法,简记为MCB-FAH-YOLOv8。通过加入改进后的卷积注意力机制模块(CBAM)对密集目标更好的确定;通过将FPN结构改为BiFPN更加高效的提取上下文信息;通过增加自适应特征融合(ASFF)自动找出最适合的融合特征;通过将SPPF模块替换为精度更高的SimCSPSPPF模块。同时,针对微小物体检测,提出了四头ASFF预测头,可根据数据集特点进行替换。实验结果表明,MCB-FAH-YOLOv8算法在VOC2007数据集上检测精度(mAP)达到了88.8%,在NEU-DET钢铁缺陷检测数据集上检测精度(mAP)达到了81.8%,较基准模型分别提高了5.1%和3.4%,该算法在牺牲较少检测速度的情况下取得较高的检测精度,很好的平衡了算法的精度和速度。

华北电力大学崔克彬博士等针对实际生产中钢铁缺陷检测存在误检、漏检等问题,提出了基于改进YOLOv8n的钢铁缺陷检测算法MCB-FAH-YOLOv8。通过加入改进后的CBAM注意力机制模块对密集目标更好的确定;通过将FPN结构改为BiFPN更加高效的提取上下文信息;通过增加ASFF自动找出最适合的融合特征;通过将SPPF模块替换为精度更高的SimCSPSPPF模块。同时,针对微小物体检测,提出了四头ASFF预测头,可根据数据集特点进行替换。

关键词: MCB-FAH-YOLOv8, 缺陷检测, 注意力机制, 四头ASFF预测头, 特征融合

Abstract:

To address the problems of misdetection, omission, and low detection accuracy in existing deep learning-based algorithms for detecting defects on steel surfaces, a YOLOv8 steel surface defect detection algorithm was proposed based on a modified CBAM (MCB) and replaceable four-head ASFF prediction head (FAH), abbreviated as MCB-FAH-YOLOv8. By integrating the modified convolutional attention mechanism module (CBAM), the algorithm could achieve better determination of the densely populated targets. By changing the FPN structure to BiFPN, it could extract context information more efficiently. It also incorporated adaptive feature fusion (ASFF) for the automatic identification of the most suitable fusion features. The algorithm also boosted its precision by replacing the SPPF module with the SimCSPSPPF module. Meanwhile, for tiny object detection, a four-head ASFF prediction head was proposed, designed to be replaceable based on the dataset characteristics. The experimental results demonstrated that the MCB-FAH-YOLOv8 algorithm could achieve a detection accuracy (mAP) of 88.8% on the VOC2007 dataset and 81.8% on the NEU-DET steel defect detection dataset, outperforming the benchmark model by 5.1% and 3.4%, respectively. This new algorithm achieved a higher detection accuracy with less loss of detection speed, thus ensuring a good balance between accuracy and speed.

Key words: MCB-FAH-YOLOv8, defect detection, attention mechanism, four-head ASFF prediction head, feature fusion

中图分类号: