%0 Journal Article
%T 基于注意力机制和多尺度特征融合的卷纸包装缺陷检测算法
Defect Detection Algorithm for Roll Paper Packaging Based on Attention Mechanism and Multi-Scale Feature Fusion
%A 黄期峰
%A 李洲
%J Computer Science and Application
%P 1773-1784
%@ 2161-881X
%D 2023
%I Hans Publishing
%R 10.12677/CSA.2023.139176
%X 本文针对卷纸包装缺陷检测问题,提出了一种基于注意力机制和多尺度特征融合的卷纸包装缺陷检测算法FYOLOv5。该方法具有以下特点:以轻量级的YOLOv5s模型为骨干网络结构,在特征提取网络引入卷积注意力模块,提升模型对卷纸缺陷关键特征的提取能力。在颈部网络引入自适应空间特征融合模块,提高模型多尺度特征融合能力,使模型对高层的语义信息以及对底层的轮廓、形状和颜色等视觉信息利用更加充分。在检测头部分利用Decouple模块对目标检测任务进行分解,使模型更易优化。最后,使用αIoU损失函数优化当真实框与预测框重合时的IoU计算退化问题。本文采集并标注了卷纸包装缺陷检测数据集,并在该数据集上进行实验。实验结果表明,改进后的检测模型准确率达到了95.3%,高于原始模型2.1%,同时推理速度能够满足卷纸包装的检测需求。
This thesis aims at the problem of paper roll packaging defect detection, and proposes a paper roll packaging defect detection algorithm FYOLOv5 based on attention mechanism and multi-scale fea-ture fusion. This method has the following characteristics: The algorithm uses the lightweight YOLOv5s model as the backbone network structure, introduces the convolutional attention module in the feature extraction network, and enhances the model’s ability to extract key features of paper roll defects. In the neck network, an adaptive spatial feature fusion module is introduced to improve the model’s multi-scale feature fusion ability, making the model use more fully the high-level semantic information and the low-level visual information such as contour, shape and color. In the detection head part, the Decouple module is used to decompose the target detection task, making the model easier to optimize. Finally, the αIoU loss function is used to optimize the IoU calculation degradation problem when the real box and the predicted box overlap. This thesis collects and an-notates a paper roll packaging defect detection dataset, and conducts experiments on this dataset. The experimental results show that the improved detection model has an accuracy of 95.3%, which is 2.1% higher than the original model, and the inference speed can meet the detection requirements of paper roll packaging.
%K 卷纸包装,缺陷检测,深度学习,卷积注意力模块,多尺度特征
Roll Paper Packaging
%K Defect Detection
%K Deep Learning
%K Convolutional Attention Module
%K Multi-Scale Features
%U http://www.hanspub.org/journal/PaperInformation.aspx?PaperID=73156