Hourly day-ahead auction prices for the NO2 bidding zone (southern Norway, includes Oslo). Published by Nord Pool, the Nordic power exchange. Prices represent what buyers agreed to pay for electricity delivered the next day — one auction per hour, every day.
An LSTM is a type of neural network with a memory. Unlike a normal network that sees each hour in isolation, an LSTM reads prices one hour at a time and keeps a running summary of what came before. It decides what to remember (the daily rhythm) and what to forget (random spikes from last Tuesday).
Data in. Feed in the last 72 hours of prices (3 days). Each hour includes 8 features: the price itself, the time of day (encoded as a circle so 23:00 and 01:00 are close), the day of week, and rolling averages for the last 12 hours / day / week.
LSTM reads the sequence. The first LSTM layer (64 neurons) reads through the 72 hours one step at a time. At each hour, it updates its memory — deciding what's important (prices went up 3 hours in a row) vs noise (one random dip).
Second LSTM layer refines. A second layer (32 neurons) takes the first layer's output and refines the patterns. Two layers let the model learn both simple patterns (prices are low at 3 AM) and complex combinations (when it's a Monday in spring and prices dropped unusually overnight).
Output layer predicts 24 hours. The final layer takes the LSTM's refined memory and produces 24 numbers — the predicted price for each hour of the next day.
53,784 tiny adjustments (parameters) store the model's "knowledge" of electricity prices. Each is just a number — how much to weight the 3 AM price signal vs the Monday signal, etc. Training is the process of finding the right numbers.
We split the data: 80% for training (the model reads these hours, makes predictions, gets corrected), 20% for testing (the model never sees these hours during training — they test whether it learned something general, not just memorization).
The blue line drops fast — the model learns the basic daily pattern in about 20 epochs (20 seconds of training). After that it plateaus: it's found the pattern and can't get much better on test data. The red line (test) staying flat means it stopped generalizing after finding the main rhythm.
Here's what the model predicted (red) vs what actually happened (green) on data it had never seen:
The model gets the shape roughly right — it knows when prices peak and trough. But it misses extreme spikes. This is because it's averaging patterns: a -5 EUR night and a 150 EUR night both exist in the data, but the model predicts something in the middle.
We asked the model: "generate a typical day." This is its internal picture of a 24-hour cycle:
Prices dip overnight (cheapest around 3-4 AM), peak in the morning (8-9 AM), dip at lunch, and rise again for an evening peak (6-7 PM). This is the real daily rhythm of Norwegian electricity demand — heating in the morning, work hours, cooking in the evening.
Using actual Nord Pool price data from the last 63 days, here's how different storage technologies stack up on pure price arbitrage. All revenue estimates use the observed average daily spread of 80.5 EUR/MWh (peak-to-trough) with appropriate round-trip efficiency for each technology.
CAPEX: ~$2.05M ($1,800k battery + $100k inverter + $150k install)
Revenue: $250k/yr from one cycle per day at 85% efficiency
Net after O&M: $209k/yr → 9.8 year payback
15-year ROI: 53% — marginally viable. Works better with multiple cycles or ancillary services.
CAPEX (greenfield): ~$1.5B — civil engineering dominates
At smaller 10 MWh: 213 year payback — not viable at all
At 1 GWh retrofit (existing dam): 74 year payback
50-year lifetime net: -$438M — still loses money on arbitrage alone.
Norway has 87,000 GWh of existing reservoir storage. New pumped hydro competes with what's already there for free.
CAPEX: ~$300k — \$300 smart controller per hot water tank, 1,000 tanks
Revenue: $279k/yr at 95% efficiency (minimal standby losses)
Net after O&M: $273k/yr → 1.1 year payback
20-year ROI: 1,721% — the tanks and heating elements already exist, you're just adding a controller.
This is the hidden gem. Hot water tanks are free thermal batteries — existing infrastructure with zero storage cost.
At current spreads (~80 EUR/MWh), dedicated battery storage is almost viable but the returns don't excite anyone. Thermal storage (water heating) crushes it because you're not paying for batteries — you're just paying for a \$300 controller to shift existing load. The battery only becomes attractive when paired with solar PV to lower charging cost or when participating in frequency regulation markets that pay more than pure arbitrage.
The model is typically within ±20 EUR of the actual price. The fat tails on both sides are the unpredictable spikes — cold snaps, wind lulls, grid constraints. Those are hard to predict with just historical prices; you'd need weather data too.
Good: The model learns the daily rhythm. It knows when prices peak, when they trough, and the difference between weekday and weekend patterns.
Limited: 30% error relative to mean price. With only 63 days of data, it can't learn seasonal patterns (winter vs summer) or rare events.
Blind spots: Weather, grid outages, and political events all affect prices. The model has none of that data — it's predicting based on prices alone.
Add temperature and wind data for the NO2 region. Electricity prices in Norway are cold-weather driven: when it's freezing, everyone heats more → prices spike. Adding that single feature would likely halve the error.