Bayesian Hyperparameter Optimization of Gradient Boosting Regression for Robust Building Energy Consumption Prediction

Wan Nor Harman bin Wan Yahaya(1*), Meor Ahmad Zainal bin Meor Muhamud(2), Juanda Hakim Lubis(3), Wan Mahafez bin Rosni(4),

(1) Department of Mechanical Engineering, Politeknik Sultan Abdul Halim Mu'adzam Shah, Kedah, Malaysia
(2) Department of Electrical Engineering, Politeknik Tuanku Syed Sirajuddin, Perlis, Malaysia
(3) Information Technology Study Program, Faculty of Engineering and Computer Science, Universitas Pembinaan Masyarakat Indonesia, Medan, Indonesia
(4) Department of Mechanical Engineering, Politeknik Sultan Abdul Halim Mu'adzam Shah, Kedah, Malaysia
(*) Corresponding Author

Abstract


Accurate ten-minute-ahead appliance-energy forecasting is challenged by rapid household load fluctuations and strongly time-dependent observations. This study evaluates Bayesian hyperparameter optimization of Gradient Boosting Regression using chronological development and a subsequent held-out test. The UCI Appliances Energy dataset yields 19,590 eligible records, with 11,754 training, 3,918 development, and 3,918 test observations. Bayesian tuning and matched random search each completed 35 recorded development evaluations and were compared with a fixed-parameter Gradient Boosting baseline and persistence forecasting. Bayesian tuning reduced test RMSE from 86.06 to 57.96 Wh and improved R² from 0.039 to 0.564; random search reached 62.38 Wh. The persistence comparator nevertheless achieved a lower MAE than Bayesian tuning (26.03 versus 27.61 Wh), showing that model rankings depend on the loss criterion. The observed improvement in squared-error performance supports Bayesian search for this benchmark, but a single chronological split and unavailable external experiment modules limit claims of robustness and independent reproducibility.

Full Text:

PDF

References


G. Chen et al., “A systematic review of building energy consumption prediction: From perspectives of load classification, data-driven frameworks, and future directions,” Applied Sciences, 2025, doi: 10.3390/app15063086.

J. Ji, H. Yu, X. Wang, and X. Xu, “Machine learning application in building energy consumption prediction: A comprehensive review,” Journal of Building Engineering, 2025, doi: 10.1016/j.jobe.2025.112295.

Z. Wang, Y. Hong, L. Huang, M. Zheng, H. Yuan, and R. Zeng, “A comprehensive review and future research directions of ensemble learning models for predicting building energy consumption,” Energy Build., 2025, doi: 10.1016/j.enbuild.2025.115589.

Y. Li, F. Arellano-Espitia, R. Aler, L. Igualada, and C. Corchero, “Data-driven methods and their applications to building HVAC energy consumption prediction: A review,” Journal of Building Engineering, 2025, doi: 10.1016/j.jobe.2025.114612.

Q. Yin, C. Han, A. Li, X. Liu, and Y. Liu, “A review of research on building energy consumption prediction models based on artificial neural networks,” Sustainability, 2024, doi: 10.3390/su16177805.

A. Ali, R. Jayaraman, E. Azar, and M. Maalouf, “A comparative analysis of machine learning and statistical methods for evaluating building performance: A systematic review and future benchmarking framework,” Build. Environ., 2024, doi: 10.1016/j.buildenv.2024.111268.

J. Pan, X. Guo, H. Fu, Y. Zhang, and J. Zhang, “Machine learning prediction of building energy consumption by combining Bayesian optimization and the SHAP model,” Int. J. Green Energy, 2026, doi: 10.1080/15435075.2026.2619448.

L. E. Atılgan and D. B. Kara, “A Bayesian optimized LSboost framework for energy usage intensity prediction in a university office building,” Building Services Engineering Research and Technology, 2026, doi: 10.1177/01436244261435319.

Z. Zhang, L. Ling, J. He, and H. Yang, “A Bayesian-optimized LightGBM approach for reliable cooling load prediction,” Buildings, 2026, doi: 10.3390/buildings16071357.

Z. Mustaffa and M. H. Sulaiman, “Advanced forecasting of building energy loads with XGBoost and metaheuristic algorithms integration,” Energy Storage and Saving, 2025, doi: 10.1016/j.enss.2025.03.005.

B. Bischl et al., “Hyperparameter optimization: Foundations, algorithms, best practices, and open challenges,” WIREs Data Mining and Knowledge Discovery, 2023, doi: 10.1002/widm.1484.

H. Hewamalage, K. Ackermann, and C. Bergmeir, “Forecast evaluation for data scientists: Common pitfalls and best practices,” Data Min. Knowl. Discov., 2023, doi: 10.1007/s10618-022-00894-5.

B. Jeon, J. Heo, H. Joo, D. Kim, and J. Kim, “Data leakage from full-series signal decomposition inflates the reported accuracy of short-term energy forecasting hybrids: A leakage-controlled re-evaluation,” Int. J. Energy Res., 2026, doi: 10.1155/er/4433079.

