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

An ensemble model for the energy consumption prediction of residential buildings

Author

Listed:
  • Mohan, Ritwik
  • Pachauri, Nikhil

Abstract

The HVAC unit helps reduce overall energy consumption. ML models can enhance HVAC performance by accurately predicting a building's energy consumption and load utilization. Therefore, this study presents a stacked ensemble model that incorporates extreme gradient boosting (XGB), decision tree (DT), and Random Forest (RF) algorithms to predict the energy consumption of heating and cooling loads (HL and CL) in buildings. The performance of the proposed stacked ensemble is compared to other machine learning predictive models such as Ridge, Lasso, K Nearest Neighbor (KNN), Support Vector Regression (SVR), and Artificial Neural Network (ANN). Bayesian optimization is used to determine the hyperparameter values of the ML algorithms. The results show that the proposed predictive model has the lowest root mean square value (RMSE) of 0.484 and 0.948 for HL and CL, respectively, compared to other machine learning models. Additionally, the efficacy of the stack model is evaluated using a time series dataset about HVAC energy consumption in residential buildings. The simulation results indicate that the stack model outperformed the other prediction models, achieving a root mean square error (RMSE) of 0.1810. In conclusion, the proposed predictive model is more efficient than traditional models in forecasting energy consumption by HL, CL, and HVAC systems.

