Explainable AI for Correct Root Cause Analysis of Product Quality in Injection Moulding

Muhammad Muaz, Sameed Sajid, Tobias Schulze, Chang Liu, Nils Klasen, Benny DrescherarXiv 2025 · DOI · arXiv

Introduction

In high-precision manufacturing, particularly injection moulding, maintaining product quality is a complex challenge. While machine learning (ML) models like Random Forests and Neural Networks have become highly effective at predicting defects, their "black-box" nature often leaves engineers without a clear understanding of why a part failed. This lack of interpretability can lead to incorrect adjustments on the factory floor, potentially exacerbating quality issues.

Explainable AI (XAI) aims to bridge this gap. However, as this research demonstrates, not all XAI methods are created equal. Popular techniques like Individual Conditional Expectation (ICE) can fail in non-linear environments where machine settings interact significantly. This paper evaluates XAI methods to ensure that the identified "root cause" of a defect is the actual parameter requiring correction.

Classifications of Explainable AI (XAI) techniques based on complexity, scope, and dependency.

Experimental Methodology

The researchers conducted a systematic study using a Sumitomo (SHI) Demag IntElect 100-250 injection moulding machine. The goal was to predict product weight and planarity based on six operator-controllable settings.

Data Collection and Modeling

A Central Composite Design (CCD) was employed to vary machine settings across a defined range, ensuring a comprehensive dataset for training and validation. The study utilized 1,540 product cycles across 77 different combinations of these settings.

Ranges of the six operator-controllable machine settings used in the experimental design.

Two distinct model architectures were trained: Random Forest (RF) and a Multilayer Perceptron (MLP). By using both, the researchers could verify that their findings regarding XAI were model-agnostic rather than a quirk of a specific algorithm. Both models achieved high accuracy, with a Mean Absolute Percentage Error (MAPE) below 0.05%.

XAI Comparison: ICE vs. SHAP

The core of the research involved a head-to-head comparison between two XAI techniques:

  1. Individual Conditional Expectation (ICE): A local method that varies one feature while keeping others constant.
  2. SHapley Additive exPlanations (SHAP): A method based on cooperative game theory that distributes "credit" for a prediction across all features, explicitly accounting for feature interactions.

Key Insights: The Interaction Trap

The most significant finding is the "Dominant Feature" trap. In injection moulding, parameters like melt temperature and packing pressure are highly interdependent. Using Friedman’s H-statistic, the authors mathematically confirmed these interactions.

When interactions are present, ICE plots often suffer from a bias toward the most globally influential parameter. In this dataset, ICE consistently identified "packing time" as the root cause of weight deviations, even when the researchers had intentionally altered a different variable, such as melt temperature. This occurs because ICE fails to account for how the change in melt temperature affects the influence of packing time.

In contrast, SHAP correctly identified the specific parameter that was modified in controlled experiments. If only the melt temperature was changed, SHAP accurately pointed to it as the primary cause of the quality shift, whereas ICE incorrectly blamed packing time.

Results and Real-World Application

The study's results highlight that SHAP is a more reliable "truth-teller" for root cause analysis in complex manufacturing processes. While SHAP is mathematically more intensive than ICE, the authors found that for models with a small number of features (like the six used here), explanations can be generated in milliseconds. This makes SHAP viable for real-time deployment, providing operators with accurate, actionable insights on the factory floor.

Conclusion and Future Directions

While this research proves the mathematical superiority of SHAP for identifying root causes in injection moulding, several areas remain for future exploration. The current study focused on six primary settings; real-world environments involve dozens of additional variables, such as environmental humidity and material variations. Furthermore, while the mathematical correctness is established, future work should investigate how human operators interact with these AI-driven recommendations to ensure they lead to better decision-making in practice.

Summary updated

Abstract

If a product deviates from its desired properties in the injection moulding process, its root cause analysis can be aided by models that relate the input machine settings with the output quality characteristics. The machine learning models tested in the quality prediction are mostly black boxes; therefore, no direct explanation of their prognosis is given, which restricts their applicability in the quality control. The previously attempted explainability methods are either restricted to tree-based algorithms only or do not emphasize on the fact that some explainability methods can lead to wrong root cause identification of a product's deviation from its desired properties. This study first shows that the interactions among the multiple input machine settings do exist in real experimental data collected as per a central composite design. Then, the model-agnostic explainable AI methods are compared for the first time to show that different explainability methods indeed lead to different feature impact analysis in injection moulding. Moreover, it is shown that the better feature attribution translates to the correct cause identification and actionable insights for the injection moulding process. Being model agnostic, explanations on both random forest and multilayer perceptron are performed for the cause analysis, as both models have the mean absolute percentage error of less than 0.05% on the experimental dataset.
BibTeX
@misc{muaz2025explainable,
  author = {Muhammad Muaz and Sameed Sajid and Tobias Schulze and Chang Liu and Nils Klasen and Benny Drescher},
  title = {{Explainable AI for Correct Root Cause Analysis of Product Quality in Injection Moulding}},
  year = {2025},
  eprint = {2505.01445},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.01445},
}
Figure