J. Moon, M. Maqsood, D. So, S. W. Baik, S. Rho, and Y. Nam,

“Advancing ensemble learning techniques for residential building electricity consumption forecasting: Insight from explainable artificial intelligence,” PLoS One, 2024, doi: 10.1371/journal.pone.0307654.

Z. Ma, G. Jiang, and J. Chen, “Physics-informed ensemble learning with residual modeling for enhanced building energy prediction,” Energy Build., 2024, doi: 10.1016/j.enbuild.2024.114853.

Z. Ma, G. Jiang, Y. Hu, and J. Chen, “A review of physics-informed machine learning for building energy modeling,” Appl. Energy, 2025, doi: 10.1016/j.apenergy.2024.125169.

N. Shirzadi, D. Lau, and M. Stylianou, “Surrogate modeling for building design: Energy and cost prediction compared to simulation-based methods,” Buildings, 2025, doi: 10.3390/buildings15132361.

A. Mahajan, S. Das, W. Su, and V.-H. Bui, “Bayesian-neural-network-based approach for probabilistic prediction of building-energy demands,” Sustainability, 2024, doi: 10.3390/su16229943.

Y.-J. Park et al., “Probabilistic forecasting for building energy systems using time-series foundation models,” Energy Build., 2025, doi: 10.1016/j.enbuild.2025.116446.

R. Wang, L. Bai, R. Rayhana, and Z. Liu, “Personalized federated learning for buildings energy consumption forecasting,” Energy Build., 2024, doi: 10.1016/j.enbuild.2024.114762.

S. Y. Chin, K. Hasikin, N. S. Mohamed Zaid, and A. A. Jamaludin, “Integrating behavioural and environmental data for energy forecasting in tropical campus buildings using machine learning techniques,” Journal of Building Engineering, 2025, doi: 10.1016/j.jobe.2025.114134.

C. Wu, X. Zhang, Y. Li, Z. Chen, and Z. Zhang, “Cross-building energy consumption forecasting with deep transfer learning,” Journal of Building Engineering, 2026, doi: 10.1016/j.jobe.2025.114695.

K. Nazir, S. A. Memon, and A. Saurbayeva, “A novel framework for developing a machine learning-based forecasting model using multi-stage sensitivity analysis to predict the energy consumption of PCM-integrated building,” Appl. Energy, 2024, doi: 10.1016/j.apenergy.2024.124180.

A. T. Nguyen, Y. Ahn, S. Park, S. Park, and D. H. Pham, “Meta learning regression framework for energy consumption prediction in retrofitted buildings: A case study of South Korea,” Journal of Building Engineering, 2024, doi: 10.1016/j.jobe.2024.110403.

I. C. Akyol et al., “Machine learning based prediction of long-term energy consumption and overheating under climate change impacts using urban building energy modeling,” Sustain. Cities Soc., 2025, doi: 10.1016/j.scs.2025.106500.

C. Song et al., “A novel deep-learning framework for short-term prediction of cooling load in public buildings,” J. Clean. Prod., 2024, doi: 10.1016/j.jclepro.2023.139796.

D. He, Y. Zhang, and M. F. Bin Ashab, “Proposing hybrid prediction approaches with the integration of machine learning models and metaheuristic algorithms to forecast the cooling and heating load of buildings,” Energy, 2024, doi: 10.1016/j.energy.2024.130297.

H. Hosamo and S. Mazzetto, “Performance evaluation of machine learning models for predicting energy consumption and occupant dissatisfaction in buildings,” Buildings, 2025, doi: 10.3390/buildings15010039.

L. U. G. E. Gunasinghalge, A. Alazab, and M. A. Talukder, “Artificial intelligence for energy optimization in smart buildings: A systematic review and meta-analysis,” Energy Informatics, 2025, doi: 10.1186/s42162-025-00592-8.

D. Kömürcü and E. Edis, “Machine learning modeling for building energy performance prediction based on simulation data: A systematic review of the processes, performances, and correlation of process-related variables,” Buildings, 2025, doi: 10.3390/buildings15081301.

J. A. Paravantis et al., “Statistical and machine learning approaches for energy efficient buildings,” Energy Build., 2025, doi: 10.1016/j.enbuild.2025.115309.

Y. Boutahri and A. Tilioua, “Machine learning-based predictive model for thermal comfort and energy optimization in smart buildings,” Results in Engineering, 2024, doi: 10.1016/j.rineng.2024.102148.

S. Chen, T. Kaufmann, and R. J. Martin, “Surrogate gradient methods

for data-driven foundry energy consumption optimization,” The International Journal of Advanced Manufacturing Technology, 2024, doi: 10.1007/s00170-024-14219-x.

D. Radočaj, M. Jurišić, I. Plaščak, and L. Galić, “Randomness in data partitioning and its impact on digital soil mapping accuracy: A comparison of cross-validation and split-sample approaches,” Agronomy, 2025, doi: 10.3390/agronomy15112495.


Refbacks

  • There are currently no refbacks.


Copyright (c) 2026 Zahra: Bulletin Big data, Data Science and Artificial Intelligence

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.