How Alliander forecasts grid congestion with OpenSTEF
Dutch grid operator Alliander built OpenSTEF, a machine learning pipeline that forecasts the load at each grid location hours to days ahead, so operators can act on congestion before an asset overloads.
AllianderNetherlandsElectric powerScaled
- Scale
- Thousands of grid locations
- Scenario
- Short-term grid load forecasting for congestion management
- Business function
- Energy and asset operations
- Kind of solution
- Forecasting and planning
- Who built it
- Built in-house
- Human oversight
- Assists people
- Organization
- Enterprise
- AI types
- Machine learning
- People served
- ~1/3 of The Netherlands
- Sites
- hundreds of locations
tl;drAlliander runs OpenSTEF's machine learning load forecasts at thousands of grid locations.See the results
Alliander, the largest distribution system operator in the Netherlands, uses OpenSTEF, a machine learning pipeline that it built, to forecast the load at each grid location hours to days ahead4. Operators use the forecasts to find the hours when an asset would overload and to act before it does3.
Alliander open-sourced OpenSTEF and contributed it to LF Energy, which hosts it as a shared project for grid operators and other energy companies4. In August 2026, LF Energy released OpenSTEF 4.0 and reported that Alliander runs OpenSTEF in production at thousands of grid locations2, 1.
Before the deployment
Alliander distributes electricity and gas to about a third of the Netherlands5. Renewable generation and the electrification of energy use pushed its grid toward capacity, so it needed forecasts of the grid load hours to days ahead4.
- Large portions of the Dutch network have reached their connection limits, and thousands of customers wait for access3.
- Physical expansion of the grid continues, and short-term operational measures are needed beside it3.
- The Dutch grid is nearing its limits, which makes short-term load forecasts central to active congestion management6.
“We want to better utilize the grid that we currently have”
Alliander started OpenSTEF to anticipate congestion in the distribution grid, to support safety analysis in the transmission grid, and to balance supply and demand locally within the grid’s limits4.
What was built
OpenSTEF takes a time series of measured load or generation at one grid location and runs a fully automated machine learning pipeline that returns a probabilistic forecast of the future load4. The work divides into these parts:
- Forecasting models: Asset-specific forecasting models predict the load on each grid asset from calendar, weather, historical load, and market price features6.
- Pipeline software: Validates the input data, trains the model, evaluates the forecast, and issues a labeled fallback forecast when inputs fail, so a forecast is always available4, 5.
- Delivery: The forecasts reach other systems through an API and reach expert users through a graphical user interface4.
- Grid operators: Use the probabilistic forecasts to make risk-based decisions, toward a standard policy for reacting to predicted events4.
By 2025, the forecasts served five grid tasks, and each task uses its own model configuration because the tasks need different accuracy3:
| Forecasting task | What the forecast drives | Source |
|---|---|---|
| Peak hours that could violate asset limits, one or two days ahead | Flexibility activation for customers on flexible contracts in constrained areas | 3 |
| Load where measurements don’t arrive in real time | State estimation of cable loading across medium-voltage routes | 3 |
| Free capacity at specific hours | Capacity that Alliander allocates to charging point operators | 3 |
| Day-ahead load at each coupling point with TenneT | The forecasts that Alliander must send to TenneT, accurate in every hour | 3 |
| Total load of an area, with calendar effects | The day-ahead purchase of grid losses | 3 |
Rollout
OpenSTEF 4.0 splits the software into separate packages for core data structures, forecasting models, a metalearning layer, a backtesting and evaluation framework called BEAM, and pretrained foundation models1. Its metalearning layer runs several forecasters in parallel and learns, quantile by quantile, which one to trust2.
Technology and architecture
OpenSTEF is organized as containerized microservices built for cloud deployment, and it accepts any scikit-learn compatible machine learning model4.
| Layer | What they used | Role | Source |
|---|---|---|---|
| Solution platform | OpenSTEF | Runs the automated pipeline from input data to a probabilistic forecast for each grid location | 4, 2 |
| Forecasting model | Asset-specific forecasting models | Predict the load on each grid asset from calendar, weather, historical load, and price features | 6 |
| Data preparation | Input validation and feature engineering | Checks the input data and derives the features that the models train on | 4, 5 |
| Service API | Forecast API | Delivers the forecasts to the systems that use them | 4 |
| Operations console | Expert graphical user interface | Shows the forecasts to expert users | 4 |
| Simulation or surrogate model | Power Grid Model | Estimates cable loading across medium-voltage routes, with forecasts in place of missing measurements | 3 |
Data inputs
- Measured load: The time series of measured net load or generation at each grid location is the target, and its lagged values are features4, 5.
- Weather forecasts: Enter as external predictors, and the pipeline derives further weather features from them4, 5.
- Market prices: Enter as external predictors next to the weather4, 5.
- Typical profiles and calendar information: Add the patterns of a normal day and of holidays5.
Integrations
- TenneT: Alliander sends TenneT day-ahead load forecasts for each coupling point over its interfaces with the transmission system operator3, 4.
- Power Grid Model: The forecasts fill in the measurements that don’t arrive in real time, so that Power Grid Model can estimate cable loading across entire medium-voltage routes3.
How one congestion forecast flows through the system
- The pipeline receives the time series of measured load for one grid location4.
- The pipeline validates the input data and adds the external predictors: weather forecasts, market prices, and typical profiles4, 5.
- The pipeline derives features such as lagged load, derived weather, and holidays. It copies the training data for every forecast horizon and adds the horizon as a feature5.
- The pipeline trains the model, makes the forecast, evaluates it, and post-processes it5.
- If measurements are defective or a data source is unavailable, the pipeline issues a fallback forecast and labels it, so the decision can later be traced to the forecast it used4.
- In a constrained area with customers on flexible contracts, the forecast flags the peak hours one or two days ahead that could violate asset limits3.
- Operators activate flexibility before the peak, for example by curtailment3, 5.
Results
- Scale: OpenSTEF delivered operational forecasts at hundreds of grid locations for Alliander in December 20224. By August 2026, Alliander ran it in production at thousands of grid locations2, 1.
- Uses: In 2022, the forecasts served grid safety analyses, communication on the interfaces between the distribution and transmission system operators, and smart-grid innovations4. By 2025, they also drove flexibility activation, capacity for charging point operators, and the purchase of grid losses3.
- A peak that didn’t happen: In an example that Alliander showed at FOSDEM in February 2024, the forecast load surpassed the grid limit. Curtailment shaved the peak, and the realized load had no peak5.
- Weather ensembles in tests: Alliander researchers replaced deterministic weather inputs with ensemble quantiles. In tests on real grid assets, accuracy, calibration, peak detection, and forecast stability improved6.
Lessons learned
One pipeline serves several grid tasks because OpenSTEF lets each task use its own model configuration. Pleiter said that different grid objectives require different models, aggregation levels, and accuracy targets3. The rollout grew from hundreds of grid locations to thousands over almost four years4, 2.
Imperfect input data shaped the design. Frank Kreuwel, a data scientist at Alliander and lead maintainer of OpenSTEF, said that measurements can become defective and data sources unavailable, which is why the pipeline validates inputs and keeps labeled fallback forecasts4. Measurements that don’t arrive in real time also made state estimation hard, and forecasts now fill that gap3.
The model types have limits. Tree-based models such as LightGBM and XGBoost can’t extrapolate beyond the values they were trained on, and linear models miss non-linear patterns. LF Energy says the trade-off matters most during congestion events and seasonal transitions. OpenSTEF 4.0 adds an ensemble that combines both kinds2.
Weather uncertainty is still open work. The ensemble tests improved the forecasts, but Alliander’s researchers named two operational challenges: dependencies between weather variables, and combining specialized weather forecasts with ensembles6. Kreuwel said in 2022 that OpenSTEF was effective at short-term forecasting but that there was still work to be done4.
The account comes from Alliander’s own talks and researchers and from LF Energy, the foundation that hosts OpenSTEF. The IT Brief report repeats LF Energy’s release4, 2, 1.
Case study scorecard
Sources by publication date
- Organization 1
- Vendors and partners 4
- Press, academic, and regulators 2
Build this solution yourself
Analysis
What you need
- Measured load at each location you forecast: The pipeline trains on the measured load of each grid location, and Alliander needed forecasts to fill gaps where measurements arrive late. Check how complete and how timely your measurements are4, 3.
- Weather and price feeds: Weather forecasts and market prices are the external predictors that the models combine with the load history4.
- A process that acts on the forecast: Alliander’s forecasts pay off through flexible contracts, capacity allocation to charging point operators, and day-ahead reporting to TenneT. You need such a process before a forecast changes anything on the grid3.
- Data engineering and MLOps of your own: OpenSTEF 4.0 leaves data engineering and MLOps integration to the user, so you need people who connect it to your data and run it2.
Reference architecture
Forecasting and planning
A forecasting and planning solution predicts demand, supply, load, or events from history and outside data, and turns the prediction into a plan such as orders, prices, stock positions, reserve, or crews. Each cycle, forecasting models turn fresh data into a forecast, and an optimizer can turn it into a proposed plan within set targets and limits. Planners decide and enter the plan in the operational system, or they steer an automatic plan through targets and overrides.
- Data feeds and connectors
- Data platform
- Data preparation (documented in this case study)
- Forecasting models (documented in this case study)
- Optimizer
- Approval rules
- Simulation or digital twin (documented in this case study)
- Task agents
- Planning workspace (documented in this case study)
- Operational system
- Training pipeline
- Forecasting and planning platform (documented in this case study)
A check mark shows a building block that this case study's sources document.
Open the reference architectureOthers who built it
- Sigholm: Its Aurora optimization platform uses OpenSTEF to forecast heat demand at city scale for district heating in Sweden3.
- National Energy System Operator (NESO): Its control room runs Quartz Solar from Open Climate Fix, which combines machine learning, satellite imagery, and weather data to forecast solar output up to days ahead7.
In the library
- AI agents draft production plans at Siemens' Erlangen plant Siemens
- Walmart plans inventory with AI forecasts and a digital twin Walmart
- Albertsons puts AI replenishment in every fresh department Albertsons Companies
- De Rooy predicts unplanned pickups with machine learning De Rooy Transport
- AstraZeneca calibrates transit lead times with Aera's AI AstraZeneca
- LNER's machine learning tool flags trains at risk of delay LNER
Cite this case study
Enterprise AI Case Studies. "How Alliander forecasts grid congestion with OpenSTEF." Updated Nov 21, 2026. https://case-studies.ai/case-studies/operational-technology/OT-033-grid-load-forecasting-openstef-alliander/
@misc{csai-ot-033,
author = {{Enterprise AI Case Studies}},
title = {{How Alliander forecasts grid congestion with OpenSTEF}},
year = {2026},
note = {Updated 2026-11-21},
url = {https://case-studies.ai/case-studies/operational-technology/OT-033-grid-load-forecasting-openstef-alliander/}
}Sources
The following reporting, and every passage quoted from it, belongs to its publisher, not to this site. Sources and ownership
- Source 1:
Lf Energy launches modular OpenSTEF 4.0 forecast suite
Supporting excerpts (5)
LF Energy has released OpenSTEF 4.0, restructuring its open source short-term energy forecasting software.
OpenSTEF is already used in production by Dutch distribution system operator Alliander
Alliander runs the software at thousands of grid locations
The new version splits the software into separate packages, each covering a distinct part of the forecasting process.
These include core data structures, forecasting models, a metalearning layer, a backtesting and evaluation framework called BEAM, and a package for pretrained foundation models.
- Source 2:
OpenSTEF 4.0 Is Here: Any ML Approach. Any IT Stack. One Energy Forecasting Ecosystem.
Supporting excerpts (7)
Alliander runs OpenSTEF in production at thousands of grid locations today
The same pipeline that is powering distribution congestion management for Alliander
Tree based models like LightGBM and XGBoost capture complex, non-linear interactions between weather, time of day, and load, but they cannot extrapolate beyond the range of values they were trained on.
Linear models can extrapolate but miss non-linear patterns.
That tradeoff matters most during congestion events and seasonal transitions, exactly when accurate forecasts matter most.
runs multiple forecasters in parallel and learns, quantile by quantile, when to trust each one
OpenSTEF 4.0 focuses more than ever on data science, leaving the data engineering and MLops integration entirely to the user
- Source 3:
The Value of Open Source Short-term Energy Forecasting Demonstrated Through Real-world Use Cases
Supporting excerpts (18)
Large portions of the Dutch network have reached their connection limits, and thousands of customers wait for access.
Physical expansion continues, yet short-term operational solutions are essential.
We want to better utilize the grid that we currently have
When new customers with flexible contracts are connected to constrained areas, operators must predict overloads one or two days ahead.
OpenSTEF identifies peak hours that could violate asset limits, enabling pre-emptive flexibility activation.
State estimation is challenging because not all measurements arrive in real time.
Alliander uses OpenSTEF to forecast missing data so that grid models such as Power Grid Model can estimate cable loading across entire MV routes.
Operators forecast available headroom at specific hours and allocate this capacity to charging point operators.
As a customer of TenneT, Alliander must send day-ahead load forecasts for each coupling point.
Unlike congestion use cases, this requires accuracy across every hour.
OpenSTEF supports different model configurations to meet these requirements.
Forecasting total area load allows Alliander to estimate grid losses, which must be procured day ahead.
This highly aggregated signal demands different features, including calendar effects.
different grid objectives require different models, aggregation levels, and accuracy targets
There is quite a variety in what we need from forecasting
Proprietary forecasting engines often duplicate work and create maintenance burdens.
relies on OpenSTEF to forecast heat demand at city scale
Today, the software optimizes heat production for over half of Sweden
- Source 4:
OpenSTEF Delivers Operational Forecasts at Hundreds of Grid Locations for Alliander
Supporting excerpts (19)
the largest distribution system operator (DSO) in the Netherlands
required accurate forecasts of the load on the electricity grid looking hours to days ahead
With the rise in renewable energy and electrification of energy consumption pushing the capacity of grids even further
Alliander started the project OpenSTEF (short for Short-Term-Energy-Forecasting) to anticipate congestion in the distribution grid, allow for grid safety analysis in the transmission grid, and enable smart grid innovations to locally balance supply and demand within the constraints of the grid.
Given a time series of measured (net) load or generation, a fully automated machine learning pipeline is executed which delivers a probabilistic forecast of future load.
In the real world, input data is not perfect, and measurements can become defective or data sources become unavailable
OpenSTEF was built to provide validation of the input data, combine measurements with external predictors such as weather data and market prices, train any scikit-learn compatible machine learning model, and deliver forecasts via both an API and an expert graphical user interface.
organized in a microservice architecture optimized for cloud deployment
OpenSTEF is fully containerized and runs on any container platform.
Alliander has also completely open sourced the OpenSTEF code and contributed the project to LF Energy to ensure it is neutrally governed.
allow for structured collaboration
Today, OpenSTEF is delivering operational forecasts at hundreds of locations in the grid for Alliander.
These forecasts are used for grid safety analyses, communication on DSO-to-TSO interfaces, and to enable smart-grid based innovations.
OpenSTEF deploys multiple fallback strategies, meaning a forecast is always available.
When a fallback forecast is issued this is always labeled as such making it possible to reconstruct on which forecasts a decision is based.
OpenSTEF enables making risk-based decisions by providing probabilistic forecasts.
This way users can work towards a standard policy to react to predicted events.
particularly relevant for meeting EU commision regulation No. 543/2013
OpenSTEF is proving to be highly effective at short term forecasting, but there is still work to be done.
- Source 5:
OpenSTEF: Open Short Term Energy Forecasting
Supporting excerpts (10)
Distribution of energy (electricity & gas) ~1/3 of The Netherlands
Train model Make forecastData preprocessing Evaluate forecast Post processing
External Predictors Weather Forecasts Market Prices Typical Profiles
Lagged Load Derived Weather Calendar info
HolidayDew pointWind energyLoad yesterdayE1C_AMI_AAPXWindspeed Load Datetime
Duplicate data for every training horizon.
HorizonHolidayDew pointWind energyLoad yesterdayE1C_AMI_AAPXWindspeed Load Datetime
Use curtailment to ‘shave the peak’
Forecast of load surpassed grid limitation
Realized load has no peak.
- Source 6:
Supporting excerpts (7)
Alliander, Arnhem, Netherlands
The electricity grid of the Netherlands is nearing its limits, making short-term load forecasts central to active congestion management.
Using the open-source OpenSTEF framework, we train asset-specific forecasting models that predict grid load from calendar, weather, historical load, and market price features.
Our approach replaces deterministic meteorological inputs with ensemble quantiles during inference.
Tests on real grid assets show improved accuracy, calibration, peak detection and forecast stability.
We also identify two key operational challenges: managing dependencies between weather variables and combining different types of specialized weather forecasts with ensembles.
EGU General Assembly 2026, Vienna, Austria, 3–8 May 2026
- Source 7:
Supporting excerpts (2)
Quartz Solar, its AI-powered solar forecasting tool, is now live in the National Energy System Operator
Quartz Solar combines machine learning, live satellite imagery and weather data to generate forecasts up to days ahead
Comments
Start the conversation.
Invited members of the library comment here. Sign in to join the conversation.