计算机科学 ›› 2026, Vol. 53 ›› Issue (11A): 260300068-491.doi: 10.11896/jsjkx.260300068

• 图像处理&多媒体技术 • 上一篇    下一篇

基于多尺度特征优化的带钢表面缺陷检测方法

包广斌, 程思伍, 范超林, 高振邦   

  1. 兰州理工大学计算机与人工智能学院 兰州 730050
  • 出版日期:2026-11-16 发布日期:2026-11-16
  • 通讯作者: 程思伍(3129137807@qq.com)
  • 作者简介:(bao.gb@qq.com)
  • 基金资助:
    甘肃省自然科学基金(18JR3RA156)

Steel Strip Surface Defect Detection Method Based on Multi-scale Feature Optimization

BAO Guangbin, CHENG Siwu, FAN Chaolin, GAO Zhenbang   

  1. School of Computer Science and Artificial Intelligence,Lanzhou University of Technology,Lanzhou 730050,China
  • Published:2026-11-16 Online:2026-11-16
  • About author:BAO Guangbin,born in 1975,Ph.D,associate professor,master’s supervisor.His main research interests include computer network architecture,artificial intelligence,computer vision and image processing.
    CHENG Siwu,born in 2002,master’s candidate.His main research interests include computer vision and image processing.
  • Supported by:
    This work was supported by the Gansu Provincial Natural Science Foundation(18JR3RA156).

摘要: 针对带钢表面小尺度、形态复杂缺陷感知能力不足以及多尺度特征融合与定位精度受限的问题,提出一种基于改进YOLOv11n的带钢表面缺陷检测算法CGRU-YOLO。首先,在主干网络中设计C2型可变形金字塔自注意力模块C2DPSA,增强对小尺度与复杂纹理缺陷的感知能力;同时构建上下文引导的下采样结构 CG Block_Down,在减少特征信息损失的同时融合局部细节与全局语义信息,从而进一步增强小目标缺陷的识别能力。其次,在颈部网络中引入二次创新的重参数化特征融合网络RepGFPN,在保证推理效率的前提下提升多尺度特征的融合质量与表达一致性。最后,采用统一交并比损失函数UIoU,对边界框回归过程进行有效约束,提高缺陷定位精度。实验结果表明,在 NEU-DET 数据集上,所提方法的mAP@0.5达到 79.5%,较原始YOLOv11n提升2.3个百分点;准确率和召回率分别提高1.7个百分点和 8.5个百分点,显著减少了漏检现象,验证了所提算法在带钢表面缺陷检测任务中的有效性与鲁棒性。

关键词: 目标检测, 缺陷检测, 注意力机制, YOLO, 多尺度特征融合

Abstract: To address the insufficient perception of small-scale and morphologically complex defects on steel strip surfaces,as well as the limitations in multi-scale feature fusion and localization accuracy,this paper proposes an improved YOLOv11n-based steel strip surface defect detection algorithm termed CGRU-YOLO.Firstly,a C2-based deformable pyramid self-attention module(C2DPSA) is designed in the backbone network to enhance the perception capability for small-scale and complex texture defects.Meanwhile,a context-guided downsampling structure(CG Block_Down) is constructed to reduce feature information loss while integrating local detail features with global semantic information,thereby further improving the recognition ability of small defect targets.Secondly,a re-parameterized feature fusion network(RepGFPN) is introduced into the neck network to improve the quality and consistency of multi-scale feature fusion while maintaining inference efficiency.Finally,a unified intersection over union loss(UIoU) is adopted to constrain the bounding box regression process and improve defect localization accuracy.Experimental results on the NEU-DET dataset show that the proposed method achieves an mAP@0.5 of 79.5 percentage points,which is 2.3 percentage points higher than the original YOLOv11n,while precision and recall increase by 1.7 percentage points and 8.5 percentage points,respectively,significantly reducing missed detections and demonstrating the effectiveness and robustness of the proposed algorithm for steel strip surface defect detection.

Key words: Object detection, Defect detection, Attention mechanism, YOLO, Multi-scale feature fusion