Suggested Citation

  • Mohan, Ritwik & Pachauri, Nikhil, 2025. "An ensemble model for the energy consumption prediction of residential buildings," Energy, Elsevier, vol. 314(C).
  • Handle: RePEc:eee:energy:v:314:y:2025:i:c:s0360544224040337
    DOI: 10.1016/j.energy.2024.134255
    as

    Download full text from publisher

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

    File URL: https://libkey.io/10.1016/j.energy.2024.134255?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. Xu, Weiyan & Tu, Jielei & Xu, Ning & Liu, Zuming, 2024. "Predicting daily heating energy consumption in residential buildings through integration of random forest model and meta-heuristic algorithms," Energy, Elsevier, vol. 301(C).
    2. Tran, Duc-Hoc & Luong, Duc-Long & Chou, Jui-Sheng, 2020. "Nature-inspired metaheuristic ensemble model for forecasting energy consumption in residential buildings," Energy, Elsevier, vol. 191(C).
    3. Yesilyurt, Hasan & Dokuz, Yesim & Dokuz, Ahmet Sakir, 2024. "Data-driven energy consumption prediction of a university office building using machine learning algorithms," Energy, Elsevier, vol. 310(C).
    4. Lu, Chujie & Li, Sihui & Reddy Penaka, Santhan & Olofsson, Thomas, 2023. "Automated machine learning-based framework of heating and cooling load prediction for quick residential building design," Energy, Elsevier, vol. 274(C).
    5. 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).
    6. Bian, Jianxiao & Wang, Jiarui & Yece, Qian, 2024. "A novel study on power consumption of an HVAC system using CatBoost and AdaBoost algorithms combined with the metaheuristic algorithms," Energy, Elsevier, vol. 302(C).
    7. Khajavi, Hamed & Rastgoo, Amir, 2023. "Improving the prediction of heating energy consumed at residential buildings using a combination of support vector regression and meta-heuristic algorithms," Energy, Elsevier, vol. 272(C).
    8. Pachauri, Nikhil & Ahn, Chang Wook, 2023. "Weighted aggregated ensemble model for energy demand management of buildings," Energy, Elsevier, vol. 263(PC).
    9. Dasi, He & Ying, Zhang & Ashab, MD Faisal Bin, 2024. "Proposing hybrid prediction approaches with the integration of machine learning models and metaheuristic algorithms to forecast the cooling and heating load of buildings," Energy, Elsevier, vol. 291(C).
    10. Wang, Ran & Lu, Shilei & Feng, Wei, 2020. "A novel improved model for building energy consumption prediction based on model integration," Applied Energy, Elsevier, vol. 262(C).
    11. Wang, Guimei & Moayedi, Hossein & Thi, Quynh T. & Mirzaei, Mojtaba, 2024. "Evaluation of heating load energy performance in residential buildings through five nature-inspired optimization algorithms," Energy, Elsevier, vol. 302(C).
    12. Li, Xinyi & Yao, Runming, 2020. "A machine-learning-based approach to predict residential annual space heating and cooling loads considering occupant behaviour," Energy, Elsevier, vol. 212(C).
    13. Zhou, Xinlei & Du, Han & Xue, Shan & Ma, Zhenjun, 2024. "Recent advances in data mining and machine learning for enhanced building energy management," Energy, Elsevier, vol. 307(C).
    14. Xu, Yuanjin & Li, Fei & Asgari, Armin, 2022. "Prediction and optimization of heating and cooling loads in a residential building based on multi-layer perceptron neural network and different optimization algorithms," Energy, Elsevier, vol. 240(C).
    15. Massaoudi, Mohamed & Refaat, Shady S. & Chihi, Ines & Trabelsi, Mohamed & Oueslati, Fakhreddine S. & Abu-Rub, Haitham, 2021. "A novel stacked generalization ensemble-based hybrid LGBM-XGB-MLP model for Short-Term Load Forecasting," Energy, Elsevier, vol. 214(C).
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Li, Jin & Liu, Yiheng & Yi, Chang & Zhang, Yin, 2025. "Integrated PV-PCM electric film used in building envelope for solar heating: modelling, testing and application in Qinghai-Tibet Plateau," Renewable Energy, Elsevier, vol. 250(C).
    2. 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).
    3. Aruta, Giuseppe & Ascione, Fabrizio & Bianco, Nicola & Iovane, Teresa & Mauro, Gerardo Maria, 2025. "ANN-based model predictive control for optimizing space cooling management," Energy, Elsevier, vol. 328(C).
    4. Sun, Chunhua & Ma, Weichi & Cao, Shanshan & Yuan, Lingyu & Qi, Chengying & Wu, Xiangdong, 2025. "Dynamic heat consumption benchmarking and carbon reduction potential mining of heating stations based on improved decision tree and association rule mining," Energy, Elsevier, vol. 332(C).

    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. Song, Jiancai & Zhu, Shuo & Li, Wen & Xue, Guixiang & Gao, Xiaoyu, 2025. "A novel robust heating load prediction algorithm based on hybrid residual network and temporal fusion transformer model," Energy, Elsevier, vol. 318(C).
    2. Pachauri, Nikhil & Ahn, Chang Wook, 2023. "Weighted aggregated ensemble model for energy demand management of buildings," Energy, Elsevier, vol. 263(PC).
    3. 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).
    4. Yuan, Hongping & Zhang, Mengjie & Wang, Zeyu, 2025. "Unveiling the impact of base model selection in heterogeneous ensemble learning for building energy prediction," Energy, Elsevier, vol. 332(C).
    5. Cao, Wenqiang & Yu, Junqi & Chao, Mengyao & Wang, Jingqi & Yang, Siyuan & Zhou, Meng & Wang, Meng, 2023. "Short-term energy consumption prediction method for educational buildings based on model integration," Energy, Elsevier, vol. 283(C).
    6. Xu, X. & Hu, Y. & Atamturktur, S. & Chen, L. & Wang, J., 2025. "Systematic review on uncertainty quantification in machine learning-based building energy modeling," Renewable and Sustainable Energy Reviews, Elsevier, vol. 218(C).
    7. Li, Guanzheng & Li, Bin & Li, Chao & Wang, Shuai, 2023. "State-of-health rapid estimation for lithium-ion battery based on an interpretable stacking ensemble model with short-term voltage profiles," Energy, Elsevier, vol. 263(PE).
    8. Dong, Shengming & Liu, Tong & Hu, Xiaowei & Zhang, Chen & Hu, Pengli & Zhuang, Wenhui & Liu, Qiyou, 2025. "Investigation on the long short-term memory-based models for rural heating load prediction in Northeast China," Energy, Elsevier, vol. 318(C).
    9. 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).
    10. Fan Yang & Qian Mao, 2023. "Auto-Evaluation Model for the Prediction of Building Energy Consumption That Combines Modified Kalman Filtering and Long Short-Term Memory," Sustainability, MDPI, vol. 15(22), pages 1-16, November.
    11. He, Yan & Zhang, Hongli & Dong, Yingchao & Wang, Cong & Ma, Ping, 2024. "Residential net load interval prediction based on stacking ensemble learning," Energy, Elsevier, vol. 296(C).
    12. Chen, Feng & Deng, Hongyu & Zhang, Xiaoying, 2024. "IG-ENT:A innovative ensemble approach for the flow prediction of main steam system in thermal power plant," Energy, Elsevier, vol. 313(C).
    13. Qing Yin & Chunmiao Han & Ailin Li & Xiao Liu & Ying Liu, 2024. "A Review of Research on Building Energy Consumption Prediction Models Based on Artificial Neural Networks," Sustainability, MDPI, vol. 16(17), pages 1-30, September.
    14. Yu, Fu Wing & Ho, Wai Tung & Wong, Chak Fung Jeff, 2025. "Integrating time series decomposition and multivariable approaches for enhanced cooling energy management," Energy, Elsevier, vol. 318(C).
    15. Cui, Xuyang & Zhu, Junda & Jia, Lifu & Wang, Jiahui & Wu, Yusen, 2024. "A novel heat load prediction model of district heating system based on hybrid whale optimization algorithm (WOA) and CNN-LSTM with attention mechanism," Energy, Elsevier, vol. 312(C).
    16. Hua, Pengmin & Wang, Haichao & Xie, Zichan & Lahdelma, Risto, 2024. "District heating load patterns and short-term forecasting for buildings and city level," Energy, Elsevier, vol. 289(C).
    17. Yang, Yizhou & Duan, Qiuhua & Samadi, Forooza, 2025. "A systematic review of building energy performance forecasting approaches," Renewable and Sustainable Energy Reviews, Elsevier, vol. 223(C).
    18. Razak Olu-Ajayi & Hafiz Alaka & Hakeem Owolabi & Lukman Akanbi & Sikiru Ganiyu, 2023. "Data-Driven Tools for Building Energy Consumption Prediction: A Review," Energies, MDPI, vol. 16(6), pages 1-20, March.
    19. 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).
    20. Mohammed, Hayder I. & Rashid, Farhan Lafta & Togun, Hussein & Agyekum, Ephraim Bonah & Ameen, Arman & Hammoodi, Karrar A. & Parveen, Rujda & Kadhim, Saif Ali & Abbas, Walaa N., 2025. "The role of nanotechnology and artificial intelligence in optimizing thermal energy systems," Applied Energy, Elsevier, vol. 400(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:314:y:2025:i:c:s0360544224040337. 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.