journal article·2026-05

Unsupervised fabric defect detection algorithm based on vector quantization and feature distance

Qiyu Wei, Lei Zhang, Zhu Zhan, Liqing Li, Jun Wang

Textile Research Journal· Volume 96· Issue 9-10
Publisher page

Abstract

Fabric defect detection is an indispensable step in textile fabric production, and many deep-learning-based methods have been proposed. However, existing supervised methods are limited by the lack of annotated datasets, and unsupervised anomaly detection methods still fail to meet the requirements of practical applications. To address these issues, a novel unsupervised dual-scale method based on feature distance, called DSFD, is proposed. First, leveraging the periodic characteristics of fabric textures, a method for obtaining feature templates of image patches and a method for calculating anomaly scores of image patches are proposed based on a vector quantized variational autoencoder (VQ-VAE). Second, to address the issue that codebook vectors cannot be effectively activated using Euclidean distance-based quantization mechanism during model training and testing, a cosine similarity-based quantization mechanism is proposed. Ablation experiments demonstrate its effectiveness in improving defect detection performance. Finally, to enhance the robustness of the model when applied to different types of fabric images, a dual-scale method is proposed. The proposed method was compared with five state-of-the-art anomaly detection methods on three open-source datasets, achieving superior defect detection performance. It demonstrated a performance improvement of 2.1% in image-level defect detection and 1.3% in pixel-level segmentation in terms of area under the curve scores.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Industrial Vision Systems and Defect Detection · Image Processing Techniques and Applications · Anomaly Detection Techniques and Applications

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

Affiliations

Key Laboratory of Textile Science & Technology of Ministry of Education, College of Textiles, Donghua University, PR China

School of Textiles and Fashion Art Building, Shanghai University of Engineering Science, PR China

References (50)

