A New Contrastive GAN With Data Augmentation for Surface Defect Recognition Under Limited Data
Abstract
Surface defect recognition (SDC) is essential in intelligent manufacturing. Deep learning (DL) is a research hotspot in SDC. Limited defective samples are available in most real-world cases, which poses challenges for DL methods. Given such circumstances, generating defective samples by generative adversarial networks (GANs) is applied. However, insufficient samples and high-frequency texture details in defects make GANs very hard to train, yield mode collapse, and poor image quality, which can further impact SDC. To solve these problems, this article proposes a new GAN called contrastive GAN, which can be trained to generate diverse defects with only extremely limited samples. Specifically, a shared data augmentation (SDA) module is proposed for avoiding overfitting. Then, a feature attention matching (FAM) module is proposed to align features for improving the quality of generated images. Finally, a contrastive loss based on hypersphere is employed to constrain GANs to generate images that differ from the traditional transform. Experiments show that the proposed GAN generates defective images with higher quality and lower variance between real defects compared to other GANs. Synthetic images contribute to pretrained DL networks with accuracies of up to 95.00%–99.56% for Northeastern University (NEU) datasets of different sizes and 91.84% for printed circuit board (PCB) cases, which proves the effectiveness of the proposed method.
BibTeX
@article{du2023new,
author = {Zongwei Du and Liang Gao and Xinyu Li},
title = {{A New Contrastive GAN With Data Augmentation for Surface Defect Recognition Under Limited Data}},
journal = {IEEE Trans. Instrumentation \& Measurement},
year = {2023},
doi = {10.1109/tim.2022.3232649},
}Ask Althea to put this paper to the test.
Loading related content...