Next Article in Journal
PGDS-YOLOv8s: An Improved YOLOv8s Model for Object Detection in Fisheye Images
Previous Article in Journal
Research on Ensemble Learning-Based Feature Selection Method for Time-Series Prediction
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Fabric Defect Detection Method Using SA-Pix2pix Network and Transfer Learning

1
School of Mechanical Engineering and Automation, Wuhan Textile University, Wuhan 430200, China
2
Hubei Digital Textile Equipment Key Laboratory, Wuhan 430200, China
*
Author to whom correspondence should be addressed.
Appl. Sci. 2024, 14(1), 41; https://doi.org/10.3390/app14010041
Submission received: 24 October 2023 / Revised: 9 December 2023 / Accepted: 13 December 2023 / Published: 20 December 2023

Abstract

This paper proposes a fabric defect detection algorithm based on the SA-Pix2pix network and transfer learning to address the issue of insufficient accuracy in detecting complex pattern fabric defects in scenarios with limited sample data. Its primary contribution lies in treating defects as disruptions to the fabric’s texture. It leverages a generative adversarial network to reconstruct defective images, restoring them to images of normal fabric texture. Subsequently, the reconstituted images are subjected to dissimilarity calculations against defective images, leading to image segmentation for the purpose of defect detection. This approach addresses the issues of poor defect image reconstruction accuracy due to the limited ability of remote dependency modeling within the generator’s convolutional neural network. It also tackles deficiencies in the generative adversarial network’s loss function in handling image details. To enhance the structure and loss function of the generative adversarial network, it introduces self-attention mechanisms, L1 loss, and an improved structural loss, thus mitigating the problems of low defect image reconstruction accuracy and insufficient image detail handling by the network. To counteract the issue of declining model training accuracy in the face of sparse complex fabric defect samples, a channel-wise domain transfer learning approach is introduced. This approach constrains the training of the target network through feature distribution, thereby overcoming the problem of target network overfitting caused by limited sample data. The study employs three methods to experimentally compare and investigate five distinct complex pattern fabric defects. The results demonstrate that, when compared to two other defect detection methods, the approach advocated in this paper exhibits superior detection accuracy in scenarios with limited sample data.
Keywords: defect detection; generative adversarial network; defect reconstruction; loss functions; self-attention mechanism; transfer learning defect detection; generative adversarial network; defect reconstruction; loss functions; self-attention mechanism; transfer learning

Share and Cite

MDPI and ACS Style

Hu, F.; Gong, J.; Fu, H.; Liu, W. Fabric Defect Detection Method Using SA-Pix2pix Network and Transfer Learning. Appl. Sci. 2024, 14, 41. https://doi.org/10.3390/app14010041

AMA Style

Hu F, Gong J, Fu H, Liu W. Fabric Defect Detection Method Using SA-Pix2pix Network and Transfer Learning. Applied Sciences. 2024; 14(1):41. https://doi.org/10.3390/app14010041

Chicago/Turabian Style

Hu, Feng, Jie Gong, Han Fu, and Wenliang Liu. 2024. "Fabric Defect Detection Method Using SA-Pix2pix Network and Transfer Learning" Applied Sciences 14, no. 1: 41. https://doi.org/10.3390/app14010041

APA Style

Hu, F., Gong, J., Fu, H., & Liu, W. (2024). Fabric Defect Detection Method Using SA-Pix2pix Network and Transfer Learning. Applied Sciences, 14(1), 41. https://doi.org/10.3390/app14010041

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop