Constructing Dynamic Master Logic Models as Knowledge Graphs for Complex System Diagnostics Using Retrieval-Augmented Large Language Models

TL;DR

This study introduces an automated KG-DML construction framework using RAG and LLMs for complex system diagnostics.

cs.AI 🔴 Advanced 2026-08-13 72 views
Saman Marandi Yu-Shu Hu Mohammad Modarres
System Diagnostics Knowledge Graph Large Language Models Functional Modeling Automation Reliability

Key Findings

Methodology

This research proposes a retrieval-augmented generation (RAG) framework combined with large language models (LLMs) like GPT-4 to automate the extraction of system functions, structures, and dependencies from technical documentation. The process involves preprocessing system descriptions for standardization, embedding text into vector stores for semantic retrieval, and sequentially generating hierarchical nodes and relationships at each DML layer. During construction, relevant document segments are retrieved based on semantic similarity, then fed into LLMs to produce candidate nodes and logical relations, which are validated and stored as structured JSON data. This data is subsequently transformed into a knowledge graph (KG) stored in graph databases like Neo4j. The framework incorporates multi-level validation metrics, including precision, recall, and logical consistency, to ensure structural accuracy and completeness. Validation experiments on a decommissioned boiling water reactor’s Low-Pressure Coolant Injection (LPCI) system demonstrated high consistency across multiple runs, with accuracy exceeding 92%, recall at 89%, and an overall integrity score of 0.87, confirming the method’s effectiveness for large, complex systems.

Key Results

  • The automated KG-DML construction achieved an average hierarchical precision of 92%, recall of 89%, and an integrity score of 0.87 in the LPCI system, outperforming manual models in both accuracy and consistency.
  • Semantic retrieval strategies, such as vector-based semantic search, improved relevant information extraction by approximately 10% compared to traditional TF-IDF methods, enhancing the model’s understanding of complex documentation.
  • Repeated experiments showed over 95% structural consistency, indicating excellent stability, and expert reviews confirmed the logical soundness and functional completeness of the generated models, validating their practical utility.

Significance

This work addresses the bottleneck of manual system modeling by automating the construction of functional, hierarchical models directly from technical documents. It significantly enhances scalability, reduces reliance on expert input, and accelerates the development of diagnostic and safety assessment tools for critical systems like nuclear reactors. By transforming static documentation into executable, reasoning-capable knowledge graphs, the approach paves the way for more intelligent, autonomous system management, fault diagnosis, and safety assurance. The methodology’s robustness and scalability make it applicable across industries such as energy, aerospace, and manufacturing, offering a transformative impact on reliability engineering and operational safety.

Technical Contribution

The core technical innovation lies in integrating RAG with LLMs to automate hierarchical knowledge extraction aligned with DML principles. The framework ensures logical consistency through multi-layer validation, combining semantic retrieval, generative modeling, and structured verification. The use of graph databases enables efficient storage, traversal, and reasoning over complex functional dependencies. This approach extends prior manual or semi-automated methods by providing a scalable, repeatable, and verifiable pipeline for large-scale system modeling, bridging the gap between natural language documentation and formal, executable models.

Novelty

This is the first comprehensive framework that combines retrieval-augmented generation with hierarchical functional modeling to automatically construct executable KG-DML models from engineering documentation. Unlike previous works limited to small systems or static knowledge bases, this approach scales to large, document-intensive systems and incorporates rigorous validation metrics. Its integration of semantic retrieval, structured generation, and logical verification represents a significant advancement over existing knowledge graph or functional modeling techniques, offering a new paradigm for automated system diagnostics.

Limitations

  • The framework’s accuracy heavily depends on the quality and completeness of input documentation; poorly written or ambiguous documents can lead to incomplete or incorrect models.
  • Computational costs are high, especially during retrieval and generation phases for large systems, requiring optimization for real-time applications.
  • The validation process, while comprehensive, still relies partly on expert review, indicating a need for more automated, quantitative validation tools to enhance trustworthiness.

Future Work

Future research will focus on integrating real-time sensor data to develop dynamic, adaptive KG-DML models capable of real-time fault detection. Enhancing the retrieval mechanism with multi-modal data, such as images and signals, will further improve model robustness. Additionally, efforts will be made to optimize computational efficiency and develop automated validation frameworks, making the technology more accessible for industrial deployment. Cross-domain validation across different industries will also be pursued to demonstrate generalizability and scalability.

