The business problem
Electricity has to be balanced every minute. Grid operators forecast load to schedule generation. Generators forecast output to bid into markets. Traders forecast both to take positions.
Errors cost money. Too little scheduled means expensive balancing power. Too much means energy wasted or sold at a loss.
What makes it hard
- Weather drives most of it. Temperature drives heating and cooling load. Cloud cover drives solar output. Wind speed drives wind output.
- The inputs are themselves forecasts. Tomorrow's temperature is a forecast, with its own error, at the time the load forecast is made.
- Several cycles at once. Load follows the hour of the day, the day of the week and the season at the same time, plus holidays.
- Many sites, many horizons. A utility may forecast thousands of feeders and plants, at 15-minute, hourly and daily steps, for several horizons.
- New sites have little history. A solar plant or wind farm commissioned last month has a few weeks of output.
The data a utility usually has
Readings come from meters and plant control systems. Weather forecasts come from one or more providers.
| Data | Example | When it is known |
|---|---|---|
| Meter or plant readings | Load or output every 15 minutes or hour | Past only |
| Weather forecasts | Temperature, cloud cover, wind speed | Ahead, updated several times a day |
| Measured weather | Measured temperature and sunlight | Past only |
| Calendar | Holidays, school terms, daylight saving changes | Known ahead |
| Plant details | Capacity, panel tilt, turbine model, location | Fixed |
| Market and grid data | Day-ahead prices, planned outages | Ahead, for the next day |
How it is solved today
The usual approach is a model per site, or per group of sites.
- A separate model is built for each site or group of sites, and often for each horizon.
- Features are built by hand: lagged load, temperature terms for heating and cooling, hour and weekday flags, holiday flags.
- A regression or boosted tree model is fitted on history, with measured weather in place of the weather forecast.
- For solar and wind, a physical model of the plant turns weather forecasts into output, and a statistical model corrects its errors.
- Models are retrained when the weather provider, the plant or the demand pattern changes. New sites wait for enough history.
Where it falls short
- Thousands of site models have to be built, monitored and retrained.
- A model trained on measured weather but used with forecast weather is too confident, because it never sees the weather error in training.
- Hand-built calendar features miss combinations, such as a holiday that falls on a hot day.
- A new plant has no model until it has months of history.
- Ranges, when they exist, often come from a separate method.
How tabSutra solves it
Weather forecasts go in as known-ahead inputs
You send each site's readings with its weather and calendar columns, and rows for the coming intervals with the weather forecast for each. You name the target, the site column, the time column and the horizon.
Readings and weather
| Feeder | Time | Load | Temp. | Holiday |
|---|---|---|---|---|
| F-12 | 1 Dec 18:00 | 412 MW | 4.1 °C | no |
| F-12 | 1 Dec 19:00 | 438 MW | 3.6 °C | no |
| F-12 | 2 Dec 18:00 | ? | 1.2 °C | no |
| F-12 | 2 Dec 19:00 | ? | 0.8 °C | no |
Future rows carry the weather forecast for each interval.
tabSutra
- Reads all the sites of a region together
- Uses weather forecasts as known-ahead inputs and readings as past-only inputs
- Forecasts every interval of the horizon in one pass
- Forecasts a new site from sites like it
Forecast for 2 December
| Time | Median | 80% range |
|---|---|---|
| 17:00 | 431 MW | 409 to 455 |
| 18:00 | 455 MW | 430 to 482 |
| 19:00 | 468 MW | 441 to 497 |
| 20:00 | 452 MW | 426 to 480 |
Feeder F-12. Every site and interval gets a range.
Known-ahead and past-only inputs
Some inputs are known for the future: weather forecasts, holidays, planned outages. Others are known only for the past: measured sunlight, turbine sensor readings, the actual load on other feeders.
tabSutra takes both kinds and keeps them apart. Future rows carry only what is known ahead. Past-only inputs are read from the history.
For the past, you can send the weather forecasts that were available at the time, instead of the measured weather. The model then sees how far to trust a weather forecast, and its ranges include the weather error.
One model for every site and horizon
The sites of a region are read together in one call. A feeder with a noisy history draws on feeders like it. Every interval of the horizon is forecast in one pass, so there is no model per horizon.
The same model serves load, solar and wind. What changes is the data sent to it.
New plants and new feeders
A new solar plant is forecast from plants with a similar capacity, location and panel setup, with its own weather forecast as input. As its own readings build up, the forecast relies on them more.
The same holds for a new feeder, a new large customer, or a wind farm with new turbines.
Public data with the same shape
These public datasets have the same shape as the problem. They are listed so that the approach can be checked on open data.
| Dataset | Source | What it tests |
|---|---|---|
| GEFCom 2012, 2014 and 2017 | fev-bench | Load forecasting with temperature as a known-ahead input |
| Solar with Weather | fev-bench | Solar output with weather forecasts, and measured weather for the past |
| EPF (electricity prices) | fev-bench | Day-ahead prices, with forecasts of load and generation as inputs |
| KDD Cup 2022 wind power | fev-bench | 134 wind turbines, with past-only sensor readings |
| ERCOT load | fev-bench | Load of the Texas grid at hourly to monthly steps |
| Electricity, Solar, ETT | GIFT-Eval | Load per customer, solar output, and transformer load and temperature, from history alone |
The fair test of the weather inputs is to run the same tasks with and without them. A new site is tested by holding out sites and giving the model only their first weeks.
Side by side
A model per site compared with tabSutra
| A model per site | tabSutra | |
|---|---|---|
| Models | One per site or group, often per horizon | One pretrained model for all |
| Weather in training | Measured weather | The forecasts as they were known at the time |
| Calendar effects | Flags built by hand | Read from the calendar columns |
| New sites | No model until months of history | Forecast from sites like it |
| Ranges | A separate method, if any | For every site and interval |
| Change of provider or plant | Retrain | New rows in the next call |
Benefits
What the business gets
Every site from one model
There are no per-site or per-horizon models to build and retrain.
New plants forecast early
A new site gets a forecast from its first day, from sites like it.
Ranges that include weather error
Schedules and bids can be set against an honest range.
All horizons in one pass
From the next interval to days ahead, in a single call.
Weather providers as columns
Several providers can be sent side by side. Switching provider needs no retraining.
Reasons for each forecast
Each forecast shows which inputs moved it, such as temperature or a holiday.
Questions
How far ahead can it forecast?
From the next interval to several days ahead. The horizon is set in each call, and every step comes back together.
Can it use several weather providers?
Yes. Each provider's forecast is sent as its own column.
Do we need measured weather for the past?
It helps, but it is not needed. If you keep the weather forecasts that were made at the time, send those for the past, so that the model sees the weather error.
What about missing readings and clock changes?
Missing readings are read as missing. Timestamps do not have to be evenly spaced, so a daylight saving change is handled like any other timestamp.
How is our data handled?
Your rows are used only to answer your request. They are not used to train the model. A context you send is kept for a limited time, so that you can predict again without sending it, and you can delete it at any time.
Forecast every site from one model
API access is open to teams on request. The documentation explains forecasting with known-ahead inputs.