journal article·2025-12-27

Sock-YOLO: A lightweight knitted sock defect detection model

Junzhi Li, Ning Dai, Xudong Hu

Publisher page

Abstract

Knitted sock defect detection is a critical step in ensuring sock quality. Due to the complex texture of knitted socks and the diverse forms of defects, traditional detection methods are inefficient and lack precision. While current deep-learning-based defect detection models show great potential, they still face challenges in detecting small defects in complex backgrounds and deploying them on resource-constrained devices. To address these challenges, this study proposes a lightweight knitted sock defect detection model called Sock-YOLO. First, RepViTBlock is introduced into the backbone network to construct the reparameterization-based feature extraction module C3k2-RVB, which enhances feature extraction capabilities and eliminates the computational overhead caused by skip connections. Second, a CA-HSFPN module is designed in the Neck section, which utilizes HSFPN to dynamically filter features and suppress background noise, while integrating coordinate attention to improve the localization accuracy of small-sized defects. Next, the lightweight and efficient detection head (LEDH) replaces the original detection head, utilizing a depth-separable convolution structure to reduce computational complexity. In addition, the MPDIoU loss function is introduced to improve the regression accuracy of bounding boxes. Finally, the LAMP channel pruning strategy is adopted to alleviate the deployment pressure on edge devices. Experimental results show that compared to YOLOv11n, the pruned Sock-YOLO reduces the number of parameters and computational complexity by 72% and 47%, respectively, to 700,000 and 3.3 GFLOPS, while improving mAP 50 by 3.4% to 89.8%. The model weights were reduced by 65%, with a size of only 1.8 MB, and the inference speed reached 134.8 FPS. The research results indicate that the proposed method effectively improves the accuracy of knit sock defect detection while balancing detection accuracy and deployment costs, providing a reliable solution for knit sock defect detection tasks in industrial scenarios.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Industrial Vision Systems and Defect Detection · Advanced Neural Network Applications · Textile materials and evaluations

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

Affiliations

Zhejiang Sci-Tech University, Hangzhou, Zhejiang, China

Funding

department of education of zhejiang province · zhejiang sci-tech university

References (42)

