Unsupervised textile defect detection using convolutional neural networks

Küçük Resim



Dergi Başlığı

Dergi ISSN

Cilt Başlığı


Elsevier Ltd

Erişim Hakkı


Araştırma projeleri

Organizasyon Birimleri

Dergi sayısı


In this study, we propose a novel motif-based approach for unsupervised textile anomaly detection that combines the benefits of traditional convolutional neural networks with those of an unsupervised learning paradigm. It consists of five main steps: preprocessing, automatic pattern period extraction, patch extraction, features selection and anomaly detection. This proposed approach uses a new dynamic and heuristic method for feature selection which avoids the drawbacks of initialization of the number of filters (neurons) and their weights, and those of the backpropagation mechanism such as the vanishing gradients, which are common practice in the state-of-the-art methods. The design and training of the network are performed in a dynamic and input domain-based manner and, thus, no ad-hoc configurations are required. Before building the model, only the number of layers and the stride are defined. We do not initialize the weights randomly nor do we define the filter size or number of filters as conventionally done in CNN-based approaches. This reduces effort and time spent on hyper-parameter initialization and fine-tuning. Only one defect-free sample is required for training and no further labeled data is needed. The trained network is then used to detect anomalies on defective fabric samples. We demonstrate the effectiveness of our approach on the Patterned Fabrics benchmark dataset. Our algorithm yields reliable and competitive results (on recall, precision, accuracy and f1-measure) compared to state-of-the-art unsupervised approaches, in less time, with efficient training in a single epoch and a lower computational cost.


This research is part of project "Competitive Deep Learning with Convolutional Neural Networks", grant number 118E293, supported by The Support Programme for Scientific and Technological Research Projects (1001) of The Scientific and Technological Research Council of Turkey (TUBITAK).

Anahtar Kelimeler

Anomaly detection, Computational efficiency, Convolution, Convolutional neural networks, Cross-patch similarity, Defect detection, Extraction, Fabric defect, Feature extraction, Features selection, Heuristic methods, Manhattan distance, Neural network, Pattern period, Textile defect, Textiles


Applied Soft Computing

WoS Q Değeri


Scopus Q Değeri






Koulali, I. & Eskil, M. T. (2021). Unsupervised textile defect detection using convolutional neural networks. Applied Soft Computing, 113, 1-17. doi:10.1016/j.asoc.2021.107913