journal article·2025-08-21Open access

Research on improved YOLOv8 fabric surface defect detection algorithm

Zijun Gao, SiYan Zhang, Jingwen Su, Bo Li, Jue Wang, Zhankui Song

Abstract

To address the limitations of traditional fabric defect detection algorithms, such as low accuracy in complex backgrounds and high rates of missed and false detections, this paper proposes an improved detection method based on the YOLOv8 architecture. The backbone network is enhanced by integrating a mixed local channel attention (MLCA) mechanism into the C2f module, resulting in the C2f_MLCA module, which captures both spatial and channel features while fusing local and global information, thereby enhancing attention to defect regions and preserving critical details. To handle multiscale defects and complex background interference, a context-guided spatial feature reconstruction feature pyramid network (CGRFPN) is introduced in place of the original neck, improving detail extraction through dynamic interpolation and multifeature fusion. Furthermore, a task-aligned dynamic detection head (TADDH) is proposed to alleviate spatial misalignment and weak task interaction between classification and localization branches. The Focaler-IoU loss function is also employed to address sample imbalance during regression and improve localization precision, particularly for small defects. Experimental results show that the proposed method outperforms the baseline YOLOv8 by 2.9%, 6.8%, and 2.8% in terms of accuracy, recall, and mAP0.5, respectively, reaching 88.6%, 89.2%, and 91.1%, while achieving 3.2%, 2.6%, and 4.5% gains on the validation dataset. In addition, the algorithm achieves a real-time inference speed of 86.91 FPS, making it highly suitable for accurate and efficient fabric defect detection in industrial environments.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Industrial Vision Systems and Defect Detection · Surface Roughness and Optical Measurements · Textile materials and evaluations

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

Affiliations

School of Information Science and Engineering, Dalian Polytechnic University, Dalian, China

References (36)

Show source-provided references
1. Rasheed A, Zafar B, Rasheed A, et al. Fabric defect detection using computer vision techniques: A comprehensive review. Math Prob Eng 2020; 2020(1): 8189403.
2. 10.1177/0040517522113077310.1177/00405175221130773 ↗
3. 10.1016/j.ijleo.2016.09.11010.1016/j.ijleo.2016.09.110 ↗
4. Li C, Li J, Li Y, et al. Fabric defect detection in textile manufacturing: a survey of the state of the art. Security Commun Netw 2021; 2021(1): 9948808.
5. 10.3390/electronics1318372810.3390/electronics13183728 ↗
6. 10.1007/s40998-019-00251-110.1007/s40998-019-00251-1 ↗
7. Girshick R Donahue J Darrell T et al. Rich feature hierarchies for accurate object detection and semantic segmentation. In: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition pp. 580–587.10.1109/CVPR.2014.81 ↗
8. Redmon J Divvala S Girshick R et al. You only look once: Unified real-time object detection. In: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition pp. 779–788.10.1109/CVPR.2016.91 ↗
9. 10.3390/s2006156210.3390/s20061562 ↗
10. 10.1016/j.measurement.2022.11193710.1016/j.measurement.2022.111937 ↗
11. 10.1016/j.aei.2023.10188210.1016/j.aei.2023.101882 ↗
12. 10.3390/app1305328910.3390/app13053289 ↗
13. 10.1177/0040517524128559610.1177/00405175241285596 ↗
14. 10.1371/journal.pone.031452510.1371/journal.pone.0314525 ↗
15. 10.3390/app1213682310.3390/app12136823 ↗
16. 10.1177/0040517522114374210.1177/00405175221143742 ↗
17. 10.1177/0040517522114851610.1177/00405175221148516 ↗
18. 10.1177/0040517524130699610.1177/00405175241306996 ↗
19. 10.1177/0040517524129338010.1177/00405175241293380 ↗
20. 10.1111/cote.1270510.1111/cote.12705 ↗
21. 10.32604/cmc.2023.04160010.32604/cmc.2023.041600 ↗
22. 10.1007/s40747-023-01317-810.1007/s40747-023-01317-8 ↗
23. 10.1587/transfun.2023EAP103010.1587/transfun.2023EAP1030 ↗
24. 10.1088/1361-6501/ad60eb10.1088/1361-6501/ad60eb ↗
25. 10.1177/0040517524126109210.1177/00405175241261092 ↗
26. Woo S Park J Lee JY et al. CBAM: Convolutional block attention module. In: Proceedings of the European Conference on Computer Vision (ECCV) pp. 3–19.10.1007/978-3-030-01234-2_1 ↗
27. 10.1177/0040517524126876110.1177/00405175241268761 ↗
28. Zhang Z, Huang T, Zhang W, et al. DGHR-YOLO: Fabric defect detection based on high-level screening-feature pyramid networks and deformable convolution. Nondestruct Test Eval 2025;0(0): 1–26.10.1080/10589759.2025.2451768 ↗
29. 10.1088/1361-6501/ad64f910.1088/1361-6501/ad64f9 ↗
30. 10.1016/j.jvcir.2021.10335010.1016/j.jvcir.2021.103350 ↗
31. 10.1016/j.knosys.2020.10655010.1016/j.knosys.2020.106550 ↗
32. 10.1016/j.neucom.2022.06.03110.1016/j.neucom.2022.06.031 ↗
33. 10.1016/j.engappai.2023.10644210.1016/j.engappai.2023.106442 ↗
34. Feng C Zhong Y Gao Y et al. TOOD: Task-aligned one-stage object detection. In: 2021 IEEE/CVF International Conference on Computer Vision (ICCV). Los Alamitos CA: IEEE Computer Society 2021 pp. 3490–3499.10.1109/ICCV48922.2021.00349 ↗
35. Zhu X Hu H Lin S et al. Deformable CONVNets v2: More deformable better results. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition pp. 9308–9316.
36. Zhang H Zhang S. Focaler-IOU: More focused intersection over union loss. arXiv preprint arXiv:240110525 2024.