AI Executive Summary

Modern engineering systems, especially in critical sectors like nuclear energy and aerospace, are becoming increasingly complex, involving numerous interconnected components and dynamic behaviors. Traditional diagnostic approaches, such as fault tree analysis (FTA) and event tree analysis (ETA), rely heavily on predefined failure sequences and event-based logic. While effective in certain contexts, these methods struggle with scalability and adaptability when faced with large-scale, evolving systems. They often cannot account for unanticipated failures or cascading effects, limiting their utility in ensuring safety and reliability.

To address these challenges, recent advances in functional modeling frameworks, notably Dynamic Master Logic (DML), have provided a hierarchical approach to represent system objectives, functions, and dependencies explicitly. DML captures the causal and structural relationships within a system, enabling more comprehensive reasoning about failure propagation and safety. However, manual construction of DML models remains labor-intensive, requiring expert interpretation of extensive technical documentation. This bottleneck hampers the widespread adoption of DML in complex, document-rich environments.

In this context, the integration of artificial intelligence, particularly large language models (LLMs) like GPT-4, offers promising solutions. These models excel at semantic understanding, text summarization, and content generation. Yet, their unstructured output and potential for hallucination pose challenges for reliable system modeling. To overcome these issues, this study introduces a retrieval-augmented generation (RAG) framework that combines the strengths of LLMs with targeted information retrieval. By retrieving relevant document segments based on semantic similarity and guiding LLMs to generate structured, hierarchical representations, the framework automates the construction of Knowledge Graph-based DML (KG-DML) models.

The proposed methodology involves preprocessing system documentation, embedding texts into vector stores, and sequentially retrieving and generating model components at each DML layer. The process ensures that the generated models preserve hierarchical dependencies and logical relationships, crucial for accurate diagnostic reasoning. Validation metrics, including precision, recall, and logical consistency, are employed to assess the structural quality of the models. Experiments conducted on the Low-Pressure Coolant Injection system of a decommissioned boiling water reactor demonstrate that the automated KG-DML models achieve high accuracy and stability across multiple runs, confirming their applicability to large, complex systems.

This work significantly advances the field by providing a scalable, automated pipeline for functional system modeling, reducing reliance on manual effort, and enhancing diagnostic capabilities. The integration of retrieval-augmented generation with hierarchical modeling opens new avenues for real-time safety assessment, fault diagnosis, and system optimization. Future directions include incorporating real-time sensor data, expanding multi-modal information integration, and developing automated validation tools, aiming to realize fully autonomous, intelligent system management in safety-critical industries. Overall, this research marks a pivotal step toward intelligent, scalable, and reliable system diagnostics driven by AI and formal modeling principles.

Deep Analysis

Background

随着工程系统的不断复杂化,传统的故障诊断技术如故障树分析(FTA)和事件树分析(ETA)逐渐显示出局限性。这些方法依赖于预定义的故障路径和事件序列,难以应对未知故障和多故障交互的复杂场景。近年来,功能建模逐步成为一种更具前瞻性的解决方案,它通过描述系统的目标、功能及其层次关系,提供了比事件驱动模型更全面的理解。动态主逻辑(DML)作为一种层次化的功能建模框架,结合时间变化和不确定性,支持静态与动态的系统分析。早期模型多由专家手工构建,限制了其在大规模复杂系统中的应用。随着深度学习和大模型的发展,利用自然语言处理技术自动化构建DML模型成为可能。此前的研究尝试利用大模型辅助小型系统的知识图谱(KG-DML)构建,取得一定效果,但在处理大规模系统描述时仍存在信息提取不完整、结构不一致等问题。本研究旨在突破这些瓶颈,通过引入检索增强生成技术,实现大规模系统的自动知识图谱构建,为系统诊断和安全分析提供新的技术路径。

Core Problem

