Integrating the expected future in load forecasts with contextually enhanced transformer models

Accurate and reliable energy forecasting is essential for power grid operators who strive to minimize extreme forecasting errors that pose significant operational challenges and incur high intra-day trading costs. Incorporating planning information – such as anticipated user behavior, scheduled events or timetables – provides substantial contextual information to enhance forecast accuracy and reduce the occurrence of large forecasting errors. Existing approaches, however, lack the flexibility to effectively integrate both dynamic, forward-looking contextual inputs and historical data. In this work, we conceptualize forecasting as a combined forecasting-regression task, formulated as a sequence-to-sequence prediction problem, and introduce contextually-enhanced transformer models designed to leverage all contextual information effectively. We demonstrate the effectiveness of our approach through a primary case study on nationwide railway energy consumption forecasting, where integrating contextual information into transformer models, particularly timetable data, resulted in a significant average mean absolute error reduction of 26.6%. An auxiliary case study on building energy forecasting, leveraging planned office occupancy data, further illustrates the generalizability of contextually enhanced transformers, showing an average reduction of 56.3% in mean absolute error. Compared to other state-of-the-art methods, our approach consistently outperforms existing models, underscoring the value of context-aware deep learning techniques in energy forecasting applications. • Reframes day-ahead load forecasting as joint forecasting plus regression. • Contextually enhanced transformers fuse historical load with expected future planning. • Railway traction grid: operational planning context cuts MAE by 26.6% vs best baseline. • Building energy: planned occupancy context cuts MAE by 56.3%, showing generalizability. • Planning context reduces large outliers: 87.8% fewer in railway, 93.0% in buildings.

Authors

Institutions

Publication Details

Journal
Energy Reports
Published
2026-03-31
DOI
https://doi.org/10.1016/j.egyr.2026.109223
Citations
1
Primary Topic
Energy Load and Power Forecasting
Type
article
Field-Weighted Citation Impact
10.72

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Integrating the expected future in load forecasts with contextually enhanced transformer models

Giovanni Sansavini, Michael F. Howland, R. Theiler, Leandro Von Krannichfeldt et al.
1 citations
Energy Reports
Energy Load and Power Forecasting
10.72
article

Integrating the expected future in load forecasts with contextually enhanced transformer models

Giovanni Sansavini, Michael F. Howland, R. Theiler, Leandro Von Krannichfeldt, Olga Fink
article en
1 citations

Abstract

Accurate and reliable energy forecasting is essential for power grid operators who strive to minimize extreme forecasting errors that pose significant operational challenges and incur high intra-day trading costs. Incorporating planning information – such as anticipated user behavior, scheduled events or timetables – provides substantial contextual information to enhance forecast accuracy and reduce the occurrence of large forecasting errors. Existing approaches, however, lack the flexibility to effectively integrate both dynamic, forward-looking contextual inputs and historical data. In this work, we conceptualize forecasting as a combined forecasting-regression task, formulated as a sequence-to-sequence prediction problem, and introduce contextually-enhanced transformer models designed to leverage all contextual information effectively. We demonstrate the effectiveness of our approach through a primary case study on nationwide railway energy consumption forecasting, where integrating contextual information into transformer models, particularly timetable data, resulted in a significant average mean absolute error reduction of 26.6%. An auxiliary case study on building energy forecasting, leveraging planned office occupancy data, further illustrates the generalizability of contextually enhanced transformers, showing an average reduction of 56.3% in mean absolute error. Compared to other state-of-the-art methods, our approach consistently outperforms existing models, underscoring the value of context-aware deep learning techniques in energy forecasting applications. • Reframes day-ahead load forecasting as joint forecasting plus regression. • Contextually enhanced transformers fuse historical load with expected future planning. • Railway traction grid: operational planning context cuts MAE by 26.6% vs best baseline. • Building energy: planned occupancy context cuts MAE by 56.3%, showing generalizability. • Planning context reduces large outliers: 87.8% fewer in railway, 93.0% in buildings.

Energy ReportsVol. 15
Board of the Swiss Federal Institutes of Technology (CH), École Polytechnique Fédérale de Lausanne (CH), Massachusetts Institute of Technology (US), Swiss Federal Laboratories for Materials Science and Technology (CH)
École Polytechnique Fédérale de Lausanne
Affordable and clean energy
Openalex Percentile: Top 2%
Energy Load and Power Forecasting
10.72
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.