A Continual Learning Framework for Adaptive Defect Classification and Inspection

Wenbo Sun, Raed Al Kontar, Judy Jin, Tzyy-Shuh ChangJournal of Quality Technology 2022 · DOI

Abstract

Machine-vision-based defect classification techniques have been widely adopted for automatic quality inspection in manufacturing processes. This article describes a general framework for classifying defects from high volume data batches with efficient inspection of unlabeled samples. The concept is to construct a detector to identify new defect types, send them to the inspection station for labeling, and dynamically update the classifier in an efficient manner that reduces both storage and computational needs imposed by data samples of previously observed batches. Both a simulation study on image classification and a case study on surface defect detection via 3D point clouds are performed to demonstrate the effectiveness of the proposed method.

Introduction

In automated manufacturing, static AI models often fail when production conditions shift or new defect types emerge. Traditionally, updating these models required manual labeling of massive datasets and full retraining, which is prohibitively slow and expensive. This research addresses two primary challenges: the Open-World Problem, where models misclassify novel defects as known ones, and Catastrophic Forgetting, where updating a model on new data causes it to lose performance on previously learned tasks.

The Proposed Framework

The researchers propose a dual-module system designed to handle high-volume data streams, such as 3D point clouds from wood log processing. The system consists of a new-defect detector ($g$) and a defect classifier ($f$).

Overview of the adaptive defect classification framework and examples of 3D point cloud defects.

The workflow begins with the detector identifying potential new defects using Out-of-Distribution (OOD) learning techniques like Mahalanobis distance. Samples flagged as "unknown" are sent to a human inspection station for labeling. This "human-in-the-loop" approach ensures that only the most informative samples are manually reviewed, significantly reducing labor costs.

Continual Learning and Model Updates

To maintain performance over time without storing all historical data, the framework employs a continual learning strategy. When new labeled data arrives, the model parameters are updated using a regularization technique inspired by Elastic Weight Consolidation (EWC).

Detailed workflow of the continual learning process across sequential data batches.

As shown in the batch processing workflow, the system calculates a Fisher Information Matrix to identify parameters critical for identifying old defects. During the update phase, the model is penalized for changing these specific weights, effectively preserving "old" knowledge while integrating "new" defect classes. A "look-ahead" training strategy further primes the detector by using known defects as proxies for future unknown types.

Experimental Validation

The framework was evaluated using two datasets:

  1. MNIST Simulation: The model was sequentially exposed to digit pairs (0-1, then 2-3, etc.). It maintained over 97% accuracy across all classes, demonstrating successful mitigation of catastrophic forgetting.
  2. 3D Wood Log Case Study: In a real-world scenario involving 3D scans, the system achieved 93.25% overall classification accuracy. Notably, the binary "Normal vs. Defective" detection reached 99.99% accuracy. The system effectively flagged novel defects like "long cracks" for labeling as they appeared in the stream.

Conclusion

This framework provides an efficient, adaptive solution for industrial quality inspection. By combining OOD detection with continual learning, it minimizes the need for massive data storage and manual labeling. Future work will focus on handling temporal correlations in manufacturing data and developing automated methods for generating synthetic OOD samples to prime the detector in environments with limited initial defect variety.

Summary updated

Abstract

Machine-vision-based defect classification techniques have been widely adopted for automatic quality inspection in manufacturing processes. This article describes a general framework for classifying defects from high volume data batches with efficient inspection of unlabelled samples. The concept is to construct a detector to identify new defect types, send them to the inspection station for labelling, and dynamically update the classifier in an efficient manner that reduces both storage and computational needs imposed by data samples of previously observed batches. Both a simulation study on image classification and a case study on surface defect detection via 3D point clouds are performed to demonstrate the effectiveness of the proposed method.
BibTeX
@article{sun2022continual,
  author = {Wenbo Sun and Raed Al Kontar and Judy Jin and Tzyy-Shuh Chang},
  title = {{A Continual Learning Framework for Adaptive Defect Classification and Inspection}},
  journal = {Journal of Quality Technology},
  year = {2022},
  doi = {10.1080/00224065.2023.2224974},
}
Figure