Talking like Piping and Instrumentation Diagrams (P&IDs)
We propose a methodology that allows communication with Piping and Instrumentation Diagrams (P&IDs) using natural language. In particular, we represent P&IDs through the DEXPI data model as labeled property graphs and integrate them with Large Language Models (LLMs). The approach consists of three main parts: 1) P&IDs are cast into a graph representation from the DEXPI format using our pyDEXPI Python package. 2) A tool for generating P&ID knowledge graphs from pyDEXPI. 3) Integration of the P&ID knowledge graph to LLMs using graph-based retrieval augmented generation (graph-RAG). This approach allows users to communicate with P&IDs using natural language. It extends LLM�s ability to retrieve contextual data from P&IDs and mitigate hallucinations. Leveraging the LLM's large corpus, the model is also able to interpret process information in P&IDs, which could help engineers in their daily tasks. In the future, this work will also open up opportunities in the context of other generative Artificial Intelligence (genAI) solutions on P&IDs, and AI-assisted HAZOP studies.
Authors
- Dominik P. Goldstein
- Artur M. Schweidtmann (ORCID: https://orcid.org/0000-0001-8885-6847)
- Lukas Schulze Balhorn (ORCID: https://orcid.org/0000-0001-7494-9110)
- Achmad Anggawirya Alimin
Institutions
- Delft University of Technology (NL)
Publication Details
- Journal
- Systems and Control Transactions
- Published
- 2025-06-30
- DOI
- https://doi.org/10.69997/sct.159477
- Citations
- 1
- Primary Topic
- Semantic Web and Ontologies
- Type
- article
- Field-Weighted Citation Impact
- 2.48
Funders
- Siemens
- Lembaga Pengelola Dana Pendidikan