Introduction
Electricity markets present a unique challenge for price forecasting due to the commodity's limited storage capacity and the requirement for real-time balance between supply and demand. In Europe, the EUPHEMIA algorithm manages this by setting day-ahead prices across 46 bidding zones, considering both local consumption and the physical constraints of cross-border interconnectors. While traditional models often treat zones in isolation, the high degree of interconnection means that price dynamics in one region are frequently driven by conditions in another.
This paper introduces an "Optimize-then-Predict" framework. Instead of relying solely on raw data, the approach leverages domain-specific optimization models to estimate latent cross-border energy flows. These estimates are then used as features for advanced machine learning models, specifically Graph Neural Networks (GNNs), to capture the complex spatial and temporal interdependencies of the European power grid.
Methodology
The proposed framework consists of two primary stages: feature engineering through optimization and price prediction using neural architectures.
1. Optimize (Feature Engineering)
To account for the unknown energy flows ($F$) at the time of prediction, four combinatorial optimization models were developed:
- Flin: A linear programming model maximizing congestion rents, mimicking the economic logic of market algorithms.
- Flsq: A least-squares approach focused on minimizing zonal energy imbalances.
- Fcmb: A hybrid model selecting between linear and least-squares based on historical performance.
- Fos: A refined model enforcing one-sided flows between zones.
2. Predict (Machine Learning)
The estimated flows are integrated with other features—including hourly consumption forecasts, renewable generation (wind/solar), and available transfer capacities (ATC)—to train three types of neural networks: Deep Neural Networks (DNN), Convolutional Neural Networks (CNN), and Graph Neural Networks (GNN).
The GNN architecture is particularly suited for this task as it treats bidding zones as nodes and physical interconnects as edges, allowing the model to explicitly reason about the network's topology.
Dataset
The study utilized a comprehensive dataset from the ENTSO-E transparency platform, covering 35 European zones and 63 connections from January 2016 to December 2021. The data was split into training (2016–2018), validation (2019), and testing (2020–2021) sets.
Key Results and Insights
The integration of optimized flow features significantly improved forecasting accuracy across all architectures. Notably, the GNN using the Fos (One-sided flow) estimation achieved the highest performance.
- Impact of Optimization: For the DNN, incorporating optimized flows reduced the Mean Absolute Error (MAE) from 13.97 €/MWh to 12.96 €/MWh. Diebold-Mariano tests confirmed these improvements were statistically significant.
- Physics vs. Economics: Interestingly, the
Flsqmodel, which prioritizes physical energy balance, often outperformed the economically-drivenFlinmodel. This suggests that maintaining physical consistency is more critical for price forecasting than perfectly simulating market profit-seeking. - Architectural Advantages: GNNs emerged as the superior choice for electricity price forecasting (EPF). While simpler models like DNNs saw larger relative gains from the flow features, GNNs provided the best absolute accuracy by inherently learning spatial relationships. SHAP analysis indicated that while historical prices remain the most influential feature (30%), engineered flow features provide the critical "edge" necessary for high-precision forecasting.
Conclusion and Future Work
The "Optimize-then-Predict" approach demonstrates that incorporating physical and economic domain knowledge into machine learning pipelines can substantially enhance forecasting performance in complex networked systems.
Future research will focus on addressing computational bottlenecks to allow for more exhaustive hyperparameter tuning. Additionally, integrating more granular data, such as power plant start-up and shut-down costs, could further capture non-linear price dynamics. A promising long-term goal is the development of end-to-end models where the optimization problem is integrated directly into the neural network as a differentiable layer.
Summary updated