journal article·2026-03Open access

MAS-YOLO: a fabric defect detection network based on YOLOv8

Guanghao Pan, Xuewei Li, Xiang Cheng, Yuheng Zhu, Yukun Chen

Textile Research Journal· Volume 96· Issue 5-6

Abstract

Defect detection is crucial for controlling product quality in the process of textile production. However, for existing detection techniques, there are still challenges in identifying different forms of defect and small defects within the same category. To address this issue, we propose a fabric defect detection model called MAS-YOLO. This model is based on YOLOv8n and incorporates several key innovations. First, we designed a multi-branch coordinate attention module to capture direction and position information. Second, we designed an adaptive weighted downsampling module based on grouped convolution, which emphasizes defective features and reduces background interference using weighting features. Finally, we introduced sliding loss to address the imbalance between easy and difficult samples. The experimental results show that the mean average precisions for a customized fabric defect dataset and the AliCloud Tianchi dataset were 96.3% and 51.6%, respectively, that is, 6.9% and 7.8% higher, respectively, than the original YOLOv8n. The detection speeds using the GTX1050ti graphics card and RTX3070ti graphics card are 57.3 frames per second (fps) and 154.3 fps, respectively; this can meet the real-time requirements of defect detection in most industrial sites and provide technical support for the application of lightweight network models in the industry.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Industrial Vision Systems and Defect Detection · Advanced Neural Network Applications · Image Processing Techniques and Applications

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

Affiliations

Department of Mechanical Engineering, Shandong University of Technology, China

Funding

Innovation capability enhancement project of the technology-oriented small and medium enterprises in Shandong province · National Natural Science Foundation of China

References (43)

