IDEAS home Printed from https://ideas.repec.org/a/eee/matcom/v240y2026icp96-104.html

Deep learning-based prediction models for spot electricity market prices in the Spanish market

Author

Listed:
  • Failing, J.M.
  • Segarra-Tamarit, J.
  • Cardo-Miota, J.
  • Beltran, H.

Abstract

This paper explores deep learning-based prediction models for spot electricity market prices in the Spanish market. Electricity prices in deregulated markets, such as the Spanish spot market, exhibit significant volatility. This study highlights the importance of accurately predicting electricity prices to optimize decision-making for trading companies. The focus is on artificial intelligence models, particularly neural networks, due to their ability to capture nonlinear behaviours. The research utilizes extensive data from the Spanish electricity market, including demand forecasts, wind power production, solar generation expectations, gas prices, and more. A correlation analysis reveals that the impact of these variables on electricity prices varies across different years. Several deep learning models, including feedforward, convolutional, and long short-term memory (LSTM) neural networks, are developed with hyperparameter tuning. The best-performing model is a convolutional neural network model, achieving a relative Mean Absolute Error (rMAE) of 13.29%, demonstrating its effectiveness in short-term price prediction. The study also evaluates the impact of individual variables on model performance, underscoring the importance of renewable energy sources and gas prices. The proposed model shows strong potential for accurately predicting spot market prices with a 1-day horizon, providing valuable insights for market participants.

