Abstract
Supervised classification methods have been widely utilized for the quality assurance of the advanced manufacturing process, such as additive manufacturing (AM) for anomaly (defects) detection. However, since abnormal states (with defects) occur much less frequently than normal ones (without defects) in a manufacturing process, the number of sensor data samples collected from a normal state is usually much more than that from an abnormal state. This issue causes imbalanced training data for classification analysis, thus deteriorating the performance of detecting abnormal states in the process. It is beneficial to generate effective artificial sample data for the abnormal states to make a more balanced training set. To achieve this goal, this paper proposes a novel data augmentation method based on a generative adversarial network (GAN) using additive manufacturing process image sensor data. The novelty of our approach is that a standard GAN and classifier are jointly optimized with techniques to stabilize the learning process of standard GAN. The diverse and high-quality generated samples provide balanced training data to the classifier. The iterative optimization between GAN and classifier provides the high-performance classifier. The effectiveness of the proposed method is validated by both open-source data and real-world case studies in polymer and metal AM processes.
Introduction
In Additive Manufacturing (AM), ensuring part quality is paramount. However, detecting defects like under-fill or porosity is challenging because they occur rarely compared to normal production states. This leads to a significant data imbalance problem. In a typical dataset, 99% of sensor data might represent "normal" states, while only 1% represents "defects."
Standard classifiers trained on such data often become biased toward the majority class, achieving high nominal accuracy by simply predicting "normal" every time, thereby failing to detect critical anomalies. While traditional data augmentation techniques like rotation or flipping can help, they often fail to capture the complex underlying distribution of actual defects. This paper presents a sophisticated approach to training models to find these "needles in a haystack" by generating realistic and useful synthetic defect data.
Methodology: The Three-Player GAN
The core innovation of this research is moving beyond the standard two-player GAN (Generator vs. Discriminator) by introducing a third player: the Classifier.
The Three-Player Game
- The Generator: Tasked with creating realistic images to fool the discriminator while simultaneously producing distinctive images that help the classifier distinguish between classes.
- The Discriminator: Evaluates whether an image is real or synthetic.
- The Classifier: Learns to correctly label images as "Normal" or "Abnormal."
Cooperative and Adversarial Learning
Unlike standard GANs where the generator only aims for realism, this model employs Cooperative Learning. The Generator is incentivized to produce "state-distinguishable" samples—synthetic defects that are not just visually realistic but are specifically designed to help the Classifier learn the boundary between good and bad parts.
To stabilize the training process, which is notoriously difficult for GANs, the authors implemented two key stability tricks: a Gradient Penalty to ensure smoother learning, and a Mislabeled Sample Task to prevent the discriminator from overpowering the generator too early.
Experimental Evaluation
The model was validated across four datasets, ranging from standard benchmarks (MNIST Fashion, CIFAR-10) to real-world industrial applications:
- Polymer AM (FFF): Surface images from a Fused Filament Fabrication process focusing on "under-fill" defects.
- Metal AM (EBM): 3D-scanned surface patterns from an Electron Beam Melting process, using different scan strategies as proxies for quality states.
Key Results
The proposed method consistently outperformed baseline models and popular augmentation techniques like SMOTE. In Polymer AM, the model improved F-scores, Precision, and Recall by 3% to 13%. In Metal AM, it saw improvements of 4% to 15% in F-score, even with highly overlapped data. The model maintained high performance even when the minority-to-majority sample ratio was as low as 0.10.
Conclusion
This research demonstrates that for effective anomaly detection, synthetic data must be "useful" as well as "realistic." By linking the Generator to the Classifier's performance, the model targets the "confusion zones" where the classifier struggles most. While the approach is computationally intensive and currently focused on image data, it represents a significant step forward in quality assurance for advanced manufacturing. Future work may extend this architecture to 1D time-series data from other sensor types like photodiodes or acoustic sensors.
Summary updated