[Paper Review] Synthetic Data Augmentation Using GAN For Improved Automated Visual Inspection
This paper proposes using Generative Adversarial Networks (GANs) for synthetic data augmentation to improve supervised visual inspection models in manufacturing, achieving AUC-ROC scores above 0.9898 even with only 25% defective images. The approach significantly reduces labeling effort by generating realistic defect images, outperforming both traditional oversampling and unsupervised methods.
Quality control is a crucial activity performed by manufacturing companies to ensure their products conform to the requirements and specifications. The introduction of artificial intelligence models enables to automate the visual quality inspection, speeding up the inspection process and ensuring all products are evaluated under the same criteria. In this research, we compare supervised and unsupervised defect detection techniques and explore data augmentation techniques to mitigate the data imbalance in the context of automated visual inspection. Furthermore, we use Generative Adversarial Networks for data augmentation to enhance the classifiers' discriminative performance. Our results show that state-of-the-art unsupervised defect detection does not match the performance of supervised models but can be used to reduce the labeling workload by more than 50%. Furthermore, the best classification performance was achieved considering GAN-based data generation with AUC ROC scores equal to or higher than 0,9898, even when increasing the dataset imbalance by leaving only 25\% of the images denoting defective products. We performed the research with real-world data provided by Philips Consumer Lifestyle BV.
Motivation & Objective
- To address class imbalance in automated visual inspection caused by increasing product quality and declining defective part frequency.
- To compare supervised and unsupervised defect detection models in real-world manufacturing scenarios.
- To evaluate the effectiveness of GAN-based data augmentation in improving classifier performance under extreme class imbalance.
- To reduce manual labeling effort by leveraging unsupervised models to pre-filter and label non-defective images.
Proposed method
- Used a real-world dataset of shaver images from Philips Consumer Lifestyle BV, categorized into good, double print, and interrupted print defects.
- Trained a supervised multi-layer perceptron (MLP) classifier with a pre-trained ResNet18 as a feature extractor.
- Applied Lightweight GAN to generate synthetic defective images, augmenting the training set to balance class distribution.
- Compared GAN-based augmentation with traditional oversampling techniques (SMOTE, ADASYN, RANDOM) and unsupervised DRAEM for defect detection.
- Evaluated performance using AUC-ROC in both binary and multiclass settings across varying levels of class imbalance (25%, 50%, 75% defective images preserved).
- Used weighted and unweighted loss functions in a custom CNN model to assess the impact of class imbalance on training dynamics.
Experimental results
Research questions
- RQ1Can GAN-based data augmentation significantly improve the performance of supervised visual inspection models under extreme class imbalance?
- RQ2How does the performance of state-of-the-art unsupervised defect detection (DRAEM) compare to supervised models in a real industrial setting?
- RQ3To what extent can unsupervised models reduce manual labeling workload by automatically identifying and labeling non-defective images?
- RQ4Does GAN-based data augmentation outperform traditional oversampling techniques like SMOTE and ADASYN in terms of AUC-ROC and robustness to imbalance?
- RQ5How do different loss functions (weighted vs. unweighted) affect the performance of deep learning models trained on imbalanced visual inspection datasets?
Key findings
- The best-performing model achieved an AUC-ROC score of 0.9966 using GAN-based data augmentation, with scores consistently above 0.9898 even when only 25% of the images were defective.
- Supervised models outperformed the SOTA unsupervised DRAEM model by at least 0.0892 in AUC-ROC for binary classification.
- GAN-based augmentation improved model performance by 0.0063–0.0074 AUC-ROC points compared to non-augmented training, outperforming all traditional oversampling methods.
- Unsupervised DRAEM was effective in identifying non-defective images, enabling automatic labeling of such images and reducing manual labeling workload by over 50%.
- The baseline MLP model with a pre-trained ResNet18 feature extractor and GAN augmentation achieved the highest performance, while loss weighting in a custom CNN model degraded performance under strong class imbalance.
- Traditional oversampling techniques (SMOTE, ADASYN, RANDOM) improved performance in most cases but failed to surpass GAN-based augmentation, and showed inconsistent results with the GBT model.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.