journal article·2025-03-15Open access

A Real-Time Fabric Defect Detection Method Based on Improved YOLOv8

Yanxia Jin, Xinyu Liu, Keliang Nan, Songsong Wang, Ting Wang, Zhuangwei Zhang, Xiaozhu Zhang

Applied Sciences· Volume 15· Issue 6

Abstract

Fabric defect detection is a crucial step in ensuring product quality within the textile industry. However, current detection methods face challenges in processing efficiency for high-resolution images, detail recovery during upsampling, and the adaptability of loss functions for low-quality samples, which limit detection accuracy and real-time performance. To overcome these limitations, this paper introduces an improved YOLOv8-based model that optimizes both aspects for fabric defect detection. First, we introduce an efficient RG-C2f module to improve processing speed for high-resolution images. Second, the DySample upsampling operator is adopted to enhance edge and detail preservation, improving detail recovery within defect regions. Finally, an adaptive inner-WIoU loss function is designed to dynamically adjust focus on low-quality samples, thereby strengthening the model’s generalization capability. Experimental results validated on the TILDA and Tianchi datasets show that, compared with YOLOv8, the proposed model achieves mAP improvements of 6.4% and 1.5%, respectively, demonstrating significant enhancements in detection accuracy and speed. This advancement provides strong support for fabric defect detection.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Industrial Vision Systems and Defect Detection · Advanced Neural Network Applications · Currency Recognition and Detection

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

Affiliations

School of Computer Science and Technology, North University of China, Taiyuan 030051, China

Funding

the Natural Science Foundation of Shanxi Province

References (28)

Show source-provided references
1. Research Progress on Fabric Surface Defect Detection
2. Minimization of Defects in Knitted Fabric
3. A Fabric Defect Detection Method Based on Deep Learning10.1109/ACCESS.2021.3140118 ↗
4. YOLOV4-TinyS: A New Convolutional Neural Architecture for Real-Time Detection of Fabric Defects in Edge Devices10.1177/00405175231202035 ↗
5. Deep Learning for Automatic Vision-Based Recognition of Industrial Surface Defects: A Survey10.1109/ACCESS.2023.3271748 ↗
6. Li, X., and Zhu, Y. A Real-Time and Accurate Convolutional Neural Network for Fabric Defect Detection. Complex Intell. Syst., 2024.10.1007/s40747-023-01317-8 ↗
7. Guo, Y., Kang, X., Li, J., and Yang, Y. (2023). Automatic Fabric Defect Detection Method Using AC-YOLOv5. Electronics, 12.10.3390/electronics12132950 ↗
8. Zhang, H., Li, S., Miao, Q., Fang, R., Xue, S., Hu, Q., Hu, J., and Chan, S. (2024). Surface Defect Detection of Hot Rolled Steel Based on Multi-Scale Feature Fusion and Attention Mechanism Residual Block. Sci. Rep., 14.10.1038/s41598-024-57990-3 ↗
9. Xiao, G., Hou, S., and Zhou, H. (2024). PCB Defect Detection Algorithm Based on CDI-YOLO. Sci. Rep., 14.10.1038/s41598-024-57491-3 ↗
10. Girshick, R., Donahue, J., Darrell, T., and Malik, J. (2014, January 23–28). Rich Feature Hierarchies for Accurate Object Detection and Semantic Segmentation. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Columbus, OH, USA.10.1109/CVPR.2014.81 ↗
11. Girshick, R. (2015, January 7–13). Fast R-CNN. Proceedings of the 2015 IEEE International Conference on Computer Vision (ICCV), Santiago, Chile.10.1109/ICCV.2015.169 ↗
12. Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks10.1109/TPAMI.2016.2577031 ↗
13. Improved Faster R-CNN for Fabric Defect Detection Based on Gabor Filter with Genetic Algorithm Optimization10.1016/j.compind.2021.103551 ↗
14. Adaptively Fused Attention Module for the Fabric Defect Detection10.1002/aisy.202200151 ↗
15. Improved Fabric Defect Detection Algorithm Based on YOLOv8n
16. DsP-YOLO: An Anchor-Free Network with DsPAN for Small Object Detection of Multiscale Defects10.1016/j.eswa.2023.122669 ↗
17. Wang, Y., Zhang, L., Xiong, X., Kuang, J., and Xiang, S. (2024). A Lightweight and Efficient Multi-Type Defect Detection Method for Transmission Lines Based on DCP-YOLOv8. Sensors, 24.10.3390/s24144491 ↗
18. Yu, Y., Lv, H., Chen, W., and Wang, Y. (2024). Research on Defect Detection for Overhead Transmission Lines Based on the ABG-YOLOv8n Model. Energies, 17.10.3390/en17235974 ↗
19. Han, K., Wang, Y., Tian, Q., Guo, J., Xu, C., and Xu, C. (2020, January 13–19). GhostNet: More Features From Cheap Operations. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Seattle, WA, USA.10.1109/CVPR42600.2020.00165 ↗
20. Ding, X., Zhang, X., Ma, N., Han, J., Ding, G., and Sun, J. (2021, January 20–25). RepVGG: Making VGG-Style ConvNets Great Again. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Nashville, TN, USA.10.1109/CVPR46437.2021.01352 ↗
21. Liu, W., Lu, H., Fu, H., and Cao, Z. (2023, January 2–3). Learning to Upsample by Learning to Sample. Proceedings of the IEEE/CVF International Conference on Computer Vision, Paris, France.10.1109/ICCV51070.2023.00554 ↗
22. Distance-IoU Loss: Faster and Better Learning for Bounding Box Regression
23. Rezatofighi, H., Tsoi, N., Gwak, J., Sadeghian, A., Reid, I., and Savarese, S. (2019, January 15–20). Generalized Intersection Over Union: A Metric and a Loss for Bounding Box Regression. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Long Beach, CA, USA.10.1109/CVPR.2019.00075 ↗
24. Tong, Z., Chen, Y., Xu, Z., and Yu, R. (2023). Wise-IoU: Bounding Box Regression Loss with Dynamic Focusing Mechanism. arXiv.
25. Zhang, H., Xu, C., and Zhang, S. (2023). Inner-IoU: More Effective Intersection over Union Loss with Auxiliary Bounding Box. arXiv.
26. Cai, Z., and Vasconcelos, N. (2018, January 18–28). Cascade R-CNN: Delving Into High Quality Object Detection. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA.10.1109/CVPR.2018.00644 ↗
27. Zhu, X., Lyu, S., Wang, X., and Zhao, Q. (2021, January 10–17). TPH-YOLOv5: Improved YOLOv5 Based on Transformer Prediction Head for Object Detection on Drone-Captured Scenarios. Proceedings of the IEEE/CVF International Conference on Computer Vision, Montreal, BC, Canada.10.1109/ICCVW54120.2021.00312 ↗
28. Varghese, R., and Sambath, M. (2024, January 18–19). YOLOv8: A Novel Object Detection Algorithm with Enhanced Performance and Robustness. Proceedings of the 2024 International Conference on Advances in Data Engineering and Intelligent Computing Systems (ADICS), Chennai, India.10.1109/ADICS58448.2024.10533619 ↗