Skip to main content
QUICK REVIEW

[Paper Review] Automatic Visual Inspection of Rare Defects: A Framework based on GP-WGAN and Enhanced Faster R-CNN

Masoud Jalayer, Reza Jalayer|arXiv (Cornell University)|Jan 1, 2021
Industrial Vision Systems and Defect DetectionEngineering34 references13 citations
TL;DR

This paper proposes a two-stage framework for automatic visual inspection of rare defects using a generative adversarial network (GP-WGAN) for data augmentation and an enhanced Faster R-CNN with FPN and ResNet backbones for object detection. The method synthesizes realistic defect images and annotations from limited real samples, significantly improving detection performance on imbalanced datasets, with a mean average precision (mAP) of 80.9% on the NEU steel defect dataset and 76.9% on the magnetic tile dataset under extreme class imbalance.

ABSTRACT

A current trend in industries such as semiconductors and foundry is to shift their visual inspection processes to Automatic Visual Inspection (AVI) systems, to reduce their costs, mistakes, and dependency on human experts. This paper proposes a two-staged fault diagnosis framework for AVI systems. In the first stage, a generation model is designed to synthesize new samples based on real samples. The proposed augmentation algorithm extracts objects from the real samples and blends them randomly, to generate new samples and enhance the performance of the image processor. In the second stage, an improved deep learning architecture based on Faster R-CNN, Feature Pyramid Network (FPN), and a Residual Network is proposed to perform object detection on the enhanced dataset. The performance of the algorithm is validated and evaluated on two multi-class datasets. The experimental results performed over a range of imbalance severities demonstrate the superiority of the proposed framework compared to other solutions.

Motivation & Objective

  • Address the challenge of insufficient and imbalanced annotated defect samples in industrial automatic visual inspection (AVI) systems.
  • Reduce dependency on human experts and costly data collection by automating data generation and annotation.
  • Improve the performance of deep learning-based object detectors on rare defect types with limited real samples.
  • Develop a scalable, end-to-end framework applicable to diverse industrial inspection tasks with minimal real data.
  • Validate the framework on real-world multi-class defect datasets under varying degrees of class imbalance.

Proposed method

  • Employ a Generative Adversarial Network (GP-WGAN) to generate high-fidelity synthetic defect images from a small set of real defect samples.
  • Design a heuristic data augmentation strategy that extracts real defects and blends them onto defect-free images with random positioning and scaling.
  • Automatically generate corresponding bounding box annotations for each synthetic defect during the blending process.
  • Integrate the augmented dataset into a Faster R-CNN detector enhanced with Feature Pyramid Network (FPN) and ResNet-50/ResNet-101 backbones for multi-scale feature learning.
  • Train the object detector on the augmented dataset to improve detection performance on minority defect classes.
  • Conduct sensitivity analysis on the number of real samples (𝑚𝑟) and generated samples (𝑚𝑔) to evaluate robustness under data scarcity.

Experimental results

Research questions

  • RQ1Can a GP-WGAN-based data augmentation strategy effectively improve object detection performance on rare defect classes with limited real samples?
  • RQ2How does the proposed augmentation method compare to traditional data augmentation in terms of mAP and AP for minority defect classes?
  • RQ3What is the optimal balance between real and generated samples (𝑚𝑟 vs. 𝑚𝑔) for maximizing detection performance on imbalanced datasets?
  • RQ4Does the integration of FPN and ResNet backbones with the enhanced Faster R-CNN improve detection accuracy and robustness on small, rare defect instances?
  • RQ5To what extent does the proposed framework generalize across different industrial defect datasets with varying defect types and imbalance levels?

Key findings

  • The proposed GP-WGAN-based data augmentation improved the mAP of Faster R-CNN with FPN-ResNet101 to 80.9% on the NEU steel defect dataset, significantly outperforming baseline models.
  • On the NEU dataset, the method increased the average precision (AP) for the minority class 'inclusion' from 45.7% (baseline) to 72.5% with the proposed augmentation.
  • On the magnetic tile dataset, the mAP for the minority class 'fray' rose from 41.2% (baseline) to 69.1% when using the proposed augmentation with Faster R-CNN-ResNet101.
  • The sensitivity analysis showed that with 250 real and 1600 generated samples for the 'inclusion' class, the AP reached 90.2%, demonstrating strong performance on rare defects.
  • The framework achieved consistent performance gains across multiple detectors (DSSD-513, YOLOv3, Faster R-CNN) on both datasets, confirming the generalizability of the augmentation technique.
  • The ablation study confirmed that the proposed augmentation method significantly outperformed classic data augmentation, especially for minority classes, across all tested architectures.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.