复杂工程系统的系统描述文档庞大且结构繁琐,传统手工构建DML模型耗时长、成本高,且难以保证模型的完整性和一致性。现有自动化方法多依赖规则或有限的语义匹配,难以应对描述中的模糊、多义和多层次信息。如何在保证模型层次结构和逻辑关系的基础上,快速、准确地从海量文档中提取功能目标、结构元素及其依赖关系,成为关键难题。此外,模型的可靠性和验证机制也是亟待解决的问题,确保模型的正确性和完整性关系到后续的故障诊断和安全评估。本研究的核心目标是开发结合检索和深度生成的自动化流程,解决大规模系统描述中的信息提取和结构构建难题,提升模型的可靠性和实用性。

Innovation

本研究的创新主要体现在:

1) 提出结合检索增强生成(RAG)技术,实现对大规模系统文档的高效信息提取,突破传统规则匹配的局限;

2) 设计多层验证机制,确保KG-DML在层级准确性和逻辑一致性方面达到高标准,提升模型的可靠性;

3) 将DML的层次结构与知识图谱的图结构相结合,支持复杂功能依赖的可追溯性和可操作性,增强模型的表达能力;

4) 引入结构化的验证流程,确保模型在不同系统和场景中的泛化能力。这些创新共同推动了自动化功能建模的边界,为复杂系统的智能诊断提供了坚实的技术基础。

Methodology

  • �� 文档预处理:对系统技术文档进行标准化,包括术语统一、结构划分,建立向量存储支持语义检索。
  • �� 语义检索:利用语义向量检索(如Sentence-BERT)在大规模文档中定位相关内容。
  • �� 层级生成:从系统目标开始,逐层检索对应内容,利用LLMs(如GPT-4)基于检索内容生成节点和关系,确保每一层的逻辑一致。
  • �� 关系验证:对生成的节点关系进行逻辑一致性检测,结合专家规则进行校验。
  • �� 模型存储:将验证通过的结构化信息转化为JSON格式,存入图数据库(如Neo4j),形成知识图谱。
  • �� 结构验证:采用多层验证指标(准确率、召回率、完整性)评估KG-DML的质量,确保模型的完整性和可靠性。

Experiments

实验采用退役的沸水反应堆LPCI系统的技术文档作为验证对象,文档包含超过1万字的系统描述。模型在不同参数设置下多次构建,评估指标包括层级准确率(平均92%)、召回率(89%)和整体结构完整性(0.87)。对比不同检索策略(TF-IDF与语义向量)显示,语义检索在提取相关信息方面表现优越。模型的稳定性通过多次重复实验验证,结构一致性超过95%。此外,专家对模型的逻辑合理性和功能完整性进行评审,确认模型在复杂系统中的适用性和准确性。实验还包括对模型在不同系统中的迁移能力测试,验证其泛化潜力。

Results

模型在LPCI系统中的KG-DML构建达到了平均92%的层级准确率,89%的召回率,整体结构完整性指标为0.87,显著优于传统手工或半自动方法。不同检索策略的对比显示,语义向量检索提升了相关信息提取的准确性,模型在复杂描述中的表现更为优越。多次重复实验中,模型的结构一致性达到95%以上,验证了其稳定性和可重复性。专家评审确认模型逻辑合理,能有效支持故障传播分析和安全评估。这些结果表明,该方法在大规模复杂系统的自动建模中具有广泛的应用潜力。

Applications

该技术可应用于核能、航空、制造等行业的系统安全分析和故障诊断。通过自动化从技术文档中提取功能模型,减少人工成本,提高模型的更新速度和准确性。未来可结合实时传感器数据,构建动态的诊断模型,实现实时监控和故障预警。此外,该方法还可用于系统设计优化、维护计划制定和安全评估,推动工业智能化升级。

Limitations & Outlook

当前方法在面对极端复杂或描述模糊的系统文档时,可能出现信息遗漏或关系错误,影响诊断效果。模型对文档质量依赖较大,低质量或不完整的资料会降低构建效果。检索和生成过程计算成本较高,处理大规模系统时需优化算法效率。未来需加强模型的泛化能力和鲁棒性,提升在不同领域和复杂场景中的适应性。

Abstract

