J Shanghai Jiaotong Univ Sci ›› 2025, Vol. 30 ›› Issue (5): 1037-1049.doi: 10.1007/s12204-024-2723-2

• • 上一篇    下一篇

CSC-YOLO:一种铜板带表面缺陷检测的图像识别模型

  

  1. 昆明理工大学 信息工程与自动化学院,昆明 650500
  • 收稿日期:2023-06-02 接受日期:2023-08-05 出版日期:2025-09-26 发布日期:2024-04-22

CSC-YOLO: An Image Recognition Model for Surface Defect Detection of Copper Strip and Plates

张果,陈逃,王剑平   

  1. Faculty of Information Engineering and Automation, Kunming University of Science and Technology, Kunming 650500, China
  • Received:2023-06-02 Accepted:2023-08-05 Online:2025-09-26 Published:2024-04-22

摘要: 为了满足工业生产中对铜板带产品表面缺陷进行准确识别的要求,提出了一种基于机器视觉的铜板带表面缺陷检测模型:CSC-YOLO。该模型以YOLOv4-tiny为基准网络,首先,在基准网络中引入K-means聚类,得到符合自建数据集的锚框;其次,在骨干网络中引入了跨特征的融合CRFM模块,通过融合上下文语义信息,解决困难目标识别问题;第三,在PANet网络中引入SPP-E模块加强特征提取;第四,为了防止通道信息的丢失,引入轻量化CBAM注意力机制提升网络的性能;最后,针对表面缺陷的尺寸特性,通过添加调节因子对损失函数进行修正,改善模型性能。CSC-YOLO在自建的铜板带表面缺陷数据集上进行了测试,实验结果表明:模型mAP可达到93.58%,与基准网络相比提升了3.37%,准确率与召回率均有提高,FPS虽然与基准网络相比有所下降,但也达到了104,CSC-YOLO兼顾了铜板带生产的实时性要求。在与Faster RCNN、SSD300、YOLOv3、YOLOv4、Resnet50-YOLOv4、YOLOv5s、YOLOv7等算法进行的对比实验表明,该算法在保持较高检测精度的同时,获得了较快的计算速度。

关键词: 铜板带表面缺陷检测, K-means聚类, 跨特征融合模块, SPP-E模块, YOLOv4-tiny

Abstract: In order to meet the requirements of accurate identification of surface defects on copper strip in industrial production, a detection model of surface defects based on machine vision, CSC-YOLO, is proposed. The model uses YOLOv4-tiny as the benchmark network. First, K-means clustering is introduced into the benchmark network to obtain anchor frames that match the self-built dataset. Second, a cross-region fusion module is introduced in the backbone network to solve the difficult target recognition problem by fusing contextual semantic information. Third, the spatial pyramid pooling-efficient channel attention network (SPP-E) module is introduced in the path aggregation network (PANet) to enhance the extraction of features. Fourth, to prevent the loss of channel information, a lightweight attention mechanism is introduced to improve the performance of the network. Finally, the performance of the model is improved by adding adjustment factors to correct the loss function for the dimensional characteristics of the surface defects. CSC-YOLO was tested on the self-built dataset of surface defects in copper strip, and the experimental results showed that the mAP of the model can reach 93.58%, which is a 3.37% improvement compared with the benchmark network, and FPS, although decreasing compared with the benchmark network, reached 104. CSC-YOLO takes into account the real-time requirements of copper strip production. The comparison experiments with Faster RCNN, SSD300, YOLOv3, YOLOv4, Resnet50-YOLOv4, YOLOv5s, YOLOv7, and other algorithms show that the algorithm obtains a faster computation speed while maintaining a higher detection accuracy.

中图分类号: