Skip to main content
QUICK REVIEW

[Paper Review] A Novel Strategy for Improving Robustness in Computer Vision Manufacturing Defect Detection

Ahmad Mohamad Mezher, Andrew E. Marble|arXiv (Cornell University)|May 16, 2023
Industrial Vision Systems and Defect DetectionEngineering3 citations
TL;DR

This paper proposes a novel data augmentation strategy that improves robustness in computer vision-based manufacturing defect detection by training models on diverse backgrounds featuring the same defect type, forcing them to learn invariant features. The approach significantly enhances generalization to new defect contexts, with object detection models outperforming binary classifiers (AUC: 0.995 vs. 0.923) and clustering analysis identifying non-essential data clusters to streamline data collection.

ABSTRACT

Visual quality inspection in high performance manufacturing can benefit from automation, due to cost savings and improved rigor. Deep learning techniques are the current state of the art for generic computer vision tasks like classification and object detection. Manufacturing data can pose a challenge for deep learning because data is highly repetitive and there are few images of defects or deviations to learn from. Deep learning models trained with such data can be fragile and sensitive to context, and can under-detect new defects not found in the training data. In this work, we explore training defect detection models to learn specific defects out of context, so that they are more likely to be detected in new situations. We demonstrate how models trained on diverse images containing a common defect type can pick defects out in new circumstances. Such generic models could be more robust to new defects not found data collected for training, and can reduce data collection impediments to implementing visual inspection on production lines. Additionally, we demonstrate that object detection models trained to predict a label and bounding box outperform classifiers that predict a label only on held out test data typical of manufacturing inspection tasks. Finally, we studied the factors that affect generalization in order to train models that work under a wider range of conditions.

Motivation & Objective

  • To address the brittleness of deep learning models in manufacturing defect detection due to low defect frequency and repetitive data.
  • To investigate whether training on diverse backgrounds improves model generalization to unseen defect contexts.
  • To compare the performance of binary classifiers versus object detection models in out-of-distribution defect detection scenarios.
  • To identify critical data clusters that influence model performance, enabling efficient data collection and labeling.

Proposed method

  • The authors created a diverse training dataset by collecting images of a single defect type (missing material) on various flat metal parts with varying shapes, sizes, and compositions.
  • They applied clustering (k-means) to group images based on visual similarity, identifying three distinct clusters: small items with negative space, larger perforated items, and large circular objects.
  • Three separate training sets were constructed by excluding each cluster in turn, enabling controlled evaluation of data importance on model performance.
  • Object detection and binary classification models were trained on each set and evaluated using AUC on held-out test data.
  • Performance was measured across multiple experiments to assess generalization under data exclusion and background variation.
  • A clustering-based analysis was used to determine which data subsets most significantly impact model robustness and generalization.
Figure 1: Two ROC curves for two different models.
Figure 1: Two ROC curves for two different models.

Experimental results

Research questions

  • RQ1Does training defect detection models on diverse backgrounds improve their ability to detect the same defect in new, unseen contexts?
  • RQ2How does object detection compare to binary classification in terms of generalization performance on out-of-distribution defect images?
  • RQ3Which data clusters contribute most to model performance, and can non-essential clusters be excluded to reduce data collection costs?
  • RQ4Can models trained on diverse data maintain high performance when tested on uniform, in-distribution data?
  • RQ5What factors influence model generalization, and how can clustering help identify them?

Key findings

  • Object detection models trained on diverse data achieved an AUC of 0.995, significantly outperforming binary classifiers (AUC: 0.923) when generalizing to new backgrounds.
  • Excluding 80% of the training data (cluster 1) reduced AUC from 0.995 to 0.923, but performance remained stable under data sparsity, indicating robustness.
  • Excluding cluster 2 (larger perforated items) had no impact on performance, suggesting this cluster is non-essential for generalization.
  • Excluding cluster 3 (large circular objects) reduced AUC from 0.995 to 0.985, indicating this cluster contributes moderately to model performance.
  • The clustering analysis successfully identified data subsets with low impact on performance, enabling informed decisions to reduce data collection and labeling effort.
  • Models trained on diverse data generalized effectively to new contexts, demonstrating that learning invariant features is achievable through background variation.
Figure 2: The structure of RetinaNet.(a) Backbone network; (b) decoder; (c) subnet.
Figure 2: The structure of RetinaNet.(a) Backbone network; (b) decoder; (c) subnet.

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.