中图分类号: 

  • TP391.4
[1] WU R,ZHOU F,LI N,et al.Enhanced You Only Look Once X for surface defect detection of strip steel[J].Frontiers in Neurorobotics,2022,16:12.
[2] GUO Y C,TANG Y J.Steel surface defect detection algorithm based on MHD-YOLO[J].Laser and Optoelectronics Progress,2025,62(20):0700007.
[3] GIRSHICK R,DONAHUE J,DARRELL T,et al.Rich feature hierarchies for accurate object detection and semantic segmentation[C]//Proceedings of the 2014 IEEE Conference on Compu-ter Vision and Pattern Recognition(CVPR).New York:IEEE,2014:580-587.
[4] REN S,HE K,GIRSHICK R,et al.Faster R-CNN:Towardsreal-time object detection with region proposal networks[J].IEEE Transactions on Pattern Analysis and Machine Intelligence,2017,39(6):1137-1149.
[5] LIU W,ANGUELOV D,ERHAN D,et al.SSD:Single ShotMultiBox Detector[C]//Proceedings of the European Confe-rence on Computer Vision(ECCV).Cham:Springer,2016:21-37.
[6] REDMON J.You only look once:Unified,real-time object detection[C]//Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition.2016:779-788.
[7] WANG C,BOCHKOVSKIY A,LIAO H.YOLOv7:Trainablebag-of-freebies sets new state-of-the-art for real-time object detectors[C]//Proceedings of the 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition(CVPR).Piscataway,NJ:IEEE,2023:7464-7475.
[8] HE K M,GKIOXARI G,DOLLAR P,et al.Mask R-CNN[J].IEEE Transactions on Pattern Analysis and Machine Intelligence,2020,42(2):386-397.
[9] ZHANG G W,ZHANG S,ZHANG Y,et al.Improved RT-DE-TR based forging surface defect detection algorithm[J].Computer Engineering and Applications,2026,62(11):112-123.
[10] ZHANG Y,SHEN S,XU S.Strip steel surface defect detection based on lightweight YOLOv5[J].Front Neurorobot,2023,17:1263739.
[11] ZHU Z,LI K,ZHENG Q,et al.EFC-YOLO:An Efficient Surface-Defect-Detection Algorithm for Steel Strips[J].Sensors(Basel),2023,23(17).
[12] MA S,WAN L,ZHANGY,et al.A lightweight algorithm for steel surface defect detection using improved YOLOv8[J].Scientific Reports,2025,15(1):8966.
[13] WANG Y,SUN H,LI H,et al.A lightweight YOLOv11-based framework for small steel defect detection with a newly enhanced feature fusion module[J].Scientific Reports,2025,15(1):34322.
[14] XIA Z,PAN X,SONG S,et al.Vision Transformer with deformable attention[J].Journal of Electronic Imaging,2022,31(1):011014.
[15] WU T,TANG S,ZHANG R,et al.CGNet:A light-weight context guided network for semantic segmentation[J].IEEE Transactions on Image Processing,2021,30:1169-1179.
[16] XU X,JIANG Y,CHEN W,et al.DAMO-YOLO:A Report on Real-Time Object Detection Design[J].arXiv:2211.15444,2022.
[17] DU S,ZHANG B,ZHANG P,et al.An Improved Bounding Box Regression Loss Function Based on CIOU Loss for Multi-scale Object Detection[C]//2021 IEEE 2nd International Conference on Pattern Recognition and Macline Learning.IEEE,2021:92-98.
[18] LUO X,CAI Z,SHAO B,et al.Unified-IoU:For High-Quality Object Detection[J].arXiv:2408.06636,2024.
[19] XU W S,ZHANG Y F,JIANG X H,et al.An efficient steel defect detection model based on multi-scale information extraction[J].Robotic Intelligence and Automation,2024,44(6):817-829.
[20] LIANG L M,CHEN K Q,ZHONG Y,et al.DCD-YOLOv8n:An efficient steel surface defect detection algorithm[J].Computer Engineering and Applications,2025,61(14):1-12.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!