Abstract
The inspection of fabric defects is of great importance, as undetected and uncorrected defects entail poor production quality and expensive compensation. Due to the variety of defect types and sizes, it is a very tedious task to perform inspection manually. There are numerous automated systems in the literature; however, most of them require a training scheme where clean and defective fabric samples are manually fed to the system. Because of the diversity of fabric patterns and defect classes, supervised systems reduce convenience and ease of use in real practice. In this study, we propose an unsupervised, robust fabric defect detection method using spectral domain analysis. The proposed algorithm has a very simple flow and can run without any prior training scheme. First, the algorithm splits the input textile image into smaller patches and computes a generic spectral representation of the fabric pattern. Then, the method detects defective regions by measuring dissimilarities between the spectral representation and all local patches of the input fabric. We also introduce a textile fabric dataset, i.e., Ten Fabrics Dataset, which consists of ten different types of fabrics with 27 of the most common textile defects. According to the extensive set of experiments on two different datasets, the proposed method outperforms the state-of-the-art by achieving up to 94% accuracy.
Similar content being viewed by others
Data availability
The source code of the proposed method (LSC method) is available at: (https://github.com/sahar-shakir/Local-spectra-Clustering-LSC-method) Ten Fabric defect dataset used in this study can be found at: (https://www.kaggle.com/saharshakir/ten-fabrics-dataset-tfd) All other data are available from the authors upon request.
References
Amelung J, Vogel K (1994) Automated window size determination for texture defect detection. In: Proceedings of the British machine vision conference, pp 10.1–10.10
Brodatz P (1966) Textures: a photographic album for artists and designers
Cao J, Zhang J, Wen Z, Wang N, Liu X (2017) Fabric defect inspection using prior knowledge guided least squares regression. Multimed Tools Appl 76:4141–4157
Cerkezi L, Topal C (2020) Towards more discriminative features for texture recognition. Pattern Recogn 107:107473
Chan CH, Pang GKH (2000) Fabric defect detection by Fourier analysis. IEEE Trans Ind Appl 36:1267–1276
Chetverikov D, Hanbury A (2002) Finding defects in texture using regularity and local orientation. Pattern Recogn 35:2165–2180
Dot-patterned, box-patterned and star-patterned databases. Henry Y.T. Ngan, Grantham K.H. Pang, Industrial Automation Research Laboratory, Dept. of Electrical and Electronic Engineering, The University of Hong Kong
Elo AE (1978) The rating of chessplayers, past and present. Arco Pub, New York
Han Y, Shi P (2007) An adaptive level-selecting wavelet transform for texture defect detection. Image Vis Comput 25:1239–1248
Hanbay K, Talu MF, Özgüven ÖF (2016) Fabric defect detection systems and methods-a systematic literature review. Optik 127:11960–11973
Jia L, Chen C, Liang J, Hou Z (2017) Fabric defect inspection based on lattice segmentation and Gabor filtering. Neurocomputing 238:84–102
Kumar A (2003) Neural network based detection of local textile defects. Pattern Recogn 36:1645–1659
Kumar A (2008) Computer-vision-based fabric defect detection: a survey. IEEE Trans Ind Electron 55:348–363
Kumar A, Shen HC (2002) Texture inspection for defects using neural networks and support vector machines. In: Proceedings of international conference on image processing, vol 3, pp III-353–III-356
Lale Özbakir AB, Kulluk S (2011) Rule extraction from artificial neural networks to discover causes of quality defects in fabric production. Neural Comput Appl 20:1117–1128
Le Tong WW, Kwongb C (2016) Differential evolution-based optimal Gabor filter model for fabric inspection. Neurocomputing 173:1386–1401
Li Y, Zhang D, Lee DJ (2019) Automatic fabric defect detection with a wide-and-compact network. Neurocomputing 329:329–338
Mohd Amiruddin AAA, Zabiri H, Taqvi S (2018) Neural network applications in fault diagnosis and detection: an overview of implementations in engineering-related systems. Neural Comput Appl 32:447–472
Mäenpää T, Turtinen M, Pietikäinen M (2003) Real-time surface inspection by texture. Real-Time Imaging 9:289–296
Ng MK, Ngan HY, Yuan X, Zhang W (2014) Patterned fabric inspection and visualization by the method of image decomposition. IEEE Trans Autom Sci Eng 11:943–947
Ngan HY, Pang GK, Yung SP, Ng MK (2005) Wavelet based methods on patterned fabric defect detection. Pattern Recogn 38:559–576
Ngan HYT, Pang GKH, Yung NHC (2010) Performance evaluation for motif-based patterned texture defect detection. IEEE Trans Autom Sci Eng 7:58–72
Ngan HYT, Pang GKH, Yung NHC (2011) Review article: automated fabric defect detection-a review. Image Vis Comput 29:442–458
Rasheed A, Zafar B, Rasheed A, Ali N, Sajid M, Dar SH, Habib U, Shehryar T, Mahmood MT (2020) Fabric defect detection using computer vision techniques: a comprehensive review. Math Prob Eng 2020
Ren Z, Fang F, Yan N, Wu Y (2021) State of the art in defect detection based on machine vision. Int J Precis Eng Manuf-Green Technol 1–31
Rohrmus D (2000) Invariant web defect detection and classification system. In: Proceedings IEEE conference on computer vision and pattern recognition. CVPR 2000 (Cat. No.PR00662), vol 2, pp 794–795
Ojala T, Maenpaa T, Pietikainen M, Viertola J, Kyllonen J, Huovinen S (2002) Outex—new framework for empirical evaluation of texture analysis algorithms. In: Proceedings of 16th international conference on pattern recognition, Quebec, vol 1, pp 701–706
Shi B, Liang J, Di L, Chen C, Hou Z (2021) Fabric defect detection via low-rank decomposition with gradient information and structured graph algorithm. Inf Sci 546:608–626
Susan S, Sharma M (2017) Automatic texture defect detection using gaussian mixture entropy modeling. Neurocomputing 239:232–237
Tajeripour F, Kabir E, Sheikhi A (2008) Fabric defect detection using modified local binary patterns. EURASIP J Adv Signal Process Article ID 783898, p 12
Tilda textile texture-database (2017). http://lmb.informatik.uni-freiburg.de/resources/datasets/tilda.en.html
Tsai DM, Hsiao B (2001) Automatic surface inspection using wavelet reconstruction. Pattern Recogn 34:1285–1305
Tsai DM, Hsieh CY (1999) Automated surface inspection for directional textures. Image Vis Comput 18:49–62
Tsai DM, Huang TY (2003) Automated surface inspection for statistical textures. Image Vis Comput 21:307–323
Tsang CS, Ngan HY, Pang GK (2016) Fabric inspection based on the Elo rating method. Pattern Recogn 51:378–394
Wei B, Hao K, Tang XS, Ding Y (2019) A new method using the convolutional neural network with compressive sensing for fabric defect classification based on small sample sizes. Text Res J 89:3539–3555
Liu Y, Collins RT, Tsin Y (2004) A computational model for periodic pattern perception based on frieze and wallpaper group. IEEE Trans Pattern Anal Mach Intell 354–371
Wu Y, Zhang X, Fang F (2020) Automatic fabric defect detection using cascaded mixed feature pyramid with guided localization. Sensors 20:871
Yang X, Pang G, Yung N (2004) Discriminative training approaches to fabric defect classification based on wavelet transform. Pattern Recogn 37:889–899
Author information
Authors and Affiliations
Corresponding author
Ethics declarations
Conflict of interest
The authors declare that they have no conflict of interest.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Shakir, S., Topal, C. Unsupervised fabric defect detection with local spectra refinement (LSR). Neural Comput & Applic 36, 1091–1103 (2024). https://doi.org/10.1007/s00521-023-09080-0
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00521-023-09080-0