English

From Engineering Diagrams to Graphs: Digitizing P&IDs with Transformers

Computer Vision and Pattern Recognition 2025-12-22 v3

Abstract

Digitizing engineering diagrams like Piping and Instrumentation Diagrams (P&IDs) plays a vital role in maintainability and operational efficiency of process and hydraulic systems. Previous methods typically decompose the task into separate steps such as symbol detection and line detection, which can limit their ability to capture the structure in these diagrams. In this work, a transformer-based approach leveraging the Relationformer that addresses this limitation by jointly extracting symbols and their interconnections from P&IDs is introduced. To evaluate our approach and compare it to a modular digitization approach, we present the first publicly accessible benchmark dataset for P&ID digitization, annotated with graph-level ground truth. Experimental results on real-world diagrams show that our method significantly outperforms the modular baseline, achieving over 25% improvement in edge detection accuracy. This research contributes a reproducible evaluation framework and demonstrates the effectiveness of transformer models for structural understanding of complex engineering diagrams. The dataset is available under https://zenodo.org/records/14803338.

Keywords

Cite

@article{arxiv.2411.13929,
  title  = {From Engineering Diagrams to Graphs: Digitizing P&IDs with Transformers},
  author = {Jan Marius Stürmer and Marius Graumann and Tobias Koch},
  journal= {arXiv preprint arXiv:2411.13929},
  year   = {2025}
}

Comments

(c) 2025 IEEE. Published in the conference proceedings of the 2025 IEEE 12th International Conference on Data Science and Advanced Analytics (DSAA)

R2 v1 2026-06-28T20:07:28.871Z