Using Large Language Models and Knowledge Graphs to Improve the Interpretability of Machine Learning Models in Manufacturing
2026-04-17 • Artificial Intelligence
Artificial Intelligence
AI summaryⓘ
The authors developed a way to make machine learning results easier to understand by linking them with organized background knowledge using a Knowledge Graph. They use a large language model to turn this linked information into simple explanations for users. They tested their method in a manufacturing setting with common and custom questions, showing that their approach helps explain results clearly and usefully. This work combines a new theoretical method with practical proof that it works in real-world situations.
Explainable Artificial IntelligenceMachine LearningKnowledge GraphLarge Language ModelInterpretabilityManufacturingXAI Question BankModel ExplanationDecision Support
Authors
Thomas Bayer, Alexander Lohr, Sarah Weiß, Bernd Michelberger, Wolfram Höpken
Abstract
Explaining Machine Learning (ML) results in a transparent and user-friendly manner remains a challenging task of Explainable Artificial Intelligence (XAI). In this paper, we present a method to enhance the interpretability of ML models by using a Knowledge Graph (KG). We store domain-specific data along with ML results and their corresponding explanations, establishing a structured connection between domain knowledge and ML insights. To make these insights accessible to users, we designed a selective retrieval method in which relevant triplets are extracted from the KG and processed by a Large Language Model (LLM) to generate user-friendly explanations of ML results. We evaluated our method in a manufacturing environment using the XAI Question Bank. Beyond standard questions, we introduce more complex, tailored questions that highlight the strengths of our approach. We evaluated 33 questions, analyzing responses using quantitative metrics such as accuracy and consistency, as well as qualitative ones such as clarity and usefulness. Our contribution is both theoretical and practical: from a theoretical perspective, we present a novel approach for effectively enabling LLMs to dynamically access a KG in order to improve the explainability of ML results. From a practical perspective, we provide empirical evidence showing that such explanations can be successfully applied in real-world manufacturing environments, supporting better decision-making in manufacturing processes.