Texture-Adaptive Fabric Defect Detection via Dynamic Subspace Feature Extraction and Luminance Reconstruction
Abstract
1. Introduction
- A Dynamic Subspace Feature Extraction (DSFE) method to extract global features from fabric images. DSFE is designed to capture key information along the primary directions of the fabric’s weave, which aligns well with the structural characteristics of fabric defects.
- A Light Field Offset-Aware Reconstruction Model (LFOA) to reconstruct the luminance distribution, which effectively mitigates the non-uniformity introduced by environmental lighting inconsistencies.
- A computationally efficient, texture-adaptive defect detection system. This system introduces a probabilistic ‘Outlier Index’ to characterize defects and features an embedded optimization model to autonomously tune its parameters, ensuring rapid generalization and suitability for real-time deployment.
2. Related Works
3. Methods
3.1. Spatial-Domain Luminance Feature Extraction of Fabric
3.2. Reconstruction of Fabric Luminance Distribution
3.3. Fabric Texture-Adaptive Defect Detection System
3.3.1. Localization of Potential Defects
3.3.2. Multidimensional Analytical Representation of Potential Defects
3.3.3. Adaptive Optimization of the Outlier Scaling Factor
4. Results
4.1. Feature Extraction Method
4.2. Light Field Correction
4.3. Fitting Method
4.4. Study on the Influence of Dynamic Subspace Range
4.5. Improvement of the Multidimensional Anomaly Analysis Formula
4.6. Comparison with Other Models
4.7. Discussion
5. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Haralick, R.M.; Shanmugam, K.; Dinstein, I.H. Textural features for image classification. IEEE Trans. Syst. Man Cybern. 2007, SMC-3, 610–621. [Google Scholar] [CrossRef]
- Yu, G.; Zhang, F. Image recognition method for fabrics defects based on improved Res-UNet network. Wool Text. J. 2024, 52, 100–106. [Google Scholar]
- Dau Sy, H.; Thi, P.D.; Gia, H.V. Automated fabric defect classification in textile manufacturing using advanced optical and deep learning techniques. Int. J. Adv. Manuf. Technol. 2025, 137, 2963–2977. [Google Scholar] [CrossRef]
- Hu, G.; Wang, Q.; Zhang, G. Unsupervised defect detection in textiles based on Fourier analysis and wavelet shrinkage. Appl. Opt. 2015, 54, 2963–2980. [Google Scholar] [CrossRef]
- Li, Y.; Luo, H.; Yu, M. Fabric defect detection algorithm using RDPSO-based optimal Gabor filter. J. Text. Inst. 2018, 110, 487–495. [Google Scholar] [CrossRef]
- Rue, H.; Tjelmeland, H. Fitting Gaussian Markov random fields to Gaussian fields. Scand. J. Stat. 2002, 29, 31–49. [Google Scholar] [CrossRef]
- Cohen, F.S.; Fan, Z.; Attali, S. Automated Inspection of Textile Fabrics Using Textural Models. IEEE Trans. Pattern Anal. Mach. Intell. 1991, 13, 803–808. [Google Scholar] [CrossRef]
- Brzakovic, D.; Bakic, P.R.; Vujovic, N. A generalized development environment for inspection of web materials. In Proceedings of the International Conference on Robotics and Automation, Albuquerque, NM, USA, 25 April 1997; pp. 1–8. [Google Scholar]
- Zhao, X.; Wang, L.; Zhang, Y. A review of convolutional neural networks in computer vision. Artif. Intell. Rev. 2024, 57, 99. [Google Scholar] [CrossRef]
- Mienye, I.D.; Swart, T.G.; Obaido, G. Recurrent neural networks: A comprehensive review of architectures, variants, and applications. Information 2024, 15, 517. [Google Scholar] [CrossRef]
- Pu, Q.; Xi, Z.; Yin, S. Advantages of transformer and its application for medical image segmentation: A survey. Biomed. Eng. Online 2024, 23, 14. [Google Scholar] [CrossRef] [PubMed]
- Ameri, R.; Hsu, C.-C.; Band, S.S. A systematic review of deep learning approaches for surface defect detection in industrial applications. Eng. Appl. Artif. Intell. 2024, 130, 107717. [Google Scholar] [CrossRef]
- Jia, Z.; Wang, M.; Zhao, S. A review of deep learning-based approaches for defect detection in smart manufacturing. J. Opt. 2024, 53, 1345–1351. [Google Scholar] [CrossRef]
- Wu, S.; Xiong, Y.; Cui, Y. Retrieval-augmented generation for natural language processing: A survey. arXiv 2024, arXiv:2407.13193. [Google Scholar] [CrossRef]
- Yang, S.; Wang, Z.; Wu, W. Research Progress on Automatic Image Annotation Technology. J. Detect. Control. 2025, 47, 24–32+40. [Google Scholar]
- Khan, U.A.; Javed, A. A hybrid CBIR system using novel local tetra angle patterns and color moment features. J. King Saud Univ.-Comput. Inf. Sci. 2022, 34, 7856–7873. [Google Scholar] [CrossRef]
- Yang, J.; Xing, C.; Chen, Y. Improving the ScSPM model with Log-Euclidean Covariance matrix for scene classification. In Proceedings of the 2016 International Conference on Computer, Information and Telecommunication Systems (CITS), Kunming, China, 6–8 July 2016; pp. 1–5. [Google Scholar]
- Zhu, T.; Li, S.; He, X. WCE Polyp Detection Based On Locality-Constrained Linear Coding with A Shared Codebook. In Proceedings of the 2020 IEEE 9th Data Driven Control and Learning Systems Conference (DDCLS), Liuzhou, China, 20–22 November 2020; pp. 404–408. [Google Scholar]
- Yu, J.; Huang, D.; Li, J. Parallel Acceleration of Real-time Feature Extraction Based on SURF Algorithm. In Proceedings of the 2023 15th International Conference on Computer Research and Development (ICCRD), Hangzhou, China, 10–12 January 2023; pp. 57–63. [Google Scholar]
- Maharjan, P.; Vanfossan, L.; Li, Z. Fast LoG SIFT Keypoint Detector. In Proceedings of the 2023 IEEE 25th International Workshop on Multimedia Signal Processing (MMSP), Poitiers, France, 27–29 September 2023; pp. 1–5. [Google Scholar]
- Gavkare, S.; Umbare, R.; Shinde, K. Identification and Categorization of Brain Tumors Using HOG Feature Descriptor. In Proceedings of the 2023 IEEE International Conference on Blockchain and Distributed Systems Security (ICBDS), New Raipur, India, 6–8 October 2023; pp. 1–6. [Google Scholar]
- Liu, W.; Anguelov, D.; Erhan, D. Ssd: Single shot multibox detector. In Proceedings of the Computer Vision—ECCV 2016: 14th European Conference, Amsterdam, The Netherlands, 11–14 October 2016; Proceedings, Part I 14. pp. 21–37. [Google Scholar]
- Tan, M.; Pang, R.; Le, Q.V. EfficientDet: Scalable and Efficient Object Detection. In Proceedings of the 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA, 13–19 June 2020; pp. 10778–10787. [Google Scholar]
- Redmon, J.; Divvala, S.; Girshick, R. You Only Look Once: Unified, Real-Time Object Detection. In Proceedings of the 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA, 27–30 June 2016; pp. 779–788. [Google Scholar]
- Liu, C.; Gao, G.; Liu, Z. Fabric Defect Detection Algorithm Based on Multi-channel Feature Extraction and Joint Low-Rank Decomposition. In Image and Graphics; Lecture Notes in Computer Science; Springer International Publishing: Berlin/Heidelberg, Germany, 2017; pp. 443–453. [Google Scholar]
- Zhang, B.; Tang, C. A Method for Defect Detection of Yarn-Dyed Fabric Based on Frequency Domain Filtering and Similarity Measurement. Autex Res. J. 2019, 19, 257–262. [Google Scholar] [CrossRef]
- Xu, S.; Cheng, S.; Jin, S. Industrial Fabric Defect-Generative Adversarial Network (IFD-GAN): High-fidelity fabric cross-scale defect samples synthesis method for enhancing automated recognition performance. Eng. Appl. Artif. Intell. 2025, 161, 112296. [Google Scholar] [CrossRef]
- Wang, Y.; Xiang, Z.; Wu, W. MCF-Net: A multi-scale context fusion network for real-time fabric defect detection. Digit. Signal Process. 2025, 167, 105425. [Google Scholar] [CrossRef]
- Xiang, Z.; Jia, J.; Zhou, K. Block-wise feature fusion for high-precision industrial surface defect detection. Vis. Comput. 2025, 41, 9277–9295. [Google Scholar] [CrossRef]
- Zhou, K.; Jia, J.; Wu, W. Space-depth mutual compensation for fine-grained fabric defect detection model. Appl. Soft Comput. 2025, 172, 112869. [Google Scholar] [CrossRef]
- Xiang, Z.; Shen, Y.; Ma, M. HookNet: Efficient Multiscale Context Aggregation for High-accuracy Detection of Fabric Defects. IEEE Trans. Instrum. Meas. 2023, 72, 5016311. [Google Scholar] [CrossRef]
- Xu, S.; Cheng, S.; Jin, S.Y.; Hu, X.D.; Wu, W.T.; Xiang, Z. “ZD001”. Mendeley Data, Version 1; Zhejiang Sci-Tech University: Hangzhou, China, 2025. [Google Scholar] [CrossRef]













