Prediction quality for SE2?
Hi, Thanks for creating this service, it's a great resource. I'm attempting to use this to get future price indications for my EMHASS optimization. However, the SE2 prices I see aren't even close. I'm not sure how close one could expect them to be, so I don't know if this constitutes some bug or is just the inherent uncertainty.
I'm using your service with the call https://epexpredictor.batzill.com/prices_short?region=SE2&surcharge=0&taxPercent=0&unit=EUR_PER_KWH&hours=120, and then I manually add whatever surcharges and credits apply to get to my price for buying and selling.
See the image below for how the prediction for today compares with the Nordpool spot price for SE2 for today and tomorrow.
The blue line is what I get for selling back energy, which is very close to the Nordpool spot price with just a small extra credit. (From Sep 4 it's just the Sep 3 Nordpool price replicated again, so isn't real.) The EPEX prediction for the sell price is the red line. This afternoon, the Nordpool price peaks at 0.84 SEK/kWh, but the prediction is 2.8 SEK/kWh. So the prediction is off by a factor of 3x, and the predicted price swings are much larger than in reality. Is this what I should expect? It's so bad that I'm not sure it's better than nothing.
You are correct. The further north you go the less the model works well, due to reduced solar production. It was originally designed for Germany, all other countries were just strapped on the same concept. Especially for (northern) Sweden, this kinda falls apart, as Sweden gets so much energy from Hydro. In the south it kinda works anyway due to the impact of cross-border trade with neighboring countries, in the north: not so much.
The MSE is a bit missleading here, since prices are quite low for you guys. while 2ct error might not be much in absolute terms, it might easily be 100% error in relative terms.
So yes, it is what it is. I'm happy if there is a PR that has a good data source for Sweden - I don't really know what could improve it though.
Anyway, if you want to do a bit more "scientific" testing, feel free to play with the eval_plot endpoint: https://epexpredictor.batzill.com/docs#/default/generate_evaluation_plot_eval_plot_get
There you can quickly enter different time ranges and see how the model performed on historic data. It is a bit slow though, as for each request, an individual model has to be trained to serve it. And if there is no cached data fro the requested time range, it will have to be fetched on the fly. Note that right now, Entso-E seems to deliver errors for all data starting at 2026-09-01. That also doesn't help - try with historic data instead.
EDIT: looks like they fixed it just now. There is now data until 2026-09-04 00:00:00.
EDIT2: Also, I'm not too familiar with the market in Sweden. The prices that are used for training are taken from Entso-E Transparency platform, and AFAIK, they come from EPEX. Are EPEX and Nordpool day ahead prices more or less the same?
@b3nn0 Thanks for responding. I think the things that affect our power prices the most up here are the solar/wind forecasts, the fill level of the hydro power reservoirs, the regional interchange capacities, and of course the temperature forecast (at least in the winter).
Looking at ENTSO-E, it looks like most of these data are available, I don't know if they're included in your model now.
And yes, it looks like the ENTSO-E day-ahead prices and Nordpool day-ahead prices are the same. (I would expect them to be since it's an official price and not a market estimate.)
Yes, these mostly are part of the model. At least solar, wind and temperature (and a few more). But that alone doesn't seem to be enough. Maybe the hydro storage levels might help more, these are not part of the model yet.
Also, I recommend checking out the eval plot endpoint. While the forecast isn't great, it doesn't seem to be as bad as your graph suggests. Maybe just an exceptionally bad sample? Or some error in currency conversions? Didn't compare closely though, just a feeling.
I went through the eval plots for this year, and it almost seems like there's a bifurcation of behavior. Sometimes the model performs quite well, e.g. Feb 2026:
other times very poorly, e.g. Jan 2026:
and in August 2026, it's as if it's switching between these two situations several times:
It would be interesting to understand what caused those price deviations in August. It's obviously something that the model doesn't know about.
From what I can learn, the severe price increase on Aug 19 was caused by a sudden drop in wind that dropped the wind power generation in northern Sweden. In combination with low reservoir levels that meant hydro power did not fully pick up this deficit, this meant Sweden (but notably not SE2) turned into a net energy importer which caused the high power prices on the continent to spill over to SE3/SE4, and this in turn caused the marginal price on the power exported from SE2 southward to spike.
This coupling between prices in different regions caused by the import/export of energy seems pretty hard to model. Is this included in the predictions?
It is not for now, and I'm not even sure how that could be modeled. Right now, each region defines a bunch of coordinates for which weather data is fetched, see https://github.com/b3nn0/EpexPredictor/blob/main/predictor/model/priceregion.py
Maybe this would have to be changed to use one global fetch for the whole of Europe, and have weather data from the whole continent influence the forecast for each region. Drawbacks:
- Lot more parameters for each region -> possible degradation
- Dependencies are not really modeled properly, just a "feed in all the data" concept. Might work, might not.
Maybe other approach: first, train all models as they are right now, then train them again, but add all predicted prices from the first run as a parameter to the second run.
All requires lots of trial and error and evaluation, which I won't invest personally right now, as my use case is perfectly covered as is. Happy to accept a PR if anyone wants to put in the effort.
Yeah I think the whole power system is much more integrated now, you'd probably have to do a global model. I don't have time to invest either, I guess this is why energy price predictions is an actual product people pay money for...
FYI: I found a bit of time this morning to do some testing with a multi-staged forecaster (train all base models as they are right now and use those forecasts as additional parameters for stage two). It does require quite a bit more compute of course, but the results are quite promising across the board. For a time range of 2025-09-01 to 2026-09-01:
Before: Stage 1 (baseline, per-region, iterations=362):
| Region | 1d RMSE | 1d MAE | 2d RMSE | 2d MAE | 3d RMSE | 3d MAE |
|---|---|---|---|---|---|---|
| DE | 3.09 | 1.92 | 3.42 | 2.1 | 3.54 | 2.16 |
| AT | 3.32 | 2.11 | 3.56 | 2.32 | 3.57 | 2.36 |
| BE | 3.58 | 2.16 | 3.83 | 2.33 | 3.95 | 2.37 |
| NL | 3.4 | 2.01 | 3.61 | 2.16 | 3.68 | 2.19 |
| SE1 | 3.13 | 2.04 | 3.44 | 2.28 | 3.54 | 2.35 |
| SE2 | 2.86 | 1.76 | 3.23 | 2.02 | 3.3 | 2.09 |
| SE3 | 3.17 | 2.31 | 3.37 | 2.48 | 3.43 | 2.54 |
| SE4 | 3.6 | 2.67 | 3.83 | 2.87 | 3.87 | 2.92 |
| DK1 | 3.32 | 2.16 | 3.51 | 2.32 | 3.55 | 2.37 |
| DK2 | 3.65 | 2.37 | 3.76 | 2.51 | 3.77 | 2.53 |
| ES | 2.31 | 1.69 | 2.62 | 1.95 | 2.72 | 2.03 |
| PT | 2.71 | 2.03 | 3.04 | 2.32 | 3.16 | 2.42 |
After: Stage 2 (2-stage, + cross-region forecasts, iterations=362):
| Region | 1d RMSE | 1d MAE | 2d RMSE | 2d MAE | 3d RMSE | 3d MAE |
|---|---|---|---|---|---|---|
| DE | 2.98 | 1.76 | 3.25 | 1.94 | 3.27 | 1.97 |
| AT | 3.24 | 2.01 | 3.53 | 2.24 | 3.55 | 2.29 |
| BE | 3.16 | 1.88 | 3.45 | 2.05 | 3.56 | 2.1 |
| NL | 3.13 | 1.8 | 3.37 | 1.95 | 3.41 | 1.97 |
| SE1 | 2.76 | 1.73 | 3.1 | 1.99 | 3.19 | 2.06 |
| SE2 | 2.73 | 1.65 | 3.1 | 1.92 | 3.18 | 1.99 |
| SE3 | 2.91 | 2.07 | 3.14 | 2.27 | 3.18 | 2.31 |
| SE4 | 3.33 | 2.38 | 3.6 | 2.63 | 3.65 | 2.68 |
| DK1 | 2.93 | 1.85 | 3.13 | 2.02 | 3.16 | 2.06 |
| DK2 | 3.2 | 2.01 | 3.37 | 2.18 | 3.42 | 2.23 |
| ES | 2.26 | 1.63 | 2.59 | 1.9 | 2.69 | 1.98 |
| PT | 2.36 | 1.71 | 2.72 | 2.02 | 2.84 | 2.12 |
Integration into the API (especially the eval_plot endpoint) is a bit more involved but manageable. Hopefully I find the time in the next few days.
EDIT: looking at the plots though, it does not seem to fix the issue at all that for some time ranges in northern Sweden, the forecast is just completely off.