Reinforcement Learning-based Defect Mitigation for Quality Assurance of Additive Manufacturing

Jihoon Chung, Bo Shen, Andrew Chung Chee Law, Zhenyu James KongarXiv 2022

Abstract

Additive Manufacturing (AM) faces significant quality assurance challenges due to time-varying processing conditions. Traditional offline optimization tools often fail to address new defects that emerge during printing. This paper introduces Continual G-learning, an online reinforcement learning (RL) framework designed to mitigate defects in real-time. By integrating offline knowledge from literature with online knowledge gained during the printing process, the method significantly reduces the number of samples required for training. Experimental results on a fused filament fabrication (FFF) platform demonstrate that Continual G-learning outperforms standard RL approaches in both speed and effectiveness of defect mitigation.

Introduction: The Challenge of Real-Time Quality Assurance

Additive Manufacturing (AM) is a transformative technology for producing complex, customized 3D geometries. However, its industrial adoption is hindered by quality consistency issues. Defects such as under-fill, voids, or surface roughness can occur due to unpredictable factors like machine vibrations or environmental changes mid-print.

Figure 1: (a) Geometry of the printed part. (b) Normal surface texture. (c) Surface with defects.

Traditional "Design of Experiments" (DOE) methods are often insufficient for small-batch, customized production where every part may be unique. Standard Reinforcement Learning (RL) offers a potential solution by learning optimal control policies through trial and error, but typically requires thousands of iterations—unfeasible for saving a single expensive print. The challenge lies in making an AI learn to fix a print quickly enough to be practical.

Methodology: Continual G-Learning

To address the sample efficiency problem, the researchers developed Continual G-learning. This framework treats the AM process as a Markov Decision Process (MDP) where an agent adjusts process parameters (e.g., flow rate, speed, cooling) based on real-time feedback.

Figure 2: The proposed three-step framework for real-time defect detection and mitigation using Continual G-Learning.

The core innovation of this approach lies in its use of multiple knowledge sources to guide learning:

  1. G-Learning Foundation: Unlike standard Q-learning, G-learning incorporates a "prior policy" to guide the agent, using Kullback-Leibler (KL) divergence to penalize actions that stray too far from established best practices without good reason.
  2. Knowledge Integration: Continual G-learning extends this by combining offline knowledge (general principles from literature) with online knowledge (lessons learned from previous layers or sections of the current print).
  3. Real-Time Feedback Loop: A digital microscope captures surface images, which are classified as "Normal" or "Defect" using a one-class Support Vector Machine (SVM). This classification serves as the reward signal for the RL agent.

Experimental Results

The method was validated on a Hyrel 30M 3D printer using ABS material. The system was tasked with printing a part consisting of two connected geometries: a large base and a smaller top section.

Key findings include:

  • Superior Sample Efficiency: Continual G-learning reached the optimal mitigation strategy in just 17 actions. In comparison, standard Q-learning required 33 actions, and basic G-learning (using only offline knowledge) required 26.
  • Adaptive Control: The system successfully recognized that optimal parameters for the large base were not suitable for the smaller top section due to heat accumulation. It automatically adjusted cooling parameters to maintain surface quality.
  • Robustness: Mathematical proofs and simulations confirmed that the algorithm converges to the true optimal strategy even if the prior knowledge provided is noisy or partially incorrect.

Conclusion and Future Directions

Continual G-learning provides a robust pathway for real-time quality assurance in AM. By "stacking" knowledge from different sources, it achieves the sample efficiency necessary for high-value, low-volume manufacturing. Future work will explore the "negative transfer" risk—where incorrect knowledge might hinder learning—and extend the framework to more complex multi-material AM processes.

Summary updated

BibTeX
@misc{chung2022reinforcement,
  author = {Jihoon Chung and Bo Shen and Andrew Chung Chee Law and Zhenyu James Kong},
  title = {{Reinforcement Learning-based Defect Mitigation for Quality Assurance of Additive Manufacturing}},
  year = {2022},
  eprint = {2210.17272},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.17272},
}
Figure