Abstract
Fabric defect detection is a critical component of quality control in the textile industry. Traditional manual inspection is inefficient and inconsistent, while standard computer vision approaches struggle with the multi-scale nature and irregular geometries of fabric defects. This paper presents the Multi-layer Feature extraction combined with Deformable Convolution (MFDC) framework. By integrating multi-layer feature fusion, deformable convolutional modules, and a Cascade-RCNN architecture with ROI Align, the proposed method effectively identifies diverse defect types against complex backgrounds. Experimental results on the Ali Tianchi and ZJU-Leaper datasets demonstrate significant improvements in mean Average Precision (mAP), particularly for small-scale defects.
Introduction
In textile manufacturing, undetected defects can lead to substantial financial losses, often reducing the value of a fabric roll by half. Automated defect detection systems face three primary challenges: the vast range of defect scales (from pinholes to large stains), the irregular geometric shapes of defects (e.g., long snags or curved tears), and the high-frequency visual noise generated by patterned fabrics. Standard Convolutional Neural Networks (CNNs) often fail to capture these nuances due to fixed kernel geometries and information loss in deep layers.
Methodology
The MFDC algorithm addresses these challenges through three core architectural innovations:
Multi-Layer Feature Extraction
The framework employs a top-down architecture with lateral connections, similar to a Feature Pyramid Network (FPN). This design fuses high-level semantic information with low-level spatial features, ensuring that the high resolution required for detecting microscopic defects is maintained throughout the network.
Deformable Convolutional Modules
Standard 3x3 convolutional kernels are inherently limited by their rigid square structure. MFDC utilizes deformable convolutions that learn 2D offsets for sampling locations. This allows the receptive field to adaptively warp and stretch, matching the irregular and high-aspect-ratio shapes typical of fabric defects like scratches or missing prints.
Cascade-RCNN and ROI Align
To refine localization and reduce false positives, the model incorporates:
- ROI Align: Unlike traditional ROI Pooling, ROI Align uses bilinear interpolation to avoid quantization errors, preserving sub-pixel accuracy essential for small object detection.
- Cascade-RCNN: A multi-stage detection head with increasing Intersection over Union (IoU) thresholds progressively filters out background noise, leading to more precise bounding box regression.
Experimental Results
The MFDC model was evaluated on two public benchmarks: the Ali Tianchi (2019) dataset and the ZJU-Leaper dataset.
On the Ali Tianchi dataset, MFDC achieved a mean Average Precision (mAP) of 0.516 and an accuracy of 96.7%, representing a significant improvement over the Faster-RCNN baseline (0.351 mAP). Notably, the detection of small defects [mAP(S)] saw a nearly fourfold increase, rising from 0.059 to 0.232.
On the ZJU-Leaper dataset, the model reached an mAP of 0.768 and an accuracy of 96.8%. Despite the increased architectural complexity, the system maintains an inference speed of 7.81 FPS, making it viable for industrial applications.
Conclusion
The MFDC framework significantly advances the state-of-the-art in fabric defect detection by combining shape-aware convolutions with multi-scale feature fusion. While the model demonstrates robust performance, future work will focus on semi-supervised learning to mitigate the high cost of manual data labeling in industrial settings.
Summary updated