My research / Generative AI · Energy / 5 min read

From one forecast to a thousand futures.

A single forecast tells you the most likely outcome. Planning a renewable grid also needs the unlikely ones. This is how I want to use diffusion models to generate realistic solar and wind scenarios, extreme winter weeks included.

Illustration of many possible solar and wind generation paths fanning out from today, with a dark winter period highlighted where output drops close to zero

In my first paper, our model forecast 72,530 MW of solar energy for 2025. A single number like that is useful, but it hides the question that matters most to the people running a power grid: what could happen, and how bad could it get? My next research direction is about answering that question with generative AI.

Why one number is not enough

A point forecast gives you the expected outcome. Grid planning, however, is about ranges and worst cases: how much storage to build, how much backup capacity to keep ready, and when to rely on imports from neighbouring countries.

Two futures can have exactly the same average output and still be completely different. In one, wind and sun deliver steadily all week. In the other, output collapses for several days in a row. A single forecast cannot tell these apart. A set of scenarios can.

A scenario is one plausible path the future might take: hour by hour, for both solar and wind together. If a model can generate thousands of realistic scenarios, we can count how often things go wrong, how long the bad periods last, and how deep they get.

The problem with dark, windless weeks

Germans have a word for the situation that worries energy planners most: Dunkelflaute, roughly "dark doldrums". It describes winter periods when short days and heavy cloud keep solar output low while a calm, stable weather system takes the wind away at the same time.

These periods are rare, they can last for days, and they can cover large parts of Europe at once. That is exactly when a grid built around renewables needs backup the most. It also makes them hard to model: a system trained to be right on average will tend to underestimate events it has seen only a handful of times.

Why solar and wind must be generated together

A common shortcut is to model solar and wind separately and then combine the results. That quietly assumes the two are independent, but they are not. Both are driven by the same weather systems, and a Dunkelflaute is by definition a joint event: both sources fail together.

So the generator has to learn the joint behaviour of solar and wind: how they move together over hours and days, how they change with the season, and ideally how they vary across regions.

What diffusion models bring

Diffusion models are the family of generative models behind many modern image generators. The idea is simple to describe: take real data, gradually add noise until nothing is left but randomness, and train a neural network to reverse that process step by step. Once trained, the model can start from fresh random noise and turn it into a new, realistic sample.

For energy, a "sample" is not an image but a multi-day trajectory of solar and wind generation. Every run produces a different but plausible future, so generating thousands of scenarios is straightforward. The model can also be conditioned, for example on the month or season, so that we can ask specifically for plausible January weeks.

I also want to compare diffusion with flow matching, a closely related approach that learns a more direct path from noise to data and can often generate samples in fewer steps. This is generative AI used for what it does best: describing the whole range of possible outcomes, not just the most likely one. It is a natural next step from my first paper, whose title already pointed towards generative AI.

How I plan to approach it

The plan moves from data to a model I can trust on the rare events:

  1. DataHourly solar and wind generation for several European countries, building on Open Power System Data, with weather reanalysis data such as ERA5 for a longer history of rare winters
  2. BaselinesSimpler scenario generators to beat first, such as resampling historical periods and a statistical copula model
  3. ModelA conditional diffusion model that generates multi-day joint solar and wind trajectories, plus a flow-matching variant
  4. ExtremesCheck whether generated scenarios contain Dunkelflaute events as often, as long, and as severe as history, and explore guiding the model towards rare events
  5. EvaluationProbabilistic scores for the whole distribution, plus dedicated statistics for extreme events

How to judge a thousand futures

When a model produces a distribution instead of a single number, ordinary accuracy metrics no longer work. These are the measures I plan to use:

  • CRPS (continuous ranked probability score): how well the predicted distribution for each hour matches what actually happened
  • Energy score: the multivariate version, which judges a whole trajectory of solar and wind at once
  • Variogram score: whether the relationships between hours and between the two sources look right
  • Extreme-event statistics: how often low-output periods occur, how long they last, and how deep they go, compared with the historical record
  • Calibration checks: whether real outcomes fall inside the generated range as often as they should

A model can score well on average and still miss the rare weeks that matter most. Extreme events need to be evaluated on their own, not hidden inside an average.

What makes this hard

  • Rare events mean little data. There are only a limited number of severe Dunkelflaute periods in the historical record, which makes both training and evaluation statistically delicate.
  • Long horizons. A Dunkelflaute can last for days, so the model has to generate long, coherent sequences rather than a few hours.
  • Physical realism. Generated scenarios must respect basic rules: no solar output at night, output within installed capacity, and realistic seasonal patterns.
  • Honest evaluation. It is easy to produce scenarios that look convincing. Showing that they are statistically right, especially in the tails, is the real work.

Why it matters

Europe is building a power system that depends more and more on the weather. Planning for the average is no longer enough; storage, backup capacity, and interconnections need to be sized for the difficult weeks too. Better scenarios, especially of the worst periods, can make those decisions more grounded.

This is a research direction I am actively exploring, not a finished result. I will share progress here in My research: the data, the first generated scenarios, and what works and what does not.

This builds on my first paper. Read the summary: Renewable energy prediction using deep learning and generative AI.

← More from my research