Typesetting…
Typesetting…
Case study
Forecasting research · Preprint
Abstract
Hourly Irish electricity demand forecast 1 hour, 24 hours and 7 days ahead, combining ENTSO-E load data with NASA POWER weather. Weather-augmented Gradient Boosting was the best model at every horizon under walk-forward evaluation.
Keywords — Time-series forecasting · Gradient Boosting · SARIMAX · DeepAR · Walk-forward validation · Python
Grid operators need load forecasts that hold up from the next hour to the next week. Errors raise reserve requirements and weaken dispatch planning. The question was whether adding weather to a well-engineered machine-learning model improves accuracy beyond strong seasonal and statistical baselines, and at which horizons it helps most.
Hourly load from ENTSO-E and weather from NASA POWER. ENTSO-E replaced earlier candidate APIs because it offered consistent timestamps and reliable history.
Hourly timestamp alignment, missing-value handling and chronological consistency checks.
Calendar fields with sine/cosine encodings, demand lags at 1, 24, 48 and 168 hours, 24-hour rolling mean and standard deviation, and weather covariates.
Separate supervised tables for t+1, t+24 and t+168 so each horizon uses only information available at the forecast origin.
Each fold trains on history up to time t, forecasts the next window, then expands the window. Results are reported as mean and spread across folds.
Train → Validate future window
Expand / roll forward
Train → Validate next future window
Repeat across folds and horizons
| Model | Purpose | Why included |
|---|---|---|
| Seasonal Naive | Minimum baseline | Tests whether any model beats repeating last week |
| SARIMAX | Statistical baseline | Classical autoregressive and seasonal reference |
| Quantile GBR | ML model | Point forecasts plus prediction intervals from engineered features |
| Quantile GBR + Weather | Main model | Measures the added value of weather covariates |
| DeepAR + Weather | Deep learning benchmark | Tests whether a probabilistic sequence model beats trees |
Test-set RMSE by horizon:
| Horizon | DeepAR + Weather | GBR | GBR + Weather |
|---|---|---|---|
| t+1 | 609.88 | 174.59 | 166.48 |
| t+24 | 602.30 | 238.99 | 232.42 |
| t+168 | 535.60 | 510.75 | 455.78 |
Baselines on the one-step-ahead split:
| Model | Test RMSE | Test MAE | 80% coverage |
|---|---|---|---|
| Quantile GBR | 121.98 | 90.25 | 0.689 |
| Seasonal Naive (weekly) | 316.51 | 236.90 | n/a |
| SARIMAX (1,0,1)(1,0,1,24) | 389.85 | 325.90 | n/a |
RMSE by forecast horizon
RMSE by forecast horizon. Weather-augmented Gradient Boosting has the lowest error at every horizon.
Shafin, M. H. (2026). Statistically Validated Multi-Horizon Electricity Load Forecasting with Weather-Augmented Machine Learning under Walk-Forward Evaluation. Research Square [Preprint].
Open on Research Square ↗Ingestion, preprocessing, dataset builders, models, baselines, evaluation and the figure scripts, plus the comparison tables behind every number above.
View GitHub repository ↗