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

Saved in:
Bibliographic Details
Title: Unsupervised fabric defect detection algorithm based on vector quantization and feature distance.
Authors: Wei, Qiyu1 (AUTHOR), Zhang, Lei1 (AUTHOR), Zhan, Zhu2 (AUTHOR), Li, Liqing1 (AUTHOR), Wang, Jun1 (AUTHOR) junwang@dhu.edu.cn
Source: Textile Research Journal. May2026, Vol. 96 Issue 9/10, p967-981. 15p.
Subjects: Vector quantization, Outlier detection, Deep learning, Machine learning
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. [ABSTRACT FROM AUTHOR]
Copyright of Textile Research Journal is the property of Sage Publications, Ltd. and its content may not be copied or emailed to multiple sites without the copyright holder's express written permission. Additionally, content may not be used with any artificial intelligence tools or machine learning technologies. However, users may print, download, or email articles for individual use. This abstract may be abridged. No warranty is given about the accuracy of the copy. Users should refer to the original published version of the material for the full abstract. (Copyright applies to all Abstracts.)
Database: Engineering Source
Description
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. [ABSTRACT FROM AUTHOR]
ISSN:00405175
DOI:10.1177/00405175251342617