Fabric Defect Detection Method Using SA-Pix2pix Network and Transfer Learning
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 disrupti...
Main Authors: | , , , |
---|---|
Format: | Article |
Language: | English |
Published: |
MDPI AG
2023-12-01
|
Series: | Applied Sciences |
Subjects: | |
Online Access: | https://www.mdpi.com/2076-3417/14/1/41 |
_version_ | 1797359178191208448 |
---|---|
author | Feng Hu Jie Gong Han Fu Wenliang Liu |
author_facet | Feng Hu Jie Gong Han Fu Wenliang Liu |
author_sort | Feng Hu |
collection | DOAJ |
description | 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. |
first_indexed | 2024-03-08T15:12:54Z |
format | Article |
id | doaj.art-f4e9c88cdc2e47da89b6bb8d541dd905 |
institution | Directory Open Access Journal |
issn | 2076-3417 |
language | English |
last_indexed | 2024-03-08T15:12:54Z |
publishDate | 2023-12-01 |
publisher | MDPI AG |
record_format | Article |
series | Applied Sciences |
spelling | doaj.art-f4e9c88cdc2e47da89b6bb8d541dd9052024-01-10T14:50:42ZengMDPI AGApplied Sciences2076-34172023-12-011414110.3390/app14010041Fabric Defect Detection Method Using SA-Pix2pix Network and Transfer LearningFeng Hu0Jie Gong1Han Fu2Wenliang Liu3School of Mechanical Engineering and Automation, Wuhan Textile University, Wuhan 430200, ChinaSchool of Mechanical Engineering and Automation, Wuhan Textile University, Wuhan 430200, ChinaSchool of Mechanical Engineering and Automation, Wuhan Textile University, Wuhan 430200, ChinaSchool of Mechanical Engineering and Automation, Wuhan Textile University, Wuhan 430200, ChinaThis 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.https://www.mdpi.com/2076-3417/14/1/41defect detectiongenerative adversarial networkdefect reconstructionloss functionsself-attention mechanismtransfer learning |
spellingShingle | Feng Hu Jie Gong Han Fu Wenliang Liu Fabric Defect Detection Method Using SA-Pix2pix Network and Transfer Learning Applied Sciences defect detection generative adversarial network defect reconstruction loss functions self-attention mechanism transfer learning |
title | Fabric Defect Detection Method Using SA-Pix2pix Network and Transfer Learning |
title_full | Fabric Defect Detection Method Using SA-Pix2pix Network and Transfer Learning |
title_fullStr | Fabric Defect Detection Method Using SA-Pix2pix Network and Transfer Learning |
title_full_unstemmed | Fabric Defect Detection Method Using SA-Pix2pix Network and Transfer Learning |
title_short | Fabric Defect Detection Method Using SA-Pix2pix Network and Transfer Learning |
title_sort | fabric defect detection method using sa pix2pix network and transfer learning |
topic | defect detection generative adversarial network defect reconstruction loss functions self-attention mechanism transfer learning |
url | https://www.mdpi.com/2076-3417/14/1/41 |
work_keys_str_mv | AT fenghu fabricdefectdetectionmethodusingsapix2pixnetworkandtransferlearning AT jiegong fabricdefectdetectionmethodusingsapix2pixnetworkandtransferlearning AT hanfu fabricdefectdetectionmethodusingsapix2pixnetworkandtransferlearning AT wenliangliu fabricdefectdetectionmethodusingsapix2pixnetworkandtransferlearning |