IDEAS home Printed from https://ideas.repec.org/a/eee/energy/v336y2025ics0360544225039714.html

AutoControl: An end-to-end fully automated workflow for control design of building energy systems

Author

Listed:
  • Hu, Ziqi
  • Li, Mingchen
  • Tang, Hao
  • Wang, Zhe

Abstract

Developing an efficient and effective control system is critical to enhance built environment quality, to reduce building energy consumption and to achieve the carbon neutrality goal. However, this process is expertise demanding, time consuming, and error-prone, particularly for large-scale buildings with complicated building energy systems. To address this challenge, this study proposes AutoControl, an end-to-end fully automated workflow based on Large Language Models (LLMs). AutoControl incorporates two LLM-based agents that utilize Brick models as inputs to automatically design and generate Proportional–Integral (PI) controller codes. The first LLM agent, a semantic interpreter, extracts and translates configuration details from the Brick model into a comprehensive description of the building energy system and related control specifications. The second LLM agent, a control expert agent, generates the PI controller code based on the interpreted configurations. Finally, Particle Swarm Optimization (PSO) is employed to fine-tune the parameters of the PI controller. Experiments were conducted on three test cases with diverse HVAC system configurations using the BOPTest virtual testbed. AutoControl achieved an average Mean Absolute Error (MAE) in temperature of 0.323 ∘C and an average Root Mean Square Error (RMSE) in temperature of 0.766 ∘C during a week-period, demonstrating robust temperature control performance and strong generalization capabilities. These results highlight the potential of using LLMs for automatic development of building controllers.

