Leveraging LLM for P&ID-based Automated Code Generation in HVAC Fault Detection and Diagnosis

Conference Paper (2026)
Author(s)

Chujie Lu (TU Delft - Architecture and the Built Environment)

Laure Itard (TU Delft - Architecture and the Built Environment)

Research Group
Environmental & Climate Design
DOI related publication
https://doi.org/10.1007/978-3-032-10546-2_37 Final published version
More Info
expand_more
Publication Year
2026
Language
English
Research Group
Environmental & Climate Design
Pages (from-to)
399-407
Publisher
Springer
ISBN (print)
['978-3-032-10545-5', '978-3-032-10548-6']
ISBN (electronic)
978-3-032-10546-2
Event
15th REHVA HVAC World Congress - CLIMA 2025 (2025-06-04 - 2025-06-06), Milan, Italy
Downloads counter
14
Reuse Rights

Other than for strictly personal use, it is not permitted to download, forward or distribute the text or part of it, without the consent of the author(s) and/or copyright holder(s), unless the work is under an open content license such as Creative Commons.

Abstract

Fault detection and diagnosis (FDD) play a crucial role in minimizing energy waste and reducing maintenance costs in HVAC systems. Diagnostic Bayesian networks (DBNs), as probabilistic graphical models, offer a promising solution due to robustness to uncertainties, modeling flexibility, scalability, and interpretability. However, the current DBN construction is either a tedious and time-consuming manual process or relies heavily on training data, posing significant barriers to wide-spread adoption. This study proposes a novel large language model (LLM)-driven framework for automating DBN code generation for HVAC systems by extracting knowledge from process and instrumentation diagrams (P&IDs), extending beyond the reliance on traditional sensor data. The results demonstrate that the proposed framework can generate functional DBN code, reasonable symptoms, and DBN parameters. However, fault diagnosis experiments revealed that only the “supply fan stuck” fault was correctly identified, underscoring the need for further refinement. Future work will focus on enhancing LLM capabilities, such as prompt engineering and fine-tuning, and optimizing DBN parameters using limited data to improve diagnostic accuracy.

Files

978-3-032-10546-2_37.pdf
(pdf | 1.01 Mb)
Taverne
warning

File under embargo until 01-10-2026