# Rule-based autocorrection of Piping and Instrumentation Diagrams (P&IDs) on graphs

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

## Key facts

- Cited by 1 papers in the map (data through 14 Oct 2026).
- Builds on 1 of its 13 references that are in the map.
- First posted on arXiv 18 Feb 2025.

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

- [Toward autocorrection of chemical process flowsheets using large language models](https://mlsanity.com/paper/2312.02873/) (2023)

## Built on by (most cited first, 1 of 1)

- [GraphRAG for Engineering Diagrams: ChatP&ID Enables LLM Interaction with P&IDs](https://mlsanity.com/paper/2603.22528/) (2026)

## Abstract (arXiv)

A piping and instrumentation diagram (P&ID) is a central reference document in chemical process engineering. Currently, chemical engineers manually review P&IDs through visual inspection to find and rectify errors. However, engineering projects can involve hundreds to thousands of P&ID pages, creating a significant revision workload. This study proposes a rule-based method to support engineers with error detection and correction in P&IDs. The method is based on a graph representation of P&IDs, enabling automated error detection and correction, i.e., autocorrection, through rule graphs. We use our pyDEXPI Python package to generate P&ID graphs from DEXPI-standard P&IDs. In this study, we developed 33 rules based on chemical engineering knowledge and heuristics, with five selected rules demonstrated as examples. A case study on an illustrative P&ID validates the reliability and effectiveness of the rule-based autocorrection method in revising P&IDs.
