Fabric defect detection algorithm based on improved YOLOv8

被引:1
|
作者
Chen, Chang [1 ]
Zhou, Qihong [1 ,2 ,3 ]
Li, Shujia [1 ,2 ,3 ]
Luo, Dong [1 ]
Tan, Gaochao [1 ]
机构
[1] Donghua Univ, Coll Mech Engn, Shanghai, Peoples R China
[2] Minist Educ, Engn Res Ctr Digitalized Text & Fash Technol, Beijing, Peoples R China
[3] Donghua Univ, Engn Res Ctr Adv Text Machinery, Minist Educ, Shanghai, Peoples R China
基金
国家重点研发计划;
关键词
Defect detection; attention mechanisms; loss function; yolov8; feature fusion;
D O I
10.1177/00405175241261092
中图分类号
TB3 [工程材料学]; TS1 [纺织工业、染整工业];
学科分类号
0805 ; 080502 ; 0821 ;
摘要
Aiming at the problems of low detection accuracy and high leakage rate in traditional detection algorithms, an improved YOLOv8 algorithm is proposed for automatic detection of fabric defects. A swin transformer block was added to the C2f module in the backbone network, which can transfer information between multiple attention layers in parallel to capture fabric defect information and improve the detection accuracy of small-sized defects. To enhance the model's performance in detecting defects of various sizes, a bidirectional feature pyramid network (BiFPN) was incorporated into the neck. This allows for the assignment of different weights to defect features in different layers. A convolution block attention module (CBAM) was added to the feature fusion layer, enabling the model to automatically increase the weight of essential features and suppress nonessential features during training to solve the problem of leakage detection of small-sized defects due to occlusion and background confusion. The Wise-IoU (WIoU) loss function replaces the conventional loss function, addressing sample imbalance and directing the model to prioritize average-quality samples. This modification contributes to an overall improvement in the model's performance. The results of the experiment proved that on the self-constructed fabric defect dataset, the algorithm in this paper achieved an accuracy of 97.7%, recall of 95.1%, and mAP of 96.8%, which are 4.4%, 9.4%, and 5.1% higher than those of the YOLOv8 algorithm, respectively. On the AliCloud Tianchi dataset, the algorithm achieves 52.3%, 49.2%, and 49.8% in terms of accuracy, recall, and mAP, respectively, which is an improvement of 4.4% in terms of accuracy, 2.8% in terms of recall, and 2.7% in terms of mAP compared with the baseline algorithm. The improved YOLOv8 algorithm has a high detection accuracy, low leakage rate, and a detection speed of 107.5 FPS, which aligns with the real-time defect detection speed in the industry.
引用
收藏
页码:235 / 251
页数:17
相关论文
共 50 条
  • [31] An Improved Liver Disease Detection Based on YOLOv8 Algorithm
    Huang, Junjie
    Li, Caihong
    Yan, Fengjun
    Guo, Yuanchun
    INTERNATIONAL JOURNAL OF ADVANCED COMPUTER SCIENCE AND APPLICATIONS, 2024, 15 (07) : 1168 - 1179
  • [32] POTATO APPEARANCE DETECTION ALGORITHM BASED ON IMPROVED YOLOv8
    Zhang, Huan
    Liu, Zhen
    Yang, Ranbing
    Pan, Zhiguo
    Su, Zhaoming
    Li, Xinlin
    Liu, Zeyang
    Shi, Chuanmiao
    Wang, Shuai
    Wu, Hongzhu
    INMATEH-AGRICULTURAL ENGINEERING, 2024, 74 (03): : 864 - 874
  • [33] Fire and smoke detection algorithm based on improved YOLOv8
    Deng, Li
    Zhou, Jin
    Liu, Quanyi
    Qinghua Daxue Xuebao/Journal of Tsinghua University, 2025, 65 (04): : 681 - 689
  • [34] Underwater Object Detection Algorithm Based on an Improved YOLOv8
    Zhang, Fubin
    Cao, Weiye
    Gao, Jian
    Liu, Shubing
    Li, Chenyang
    Song, Kun
    Wang, Hongwei
    JOURNAL OF MARINE SCIENCE AND ENGINEERING, 2024, 12 (11)
  • [35] Nighttime Vehicle Detection Algorithm Based on Improved YOLOv8
    Huang, Qianqian
    Wei, Mingzhu
    Wang, Xinhua
    2024 IEEE INTERNATIONAL CONFERENCE ON MECHATRONICS AND AUTOMATION, ICMA 2024, 2024, : 447 - 452
  • [36] A lightweight algorithm for steel surface defect detection using improved YOLOv8
    Ma, Shuangbao
    Zhao, Xin
    Wan, Li
    Zhang, Yapeng
    Gao, Hongliang
    SCIENTIFIC REPORTS, 2025, 15 (01):
  • [37] Lightweight Insulator and Defect Detection Method Based on Improved YOLOv8
    Liu, Yanxing
    Li, Xudong
    Qiao, Ruyu
    Chen, Yu
    Han, Xueliang
    Paul, Agyemang
    Wu, Zhefu
    APPLIED SCIENCES-BASEL, 2024, 14 (19):
  • [38] An Insulator Location and Defect Detection Method Based on Improved YOLOv8
    Li, Zhongsheng
    Jiang, Chenda
    Li, Zhongliang
    IEEE ACCESS, 2024, 12 : 106781 - 106792
  • [39] FBS-YOLO: an improved lightweight bearing defect detection algorithm based on YOLOv8
    Li, Junjie
    Cheng, Mingxia
    PHYSICA SCRIPTA, 2025, 100 (02)
  • [40] A defect detection method for industrial aluminum sheet surface based on improved YOLOv8 algorithm
    Wang, Luyang
    Zhang, Gongxue
    Wang, Weijun
    Chen, Jinyuan
    Jiang, Xuyao
    Yuan, Hai
    Huang, Zucheng
    FRONTIERS IN PHYSICS, 2024, 12