A Comparative Study of Ensemble Tree-Based Models for Short-Term Electricity Load Forecasting
Abstract
Short-term load forecasting (STLF) is an essential task for reliable power system operation, economic dispatch, reserve scheduling, and grid planning. This study aims to provide an operationally realistic and interpretable comparison of five ensemble tree-based machine learning (ML) models for national electricity demand forecasting using the publicly available Panama Short-Term Electricity Load Forecasting dataset. Gradient Boosting Regressor (GBR), XGBoost, LightGBM, CatBoost, and Random Forest are evaluated using 14 predefined walk-forward train–test splits that emulate the weekly forecasting protocol of Panama’s national grid operator. A common feature set consisting of lagged demand variables, a four-week moving average, temporal indicators, calendar variables, and Tocumen temperature is used for all models. A seasonal naive baseline, statistical significance testing, COVID-period split analysis, and feature importance comparison are also included. CatBoost achieved the best average performance with an RMSE of 55.52 MWh and MAPE of 3.80%, outperforming the seasonal naive baseline, which obtained an RMSE of 78.61 MWh. However, Wilcoxon-Holm testing showed that the narrow RMSE differences among the ensemble models were not statistically significant at the 5% level. Feature importance analysis confirmed that the four-week moving average is a dominant predictor for most models. The results show that ensemble tree-based models provide accurate, robust, and interpretable STLF performance under an operationally realistic evaluation protocol.