|国家科技期刊平台
首页|期刊导航|棉纺织技术|基于上下文信息聚合YOLOv5的织物缺陷检测

基于上下文信息聚合YOLOv5的织物缺陷检测OACSTPCD

Fabric defect detection based on contextual information aggregation YOLOv5

中文摘要英文摘要

为了解决目前主流检测方法无法有效捕获织物缺陷丰富的上下文信息,导致对背景相似的缺陷检测精度低及漏检率高的问题,提出一种能聚合上下文信息的改进YOLOv5模型(YOLO-CA模型).YOLO-CA模型通过在YOLOv5的骨干网络中加入双重交叉注意力模块(DCCA)捕获缺陷与背景丰富的上下文关系,使模型聚焦于缺陷区域,提高模型对缺陷的检出率,并结合跨阶段软池化特征金字塔模块(CSP-SoftSPPF)提取更详细的缺陷特征信息,进一步提高模型的检测精度.试验结果表明:YOLO-CA模型在SDCFD和TILDA两个公开数据集上mAP值分别为 67.6%和 93.2%,MR值分别为 38.4%和 10.5%;与原YOLOv5 模型相比,YOLO-CA模型的mAP值分别提高了20.8个百分点和4.5个百分点,MR值分别降低了16.5个百分点和6.9个百分点.认为:YOLO-CA模型具有更好的检测性能,能够有效降低与背景相似类缺陷的漏检率,提高多种缺陷的检测准确率,适用于织物缺陷检测任务.

In response to the problem that the current mainstream inspection methods cannot effectively capture the rich contextual information of fabric defects,resulting in lower detection accuracy and higher leakage rate of defects similar with background,an improved YOLOv5 model(YOLO-CA model)that could aggregate contextual information was proposed.Defects with context-rich contextual relationships were captured by the YOLO-CA model by incorporating a dual cross-attention module(DCCA)in the backbone network of YOLOv5,which enabled the model to focus on the defective area and improved the detection rate of defects by the model.More detailed defect feature information was extracted in combination with the CSP-SoftSPPF module to improve the detection accuracy of the model.The experimental results showed that the YOLO-CA model has mAP values of 67.6%and 93.2%,as well as MR values of 38.4%and 10.5%on SDCFD and TILDA publicly available datasets.Compared with original YOLOv5 model,the mAP value of YOLO-CA model was increased by 20.8 percentage points and 4.5 percentage points,and the MR values were decreased by 16.5 percentage points and 6.9 percentage points respectively.It is considered that the YOLO-CA model has better detection performance,can effectively reduce the leakage rate of defects of similar classes to the background,improves the detection accuracy of several defects,and is suitable for fabric defect detection tasks.

李静;郑文斌

成都信息工程大学,四川成都,610225

轻工业

深度学习织物缺陷检测YOLOv5模型注意力机制SoftPool池化

deep learningfabric defect detectionYOLOv5 modelattention mechanismSoftPool pooling

《棉纺织技术》 2024 (004)

30-39 / 10

四川省自然科学基金(2022NSFSC0571);四川省应用基础研究项目(2018JY0273,2019YJ0532);四川省重点实验室开放项目(SCVCVR2020.05VS)

评论