# Automating Cause-Effect Specification with Knowledge Graphs and Large Language Models

arXiv: https://arxiv.org/abs/2606.31614 · HTML: https://mlsanity.com/paper/2606.31614/

## Key facts

- No citing papers in the map yet (data through 14 Oct 2026).
- Builds on 9 of its 19 references that are in the map.
- First posted on arXiv 30 Jun 2026.

## Builds on (most cited first, 9 of 9)

- [Agents4PLC: Automating Closed-loop PLC Code Generation and Verification in Industrial Control Systems using LLM-based Agents](https://mlsanity.com/paper/2410.14209/) (2024)
- [An Agentic Approach to Automatic Creation of P&ID Diagrams from Natural Language Descriptions](https://mlsanity.com/paper/2412.12898/) (2024)
- [Leveraging LLM Agents and Digital Twins for Fault Handling in Process Plants](https://mlsanity.com/paper/2505.02076/) (2025)
- [Multi-agent systems for chemical engineering: A review and perspective](https://mlsanity.com/paper/2508.07880/) (2025)
- [Toward autocorrection of chemical process flowsheets using large language models](https://mlsanity.com/paper/2312.02873/) (2023)
- [Representing Timed Automata and Timing Anomalies of Cyber-Physical Production Systems in Knowledge Graphs](https://mlsanity.com/paper/2308.13433/) (2023)
- [Integrating Ontology Design with the CRISP-DM in the context of Cyber-Physical Systems Maintenance](https://mlsanity.com/paper/2407.06930/) (2024)
- [Knowledge Graph Modeling-Driven Large Language Model Operating System (LLM OS) for Task Automation in Process Engineering Problem-Solving](https://mlsanity.com/paper/2408.14494/) (2024)
- [Representing Time-Continuous Behavior of Cyber-Physical Systems in Knowledge Graphs](https://mlsanity.com/paper/2506.13773/) (2025)

## Abstract (arXiv)

Engineering specifications such as interlocks, alarm rationalization tables, and cause-and-effect (C&E) matrices remain central to process control and safety, yet their creation is still predominantly manual, document-driven, and prone to inconsistency. This paper presents a semantic-AI framework that automates the generation of C&E logic by combining a knowledge graph (KG) with a constrained large language model (LLM) layer. The KG builds on an established modular alignment ontology to represent process structure, operating modes, faults, symptoms, causes, and mitigation actions in a machine-interpretable form. The LLM then transforms this information into operator-ready safety narratives and Semantic Web Rule Language (SWRL) rules under strict ontology and vocabulary constraints, grounding the generated artifacts in the underlying semantic model. The workflow is demonstrated on a modular process plant, showing how engineering semantics, diagnostic relations, and machine-verifiable specifications can be generated from a unified knowledge representation with reduced manual effort.
