基于改进YOLOv5的电解镍板表面缺陷检测
首发时间:2025-03-27
摘要:为了实现对镍板表面缺陷的准确检测,确保产品的稳定性和可靠性,本研究提出了一种改进的YOLOv5算法Ni-YOLO,建立了小规模的镍板缺陷数据集用于电解镍缺陷检测。具体改进包括:在特征提取阶段,引入了多头自注意模块(Multi Head Self Attention,MHSA)以增强模型捕捉长距离依赖的能力,减轻背景干扰;然后,引入空洞空间卷积池化金字塔(Atrous Spatial Pyramid Pooling, ASPP)代替原本的SPPF模块,用于增强模型感受野,提高对小目标和高长宽比目标的检测能力。在自建的数据集上测试结果显示,mAP50和mAP50-95分别为500.2%和41.4%,较原始YOLOv5算法提高了4.5%和2.6%。此外,与最新的目标检测算法YOLOv8、YOLOv9、YOLOv10和Gold-YOLO相比,改进的YOLOv5在性能和计算量上都有明显优势。
For information in English, please click here
Surface Defect Detection of Electrolytic Nickel Plates Based on Improved YOLOv5
Abstract:In order to achieve accurate detection of surface defects on nickel plates and ensure the stability and reliability of products, this study proposes an improved YOLOv5 algorithm, Ni-YOLO, and establishes a small-scale nickel plate defect dataset for the detection of electrolytic nickel defects. The specific improvements are as follows: In the feature extraction stage, the Multi-Head Self-Attention module (MHSA) is introduced to enhance the model\'s ability to capture long-range dependencies and reduce background interference. Then, the Atrous Spatial Pyramid Pooling (ASPP) is introduced to replace the original SPPF module, which is used to enhance the model\'s receptive field and improve the detection ability for small targets and targets with high aspect ratios. The test results on the self-built dataset show that the mAP50 and mAP50-95 are 500.2% and 41.4% respectively, which are 4.5% and 2.6% higher than those of the original YOLOv5m algorithm. In addition, compared with the latest object detection algorithms YOLOv8, YOLOv9, YOLOv10, and Gold-YOLO, the improved YOLOv5 has obvious advantages in terms of performance and computational load.
Keywords: Object detection YOLOv5 Attention mechanism ASPP
基金:
引用
No.****
同行评议
勘误表
基于改进YOLOv5的电解镍板表面缺陷检测
评论
全部评论