Show source-provided references
1. Chen Z, Yang J, Li F, et al. Foreign object detection method for railway catenary based on a scarce image generation model and lightweight perception architecture. IEEE Trans Circuits Syst Video Technol 2025, doi: 10.1109/TCSVT.2025.3567319.
2. 10.1016/j.compositesb.2023.11107110.1016/j.compositesb.2023.111071 ↗
3. 10.1016/j.compositesb.2024.11201010.1016/j.compositesb.2024.112010 ↗
4. 10.1016/j.pmatsci.2023.10122110.1016/j.pmatsci.2023.101221 ↗
5. Hossain M, Hossain AM, Al Mamun MdA, et al. Influence of sinker timing on loop shape, width and areal density of weft-knitted cotton plain jersey fabric. PLoS One 2025; 20: e0323572.
6. 10.3390/s1804106410.3390/s18041064 ↗
7. Li C, Li J, Li Y, He L, Fu X, Chen J. Fabric defect detection in textile manufacturing: a survey of the state of the art. Secur Commun Netw 2021; 2021: 9948808.
8. 10.1109/CVPR.2014.8110.1109/CVPR.2014.81 ↗
9. Ren S, He K, Girshick R, Sun J. Faster R-CNN: Towards real-time object detection with region proposal networks. In: Cortes C, Lawrence ND, Lee DD, Sugiyama M, Garnett R (eds.), Advances in Neural Information Processing Systems (NIPS 2015), vol. 28. La Jolla, CA: NIPS, 2015.
10. 10.1109/TPAMI.2018.284417510.1109/TPAMI.2018.2844175 ↗
11. Liu W Anguelov D Erhan D et al. SSD: Single shot multibox detector. In: Leibe B Matas J Sebe N Welling M (eds.) European Conference on Computer Vision - ECCV 2016 Part I vol. 9905. Cham: Springer International Publishing 2016 pp. 21–37.10.1007/978-3-319-46448-0_2 ↗
12. 10.1109/ICCV.2017.32410.1109/ICCV.2017.324 ↗
13. Jia Z, Shi Z, Quan Z, Mei S. Fabric defect detection based on transfer learning and improved Faster R-CNN. J Eng Fiber Fabr 2022; 17:15589250221086647.
14. 10.1007/s11760-023-02884-610.1007/s11760-023-02884-6 ↗
15. 10.1016/j.compind.2021.10355110.1016/j.compind.2021.103551 ↗
16. 10.1007/s00371-023-02918-710.1007/s00371-023-02918-7 ↗
17. 10.3390/sym1411237310.3390/sym14112373 ↗
18. Jing J, Zhuo D, Zhang H, Liang Y, Zheng M. Fabric defect detection using the improved YOLOv3 model. J Eng Fiber Fabr 2020; 15: 1558925020908268.
19. 10.1109/ACCESS.2023.326426210.1109/ACCESS.2023.3264262 ↗
20. 10.3788/LOP57.16100110.3788/LOP57.161001 ↗
21. Howard A Sandler M Chu G et al. Searching for MobileNetV3 2019 IEEE/CVF International Conference on Computer Vision (ICCV) Seoul Korea (South) 2019 pp. 1314–1324.10.1109/ICCV.2019.00140 ↗
22. 10.1109/CVPR52733.2024.0150610.1109/CVPR52733.2024.01506 ↗
23. 10.1155/2021/106018210.1155/2021/1060182 ↗
24. 10.1016/j.compbiomed.2024.10791710.1016/j.compbiomed.2024.107917 ↗
25. 10.1109/CVPR46437.2021.0135010.1109/CVPR46437.2021.01350 ↗
26. Ma S Xu Y. MPDIoU: A loss for efficient and accurate bounding box regression Jan. 2023 doi:10.48550/arxiv.2307.07662.
27. Lee J, Park S, Mo S, Ahn S, Shin J. Layer-adaptive sparsity for the magnitude-based pruning, 2021 International Conference on Learning Representations (ICLR), 2021.
28. 10.1016/j.jksuci.2024.10193610.1016/j.jksuci.2024.101936 ↗
29. 10.1109/CVPR52688.2022.0006510.1109/CVPR52688.2022.00065 ↗
30. 10.1109/CVPR46437.2021.0107410.1109/CVPR46437.2021.01074 ↗
31. 10.1109/CVPR52733.2024.0261710.1109/CVPR52733.2024.02617 ↗
32. Xu W Wan Y. ELA: Efficient local attention for deep convolutional neural networks arXiv:2403.01123.
33. 10.1109/ICCV.2017.7410.1109/ICCV.2017.74 ↗
34. Gevorgyan Z. SIoU loss: More powerful learning for bounding box regression arXiv:2205.12740.
35. Zhang H Zhang S. Shape-IoU: More accurate metric considering bounding box shape and scale arXiv:2312.17663.
36. Zhang H Xu C Zhang S. Inner-IoU: More effective intersection over union loss with auxiliary bounding box arXiv:2311.02877.
37. Han S, Pool J, Tran J, Dally WJ. Learning both weights and connections for efficient neural networks. In: Cortes C, Lawrence ND, Lee DD, Sugiyama M, Garnett R (eds.), Advances in Neural Information Processing Systems (NIPS 2015), vol. 28. La Jolla, CA: NIPS, 2015.
38. Molchanov P Tyree S Karras T Aila T Kautz J. Pruning convolutional neural networks for resource efficient inference arXiv:1611.06440.
39. Li H Kadav A Durdanovic I Samet H Graf HP. Pruning filters for efficient ConvNets arXiv:1608.08710.
40. 10.1109/ICCV.2019.0003810.1109/ICCV.2019.00038 ↗
41. 10.1007/s00371-024-03716-510.1007/s00371-024-03716-5 ↗
42. Zhou L, Ma B, Dong Y, Yin Z, Lu F. DCFE-YOLO: A novel fabric defect detection method. PLoS ONE 2025; 20: e0314525.