Suggested Citation

  • Failing, J.M. & Segarra-Tamarit, J. & Cardo-Miota, J. & Beltran, H., 2026. "Deep learning-based prediction models for spot electricity market prices in the Spanish market," Mathematics and Computers in Simulation (MATCOM), Elsevier, vol. 240(C), pages 96-104.
  • Handle: RePEc:eee:matcom:v:240:y:2026:i:c:p:96-104
    DOI: 10.1016/j.matcom.2025.07.010
    as

    Download full text from publisher

    File URL: http://www.sciencedirect.com/science/article/pii/S0378475425002769
    Download Restriction: Full text for ScienceDirect subscribers only

    File URL: https://libkey.io/10.1016/j.matcom.2025.07.010?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to

    for a different version of it.

    References listed on IDEAS

    as
    1. Chan, Kam Fong & Gray, Philip & van Campen, Bart, 2008. "A new approach to characterizing and forecasting electricity price volatility," International Journal of Forecasting, Elsevier, vol. 24(4), pages 728-743.
    2. Weron, Rafał, 2014. "Electricity price forecasting: A review of the state-of-the-art with a look into the future," International Journal of Forecasting, Elsevier, vol. 30(4), pages 1030-1081.
    3. Rafal Weron, 2014. "A review of electricity price forecasting: The past, the present and the future," HSC Research Reports HSC/14/02, Hugo Steinhaus Center, Wroclaw University of Science and Technology.
    4. Lago, Jesus & Marcjasz, Grzegorz & De Schutter, Bart & Weron, Rafał, 2021. "Forecasting day-ahead electricity prices: A review of state-of-the-art algorithms, best practices and an open-access benchmark," Applied Energy, Elsevier, vol. 293(C).
    5. Failing, Johanna M. & Cardo-Miota, Javier & Pérez, Emilio & Beltran, Hector & Segarra-Tamarit, Jorge, 2025. "Deep learning approaches for predicting the upward and downward energy prices in the Spanish automatic Frequency Restoration Reserve market," Energy, Elsevier, vol. 320(C).
    6. Karakatsani Nektaria V & Bunn Derek W., 2010. "Fundamental and Behavioural Drivers of Electricity Price Volatility," Studies in Nonlinear Dynamics & Econometrics, De Gruyter, vol. 14(4), pages 1-42, September.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Billé, Anna Gloria & Gianfreda, Angelica & Del Grosso, Filippo & Ravazzolo, Francesco, 2023. "Forecasting electricity prices with expert, linear, and nonlinear models," International Journal of Forecasting, Elsevier, vol. 39(2), pages 570-586.
    2. Ehsani, Behdad & Pineau, Pierre-Olivier & Charlin, Laurent, 2024. "Price forecasting in the Ontario electricity market via TriConvGRU hybrid model: Univariate vs. multivariate frameworks," Applied Energy, Elsevier, vol. 359(C).
    3. Auer, Benjamin R., 2016. "How does Germany's green energy policy affect electricity market volatility? An application of conditional autoregressive range models," Energy Policy, Elsevier, vol. 98(C), pages 621-628.
    4. Joanna Janczura & Andrzej Puć, 2023. "ARX-GARCH Probabilistic Price Forecasts for Diversification of Trade in Electricity Markets—Variance Stabilizing Transformation and Financial Risk-Minimizing Portfolio Allocation," Energies, MDPI, vol. 16(2), pages 1-28, January.
    5. Ciarreta, Aitor & Martinez, Blanca & Nasirov, Shahriyar, 2023. "Forecasting electricity prices using bid data," International Journal of Forecasting, Elsevier, vol. 39(3), pages 1253-1271.
    6. Belenguer, E. & Segarra-Tamarit, J. & Pérez, E. & Vidal-Albalate, R., 2025. "Short-term electricity price forecasting through demand and renewable generation prediction," Mathematics and Computers in Simulation (MATCOM), Elsevier, vol. 229(C), pages 350-361.
    7. Bartosz Uniejewski, 2024. "Regularization for electricity price forecasting," Operations Research and Decisions, Wroclaw University of Science and Technology, Faculty of Management, vol. 34(3), pages 267-286.
    8. Hauzenberger, Niko & Pfarrhofer, Michael & Rossini, Luca, 2025. "Sparse time-varying parameter VECMs with an application to modeling electricity prices," International Journal of Forecasting, Elsevier, vol. 41(1), pages 361-376.
    9. Castello, Oleksandr & Resta, Marina, 2025. "Univariate and multivariate forecasting of the electricity futures curve using Dynamic Recurrent Neural Networks," Applied Energy, Elsevier, vol. 394(C).
    10. Daniel Manfre Jaimes & Manuel Zamudio López & Hamidreza Zareipour & Mike Quashie, 2023. "A Hybrid Model for Multi-Day-Ahead Electricity Price Forecasting considering Price Spikes," Forecasting, MDPI, vol. 5(3), pages 1-23, July.
    11. Huo, Wei & Zhang, Yao & Zhao, Hanting & Lin, Fan & Wang, Jianxue, 2025. "Price signal forecasting for day-ahead offering strategy of price-maker renewable energy producers considering different risk preferences," Applied Energy, Elsevier, vol. 401(PC).
    12. Tomasz Zema & Adam Sulich, 2022. "Models of Electricity Price Forecasting: Bibliometric Research," Energies, MDPI, vol. 15(15), pages 1-18, August.
    13. Qorbanian, Roozbeh & Löhndorf, Nils & Wozabal, David, 2025. "Valuation of power purchase agreements for corporate renewable energy procurement," European Journal of Operational Research, Elsevier, vol. 326(3), pages 530-543.
    14. Ciaran O'Connor & Mohamed Bahloul & Steven Prestwich & Andrea Visentin, 2025. "The Evolution of Probabilistic Price Forecasting Techniques: A Review of the Day-Ahead, Intra-Day, and Balancing Markets," Papers 2511.05523, arXiv.org.
    15. Hilger, Hannes & Witthaut, Dirk & Dahmen, Manuel & Rydin Gorjão, Leonardo & Trebbien, Julius & Cramer, Eike, 2024. "Multivariate scenario generation of day-ahead electricity prices using normalizing flows," Applied Energy, Elsevier, vol. 367(C).
    16. Ekaterina Abramova & Derek Bunn, 2019. "Estimating Dynamic Conditional Spread Densities to Optimise Daily Storage Trading of Electricity," Papers 1903.06668, arXiv.org.
    17. Angelica Gianfreda & Derek Bunn, 2018. "A Stochastic Latent Moment Model for Electricity Price Formation," BEMPS - Bozen Economics & Management Paper Series BEMPS46, Faculty of Economics and Management at the Free University of Bozen.
    18. Krishna Prakash N. & Jai Govind Singh, 2023. "Electricity price forecasting using hybrid deep learned networks," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 42(7), pages 1750-1771, November.
    19. Gabrielli, Paolo & Wüthrich, Moritz & Blume, Steffen & Sansavini, Giovanni, 2022. "Data-driven modeling for long-term electricity price forecasting," Energy, Elsevier, vol. 244(PB).
    20. Nie, Ying & Li, Ping & Wang, Jianzhou & Zhang, Lifang, 2024. "A novel multivariate electrical price bi-forecasting system based on deep learning, a multi-input multi-output structure and an operator combination mechanism," Applied Energy, Elsevier, vol. 366(C).

    More about this item

    Keywords

    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:eee:matcom:v:240:y:2026:i:c:p:96-104. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Catherine Liu (email available below). General contact details of provider: http://www.journals.elsevier.com/mathematics-and-computers-in-simulation/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.