Proceedings of ESCAPE 35ISSN: 2818-4734
Volume: 4 (2025)
Table of Contents
LAPSE:2025.0421
Published Article
LAPSE:2025.0421
Talking like Piping and Instrumentation Diagrams (P&IDs)
Achmad Anggawirya Alimin, Dominik P. Goldstein, Lukas Schulze Balhorn, Artur M. Schweidtmann
June 27, 2025
Abstract
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.
Keywords
Graph-based Retrieval Augmented Generation, Knowledge Graph, Large Language Models
Suggested Citation
Alimin AA, Goldstein DP, Balhorn LS, Schweidtmann AM. Talking like Piping and Instrumentation Diagrams (P&IDs). Systems and Control Transactions 4:1676-1681 (2025) https://doi.org/10.69997/sct.159477
Author Affiliations
Alimin AA: Process Intelligence Research Group, Department of Chemical Engineering, Delft University of Technology, Van der Maasweg 9, Delft 2629 HZ, The Netherlands
Goldstein DP: Process Intelligence Research Group, Department of Chemical Engineering, Delft University of Technology, Van der Maasweg 9, Delft 2629 HZ, The Netherlands
Balhorn LS: Process Intelligence Research Group, Department of Chemical Engineering, Delft University of Technology, Van der Maasweg 9, Delft 2629 HZ, The Netherlands
Schweidtmann AM: Process Intelligence Research Group, Department of Chemical Engineering, Delft University of Technology, Van der Maasweg 9, Delft 2629 HZ, The Netherlands
Journal Name
Systems and Control Transactions
Volume
4
First Page
1676
Last Page
1681
Year
2025
Publication Date
2025-07-01
Version Comments
Original Submission
Other Meta
PII: 1676-1681-1172-SCT-4-2025, Publication Type: Journal Article
Record Map
Published Article

LAPSE:2025.0421
This Record
External Link

https://doi.org/10.69997/sct.159477
Article DOI
Download
Files
Jun 27, 2025
Main Article
License
CC BY-SA 4.0
Meta
Record Statistics
Record Views
1120
Version History
[v1] (Original Submission)
Jun 27, 2025
 
Verified by curator on
Jun 27, 2025
This Version Number
v1
Citations
Most Recent
This Version
URL Here
http://psecommunity.org/LAPSE:2025.0421
 
Record Owner
PSE Press
Links to Related Works
Directly Related to This Work
Article DOI
References Cited
  1. M. Toghraei, Piping and instrumentation diagram development. Hoboken, NJ, USA: Wiley, 2019 https://doi.org/10.1002/9781119329503
  2. F. Theisen, K. N. Flores, L. Schulze Balhorn, and A. M. Schweidtmann, "Digitization of chemical process flow diagrams using deep convolutional neural networks," Digit. Chem. Eng., vol. 6, p. 100072, 2023 https://doi.org/10.1016/j.dche.2022.100072
  3. M. Theißen and M. Wiedau, DEXPI P&ID Specification 1.3, 2021
  4. D. P. Goldstein, A. A. Alimin, L. Schulze Balhorn, and A. M. Schweidtmann, "pyDEXPI: A Python framework for piping and instrumentation diagrams using the DEXPI information model," ESCAPE35, 2025
  5. OpenAI, "GPT-4 Technical Report," 2023, arXiv: arXiv:2303.08774. Accessed: Oct. 30, 2024. [Online]. Available: http://arxiv.org/abs/2303.08774
  6. P. Zhao et al., "Retrieval-Augmented Generation for AI-Generated Content: A Survey," 2024, arXiv.
  7. A. M. Schweidtmann, "Generative artificial intelligence in chemical engineering," Nat. Chem. Eng., vol. 1, no. 3, pp. 193-193, Mar. 2024, https://doi.org/10.1038/s44286-024-00041-5
  8. J. Morbach, A. Yang, and W. Marquardt, "OntoCAPE-A large-scale ontology for chemical process engineering," Eng. Appl. Artif. Intell., vol. 20, no. 2, pp. 147-161, Mar. 2007, https://doi.org/10.1016/j.engappai.2006.06.010
  9. A. Eibeck, M. Q. Lim, and M. Kraft, "J-Park Simulator: An ontology-based platform for cross-domain scenarios in process industry," Comput. Chem. Eng., vol. 131, p. 106586, Dec. 2019, https://doi.org/10.1016/j.compchemeng.2019.106586
  10. J. Waldo and S. Boussard, "GPTs and Hallucination," Commun. ACM, vol. 68, no. 1, pp. 40-45, Jan. 2025, https://doi.org/10.1145/3703757
  11. J. Yang et al., "Harnessing the Power of LLMs in Practice: A Survey on ChatGPT and Beyond," ACM Trans. Knowl. Discov. Data, vol. 18, no. 6, pp. 1-32, Jul. 2024, https://doi.org/10.1145/3649506
  12. G. Vetter and F. Schweinfurther, "Pressure pulsations in the piping of reciprocating pumps," Chem. Eng. Technol., vol. 10, no. 1, pp. 262-271, Jan. 1987, https://doi.org/10.1002/ceat.270100132