Suggested Citation

  • Hu, Ziqi & Li, Mingchen & Tang, Hao & Wang, Zhe, 2025. "AutoControl: An end-to-end fully automated workflow for control design of building energy systems," Energy, Elsevier, vol. 336(C).
  • Handle: RePEc:eee:energy:v:336:y:2025:i:c:s0360544225039714
    DOI: 10.1016/j.energy.2025.138329
    as

    Download full text from publisher

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

    File URL: https://libkey.io/10.1016/j.energy.2025.138329?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

    for a different version of it.

    References listed on IDEAS

    as
    1. 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).
    2. Balaji, Bharathan & Bhattacharya, Arka & Fierro, Gabriel & Gao, Jingkun & Gluck, Joshua & Hong, Dezhi & Johansen, Aslak & Koh, Jason & Ploennigs, Joern & Agarwal, Yuvraj & Bergés, Mario & Culler, Davi, 2018. "Brick : Metadata schema for portable smart building applications," Applied Energy, Elsevier, vol. 226(C), pages 1273-1292.
    3. Gianluca Serale & Massimo Fiorentini & Alfonso Capozzoli & Daniele Bernardini & Alberto Bemporad, 2018. "Model Predictive Control (MPC) for Enhancing Building and HVAC System Energy Efficiency: Problem Formulation, Applications and Opportunities," Energies, MDPI, vol. 11(3), pages 1-35, March.
    4. Inal, Omer Berkehan & Charpentier, Jean-Frédéric & Deniz, Cengiz, 2022. "Hybrid power and propulsion systems for ships: Current status and future challenges," Renewable and Sustainable Energy Reviews, Elsevier, vol. 156(C).
    5. Elnour, Mariam & Himeur, Yassine & Fadli, Fodil & Mohammedsherif, Hamdi & Meskin, Nader & Ahmad, Ahmad M. & Petri, Ioan & Rezgui, Yacine & Hodorog, Andrei, 2022. "Neural network-based model predictive control system for optimizing building automation and management systems of sports facilities," Applied Energy, Elsevier, vol. 318(C).
    6. Zhang, Chaobo & Zhang, Jian & Zhao, Yang & Lu, Jie, 2025. "Automated data-driven building energy load prediction method based on generative pre-trained transformers (GPT)," Energy, Elsevier, vol. 318(C).
    7. Zhang, Liang & Chen, Zhelun, 2025. "Opportunities of applying Large Language Models in building energy sector," Renewable and Sustainable Energy Reviews, Elsevier, vol. 214(C).
    8. Yang, Shiyu & Wan, Man Pun & Chen, Wanyu & Ng, Bing Feng & Dubey, Swapnil, 2020. "Model predictive control with adaptive machine-learning-based model for building energy efficiency and comfort optimization," Applied Energy, Elsevier, vol. 271(C).
    9. Hu, Jiefeng & Shan, Yinghao & Guerrero, Josep M. & Ioinovici, Adrian & Chan, Ka Wing & Rodriguez, Jose, 2021. "Model predictive control of microgrids – An overview," Renewable and Sustainable Energy Reviews, Elsevier, vol. 136(C).
    10. Halhoul Merabet, Ghezlane & Essaaidi, Mohamed & Ben Haddou, Mohamed & Qolomany, Basheer & Qadir, Junaid & Anan, Muhammad & Al-Fuqaha, Ala & Abid, Mohamed Riduan & Benhaddou, Driss, 2021. "Intelligent building control systems for thermal comfort and energy-efficiency: A systematic review of artificial intelligence-assisted techniques," Renewable and Sustainable Energy Reviews, Elsevier, vol. 144(C).
    11. Afzal, Sadegh & Ziapour, Behrooz M. & Shokri, Afshar & Shakibi, Hamid & Sobhani, Behnam, 2023. "Building energy consumption prediction using multilayer perceptron neural network-assisted models; comparison of different optimization algorithms," Energy, Elsevier, vol. 282(C).
    12. 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).
    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. Liang, Xinbin & Chen, Siliang & Mao, Zhuyun & Li, Xilin & Jin, Xinqiao & Du, Zhimin, 2025. "Physics-informed neural network-based model predictive control for chiller plant – fan coil unit system and intelligent human-AI interaction via large language model," Energy, Elsevier, vol. 339(C).
    2. Antonesi, Gabriel & Cioara, Tudor & Anghel, Ionut & Michalakopoulos, Vasilis & Sarmas, Elissaios & Toderean, Liana, 2025. "A systematic review of transformers and large language models in the energy sector: towards agentic digital twins," Applied Energy, Elsevier, vol. 401(PA).
    3. Zhang, Chaobo & Zhang, Jian & Zhao, Yang & Lu, Jie, 2025. "Automated data-driven building energy load prediction method based on generative pre-trained transformers (GPT)," Energy, Elsevier, vol. 318(C).
    4. Chen, Siliang & Liang, Xinbin & Liu, Ying & Li, Xilin & Jin, Xinqiao & Du, Zhimin, 2025. "Customized large-scale model for human-AI collaborative operation and maintenance management of building energy systems," Applied Energy, Elsevier, vol. 393(C).
    5. Tirulo, Aschalew & Yadav, Monika & Lolamo, Mathewos & Chauhan, Siddhartha & Siano, Pierluigi & Shafie-khah, Miadreza, 2026. "Beyond automation: Unveiling the potential of agentic intelligence," Renewable and Sustainable Energy Reviews, Elsevier, vol. 226(PA).
    6. Yang, Shiyu & Wan, Man Pun & Chen, Wanyu & Ng, Bing Feng & Dubey, Swapnil, 2021. "Experiment study of machine-learning-based approximate model predictive control for energy-efficient building control," Applied Energy, Elsevier, vol. 288(C).
    7. Li, Jiteng & Koo, Jabeom & Lee, Jeyoon & Wang, Peng & Zhao, Tianyi & Yoon, Sungmin, 2025. "AI agent-driven virtual in-situ calibration for intelligent building digital twins," Energy, Elsevier, vol. 339(C).
    8. Dalia Mohammed Talat Ebrahim Ali & Violeta Motuzienė & Rasa Džiugaitė-Tumėnienė, 2024. "AI-Driven Innovations in Building Energy Management Systems: A Review of Potential Applications and Energy Savings," Energies, MDPI, vol. 17(17), pages 1-35, August.
    9. Sun, Xiaojun & Yao, Chong & Song, Enzhe & Liu, Zhijiang & Ke, Yun & Ding, Shunliang, 2023. "Novel enhancement of energy distribution for marine hybrid propulsion systems by an advanced variable weight decision model predictive control," Energy, Elsevier, vol. 274(C).
    10. Yang, Shiyu & Wan, Man Pun, 2022. "Machine-learning-based model predictive control with instantaneous linearization – A case study on an air-conditioning and mechanical ventilation system," Applied Energy, Elsevier, vol. 306(PB).
    11. Chen, Xiao & Cao, Benyi & Pouramini, Somayeh, 2023. "Energy cost and consumption reduction of an office building by Chaotic Satin Bowerbird Optimization Algorithm with model predictive control and artificial neural network: A case study," Energy, Elsevier, vol. 270(C).
    12. Neshat, Mehdi & Thilakaratne, Menasha & El-Abd, Mohammed & Mirjalili, Seyedali & Gandomi, Amir H. & Boland, John, 2025. "Smart buildings energy consumption forecasting using adaptive evolutionary bagging extra tree learning models," Energy, Elsevier, vol. 333(C).
    13. Montazeri, Mina & Remlinger, Carl & Bejar Haro, Benjamin & Heer, Philipp, 2025. "Fully data-driven and modular building thermal control with physically consistent modeling," Applied Energy, Elsevier, vol. 390(C).
    14. Ahmad Esmaeilzadeh & Brian Deal & Aghil Yousefi-Koma & Mohammad Reza Zakerzadeh, 2022. "How Multi-Criterion Optimized Control Methods Improve Effectiveness of Multi-Zone Building Heating System Upgrading," Energies, MDPI, vol. 15(22), pages 1-27, November.
    15. Esmaeilzadeh, Ahmad & Deal, Brian & Yousefi-Koma, Aghil & Zakerzadeh, Mohammad Reza, 2023. "How combination of control methods and renewable energies leads a large commercial building to a zero-emission zone – A case study in U.S," Energy, Elsevier, vol. 263(PD).
    16. Savadkoohi, Marjan & Macarulla, Marcel & Casals, Miquel, 2023. "Facilitating the implementation of neural network-based predictive control to optimize building heating operation," Energy, Elsevier, vol. 263(PB).
    17. Khaled Almazam & Omar Humaidan & Nahla M. Shannan & Faizah Mohammed Bashir & Taha Gammoudi & Yakubu Aminu Dodo, 2025. "Innovative Energy Efficiency in HVAC Systems with an Integrated Machine Learning and Model Predictive Control Technique: A Prospective Toward Sustainable Buildings," Sustainability, MDPI, vol. 17(7), pages 1-35, March.
    18. Zheng, Wanfu & Wang, Dan & Wang, Zhe, 2024. "Economic model predictive control for building HVAC system: A comparative analysis of model-based and data-driven approaches using the BOPTEST Framework," Applied Energy, Elsevier, vol. 374(C).
    19. Saloux, Etienne & Candanedo, José A. & Vallianos, Charalampos & Morovat, Navid & Zhang, Kun, 2025. "From theory to practice: A critical review of model predictive control field implementations in the built environment," Applied Energy, Elsevier, vol. 393(C).
    20. Raman, Naren Srivaths & Chen, Bo & Barooah, Prabir, 2022. "On energy-efficient HVAC operation with Model Predictive Control: A multiple climate zone study," Applied Energy, Elsevier, vol. 324(C).

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    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:energy:v:336:y:2025:i:c:s0360544225039714. 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.journals.elsevier.com/energy .

    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.