Deep Learning for Cross-Border Electricity Price Forecasting: A Comparative Study
Organizations: Institute for Automation and Applied Informatics, Karlsruhe Institute of Technology, Karlsruhe, Germany · Department of Computer Science, Karlsruhe Institute of Technology, Karlsruhe, Germany
Abstract
While publicly available electricity market data presents a valuable resource for forecasting research, the field lacks established benchmark datasets for standardized comparison. As a result, many studies have relied on different datasets and metrics to evaluate methods in isolated settings, making it difficult to assess progress and compare state-of-the-art approaches consistently. In this work, we use public data to evaluate deep learning models for electricity price forecasting (EPF) across multiple market settings. Our goal is to establish a reproducible framework that enables a consistent evaluation of forecasting models. Although deep learning has been explored for day-ahead EPF, many prior studies are limited to single-market settings, narrow feature sets, or fixed training regimes. This work presents a comparative evaluation of six deep learning models--covering state-space, MLP, RNN, and Transformer-based architectures--emphasizing generalization across markets. We simulate low-data target-market conditions using zero-shot, one-shot, and few-shot learning. Our test set focuses on the Germany-Luxembourg (DE-LU) bidding zone in 2024 using a standardized dataset with calendar, historical price, and market-derived features. Our findings suggest that N-HiTS and NBEATSx perform competitively in limited-data scenarios, while transformer-based models can reach comparable accuracy but tend to require more adaptation and tuning. Model performance also benefits from careful feature selection and hyperparameter tuning, and we note that the differences between the strongest models are often small.
Figures & tables
| Learning Strategy | DE-LU Training Data | Purpose |
|---|---|---|
| Zero-Shot (ZSL) | 0 days | Full generalization |
| One-Shot (OSL) | 7 days + 1 forecast window | Minimal adaptation |
| Few-Shot (FSL) | 4 weeks | Partial adaptation |
| Baseline Model | MAE | RMSE |
|---|---|---|
| Previous Day’s Price | 27.85 | 44.35 |
| Synthetic Price | 31.97 | 51.49 |
| Previous Week’s Price | 32.40 | 55.11 |
| Previous Month’s Price | 33.01 | 51.22 |
| Model | Start year | MAE | MAE | RMSE | RMSE | Input days |
|---|---|---|---|---|---|---|
| (EP) | (EP+Cal) | (EP) | (EP+Cal) | |||
| Mamba | 2018 | 27.45 | 22.72 | 44.36 | 39.31 | 7 |
| NBEATSx | 2023 | 22.32 | 22.10 | 37.34 | 37.48 | 7 |
| N-HiTS | 2020 | 23.8 | 21.9 | 45.02 | 37.42 | 7 |
| LSTM | 2023 | 22.92 | 24.88 | 38.77 | 43.70 | 7 |
| TFT | 2018 | 23.14 | 21.69 | 40.22 | 36.13 | 7 |
| Model | Year | MAE | RMSE | Gas | Synth | CO 2 | Load |
|---|---|---|---|---|---|---|---|
| Mamba | |||||||
| MAE: 22.72 | 2018 | 22.51 | 38.89 | ✓ | |||
| RMSE: 39.31 | 2018 | 26.84 | 44.94 | ✓ | ✓ | ||
| NBEATSx | |||||||
| MAE: 22.10 | 2023 | 20.90 | 35.81 | ✓ | |||
| RMSE: 37.34 | 2023 | 20.99 | 36.27 | ✓ | ✓ |
| Model | Year | MAE | RMSE | SP features | Load |
|---|---|---|---|---|---|
| NBEATSx | 2020 | 19.11 | 34.93 | ✓ | |
| NBEATSx | 2020 | 20.09 | 35.28 | ✓ | ✓ |
| N-HiTS | 2020 | 18.75 | 34.77 | ✓ | |
| N-HiTS | 2020 | 21.70 | 37.29 | ✓ | ✓ |
| TFT | 2018 | 19.40 | 35.63 | ✓ | |
| TFT | 2018 | 20.51 | 35.88 | ✓ | ✓ |
| Model | Zero-shot | One-shot | Few-shot |
|---|---|---|---|
| N-HiTS | 18.61 | 18.65 | 18.61 |
| NBEATSx | 18.96 | 18.48 | 18.57 |
| TFT | 18.63 | 19.35 | 19.13 |
| VT | 18.50 | 18.77 | 18.96 |
| Hadeer Elashhab received her B.S. degree in computer science from the American University in Cairo, Cairo, Egypt, in 2017 and her M.S. degree in artificial intelligence from Queen Mary University of London, London, United Kingdom, in 2022. She is currently pursuing her Ph.D. degree in computer science at Karlsruhe Institute of Technology, Karlsruhe, Germany. From 2017 to 2020, she was a Data Scientist with Raisa Energy LLC, Cairo, Egypt. Her research interest includes the application of machine learning and deep learning techniques to energy time series, explanation of applied machine and deep learning methods, and the evaluation of explanation quality produced by such methods. |
| Sai Srijan Papineni received the B.Sc. degree in computer science from the Karlsruhe Institute of Technology (KIT), Karlsruhe, Germany, in 2025. He is currently a Developer at SAP SE, Walldorf, Germany. Previously, he worked as a Working Student at SAP SE during his undergraduate studies. Mr. Papineni’s research interests include deep learning–based time series forecasting, electricity price modeling, and the application of machine learning methods to energy markets. |
| Veit Hagenmeyer Veit Hagenmeyer received a diploma in technical kybernetics from the University of Stuttgart, Stuttgart, Germany, in 1998, and a Docteur en Science in engineering from Université Paris, Paris, France, in 2002. His primary research interests are modeling, optimization, and control of sector-integrated energy systems, machine-learning-based forecasting for renewable-driven energy networks, and integrated cyber-security of such systems. He is currently Professor of Energy Informatics with the Faculty of Informatics and Director of the Institute for Automation and Applied Informatics at the Karlsruhe Institute of Technology (KIT), Karlsruhe, Germany. From 2010 to 2014, he led three BASF power-plant sites and their grids (approximately 1 GW, about 200 staff, and a 750 million Euros annual budget). Earlier he served as Personal Assistant to the European Location Manager of BASF (2009–2010), Leader of the Advanced Process Control Group at BASF (2007–2008), Research Engineer in the same group (2003–2006), researcher on nonlinear control theory at the Institute of System Dynamics, University of Stuttgart (2003), and Postdoctoral Fellow on nonlinear control theory at L2S, C.N.R.S.-Supélec-Université, Paris (2002). His current research continues to focus on integrated energy-system modeling, data-driven forecasting, and cyber-security. Prof. Hagenmeyer is a member of the ACM e-Energy steering committee (2025) and holds several recognitions, including the ACM e-Energy Most Accepted Author award (2024), Best Reviewer award (2023), multiple KIT Faculty Awards for best teaching (2021, 2020, 2019, 2018, 2016), the BASF Innovation Awards Finalist (2009), the Lindau Meetings of Nobel Laureates Participation Award (2006), and the VDI Eugen-Hartmann Award (2005). |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
| Model | Training Time (minutes) |
|---|---|
| Mamba | 10–25 |
| LSTM | 15–30 |
| N-HiTS, NBEATSx | 20–40 |
| VT, TFT | 40–50 |