A hybrid XGBoost-RF residual learning model for energy consumption forecasting.
Monire Norouzi, Can Eyupoglu, Oktay Karakuş
Department of Artificial Intelligence, Haliç University, Istanbul, Türkiye. · Department of Computer Science and Informatics, Cardiff University, Cardiff, United Kingdom.
Key points
From the paper's conclusion- 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.
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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Residential energy consumption dynamics: A SHAP-based interpretation, k-means clustering, and predictive modellingGreen Energy and Resources · 2026
- Retrospective Forecasting Using Provincial Grid Data and a Quota-Based Hybrid Physical-AI Model.Journal of visualized experiments : JoVE · 2026
- A Hybrid Machine Learning–Optimization Framework for Energy Demand Forecasting and Decision Support in Smart InfrastructureMethods in Science and Technology Studies · 2026
- IoT-Based Residential Energy Forecasting with Explainable Feature Selection for Sustainable Building Management in the Industry 5.0 EraSustainability · 2026
- Explainable Artificial Intelligence for Three-Hour-Ahead Natural Gas Consumption Forecasting with Uncertainty QuantificationApplied Sciences · 2026
- Enhancing residential load forecasting accuracy through dynamic feature selection and ensemble machine learning models: A real-world scenario in Southern FinlandEnergy and Buildings · 2025