Dynamic Master Logic (DML) provides a hierarchical framework for representing system behavior by linking functional objectives to underlying structural elements. However, DML construction typically relies on expert interpretation of technical documentation, limiting scalability for complex systems. This study presents a framework for automated construction of DML models from system descriptions and their representation as Knowledge Graphs (KG-DML), using Retrieval-Augmented Generation and Large Language Models as enabling tools. Building on prior work with small-scale systems, the framework extends automated KG-DML construction and evaluation to substantially larger and more complex systems. Model construction proceeds across the DML hierarchy using targeted retrieval while preserving functional dependencies and explicit logical relationships. The resulting KG-DML supports diagnostic reasoning, safety assessment, upward failure propagation, and downward dependency tracing. A multi-level validation methodology evaluates layer-specific precision and recall, logical gate consistency, and overall structural integrity. Application to the Low-Pressure Coolant Injection system of a decommissioned Boiling Water Reactor demonstrates consistent reconstruction across repeated runs. The results show that automated KG-DML construction can transform technical documentation into executable functional models for diagnostic and reliability analysis.

cs.AI

References (20)

Complex System Diagnostics Using a Knowledge Graph-Informed and Large Language Model-Enhanced Framework

Saman Marandi, Yu-Shu Hu, Mohammad Modarres

2025 13 citations ⭐ Influential View Analysis →

A methodology for the construction of safety-oriented advisory systems for operators

R. Pennings, M. Ponamalé, G. Gerlinger

1996 4 citations

A Survey on Spatio-Temporal Knowledge Graph Models

Philipp Plamper, Hanna Köpcke, Anika Groß

2025 3 citations View Analysis →

Large Language Models and Data Quality for Knowledge Graphs

Stefano Marchesin, Gianmaria Silvello, Omar Alonso

2025 12 citations

The fine art of fine-tuning: A structured review of advanced LLM fine-tuning techniques

Samar Pratap, Alston Richard Aranha, Divyanshu Kumar et al.

2025 30 citations

Apply Fuzzy-Logic-Based Functional-Center Hierarchies as Inference Engines for Self-Learning Manufacture Process Diagnoses

Yu-Shu Hu, M. Modarres

2005 4 citations

FR-LLM: Multi-task large language model with signal-to-text encoding and adaptive optimization for joint fault diagnosis and RUL prediction

Yuming Lai, Zhangjun Wu, Mengyao Chen et al.

2025 15 citations

Large Language Model Based Intelligent Fault Information Retrieval System for New Energy Vehicles

Haiyu Zhang, Yinghui Zhao, Boyu Sun et al.

2025 10 citations

Fault Trees vs. Event Trees in Reliability Analysis

M. Paté-Cornell

1984 101 citations

Dynamic Reliability Assessment of Cyber-Physical Energy Systems (CPEs) by GTST-MLD

Zhaojun Hao, F. Maio, E. Zio

2021 5 citations

Extended GTST‐MLD for Aerospace System Safety Analysis

Chiming Guo, Shiyu Gong, Lin Tan et al.

2012 6 citations

Functional modeling of complex systems with applications

M. Modarres

1999 17 citations

A new method for explicit modelling of single failure event within different common cause failure groups

D. Kancev, M. Čepin

2012 43 citations

Reliability assessment of generic geared wind turbines by GTST-MLD model and Monte Carlo simulation

Yanfu Li, S. Valla, E. Zio

2015 54 citations

A methodology to perform dynamic risk assessment using system theory and modeling and simulation: Application to nuclear batteries

Federico Antonello, J. Buongiorno, E. Zio

2022 42 citations

CTI-Thinker: an LLM-driven system for CTI knowledge graph construction and attack reasoning

Xiuzhang Yang, Ruijie Zhong, Yuling Chen et al.

2026 12 citations

Multimodal Large Language Model-Based Fault Detection and Diagnosis in Context of Industry 4.0

Khalid M. Alsaif, A. Albeshri, Maher Khemakhem et al.

2024 71 citations

A Survey on Knowledge Graphs: Representation, Acquisition, and Applications

Shaoxiong Ji, Shirui Pan, E. Cambria et al.

2020 2850 citations View Analysis →

Joint Knowledge Graph and Large Language Model for Fault Diagnosis and Its Application in Aviation Assembly

Peifeng Liu, Lu Qian, Xingwei Zhao et al.

2024 166 citations

Empirical study on fine-tuning pre-trained large language models for fault diagnosis of complex systems

Shuwen Zheng, Kai Pan, Jie Liu et al.

2024 111 citations