IDEAS home Printed from https://ideas.repec.org/a/eee/appene/v377y2025ipas0306261924017616.html
   My bibliography  Save this article

Domain-specific large language models for fault diagnosis of heating, ventilation, and air conditioning systems by labeled-data-supervised fine-tuning

Author

Listed:
  • Zhang, Jian
  • Zhang, Chaobo
  • Lu, Jie
  • Zhao, Yang

Abstract

Large language models (LLMs) have exhibited great potential in fault diagnosis of heating, ventilation, and air conditioning systems. However, the fault diagnosis accuracy of LLMs is still unsatisfactory, due to the lack of effective diagnosis accuracy enhancement methods for LLMs. To fill this gap, this study proposes a LLM fine-tuning method supervised by data with fault and fault-free labels to enhance the fault diagnosis accuracy of LLMs. This method designs a LLM self-correction strategy to automatically generate a fine-tuning dataset based on the labeled data. The generated fine-tuning dataset is applied to fine-tune a LLM. Moreover, a data augmentation-based approach is put forward to adaptively update the fine-tuning dataset for iteratively developing a high-performance fine-tuned LLM. The proposed method is utilized to fine-tune the GPT-3.5 model using the air handling unit (AHU) fault dataset from the RP-1312 project. The results show that the diagnosis accuracy of the GPT-3.5 model is increased from 29.5 % to 100.0 % after model fine-tuning. Compared with the GPT-4 model, the fine-tuned GPT-3.5 model achieves a 31.1 % higher average diagnosis accuracy. The fine-tuned GPT-3.5 model is also applied to diagnose faults in two AHUs from another open-source dataset to verify the generalization ability of this model. The two AHUs have different system structures and sensor configurations compared to the AHU in the RP-1312 dataset, and this dataset is not utilized to fine-tune the GPT-3.5 model. The average diagnosis accuracy of the GPT-3.5 model is increased from 46.0 % to 99.1 % and from 38.8 % to 98.9 % for the faults in the two AHUs, respectively, after model fine-tuning. Furthermore, the proposed method is verified using two fault datasets from a variable air volume box and a chiller plant system. After fine-tuning the GPT-3.5 model using the two datasets, the average diagnosis accuracy of this model is increased from 33.0 % to 98.3 % for variable air volume box faults and from 36.0 % to 99.1 % for chiller plant system faults. This study provides an effective solution to the development of domain-specific LLMs for this domain.