Show source-provided references
1. 10.1177/1558925024123215310.1177/15589250241232153 ↗
2. Ojala T Pietikainen M andHarwood D. Performance evaluation of texture measures with classification based on Kullback discrimination of distributions. In: Proceedings of 12th international conference on pattern recognition Jerusalem 9–13 October 1994 vol. 581 pp. 582–585.10.1109/ICPR.1994.576366 ↗
3. Dalal N Triggs B. Histograms of oriented gradients for human detection. In: 2005 IEEE computer society conference on computer vision and pattern recognition (CVPR’05) San Diego CA USA 20–25 June 2005 vol. 881 pp. 886–893. Piscataway NJ: IEEE.10.1109/CVPR.2005.177 ↗
4. Lowe DG. Object recognition from local scale-invariant features. In: Proceedings of the seventh IEEE international conference on computer vision Kerkyra Greece 20–27 September 1999 vol. 1152 pp. 1150–1157. Piscataway NJ: IEEE.10.1109/ICCV.1999.790410 ↗
5. 10.1016/S0893-6080(99)00032-510.1016/S0893-6080(99)00032-5 ↗
6. 10.3724/SP.J.1004.2013.0074510.3724/SP.J.1004.2013.00745 ↗
7. 10.1016/j.dsp.2024.10448410.1016/j.dsp.2024.104484 ↗
8. 10.1016/j.dsp.2024.10447410.1016/j.dsp.2024.104474 ↗
9. 10.1115/1.404953510.1115/1.4049535 ↗
10. 10.1177/0040517522113077310.1177/00405175221130773 ↗
11. Lu Y. Artificial intelligence: A survey on evolution, models, applications and future trends. J Manage Anal 2019; 6: 1–29.
12. 10.1109/TIM.2020.304719010.1109/TIM.2020.3047190 ↗
13. Girshick R Donahue J Darrell T et al. Rich feature hierarchies for accurate object detection and semantic segmentation. In: 2014 IEEE conference on computer vision and pattern recognition Columbus OH USA 23–28 June 2014 pp. 580–587. Piscataway NJ: IEEE.10.1109/CVPR.2014.81 ↗
14. Girshick R. Fast R-CNN. In: 2015 IEEE international conference on computer vision (ICCV) Santiago Chile 7–13 December 2015 pp. 1440–1448. Piscataway NJ: IEEE.10.1109/ICCV.2015.169 ↗
15. 10.1109/TPAMI.2016.257703110.1109/TPAMI.2016.2577031 ↗
16. 10.1007/978-3-319-46448-0_210.1007/978-3-319-46448-0_2 ↗
17. Wang C Bochkovskiy A andLiao HM. YOLOv7: Trainable bag-of-freebies sets new state-of-the-art for real-time object detectors. In: 2023 IEEE/CVF conference on computer vision and pattern recognition (CVPR) Vancouver BC Canada 17–24 June 2023 pp. 7464–7475. Piscataway NJ: IEEE.10.1109/CVPR52729.2023.00721 ↗
18. Redmon J Farhadi A. YOLO9000: Better faster stronger. In: 2017 IEEE conference on computer vision and pattern recognition (CVPR) Honolulu HI USA 21–26 July 2017 pp. 6517–6525. Piscataway NJ: IEEE.10.1109/CVPR.2017.690 ↗
19. Redmon J Divvala S Girshick R et al. You only look once: Unified real-time object detection. In: 2016 IEEE conference on computer vision and pattern recognition (CVPR) Las Vegas NV USA 27–30 June 2016 pp. 779–788. Piscataway NJ: IEEE.10.1109/CVPR.2016.91 ↗
20. Li C, Li L, Jiang H, et al. YOLOv6: A single-stage object detection framework for industrial applications. arXiv 2022; arXiv:220902976.
21. Redmon J Farhadi A. Yolov3: An incremental improvement. arXiv2018; arXiv: 180402767.
22. Bochkovskiy A, Wang C-Y, , andLiao H-YM. Yolov4: Optimal speed and accuracy of object detection. arXiv 2020; arXiv:200410934.
23. 10.3390/s2115519410.3390/s21155194 ↗
24. 10.1016/j.patcog.2024.11071410.1016/j.patcog.2024.110714 ↗
25. 10.14504/ajr.8.S1.1110.14504/ajr.8.S1.11 ↗
26. 10.1007/s11760-023-02884-610.1007/s11760-023-02884-6 ↗
27. Kailasam K Singh J Gopika GS et al. Fabric defect detection using deep learning. In: 2024 3rd international conference on sentiment analysis and deep learning (ICSADL) Bhimdatta Nepal 13–14 March 2024 pp. 399–405. Piscataway NJ: IEEE.10.1109/ICSADL61749.2024.00071 ↗
28. Hou W Wen S Li P et al. Surface defect detection of fabric based on improved faster R-CNN. In: 2023 IEEE international conference on sensors electronics and computer engineering (ICSECE) Jinzhou China 18–20 August 2023 pp. 600–604. Piscataway NJ: IEEE.10.1109/ICSECE58870.2023.10263522 ↗
29. 10.1177/155892502090826810.1177/1558925020908268 ↗
30. 10.14504/ajr.8.S1.2210.14504/ajr.8.S1.22 ↗
31. 10.1007/s00500-022-07675-810.1007/s00500-022-07675-8 ↗
32. 10.3390/s2301009710.3390/s23010097 ↗
33. 10.1108/IJCST-11-2021-016510.1108/IJCST-11-2021-0165 ↗
34. 10.3390/electronics1213295010.3390/electronics12132950 ↗
35. 10.1177/0040517523120589810.1177/00405175231205898 ↗
36. 10.1177/0040517523120281710.1177/00405175231202817 ↗
37. 10.1177/0040517523117894710.1177/00405175231178947 ↗
38. Gu M Zhou J Pan R et al. DF-YOLO: An attempt on enhancing generalization in fabric defect detection based on YOLO network. Text Res J. Epub ahead of print 24 September 2024. DOI: 10.1177/00405175241269163.10.1177/00405175241269163 ↗
39. 10.1177/0040517523120203510.1177/00405175231202035 ↗
40. 10.1177/0040517524126109210.1177/00405175241261092 ↗
41. Hou Q Zhou D andFeng J. Coordinate attention for efficient mobile network design. In: 2021 IEEE/CVF conference on computer vision and pattern recognition (CVPR) Nashville TN USA 2 November 2021 pp. 13713–13722. Piscataway NJ: IEEE.10.1109/CVPR46437.2021.01350 ↗
42. Selvaraju RR Cogswell M Das A et al. Grad-CAM: Visual explanations from deep networks via gradient-based localization. In: 2017 IEEE international conference on computer vision (ICCV) Venice Italy 22–29 October 2017 pp. 618–626. Piscataway NJ: IEEE.10.1109/ICCV.2017.74 ↗
43. Tianchi. Smart Diagnosis of Cloth Flaw Dataset. 2020; https://tianchi.aliyun.com/dataset/dataDetail?dataId=79336