| Categories | BrokenEnd | MisDraw | Reediness | ThickPlace | ThinPlace | Total |
|---|---|---|---|---|---|---|
| Numbers | 1993 | 2040 | 1922 | 976 | 1864 | 8795 |
| Subspace Range (dmm2) | 2.78 × 10−2 | 5.56 × 10−2 | 8.33 × 10−2 | 1.11 × 10−1 | 1.39 × 10−1 | 1.67 × 10−1 |
|---|---|---|---|---|---|---|
| mAP | 26.95% | 35.47% | 50.36% | 61.85% | 70.74% | 60.61% |
| Residual Images | Variance | IQR | Extremum | CV | Peaks |
|---|---|---|---|---|---|
![]() | 0.02 | 0.97 | 0.21 | 167.04 | 6.00 |
![]() | 0.06 | 1.44 | 0.34 | 46.08 | 2.00 |
![]() | 0.04 | 1.32 | 0.25 | 25.16 | 4.00 |
![]() | 0.39 | 7.11 | 0.77 | 86.75 | 2.00 |
| Parameter | Description | Default Value | Range |
|---|---|---|---|
| S | Subspace Range | 4 | (0, 110] |
| steps | Subspace Steps | 1 | [0, S] |
| frac | Degree of Smoothing | 0.05 | (0, 1] |
| Axis1 | Warp Directions | 0 | \ |
| Axis2 | Weft Directions | 1 | \ |
| I | Intersection over Union | 0.05 | (0, 1] |
| K1 | Perception Rate | 0.1 | (0, 1] |
| K2 | Defines the Time Span Over | 0.1 | (0, 1] |
| K3 | Observing Loss Changes | 0.1 | (0, 1] |
| the Change Rate of the Score | 100 | (0, +∞] | |
| Center Point of the Fitted Curve | 0.0305 | [0.001, 0.06] | |
| Maximum Value of the Score function | 0.9 | [0, 1] | |
| Ox | Light Field Center Offset | \ | [−960, +960] |
| Oy | Light Field Center Offset | \ | [−540, +540] |
| V | Ignored Boundary Region | \ | [0, 110) |
| Outlier Scaling Factor | 4.0 | (0, 20] |
| MODELS | mAP | FPS |
|---|---|---|
| YOLO v5 | 43.71% | 1.6 |
| YOLO v8 | 27.53% | 1.8 |
| Rt-DETR | 26.61% | 1.5 |
| ours | 70.74% | 4.6 |
| Dataset Size | 1104 | 2199 | 3298 | 4355 | 5497 | 6398 | 7696 | 8795 |
|---|---|---|---|---|---|---|---|---|
| mAP | 70.74% | 66.93% | 67.80% | 69.08% | 66.77% | 70.19% | 69.15 | 70.27% |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Wu, W.; Zhang, Z.; Xiang, Z.; Qian, M. Texture-Adaptive Fabric Defect Detection via Dynamic Subspace Feature Extraction and Luminance Reconstruction. Algorithms 2025, 18, 638. https://doi.org/10.3390/a18100638
Wu W, Zhang Z, Xiang Z, Qian M. Texture-Adaptive Fabric Defect Detection via Dynamic Subspace Feature Extraction and Luminance Reconstruction. Algorithms. 2025; 18(10):638. https://doi.org/10.3390/a18100638
Chicago/Turabian StyleWu, Weitao, Zengwen Zhang, Zhong Xiang, and Miao Qian. 2025. "Texture-Adaptive Fabric Defect Detection via Dynamic Subspace Feature Extraction and Luminance Reconstruction" Algorithms 18, no. 10: 638. https://doi.org/10.3390/a18100638
APA StyleWu, W., Zhang, Z., Xiang, Z., & Qian, M. (2025). Texture-Adaptive Fabric Defect Detection via Dynamic Subspace Feature Extraction and Luminance Reconstruction. Algorithms, 18(10), 638. https://doi.org/10.3390/a18100638





