Cardiff University | Prifysgol Caerdydd ORCA
Online Research @ Cardiff 
WelshClear Cookie - decide language by browser settings

A hybrid XGBoost-RF residual learning model for energy consumption forecasting

Norouzi, Monire, Eyupoglu, Can and Karakus, Oktay ORCID: https://orcid.org/0000-0001-8009-9319 2026. A hybrid XGBoost-RF residual learning model for energy consumption forecasting. Frontiers in Artificial Intelligence 9 , 1967344. 10.3389/frai.2026.1967344

[thumbnail of frai-9-1967344.pdf] PDF - Published Version
Available under License Creative Commons Attribution.

Download (3MB)

Abstract

Recently, energy consumption forecasting plays an important role in power systems, smart grids, and power generation networks. Given the complex nature and time dependence of electricity consumption data, applying machine learning techniques improves energy forecasting accuracy and performance. In this research, a hybrid XGBoost–Random Forest (XGBoost–RF) model is proposed to make better the forecasting accuracy. To improve the performance of the proposed model, a residual learning-based forecasting framework is presented to learn the remaining prediction errors. In the forecasting procedure, important prediction metrics such as Mean Absolute Error (MAE), and coefficient of determination R2 are evaluated. The experimental results show that the proposed hybrid model achieves an MAE of 15.8683, Root Mean Square Error (RMSE) of 22.1588, R2 of 0.985807, and Mean Absolute Percentage Error (MAPE) of 1.3118%. Compared with the base XGBoost model, the proposed model is able to decrease MAE by 11.19% and RMSE by 11.30%. In addition, the SHapley Additive Explanations (SHAP) method is used to examine the effect of the input features on the model predictions and improve model interpretability. The SHAP results show that temporal features and lag-based variables have an important role in energy consumption forecasting. In particular, lag_1 and lag_168 are identified as the most important features. The experimental results confirmed that the proposed hybrid model achieved lower prediction errors and a higher R2 than the other evaluated models. These findings show that the proposed XGBoost-RF residual learning approach can improve energy consumption forecasting accuracy while providing useful information about the important forecasting features.

Item Type: Article
Date Type: Publication
Status: Published
Schools: Schools > Computational & Mathematical Sciences
Schools > Computer Science & Informatics
Publisher: Frontiers Media
Date of First Compliant Deposit: 16 November 2026
Date of Acceptance: 21 October 2026
Last Modified: 16 Nov 2026 12:00
URI: https://orca.cardiff.ac.uk/id/eprint/190946

Actions (repository staff only)

Edit Item Edit Item

Downloads

Downloads per month over past year

View more statistics