Show source-provided references
1. 10.1117/1.60066310.1117/1.600663 ↗
2. 10.1016/S0031-3203(01)00188-110.1016/S0031-3203(01)00188-1 ↗
3. 10.1016/j.patrec.2004.11.01610.1016/j.patrec.2004.11.016 ↗
4. Hou Z Parker JM. Texture defect detection using support vector machines with adaptive Gabor wavelet features. In 2005 Seventh IEEE Workshops on Applications of Computer Vision (WACV/MOTION’05) Vol. 1. IEEE 2005 pp. 275–280.10.1109/ACVMOT.2005.115 ↗
5. 10.1016/j.imavis.2006.07.02810.1016/j.imavis.2006.07.028 ↗
6. 10.1108/IJCST-11-2018-013510.1108/IJCST-11-2018-0135 ↗
7. 10.3390/app1213682310.3390/app12136823 ↗
8. Wei B Hao K Tang X et al. Fabric defect detection based on faster RCNN. In Proceedings of the Artificial Intelligence on Fashion and Textiles (AIFT) Conference 2018 Hong Kong 3–6 July 2018. Berlin: Springer 2019 pp. 45–51.10.1007/978-3-319-99695-0_6 ↗
9. 10.1016/j.compind.2021.10355110.1016/j.compind.2021.103551 ↗
10. 10.1088/1742-6596/1948/1/01216010.1088/1742-6596/1948/1/012160 ↗
11. 10.1177/004051752092860410.1177/0040517520928604 ↗
12. 10.1007/s10489-021-02981-410.1007/s10489-021-02981-4 ↗
13. 10.1007/s11063-019-10113-w10.1007/s11063-019-10113-w ↗
14. 10.1007/s11042-022-13470-210.1007/s11042-022-13470-2 ↗
15. 10.1080/00405000.2013.83678410.1080/00405000.2013.836784 ↗
16. 10.1007/s11042-022-13568-710.1007/s11042-022-13568-7 ↗
17. 10.1007/s10489-021-02981-410.1007/s10489-021-02981-4 ↗
18. 10.1007/s11042-023-16340-710.1007/s11042-023-16340-7 ↗
19. 10.1177/004051751774368810.1177/0040517517743688 ↗
20. 10.1109/ACCESS.2023.328299310.1109/ACCESS.2023.3282993 ↗
21. Samariya D, Thakkar A. A comprehensive survey of anomaly detection algorithms. Ann Data Sci 2023; 10(3): 829–850.
22. Tao X, Gong X, Zhang X, et al. Deep learning for unsupervised anomaly localization in industrial images: A survey. IEEE Trans Instrum Meas 2022, 71: 1–21.10.1109/TIM.2022.3196436 ↗
23. 10.3390/app1007251110.3390/app10072511 ↗
24. 10.3390/s1804106410.3390/s18041064 ↗
25. 10.14504/ajr.8.S1.1810.14504/ajr.8.S1.18 ↗
26. 10.1007/s11554-020-01023-510.1007/s11554-020-01023-5 ↗
27. 10.1177/1558925022110138210.1177/15589250221101382 ↗
28. 10.1177/004051751986288010.1177/0040517519862880 ↗
29. Radford A Metz L Chintala S. Unsupervised representation learning with deep convolutional generative adversarial networks. arXiv preprint arXiv:1511.06434 2015.
30. Zhang Z Wan X Li L et al. An improved DCGAN for fabric defect detection. In 2021 IEEE 4th International Conference on Electronics and Communication Engineering (ICECE). IEEE 2021 pp. 72–76.10.1109/ICECE54449.2021.9674302 ↗
31. Gong D Liu L Le V et al. Memorizing normality to detect anomaly: Memory-augmented deep autoencoder for unsupervised anomaly detection. In Proceedings of the IEEE/CVF International Conference on Computer Vision 2019 pp. 1705–1714.10.1109/ICCV.2019.00179 ↗
32. Park H Noh J Ham B. Learning memory-guided normality for anomaly detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition 2020 pp. 14372–14381.10.1109/CVPR42600.2020.01438 ↗
33. 10.1111/cote.1262410.1111/cote.12624 ↗
34. Ruff L Vandermeulen R Goernitz N et al. Deep one-class classification. In International Conference on Machine Learning. PMLR 2018 pp. 4393–4402.
35. Yi J Yoon S. Patch SVDD: Patch-level SVDD for anomaly detection and segmentation. In Proceedings of the Asian Conference on Computer Vision 2020.10.1007/978-3-030-69544-6_23 ↗
36. 10.3390/s1801020910.3390/s18010209 ↗
37. He K Zhang X Ren S et al. Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition 2016 pp. 770–778.10.1109/CVPR.2016.90 ↗
38. Defard T Setkov A Loesch A et al. PaDiM: a patch distribution modeling framework for anomaly detection and localization. In International Conference on Pattern Recognition. Cham: Springer International Publishing 2021 pp. 475–489.10.1007/978-3-030-68799-1_35 ↗
39. 10.1177/004051752096673310.1177/0040517520966733 ↗
40. 10.1007/978-0-387-73003-5_19610.1007/978-0-387-73003-5_196 ↗
41. 10.1016/j.neucom.2020.11.01810.1016/j.neucom.2020.11.018 ↗
42. Li CL Sohn K Yoon J et al. Cutpaste: Self-supervised learning for anomaly detection and localization. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition 2021 pp. 9664–9674.10.1109/CVPR46437.2021.00954 ↗
43. 10.1177/0040517523120682010.1177/00405175231206820 ↗
44. Zhang Y, Zhong J, Liu Z, et al. ECF-STPM: A robust crack detection method for railway catenary components. IEEE Trans Instrum Meas 2023. doi:10.1109/TIM.2023.3307181
45. Van Den Oord A, Vinyals O. Neural discrete representation learning. Adv Neur Inform Process Syst 2017; 30: 6307–6316.
46. Yu J Li X Koh JY et al. Vector-quantized image modeling with improved VQGAN. arXiv preprint arXiv:2110.04627 2021.
47. 10.1109/COMST.2014.233661010.1109/COMST.2014.2336610 ↗
48. 10.1016/j.eswa.2020.11406610.1016/j.eswa.2020.114066 ↗
49. 10.1016/j.patcog.2020.10770610.1016/j.patcog.2020.107706 ↗
50. Liu Z Zhou Y Xu Y et al. SimpleNet: A simple network for image anomaly detection and localization. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition 2023 pp. 20402–20411.10.1109/CVPR52729.2023.01954 ↗