journal article·2025-02

Fabric defect detection algorithm based on improved YOLOv8

Chang Chen, Qihong Zhou, Shujia Li, Dong Luo, Gaochao Tan

Textile Research Journal· Volume 95· Issue 3-4
Publisher page

Abstract

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.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Industrial Vision Systems and Defect Detection · Advanced Neural Network Applications · Visual Attention and Saliency Detection

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

College of Mechanical Engineering, Donghua University, China

Engineering Research Center of Digitalized Textile and Fashion Technology, Ministry of Education, China

Engineering Research Center of Advanced Textile Machinery, Ministry of Education, Donghua University, China

Funding

National Key Research and Development Program of China

References (33)

Show source-provided references
1. 10.1177/0040517522113077310.1177/00405175221130773 ↗
2. Maria K · Signal Image Video Process · 2022 · 17
3. Jia CY · Micromachines · 2022 · 13
4. 10.1088/1742-6596/2327/1/01203310.1088/1742-6596/2327/1/012033 ↗
5. 10.1177/0040517522113357210.1177/00405175221133572 ↗
6. 10.1111/jmi.1296010.1111/jmi.12960 ↗
7. 10.1177/0040517523117171410.1177/00405175231171714 ↗
8. 10.1177/0040517523115143910.1177/00405175231151439 ↗
9. Chen JG · J Textil R · 2022 · 43 · 155
10. 10.1177/0040517523117894710.1177/00405175231178947 ↗
11. 10.3390/s2301009710.3390/s23010097 ↗
12. 10.1002/aisy.20220015110.1002/aisy.202200151 ↗
13. 10.3390/s2213471810.3390/s22134718 ↗
14. Li Y · J Textil Res · 2023 · 44 · 143
15. Jing JF · Textil Res J · 2020 · 92 · 004051752092860
16. 10.1177/0040517521104479410.1177/00405175211044794 ↗
17. 10.1177/0040517523115813410.1177/00405175231158134 ↗
18. 10.14504/ajr.8.S1.2210.14504/ajr.8.S1.22 ↗
19. 10.1007/s12221-023-00253-110.1007/s12221-023-00253-1 ↗
20. 10.1177/0040517522114945010.1177/00405175221149450 ↗
21. 10.1177/0040517522112965410.1177/00405175221129654 ↗
22. 10.1177/0040517523119632410.1177/00405175231196324 ↗
23. 10.1177/0040517523119205710.1177/00405175231192057 ↗
24. 10.1177/0040517523118853510.1177/00405175231188535 ↗
25. 10.1177/0040517523119826610.1177/00405175231198266 ↗
26. 10.1177/0040517522110263610.1177/00405175221102636 ↗
27. 10.1177/0040517523115813410.1177/00405175231158134 ↗
28. 10.1016/j.eswa.2023.12127210.1016/j.eswa.2023.121272 ↗
29. 10.1080/03772063.2021.198240910.1080/03772063.2021.1982409 ↗
30. 10.3390/s2314647710.3390/s23146477 ↗
31. Rahim A · Agronomy · 2022 · 12
32. 10.3390/electronics1219404310.3390/electronics12194043 ↗
33. 10.1016/j.jvcir.2022.10366510.1016/j.jvcir.2022.103665 ↗