首页|STC-YOLOv8:一种解决复杂背景下的钢材表面缺陷的检测方法

STC-YOLOv8:一种解决复杂背景下的钢材表面缺陷的检测方法

扫码查看
由于钢材表面缺陷尺寸小且背景复杂,传统检测方法在此类场景中常出现漏检和误检问题,且检测精度低、效率慢.本文提出了一种基于YOLOv8n的改进方法,称为STC-YOLOv8,旨在在时间成本不变的情况下提高钢材表面缺陷检测的精度.首先,将主干网络的卷积层替换为SAConv,利用其全局性和大感受野特性,增强模型对小目标特征的提取能力;其次,将原模型的上采样方法替换为CARAFE,通过动态调整插值位置,提升模型对边缘特征和相似特征的提取能力.此外,在检测头中引入多分支结构的重参数模块,进一步增强模型的特征提取能力;最后,针对目标样本较小和部分目标信息难以提取的问题,本文引入了迁移学习策略,增强了模型的泛化性和稳定性.实验结果表明:改进后的STC-YOLOv8模型在数据增强后的NEU-DET数据集上的mAP@0.5达到82.4%,相比原模型YOLOv8n提高了 3.8%;在GC10-DET数据集上的mAP@0.5达到66%,提高了 2.9%.研究验证了本方法的有效性和稳定性,能够满足钢材表面缺陷检测的实际需求.
A Method for Detecting Steel Surface Defects in Complex Backgrounds Based on STC-YOLOv8
Due to the small size of surface defects on the steel and the complexity of the background,traditional detection methods often encounter issues of missed detections and false positives in such scenarios,resulting in low detection accuracy and slow efficiency.This paper proposed an improved method based on the YOLOv8n,referred to as STC-YOLOv8,aimed at improving the accuracy of steel surface defect detection without increasing the time cost.First,the convolutional layers of the backbone network were replaced with SAConv,leveraging its global perspective and large receptive field characteristics to enhance the model's ability to extract features from small targets.Second,the original model's upsampling method was replaced with the CARAFE,which dynamically adjusted the interpolation position to improve the model's ability to extract edge features and similar features.Additionally,a multi-branch re-parameterization module was introduced in the detection head to further enhance the model's feature extraction capability.Finally,considering the small size of the target samples and the difficulty in extracting some target information,a transfer learning strategy was employed to enhance the model's generalization and stability.The experimental results showed that the improved STC-YOLOv8 model achieved a mAP@0.5 of 82.4%on the augmented NEU-DET dataset,which was 3.8%higher than that of the original YOLOv8n model.On the GC10-DET dataset,it achieved an mAP@0.5 of 66%,which was an improvement of 2.9%,demonstrating the effec-tiveness and stability of the proposed method and its capability to meet the practical requirements of steel surface defect detection.

Defect detectionYOLOv8nSAConvCARAFERe-parameterization

黄奥国、罗小玲、潘新

展开 >

内蒙古农业大学计算机与信息工程学院,呼和浩特 010018

缺陷检测 YOLOv8n SAConv CARAFE 重参数化

2024

内蒙古农业大学学报(自然科学版)
内蒙古农业大学

内蒙古农业大学学报(自然科学版)

北大核心
影响因子:0.384
ISSN:1009-3575
年,卷(期):2024.45(5)