Ruan Shufen, Zhan Chenmei, Liu Bo, Wan Quan, Song Kunfang
The School of Mathematical and Physical Sciences, Wuhan Textile University, Wuhan, 430200, China.
Research Center for Applied Mathematics and Interdisciplinary Sciences, Wuhan Textile University, Wuhan, 430200, China.
Sci Rep. 2025 May 6;15(1):15841. doi: 10.1038/s41598-025-91930-z.
Defect detection is vital for product quality in industrial production, yet current surface defect detection technologies struggle with diverse defect types and complex backgrounds. The challenge intensifies with multi-scale small targets, leading to significantly reduced detection performance. Therefore, this paper proposes the EPSC-YOLO algorithm to improve the efficiency and accuracy of defect detection. The algorithm first introduces multi-scale attention modules and uses two newly designed pyramid convolutions in the backbone network to better identify multi-scale defects; Secondly, Soft-NMS is introduced to replace traditional NMS, which can reduce information loss and improve multi-target detection accuracy by smoothing and suppressing the scores of overlapping boxes. In addition, a new convolutional attention module, CISBA, is designed to enhance the detection capability of small targets in complex backgrounds. In the end, we validate the effectiveness of EPSC-YOLO on NEU-DET and GC10-DET datasets. The experimental results show that, compared to YOLOv9c, [Formula: see text] increases by 2% and 2.4%, and [Formula: see text] increases by 5.1% and 2.4%, respectively. Meanwhile, EPSC-YOLO demonstrates superior accuracy and significant advantages in real-time detection of surface defects on products compared to algorithms such as YOLOv10 and MSFT-YOLO.
缺陷检测对于工业生产中的产品质量至关重要,但目前的表面缺陷检测技术在面对多样的缺陷类型和复杂背景时存在困难。对于多尺度小目标,这一挑战更加严峻,导致检测性能显著下降。因此,本文提出了EPSC-YOLO算法以提高缺陷检测的效率和准确性。该算法首先引入多尺度注意力模块,并在主干网络中使用两个新设计的金字塔卷积,以更好地识别多尺度缺陷;其次,引入Soft-NMS来取代传统的NMS,通过平滑和抑制重叠框的分数,减少信息损失并提高多目标检测精度。此外,设计了一种新的卷积注意力模块CISBA,以增强在复杂背景下小目标的检测能力。最后,我们在NEU-DET和GC10-DET数据集上验证了EPSC-YOLO的有效性。实验结果表明,与YOLOv9c相比,[公式:见原文]分别提高了2%和2.4%,[公式:见原文]分别提高了5.1%和2.4%。同时,与YOLOv10和MSFT-YOLO等算法相比,EPSC-YOLO在产品表面缺陷的实时检测中表现出更高的准确性和显著优势。