Electricity Price Forecasting under Renewable Energy Penetration in the Spanish Market: Infrastructure, Policy and a Deep Learning Approach with Spatial-Meteorological Feature Engineering.
(2026) DABN01 20261Department of Economics
Department of Statistics
- Abstract
- This thesis develops a robust forecasting framework for electricity prices in the Spanish
wholesale day-ahead market (OMIE), integrating meteorological, macroeconomic and
energy-specific variables through advanced feature engineering techniques. The work
opens with a structural analysis of the Iberian market — covering its historical evolution, the marginal price market structure, the growing renewable penetration and
the regulatory interventions that have affected spanish prices— followed by analysis of
possible predictors that were curated for geographic scope, temporal coverage and data
quality.
A key methodological contribution is the application of Kernel Density Estimation
(KDE) to spatially encode meteorological variables... (More) - This thesis develops a robust forecasting framework for electricity prices in the Spanish
wholesale day-ahead market (OMIE), integrating meteorological, macroeconomic and
energy-specific variables through advanced feature engineering techniques. The work
opens with a structural analysis of the Iberian market — covering its historical evolution, the marginal price market structure, the growing renewable penetration and
the regulatory interventions that have affected spanish prices— followed by analysis of
possible predictors that were curated for geographic scope, temporal coverage and data
quality.
A key methodological contribution is the application of Kernel Density Estimation
(KDE) to spatially encode meteorological variables relative to the geographic distribution
of renewable generation capacity. A capacity-weighted Gaussian KDE is fitted separately
to the wind and solar installation registries of Peninsular Spain, identifying 30 Points of
Interest at the generation-weighted density maxima. Sixteen-day NWP forecasts from
the Open-Meteo API are then extracted at these locations, yielding spatial features
that more faithfully reflect aggregate wind and solar output than raw station-level
measurements.
Three deep learning architectures — LSTM, Temporal Convolutional Network (TCN)
and a multi-head attention model — are benchmarked on a rolling out-of-sample scheme.
Results indicate that KDE-based spatial features provide statistically significant forecast
improvements. (Less) - Popular Abstract
- Electricity prices in Spain do not follow a simple pattern. They fluctuate hour by hour depending on how much wind is blowing, how brightly the sun is shining, and how much energy the country needs at any given moment. For businesses, energy traders and grid operators, being able to anticipate these swings even a few days in advance can mean significant savings — or costly mistakes.
This thesis builds an AI-powered system to forecast Spanish electricity prices up to 16 days ahead. The key insight is geographical: rather than using weather readings from arbitrary weather stations, the system identifies the 30 locations across mainland Spain where wind farms and solar panels are most densely concentrated. Weather forecasts are then... (More) - Electricity prices in Spain do not follow a simple pattern. They fluctuate hour by hour depending on how much wind is blowing, how brightly the sun is shining, and how much energy the country needs at any given moment. For businesses, energy traders and grid operators, being able to anticipate these swings even a few days in advance can mean significant savings — or costly mistakes.
This thesis builds an AI-powered system to forecast Spanish electricity prices up to 16 days ahead. The key insight is geographical: rather than using weather readings from arbitrary weather stations, the system identifies the 30 locations across mainland Spain where wind farms and solar panels are most densely concentrated. Weather forecasts are then collected specifically from those spots, capturing much more accurately how much renewable electricity will actually be produced.
Three different artificial intelligence models were trained and compared using this approach. The results show that grounding weather data in the real geography of renewable energy installations leads to meaningfully better price forecasts compared to conventional methods.
As Spain continues its transition toward renewables, tools like this can support smarter energy trading, more stable markets and a more efficient clean energy future. (Less)
Please use this url to cite or link to this publication:
https://lup.lub.lu.se/student-papers/record/9232618
- author
- González Martín, Pablo LU
- supervisor
- organization
- course
- DABN01 20261
- year
- 2026
- type
- H1 - Master's Degree (One Year)
- subject
- keywords
- electricity price forecasting, Iberian electricity market, renewable energy penetration, deep learning, kernel density estimation
- language
- English
- id
- 9232618
- date added to LUP
- 2026-10-12 08:15:40
- date last changed
- 2026-10-12 08:15:40
@misc{9232618,
abstract = {{This thesis develops a robust forecasting framework for electricity prices in the Spanish
wholesale day-ahead market (OMIE), integrating meteorological, macroeconomic and
energy-specific variables through advanced feature engineering techniques. The work
opens with a structural analysis of the Iberian market — covering its historical evolution, the marginal price market structure, the growing renewable penetration and
the regulatory interventions that have affected spanish prices— followed by analysis of
possible predictors that were curated for geographic scope, temporal coverage and data
quality.
A key methodological contribution is the application of Kernel Density Estimation
(KDE) to spatially encode meteorological variables relative to the geographic distribution
of renewable generation capacity. A capacity-weighted Gaussian KDE is fitted separately
to the wind and solar installation registries of Peninsular Spain, identifying 30 Points of
Interest at the generation-weighted density maxima. Sixteen-day NWP forecasts from
the Open-Meteo API are then extracted at these locations, yielding spatial features
that more faithfully reflect aggregate wind and solar output than raw station-level
measurements.
Three deep learning architectures — LSTM, Temporal Convolutional Network (TCN)
and a multi-head attention model — are benchmarked on a rolling out-of-sample scheme.
Results indicate that KDE-based spatial features provide statistically significant forecast
improvements.}},
author = {{González Martín, Pablo}},
language = {{eng}},
note = {{Student Paper}},
title = {{Electricity Price Forecasting under Renewable Energy Penetration in the Spanish Market: Infrastructure, Policy and a Deep Learning Approach with Spatial-Meteorological Feature Engineering.}},
year = {{2026}},
}