[Paper Review] Automatic digital twin data model generation of building energy systems from piping and instrumentation diagrams
This paper presents an automated method to generate digital twin data models for building energy systems by extracting topology from piping and instrumentation diagrams (P&IDs). Using AI-based symbol, line, and connection recognition, the approach achieves 93.7% average precision in identifying components and connections, enabling downstream applications like model predictive control and building energy performance simulation with standardized semantic formats such as Brick Schema.
Buildings directly and indirectly emit a large share of current CO2 emissions. There is a high potential for CO2 savings through modern control methods in building automation systems (BAS) like model predictive control (MPC). For a proper control, MPC needs mathematical models to predict the future behavior of the controlled system. For this purpose, digital twins of the building can be used. However, with current methods in existing buildings, a digital twin set up is usually labor-intensive. Especially connecting the different components of the technical system to an overall digital twin of the building is time-consuming. Piping and instrument diagrams (P&ID) can provide the needed information, but it is necessary to extract the information and provide it in a standardized format to process it further. In this work, we present an approach to recognize symbols and connections of P&ID from buildings in a completely automated way. There are various standards for graphical representation of symbols in P&ID of building energy systems. Therefore, we use different data sources and standards to generate a holistic training data set. We apply algorithms for symbol recognition, line recognition and derivation of connections to the data sets. Furthermore, the result is exported to a format that provides semantics of building energy systems. The symbol recognition, line recognition and connection recognition show good results with an average precision of 93.7%, which can be used in further processes like control generation, (distributed) model predictive control or fault detection. Nevertheless, the approach needs further research.
Motivation & Objective
- To address the labor-intensive challenge of creating digital twins for existing non-residential buildings with complex building automation systems (BAS).
- To enable automated, scalable generation of semantically rich digital twin models from non-computer-readable P&ID documents.
- To support advanced control and simulation applications such as model predictive control (MPC), fault detection, and building energy performance simulation (BEPS).
- To standardize extracted topology using the Brick Schema and BUDO Schema for integration into BAS and data stream labeling.
- To reduce manual effort in digital twin creation by automating topology detection from P&ID drawings.
Proposed method
- Constructed a comprehensive training dataset by aggregating P&ID standards and real-world building energy system diagrams to cover diverse symbol and layout variations.
- Applied deep learning models for object detection (e.g., Faster R-CNN variants) to recognize symbols such as pumps, valves, and heat exchangers in P&ID images.
- Implemented line detection and line crossing algorithms to identify and trace piping connections across the diagram.
- Developed a connection recognition module that links components based on spatial proximity and line continuity, resolving complex junctions.
- Mapped detected components and connections to the Brick Schema for semantic modeling and to the BUDO Schema for standardized data stream labeling.
- Exported the final digital twin model in a machine-processable format suitable for integration into BAS, MPC, and simulation tools.
Experimental results
Research questions
- RQ1Can P&ID drawings serve as a reliable source for automated topology extraction in existing building energy systems?
- RQ2To what extent can AI-based symbol, line, and connection recognition achieve high accuracy in complex P&ID layouts?
- RQ3How well can the extracted topology support downstream applications such as model predictive control and building energy performance simulation?
- RQ4What is the impact of standardizing the output using Brick Schema and BUDO Schema on interoperability with building automation systems?
- RQ5How does the method perform across diverse P&ID standards and symbol variations in real-world building energy systems?
Key findings
- The proposed method achieved an average precision of 93.7% in symbol recognition, demonstrating high reliability in identifying components such as pumps, valves, and heat exchangers.
- Connection detection achieved 91% accuracy and 91% precision, with better performance on two-directional connections than on multi-directional crossings.
- The approach outperformed prior work in accuracy (91% vs. 65% in [50]) and matched state-of-the-art results (92% in [49]) in connection detection.
- Despite challenges with small symbols and non-standardized layouts, the automated decomposition of P&ID images improved detection robustness.
- The digital twin model generated is suitable for use in model predictive control and fault detection when combined with additional refinement, but requires adaptation for high-accuracy BEPS applications.
- Mapping to Brick Schema and BUDO Schema enables semantic interoperability and supports integration into existing BAS and data stream management systems.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.