Suggested Citation

  • Zhang, Jian & Zhang, Chaobo & Lu, Jie & Zhao, Yang, 2025. "Domain-specific large language models for fault diagnosis of heating, ventilation, and air conditioning systems by labeled-data-supervised fine-tuning," Applied Energy, Elsevier, vol. 377(PA).
  • Handle: RePEc:eee:appene:v:377:y:2025:i:pa:s0306261924017616
    DOI: 10.1016/j.apenergy.2024.124378
    as

    Download full text from publisher

    File URL: http://www.sciencedirect.com/science/article/pii/S0306261924017616
    Download Restriction: Full text for ScienceDirect subscribers only

    File URL: https://libkey.io/10.1016/j.apenergy.2024.124378?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to search for a different version of it.

    References listed on IDEAS

    as
    1. Daniil A. Boiko & Robert MacKnight & Ben Kline & Gabe Gomes, 2023. "Autonomous chemical research with large language models," Nature, Nature, vol. 624(7992), pages 570-578, December.
    2. Zhang, Chaobo & Li, Junyang & Zhao, Yang & Li, Tingting & Chen, Qi & Zhang, Xuejun & Qiu, Weikang, 2021. "Problem of data imbalance in building energy load prediction: Concept, influence, and solution," Applied Energy, Elsevier, vol. 297(C).
    3. Li, Guannan & Hu, Yunpeng & Chen, Huanxin & Li, Haorong & Hu, Min & Guo, Yabin & Liu, Jiangyan & Sun, Shaobo & Sun, Miao, 2017. "Data partitioning and association mining for identifying VRF energy consumption patterns under various part loads and refrigerant charge conditions," Applied Energy, Elsevier, vol. 185(P1), pages 846-861.
    4. Li, Bingxu & Cheng, Fanyong & Zhang, Xin & Cui, Can & Cai, Wenjian, 2021. "A novel semi-supervised data-driven method for chiller fault diagnosis with unlabeled data," Applied Energy, Elsevier, vol. 285(C).
    5. Chen, Zhelun & O’Neill, Zheng & Wen, Jin & Pradhan, Ojas & Yang, Tao & Lu, Xing & Lin, Guanjing & Miyata, Shohei & Lee, Seungjae & Shen, Chou & Chiosa, Roberto & Piscitelli, Marco Savino & Capozzoli, , 2023. "A review of data-driven fault detection and diagnostics for building HVAC systems," Applied Energy, Elsevier, vol. 339(C).
    6. Jiang, Gang & Ma, Zhihao & Zhang, Liang & Chen, Jianli, 2024. "EPlus-LLM: A large language model-based computing platform for automated building energy modeling," Applied Energy, Elsevier, vol. 367(C).
    7. Fan, Cheng & Wu, Qiuting & Zhao, Yang & Mo, Like, 2024. "Integrating active learning and semi-supervised learning for improved data-driven HVAC fault diagnosis performance," Applied Energy, Elsevier, vol. 356(C).
    8. Chen, Yimin & Wen, Jin & Pradhan, Ojas & Lo, L. James & Wu, Teresa, 2022. "Using discrete Bayesian networks for diagnosing and isolating cross-level faults in HVAC systems," Applied Energy, Elsevier, vol. 327(C).
    9. Lee, Won-Yong & House, John M. & Kyong, Nam-Ho, 2004. "Subsystem level fault diagnosis of a building's air-handling unit using general regression neural networks," Applied Energy, Elsevier, vol. 77(2), pages 153-170, February.
    10. Zhao, Yang & Li, Tingting & Zhang, Xuejun & Zhang, Chaobo, 2019. "Artificial intelligence-based fault detection and diagnosis methods for building energy systems: Advantages, challenges and the future," Renewable and Sustainable Energy Reviews, Elsevier, vol. 109(C), pages 85-101.
    11. Gao, Yuan & Miyata, Shohei & Akashi, Yasunori, 2023. "How to improve the application potential of deep learning model in HVAC fault diagnosis: Based on pruning and interpretable deep learning method," Applied Energy, Elsevier, vol. 348(C).
    12. Chen, Jianli & Zhang, Liang & Li, Yanfei & Shi, Yifu & Gao, Xinghua & Hu, Yuqing, 2022. "A review of computing-based automated fault detection and diagnosis of heating, ventilation and air conditioning systems," Renewable and Sustainable Energy Reviews, Elsevier, vol. 161(C).
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Guo, Yanhua & Wang, Ningbo & Shao, Shuangquan & Huang, Congqi & Zhang, Zhentao & Li, Xiaoqiong & Wang, Youdong, 2024. "A review on hybrid physics and data-driven modeling methods applied in air source heat pump systems for energy efficiency improvement," Renewable and Sustainable Energy Reviews, Elsevier, vol. 204(C).
    2. Chen, Zhelun & O’Neill, Zheng & Wen, Jin & Pradhan, Ojas & Yang, Tao & Lu, Xing & Lin, Guanjing & Miyata, Shohei & Lee, Seungjae & Shen, Chou & Chiosa, Roberto & Piscitelli, Marco Savino & Capozzoli, , 2023. "A review of data-driven fault detection and diagnostics for building HVAC systems," Applied Energy, Elsevier, vol. 339(C).
    3. Fan, Cheng & Chen, Ruikun & Mo, Jinhan & Liao, Longhui, 2024. "Personalized federated learning for cross-building energy knowledge sharing: Cost-effective strategies and model architectures," Applied Energy, Elsevier, vol. 362(C).
    4. Ssembatya, Martin & Claridge, David E., 2024. "Quantitative fault detection and diagnosis methods for vapour compression chillers: Exploring the potential for field-implementation," Renewable and Sustainable Energy Reviews, Elsevier, vol. 197(C).
    5. Fan, Cheng & Wu, Qiuting & Zhao, Yang & Mo, Like, 2024. "Integrating active learning and semi-supervised learning for improved data-driven HVAC fault diagnosis performance," Applied Energy, Elsevier, vol. 356(C).
    6. Gao, Yuan & Miyata, Shohei & Akashi, Yasunori, 2023. "How to improve the application potential of deep learning model in HVAC fault diagnosis: Based on pruning and interpretable deep learning method," Applied Energy, Elsevier, vol. 348(C).
    7. Fan, Cheng & Lei, Yutian & Sun, Yongjun & Mo, Like, 2023. "Novel transformer-based self-supervised learning methods for improved HVAC fault diagnosis performance with limited labeled data," Energy, Elsevier, vol. 278(PB).
    8. Ren, Haoshan & Xu, Chengliang & Lyu, Yuanli & Ma, Zhenjun & Sun, Yongjun, 2023. "A thermodynamic-law-integrated deep learning method for high-dimensional sensor fault detection in diverse complex HVAC systems," Applied Energy, Elsevier, vol. 351(C).
    9. Rongjiang Ma & Xianlin Wang & Ming Shan & Nanyang Yu & Shen Yang, 2020. "Recognition of Variable-Speed Equipment in an Air-Conditioning System Using Numerical Analysis of Energy-Consumption Data," Energies, MDPI, vol. 13(18), pages 1-14, September.
    10. Chen, Jianli & Zhang, Liang & Li, Yanfei & Shi, Yifu & Gao, Xinghua & Hu, Yuqing, 2022. "A review of computing-based automated fault detection and diagnosis of heating, ventilation and air conditioning systems," Renewable and Sustainable Energy Reviews, Elsevier, vol. 161(C).
    11. Guo, Yabin & Liu, Yaxin & Wang, Yuhua & Wang, Zhanwei & Zhang, Zheng & Xue, Puning, 2024. "Advance and prospect of machine learning based fault detection and diagnosis in air conditioning systems," Renewable and Sustainable Energy Reviews, Elsevier, vol. 205(C).
    12. William Nelson & Charles Culp, 2023. "FDD in Building Systems Based on Generalized Machine Learning Approaches," Energies, MDPI, vol. 16(4), pages 1-16, February.
    13. Zhang, Chaobo & Xue, Xue & Zhao, Yang & Zhang, Xuejun & Li, Tingting, 2019. "An improved association rule mining-based method for revealing operational problems of building heating, ventilation and air conditioning (HVAC) systems," Applied Energy, Elsevier, vol. 253(C), pages 1-1.
    14. Lei, Lei & Wu, Bing & Fang, Xin & Chen, Li & Wu, Hao & Liu, Wei, 2023. "A dynamic anomaly detection method of building energy consumption based on data mining technology," Energy, Elsevier, vol. 263(PA).
    15. Mohammad Mahdi Forootan & Iman Larki & Rahim Zahedi & Abolfazl Ahmadi, 2022. "Machine Learning and Deep Learning in Energy Systems: A Review," Sustainability, MDPI, vol. 14(8), pages 1-49, April.
    16. Ren, Zhengxiong & Han, Hua & Cui, Xiaoyu & Lu, Hailong & Luo, Mingwen, 2023. "Novel data-pulling-based strategy for chiller fault diagnosis in data-scarce scenarios," Energy, Elsevier, vol. 279(C).
    17. Liu, Jiangyan & Zhang, Qing & Dong, Zhenxiang & Li, Xin & Li, Guannan & Xie, Yi & Li, Kuining, 2021. "Quantitative evaluation of the building energy performance based on short-term energy predictions," Energy, Elsevier, vol. 223(C).
    18. Rongjiang Ma & Shen Yang & Xianlin Wang & Xi-Cheng Wang & Ming Shan & Nanyang Yu & Xudong Yang, 2020. "Systematic Method for the Energy-Saving Potential Calculation of Air-Conditioning Systems via Data Mining. Part I: Methodology," Energies, MDPI, vol. 14(1), pages 1-15, December.
    19. Yuwen You & Zhonghua Wang & Zhihao Liu & Chunmei Guo & Bin Yang, 2024. "Load Prediction of Regional Heat Exchange Station Based on Fuzzy Clustering Based on Fourier Distance and Convolutional Neural Network–Bidirectional Long Short-Term Memory Network," Energies, MDPI, vol. 17(16), pages 1-19, August.
    20. Gertsvolf, David & Horvat, Miljana & Aslam, Danesh & Khademi, April & Berardi, Umberto, 2024. "A U-net convolutional neural network deep learning model application for identification of energy loss in infrared thermographic images," Applied Energy, Elsevier, vol. 360(C).

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:eee:appene:v:377:y:2025:i:pa:s0306261924017616. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Catherine Liu (email available below). General contact details of provider: http://www.elsevier.com/wps/find/journaldescription.cws_home/405891/description#description .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.