NeurIPS 2026Coming to NeurIPS in Sydney?Explore papers, orals & directions

Automatic Fabric Defect Detection with a Multi-Scale Convolutional Denoising Autoencoder Network Model

Shuang Mei, Yudan Wang, Guojun Wen2018

TL;DR

This paper introduces a novel unsupervised learning approach, the Multi-Scale Convolutional Denoising Autoencoder (MSCDAE), for automatically detecting and localizing defects in fabric images. By leveraging a multi-scale Gaussian pyramid and denoising autoencoders, the method effectively reconstructs defect-free fabric patches, allowing defects to be identified by their reconstruction residuals, even with limited defect samples.

What Problem Does This Paper Address?

Ensuring fabric quality is crucial in the textile industry, but traditional manual inspection methods are inefficient, prone to human error, and subjective. While automated optical inspection systems exist, they face several challenges: the vast diversity of fabric textures, the wide variety and subtle manifestations of defects, and the difficulty in collecting sufficient labeled data, especially for rare defect types. This data imbalance makes traditional supervised learning methods problematic. The paper aims to address these issues by developing a robust, unsupervised method that can generalize across different fabric types and defect categories without requiring extensive labeled defect data.

Methods

The core of the proposed method is the Multi-Scale Convolutional Denoising Autoencoder (MSCDAE). Here's a breakdown of its key components:

  • Unsupervised Learning: The model is trained in an unsupervised manner, meaning it doesn't require manually labeled defect data. This is a significant advantage given the difficulty of acquiring such datasets.
  • Denoising Autoencoder (CDAE): At its heart, the MSCDAE uses CDAE networks. These networks are trained to reconstruct clean images from corrupted inputs (e.g., with added noise). By learning to reconstruct "normal" fabric patterns, the CDAE becomes sensitive to deviations, i.e., defects.
  • Multi-Scale Gaussian Pyramid: To handle defects of varying sizes, the input images are processed at multiple resolutions using a Gaussian pyramid. This allows the model to capture both fine-grained details and larger-scale anomalies. Each level of the pyramid uses a separate CDAE.
  • Reconstruction Residual: The key indicator for defect detection is the "reconstruction residual." This is the difference between the original input patch and the output reconstructed by the CDAE. High residuals indicate that the patch deviates from the learned "normal" pattern, suggesting a defect.
  • Patch-Based Processing: The model operates on image patches rather than the entire image at once. This is a common strategy in texture analysis and defect detection.
  • Result Synthesis: To improve robustness and accuracy, the detection results from each pyramid level are combined. An "AND" operation is used between adjacent levels to reduce false positives, followed by an "OR" operation across all levels to consolidate the final defect map.

Datasets

The authors evaluated their model on several publicly available datasets and one they created:

  • Fabrics: Approximately 2000 samples, captured under varying illumination conditions.
  • KTH-TIPS: A challenging dataset designed to include variations in scale, pose, and illumination.
  • Kylberg Texture: A dataset comprising 28 texture classes with diverse patterned textures.
  • ms-Texture: A dataset created by the authors using their automatic optical inspection (AOI) test bench, featuring samples captured with a line-scan CCD camera and potentially containing multiple defect types.

The training phase specifically uses defect-free samples only.

Key Insights and Ideas

  • Unsupervised learning is viable for fabric defect detection: The paper demonstrates that a deep learning approach can effectively detect defects without relying on labeled defect data, overcoming a major practical hurdle.
  • Multi-scale processing is crucial for defect detection: Defects can vary significantly in size. By processing images at multiple resolutions (via the Gaussian pyramid), the MSCDAE can effectively capture and localize defects of different scales, leading to more comprehensive detection.
  • Reconstruction residual is a powerful defect indicator: The difference between the original and reconstructed patch serves as a sensitive measure of deviation from normal fabric patterns, making it an intuitive and effective metric for defect localization.
  • Fusion of multi-scale results enhances robustness: Combining information from different pyramid levels helps to mitigate false positives (e.g., by using the AND operation) and ensures that defects missed at one scale are caught at another, leading to a more reliable overall detection.

Key Results

  • The MSCDAE model achieved good performance across various fabric types (p1 and non-p1 groups) and defect categories.
  • Pixel-level metrics: The F1-Measure, a comprehensive indicator, showed strong performance, with values ranging from 0.5389 to 0.8781 across different sample series.
  • Image-level metrics: The detection accuracy (DAcc) reached over 80.0% on all tested datasets, demonstrating the model's robustness.
  • Comparison with other methods: The MSCDAE model generally outperformed DCT, PHOT, and NLSR methods, particularly in terms of robustness and comprehensive performance, especially on complex patterned textures. It showed better stability than global reconstruction methods and better adaptability to different texture scales compared to NLSR.

Limitations and Future Work

  • Over-detection on complex patterns: The authors note that for samples with complex patterned textures exhibiting anisotropy, the model can sometimes over-detect defective regions. This is attributed to the challenge of perfectly modeling such intricate, non-repetitive textures.
  • Future work: The authors suggest further improving the accuracy and stability of the model for even more complicated patterned fabric textures. This implies exploring more advanced network architectures or fusion strategies to handle extreme cases of texture complexity.

Summary updated

BibTeX
@misc{mei2018automatic,
  author = {Shuang Mei and Yudan Wang and Guojun Wen},
  title = {{Automatic Fabric Defect Detection with a Multi-Scale Convolutional Denoising Autoencoder Network Model}},
  year = {2018},
  doi = {10.3390/s18041064},
}
Figure