{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,7,28]],"date-time":"2026-07-28T02:43:00Z","timestamp":1785206580614,"version":"3.55.0"},"reference-count":43,"publisher":"Springer Science and Business Media LLC","issue":"13","license":[{"start":{"date-parts":[[2022,2,5]],"date-time":"2022-02-05T00:00:00Z","timestamp":1644019200000},"content-version":"tdm","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"},{"start":{"date-parts":[[2022,2,5]],"date-time":"2022-02-05T00:00:00Z","timestamp":1644019200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"}],"funder":[{"name":"Universidad Pablo de Olavide"}],"content-domain":{"domain":["link.springer.com"],"crossmark-restriction":false},"short-container-title":["Neural Comput &amp; Applic"],"published-print":{"date-parts":[[2022,7]]},"abstract":"<jats:title>Abstract<\/jats:title><jats:p>Nowadays, electricity is a basic commodity necessary for the well-being of any modern society. Due to the growth in electricity consumption in recent years, mainly in large cities, electricity forecasting is key to the management of an efficient, sustainable and safe smart grid for the consumer. In this work, a deep neural network is proposed to address the electricity consumption forecasting in the short-term, namely, a long short-term memory (LSTM) network due to its ability to deal with sequential data such as time-series data. First, the optimal values for certain hyper-parameters have been obtained by a random search and a metaheuristic, called coronavirus optimization algorithm (CVOA), based on the propagation of the SARS-Cov-2 virus. Then, the optimal LSTM has been applied to predict the electricity demand with 4-h forecast horizon. Results using Spanish electricity data during nine years and half measured with 10-min frequency are presented and discussed. Finally, the performance of the proposed LSTM using random search and the LSTM using CVOA is compared, on the one hand, with that of recently published deep neural networks (such as a deep feed-forward neural network optimized with a grid search) and temporal fusion transformers optimized with a sampling algorithm, and, on the other hand, with traditional machine learning techniques, such as a linear regression, decision trees and tree-based ensemble techniques (gradient-boosted trees and random forest), achieving the smallest prediction error below 1.5%.<\/jats:p>","DOI":"10.1007\/s00521-021-06773-2","type":"journal-article","created":{"date-parts":[[2022,2,5]],"date-time":"2022-02-05T18:02:27Z","timestamp":1644084147000},"page":"10533-10545","update-policy":"https:\/\/doi.org\/10.1007\/springer_crossmark_policy","source":"Crossref","is-referenced-by-count":153,"title":["A deep LSTM network for the Spanish electricity consumption forecasting"],"prefix":"10.1007","volume":"34","author":[{"given":"J. F.","family":"Torres","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"F.","family":"Mart\u00ednez-\u00c1lvarez","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-9801-7999","authenticated-orcid":false,"given":"A.","family":"Troncoso","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"297","published-online":{"date-parts":[[2022,2,5]]},"reference":[{"key":"6773_CR1","doi-asserted-by":"publisher","first-page":"1312","DOI":"10.1016\/j.apenergy.2019.01.113","volume":"238","author":"J Bedi","year":"2019","unstructured":"Bedi J, Toshniwal D (2019) Deep learning framework to forecast electricity demand. Appl Energy 238:1312\u20131326","journal-title":"Appl Energy"},{"key":"6773_CR2","doi-asserted-by":"publisher","first-page":"15029","DOI":"10.1007\/s00521-020-04856-0","volume":"32","author":"N Bendaoud","year":"2020","unstructured":"Bendaoud N, Farah N (2020) Using deep learning for short-term load forecasting. Neural Comput Appl 32:15029\u201315041","journal-title":"Neural Comput Appl"},{"issue":"7","key":"6773_CR3","doi-asserted-by":"publisher","first-page":"1636","DOI":"10.3390\/en11071636","volume":"11","author":"S Bouktif","year":"2018","unstructured":"Bouktif S, Fiaz A, Ouni A, Serhani MA (2018) Optimal deep learning LSTM model for electric load forecasting using feature selection and genetic algorithm: comparison with machine learning approaches. Energies 11(7):1636","journal-title":"Energies"},{"issue":"16","key":"6773_CR4","doi-asserted-by":"publisher","first-page":"5487","DOI":"10.3390\/app10165487","volume":"10","author":"F Divina","year":"2020","unstructured":"Divina F, Torres JF, Garc\u00eda-Torres M, Mart\u00ednez-\u00c1lvarez F, Troncoso A (2020) Hybridizing deep learning and neuroevolution: application to the spanish short-term electric energy consumption forecasting. Appl Sci 10(16):5487. https:\/\/doi.org\/10.3390\/app10165487","journal-title":"Appl Sci"},{"key":"6773_CR5","doi-asserted-by":"publisher","first-page":"1735","DOI":"10.1162\/neco.1997.9.8.1735","volume":"9","author":"S Hochreiter","year":"1997","unstructured":"Hochreiter S, Schmidhuber J (1997) Long short-term memory. Neural computation 9:1735\u201380. https:\/\/doi.org\/10.1162\/neco.1997.9.8.1735","journal-title":"Neural computation"},{"key":"6773_CR6","doi-asserted-by":"publisher","first-page":"4038","DOI":"10.3390\/en14134038","volume":"14","author":"JRS Iruela","year":"2021","unstructured":"Iruela JRS, Ruiz LGB, Capel MI, Pegalajar MC (2021) A tensorflow approach to data analysis for time series forecasting in the energy-efficiency realm. Energies 14:4038","journal-title":"Energies"},{"key":"6773_CR7","doi-asserted-by":"publisher","first-page":"1501","DOI":"10.1007\/s42835-020-00424-7","volume":"15","author":"BS Kwon","year":"2020","unstructured":"Kwon BS, Park RJ, Song KB (2020) Short-Term Load Forecasting Based on Deep Neural Networks Using LSTM Layer. Journal of Electrical Engineering and Technology 15:1501\u20131509","journal-title":"Journal of Electrical Engineering and Technology"},{"key":"6773_CR8","doi-asserted-by":"publisher","DOI":"10.1142\/S0129065721300011","author":"P Lara-Ben\u00edtez","year":"2020","unstructured":"Lara-Ben\u00edtez P, Carranza-Garc\u00eda M, Riquelme JC (2020) An experimental review on deep learning architectures for time series forecasting. Int J Neural Syst. https:\/\/doi.org\/10.1142\/S0129065721300011","journal-title":"Int J Neural Syst"},{"key":"6773_CR9","unstructured":"Li L, Ota K, Dong M. Everything is image: CNN-based short-term electrical load forecasting for smart grid. In: Proceedings of the IEEE international symposium on pervasive systems, algorithms and networks, pp 344\u2013351"},{"issue":"7","key":"6773_CR10","doi-asserted-by":"crossref","first-page":"e5595","DOI":"10.1002\/cpe.5595","volume":"32","author":"N Li","year":"2020","unstructured":"Li N, Wang L, Li X, Zhu Q (2020) An effective deep learning neural network model for short-term load forecasting. Concurr Comput Pract Exp 32(7):e5595","journal-title":"Concurr Comput Pract Exp"},{"key":"6773_CR11","doi-asserted-by":"publisher","first-page":"17351","DOI":"10.1007\/s00521-020-04867-x","volume":"32","author":"I Livieris","year":"2020","unstructured":"Livieris I, Pintelas E, Pintelas P (2020) A CNN-LSTM model for gold price time-series forecasting. Neural Comput Appl 32:17351\u201317360","journal-title":"Neural Comput Appl"},{"issue":"11","key":"6773_CR12","doi-asserted-by":"publisher","first-page":"13162","DOI":"10.3390\/en81112361","volume":"8","author":"F Mart\u00ednez-\u00c1lvarez","year":"2015","unstructured":"Mart\u00ednez-\u00c1lvarez F, Troncoso A, Asencio-Cort\u00e9s G, Riquelme JC (2015) A survey on data mining techniques applied to electricity-related time series forecasting. Energies 8(11):13162\u201313193","journal-title":"Energies"},{"issue":"4","key":"6773_CR13","doi-asserted-by":"publisher","first-page":"308","DOI":"10.1089\/big.2020.0051","volume":"8","author":"F Mart\u00ednez-\u00c1lvarez","year":"2020","unstructured":"Mart\u00ednez-\u00c1lvarez F, Asencio-Cort\u00e9s G, Torres JF, Guti\u00e9rrez-Avil\u00e9s D, Melgar-Garc\u00eda L, P\u00e9rez-Chac\u00f3n R, Rubio-Escudero C, Riquelme JC, Troncoso A (2020) Coronavirus optimization algorithm: a bioinspired metaheuristic based on the COVID-19 propagation model. Big Data 8(4):308\u2013322","journal-title":"Big Data"},{"key":"6773_CR14","doi-asserted-by":"publisher","first-page":"276","DOI":"10.1016\/j.renene.2021.02.166","volume":"172","author":"A Mellit","year":"2021","unstructured":"Mellit A, Pavan AM, Lughi V (2021) Deep learning neural networks for short-term photovoltaic power forecasting. Renew Energy 172:276\u2013288","journal-title":"Renew Energy"},{"key":"6773_CR15","doi-asserted-by":"publisher","first-page":"2922","DOI":"10.1016\/j.egypro.2019.01.952","volume":"158","author":"S Muzaffar","year":"2019","unstructured":"Muzaffar S, Afshari A (2019) Short-term load forecasts using LSTM networks. Energy Procedia 158:2922\u20132927. https:\/\/doi.org\/10.1016\/j.egypro.2019.01.952","journal-title":"Energy Procedia"},{"key":"6773_CR16","unstructured":"O\u2019Malley T, Bursztein E, Long J, Chollet F, Jin H, Invernizzi L, et\u00a0al (2019) Keras Tuner. https:\/\/github.com\/keras-team\/keras-tuner"},{"key":"6773_CR17","doi-asserted-by":"publisher","first-page":"48","DOI":"10.1016\/j.ijar.2021.03.002","volume":"133","author":"MC Pegalajar","year":"2021","unstructured":"Pegalajar MC, Ruiz LGB, Cu\u00e9llar MP, Rueda R (2021) Analysis and enhanced prediction of the Spanish electricity network through big data and machine learning techniques. Int J Approx Reason 133:48\u201359","journal-title":"Int J Approx Reason"},{"key":"6773_CR18","doi-asserted-by":"crossref","unstructured":"P\u00e9rez-Chac\u00f3n R, Talavera-Llames RL, Mart\u00ednez-\u00c1lvarez F, Troncoso A (2016) Finding electric energy consumption patterns in big time series data. In: Proceedings of the 13th International Conference on Distributed Computing and Artificial Intelligence, pp. 231\u2013238","DOI":"10.1007\/978-3-319-40162-1_25"},{"key":"6773_CR19","doi-asserted-by":"publisher","first-page":"1617","DOI":"10.3390\/pr9091617","volume":"9","author":"K Qian","year":"2021","unstructured":"Qian K, Wang X, Yuan Y (2021) Research on regional short-term power load forecasting model and case analysis. Processes 9:1617","journal-title":"Processes"},{"key":"6773_CR20","doi-asserted-by":"publisher","first-page":"246","DOI":"10.1016\/j.asoc.2017.01.015","volume":"54","author":"X Qiu","year":"2017","unstructured":"Qiu X, Ren Y, Suganthan PN et al (2017) Empirical mode decomposition based ensemble deep learning for load demand time series forecasting. Appl Soft Comput J 54:246\u2013255. https:\/\/doi.org\/10.1016\/j.asoc.2017.01.015","journal-title":"Appl Soft Comput J"},{"key":"6773_CR21","doi-asserted-by":"publisher","unstructured":"Qiu X, Zhang L, Ren Y, et\u00a0al (2014) Ensemble deep learning for regression and time series forecasting. In: Proceedings of the IEEE symposium series on computational intelligence in ensemble learning, pp 1\u20136. https:\/\/doi.org\/10.1109\/CIEL.2014.7015739","DOI":"10.1109\/CIEL.2014.7015739"},{"key":"6773_CR22","doi-asserted-by":"publisher","first-page":"380","DOI":"10.1016\/j.eswa.2017.09.059","volume":"92","author":"LGB Ruiz","year":"2018","unstructured":"Ruiz LGB, Rueda R, Cu\u00e9llar MP, Pegalajar MC (2018) Energy consumption forecasting based on Elman neural networks with evolutive optimization. Exp Syst Appl 92:380\u2013389. https:\/\/doi.org\/10.1016\/j.eswa.2017.09.059","journal-title":"Exp Syst Appl"},{"key":"6773_CR23","doi-asserted-by":"publisher","first-page":"3","DOI":"10.3390\/en10010003","volume":"10","author":"S Ryu","year":"2017","unstructured":"Ryu S, Noh J, Kim H (2017) Deep neural network based demand side short term load forecasting. Energies 10:3","journal-title":"Energies"},{"key":"6773_CR24","unstructured":"Siddarameshwara N, Yelamali A, Byathatti K. Ensemble deep learning for regression and time series forecasting. In: Proceedings of the IEEE international conference on advances in recent technologies in communication and computing, pp 351\u2013354"},{"key":"6773_CR25","doi-asserted-by":"crossref","unstructured":"Talavera-Llames RL, P\u00e9rez-Chac\u00f3n R, Mart\u00ednez-Ballesteros M, Troncoso A, Martinez-\u00c1lvarez F (2016) A Nearest Neighbours-Based Algorithm for Big Time Series Data Forecasting. In: Proceedings of the 11th International Conference on Hybrid Artificial Intelligence Systems, pp. 174\u2013185","DOI":"10.1007\/978-3-319-32034-2_15"},{"key":"6773_CR26","doi-asserted-by":"publisher","first-page":"56","DOI":"10.1016\/j.neucom.2018.07.092","volume":"353","author":"R Talavera-Llames","year":"2019","unstructured":"Talavera-Llames R, P\u00e9rez-Chac\u00f3n R, Troncoso A, Mart\u00ednez-\u00c1lvarez F (2019) Mv-kwnn: a novel multivariate and multi-output weighted nearest neighbours algorithm for big data time series forecasting. Neurocomputing 353:56\u201373","journal-title":"Neurocomputing"},{"key":"6773_CR27","doi-asserted-by":"publisher","first-page":"12","DOI":"10.1016\/j.knosys.2018.07.026","volume":"161","author":"R Talavera-Llames","year":"2018","unstructured":"Talavera-Llames R, P\u00e9rez-Chac\u00f3n R, Troncoso A, Mart\u00ednez-\u00c1lvarez F (2018) Big data time series forecasting based on nearest neighbours distributed computing with spark. Knowl-Based Syst 161:12\u201325","journal-title":"Knowl-Based Syst"},{"issue":"17","key":"6773_CR28","doi-asserted-by":"publisher","first-page":"3847","DOI":"10.1049\/iet-gtd.2018.6687","volume":"13","author":"X Tang","year":"2019","unstructured":"Tang X, Dai Y, Wang T, Chen Y (2019) Short-term power load forecasting based on multi-layer bidirectional recurrent neural network. IET Gen Transm Distrib 13(17):3847\u20133854. https:\/\/doi.org\/10.1049\/iet-gtd.2018.6687","journal-title":"IET Gen Transm Distrib"},{"key":"6773_CR29","doi-asserted-by":"publisher","first-page":"1","DOI":"10.1016\/j.ijforecast.2005.06.006","volume":"22","author":"J Taylor","year":"2006","unstructured":"Taylor J, de Menezes L, McSharry P (2006) A comparison of univariate methods for forecasting electricity demand up to a day ahead. Int J Forecasting 22:1\u201316. https:\/\/doi.org\/10.1016\/j.ijforecast.2005.06.006","journal-title":"Int J Forecasting"},{"key":"6773_CR30","doi-asserted-by":"crossref","unstructured":"Torres J.F, D.Guti\u00e9rrez-Avil\u00e9s Troncoso A, Mart\u00ednez-\u00c1lvarez F (2019) Random hyper-parameter search-based deep neural network for power consumption forecasting. Lecture Not Comput Sci 11506:259\u2013269","DOI":"10.1007\/978-3-030-20521-8_22"},{"issue":"4","key":"6773_CR31","doi-asserted-by":"publisher","first-page":"335","DOI":"10.3233\/ICA-180580","volume":"25","author":"JF Torres","year":"2018","unstructured":"Torres JF, Galicia A, Troncoso A, Mart\u00ednez-\u00c1lvarez F (2018) A scalable approach based on deep learning for big data time series forecasting. Integr Comput-Aided Eng 25(4):335\u2013348. https:\/\/doi.org\/10.3233\/ICA-180580","journal-title":"Integr Comput-Aided Eng"},{"key":"6773_CR32","doi-asserted-by":"publisher","DOI":"10.1089\/big.2020.0159","author":"JF Torres","year":"2020","unstructured":"Torres JF, Hadjout D, Sebaa A, Mart\u00ednez-\u00c1lvarez F, Troncoso A (2020) Deep learning for time series forecasting: a survey. Big Data. https:\/\/doi.org\/10.1089\/big.2020.0159","journal-title":"Big Data"},{"issue":"4","key":"6773_CR33","doi-asserted-by":"publisher","first-page":"e12394","DOI":"10.1111\/exsy.12394","volume":"36","author":"JF Torres","year":"2019","unstructured":"Torres JF, Troncoso A, Koprinska I, Wang Z, Mart\u00ednez-\u00c1lvarez F (2019) Big data solar power forecasting based on deep learning and multiple data sources. Exp Syst 36(4):e12394. https:\/\/doi.org\/10.1111\/exsy.12394","journal-title":"Exp Syst"},{"key":"6773_CR34","doi-asserted-by":"publisher","DOI":"10.3390\/en12061083","author":"O Trull","year":"2019","unstructured":"Trull O, Garc\u00eda-D\u00edaz JC, Troncoso A (2019) Application of discrete-interval moving seasonalities to spanish electricity demand forecasting during easter. Energies. https:\/\/doi.org\/10.3390\/en12061083","journal-title":"Energies"},{"key":"6773_CR35","doi-asserted-by":"crossref","unstructured":"Trull O, Garc\u00eda-D\u00edaz JC, Troncoso A (2020) Initialization methods for multiple seasonal holt-winters forecasting models. Mathematics 8(2)","DOI":"10.3390\/math8020268"},{"key":"6773_CR36","doi-asserted-by":"publisher","first-page":"4046","DOI":"10.3390\/en14134046","volume":"14","author":"AM Tudose","year":"2021","unstructured":"Tudose AM, Picioroaga II, Sidea DO, Bulac C, Boicea VA (2021) Short-term load forecasting using convolutional neural networks in COVID-19 context: the romanian case study. Energies 14:4046","journal-title":"Energies"},{"key":"6773_CR37","doi-asserted-by":"publisher","first-page":"9621","DOI":"10.1007\/s00521-019-04474-5","volume":"32","author":"W Waheeb","year":"2020","unstructured":"Waheeb W, Ghazali R (2020) A novel error-output recurrent neural network model for time series forecasting. Neural Comput Appl 32:9621\u20139647","journal-title":"Neural Comput Appl"},{"key":"6773_CR38","doi-asserted-by":"publisher","first-page":"117197","DOI":"10.1016\/j.energy.2020.117197","volume":"197","author":"JQ Wang","year":"2020","unstructured":"Wang JQ, Du Y, Wang J (2020) LSTM based long-term energy consumption prediction with periodicity. Energy 197:117197. https:\/\/doi.org\/10.1016\/j.energy.2020.117197","journal-title":"Energy"},{"key":"6773_CR39","doi-asserted-by":"crossref","unstructured":"Wu L, Kong C, Hao X, Chen W (2020) A short-term load forecasting method based on GRU-CNN hybrid neural network model. Math Probl Eng 1428104","DOI":"10.1155\/2020\/1428104"},{"key":"6773_CR40","doi-asserted-by":"publisher","first-page":"112766","DOI":"10.1016\/j.cma.2019.112766","volume":"360","author":"P Wu","year":"2020","unstructured":"Wu P, Sun J, Chang X et al (2020) Data-driven reduced order model with temporal convolutional neural network. Comput Methods Appl Mech Eng 360:112766. https:\/\/doi.org\/10.1016\/j.cma.2019.112766","journal-title":"Comput Methods Appl Mech Eng"},{"key":"6773_CR41","doi-asserted-by":"publisher","first-page":"103657","DOI":"10.1016\/j.compbiomed.2020.103657","volume":"118","author":"W Wu","year":"2020","unstructured":"Wu W, Zhang J, Xie H et al (2020) Automatic detection of coronary artery stenosis by convolutional neural network with temporal constraint. Comput Biol Med 118:103657. https:\/\/doi.org\/10.1016\/j.compbiomed.2020.103657","journal-title":"Comput Biol Med"},{"key":"6773_CR42","doi-asserted-by":"publisher","first-page":"2393","DOI":"10.1007\/s00521-020-05076-2","volume":"33","author":"D Xia","year":"2021","unstructured":"Xia D, Zhang M, Yan XEA (2021) A distributed WND-LSTM model on mapreduce for short-term traffic flow prediction. Neural Comput Appl 33:2393\u20132410","journal-title":"Neural Comput Appl"},{"key":"6773_CR43","doi-asserted-by":"publisher","first-page":"136","DOI":"10.1016\/j.neucom.2019.02.063","volume":"416","author":"K Xie","year":"2020","unstructured":"Xie K, Yi H, Hu G, Li L, Fan Z (2020) Short-term power load forecasting based on Elman neural network with particle swarm optimization. Neurocomputing 416:136\u2013142","journal-title":"Neurocomputing"}],"container-title":["Neural Computing and Applications"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/link.springer.com\/content\/pdf\/10.1007\/s00521-021-06773-2.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/link.springer.com\/article\/10.1007\/s00521-021-06773-2\/fulltext.html","content-type":"text\/html","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/link.springer.com\/content\/pdf\/10.1007\/s00521-021-06773-2.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2023,11,17]],"date-time":"2023-11-17T01:28:51Z","timestamp":1700184531000},"score":1,"resource":{"primary":{"URL":"https:\/\/link.springer.com\/10.1007\/s00521-021-06773-2"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2022,2,5]]},"references-count":43,"journal-issue":{"issue":"13","published-print":{"date-parts":[[2022,7]]}},"alternative-id":["6773"],"URL":"https:\/\/doi.org\/10.1007\/s00521-021-06773-2","relation":{},"ISSN":["0941-0643","1433-3058"],"issn-type":[{"value":"0941-0643","type":"print"},{"value":"1433-3058","type":"electronic"}],"subject":[],"published":{"date-parts":[[2022,2,5]]},"assertion":[{"value":"31 March 2021","order":1,"name":"received","label":"Received","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"21 November 2021","order":2,"name":"accepted","label":"Accepted","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"5 February 2022","order":3,"name":"first_online","label":"First Online","group":{"name":"ArticleHistory","label":"Article History"}},{"order":1,"name":"Ethics","group":{"name":"EthicsHeading","label":"Declarations"}},{"value":"The authors declare that they have no conflict of interest.","order":2,"name":"Ethics","group":{"name":"EthicsHeading","label":"Conflict of interest"}}]}}