Abstract
Electricity is vital in daily life and crucial for sustainable economic development. Accurate forecasting of energy consumption ensures efficient electricity system operation and supports strategic decision-making for energy distribution. Current time-series methods neglect the influence of neighboring regions’ electricity consumption and the varying impact levels caused by multiple factors on the target area. Therefore, we propose the k-nearest neighbor attentive deep autoregressive network (KNNA-DeepAR) model, which combines a k-nearest neighbor approach with an attentive deep autoregressive network, to achieve precise short-term electricity consumption predictions. By extracting informative features from historical time-series data, we incorporate electricity consumption data from the k regions closest to the target area as additional variables. Leveraging the attention mechanism, we assign varying weights to each variable to capture their interdependencies. Experimental results on a public dataset of electricity loads in fourteen U.S. regions demonstrate the superiority of our model. Compared to state-of-the-art time-series models, our model achieves higher predictive accuracy and exhibits significant potential as an effective approach for accurately predicting electricity consumption and other time-series tasks.
Similar content being viewed by others
Data availability
The datasets generated during and/or analysed during the current study are available in the Kaggle repository [https://www.kaggle.com/datasets/robikscube/hourly-energy-consumption?select=pjm_hourly_est.csv].
References
Paudel A, Khorasany M, Gooi HB (2020) Decentralized local energy trading in microgrids with voltage management. IEEE Trans Ind Inform 17(2):1111–1121
Friedrich L, Afshari A (2015) Short-term forecasting of the Abu Dhabi electricity load using multiple weather variables. Energy Proc 75:3014–3026
Luo J, Hong T, Yue M (2018) Real-time anomaly detection for very short-term load forecasting. J Mod Power Syst Clean Energy 6(2):235–243
Zor K, Timur O, Teke A (2017) A state-of-the-art review of artificial intelligence techniques for short-term electric load forecasting. In: 2017 6th International Youth Conference on Energy (IYCE), pp 1–7. IEEE
Desportes L, Andry P, Fijalkow I, David J (2019) Short-term temperature forecasting on a several hours horizon. In: Artificial neural networks and machine learning–ICANN 2019: Text and Time Series: 28th International Conference on Artificial Neural Networks, Munich, Germany, September 17–19, 2019, Proceedings, Part IV 28, pp 525–536. Springer
Zhu Q, Zhang F, Liu S, Wu Y, Wang L (2019) A hybrid vmd-bigru model for rubber futures time series forecasting. Appl Soft Comput 84:105739
Juberias G, Yunta R, Moreno JG, Mendivil C (1999) A new arima model for hourly load forecasting. In: 1999 IEEE Transmission and Distribution Conference (Cat. No. 99CH36333), vol. 1, pp 314–319. IEEE
Bercu S, Proïa F (2013) A sarimax coupled modelling applied to individual load curves intraday forecasting. J Appl Stat 40(6):1333–1348
Taylor JW (2011) Short-term load forecasting with exponentially weighted methods. IEEE Trans Power Syst 27(1):458–464
Ibrahim M, Alsheikh A, Al-Hindawi Q, Al-Dahidi S, ElMoaqet H (2020) Short-time wind speed forecast using artificial learning-based algorithms. Comput Intell Neurosci 15:8439719. https://doi.org/10.1155/2020/8439719
Ke K, Hongbin S, Chengkang Z, Brown C (2019) Short-term electrical load forecasting method based on stacked auto-encoding and gru neural network. Evol Intel 12(3):385–394
Salinas D, Flunkert V, Gasthaus J, Januschowski T (2020) Deepar: probabilistic forecasting with autoregressive recurrent networks. Int J Forecast 36(3):1181–1191
Taylor SJ, Letham B (2018) Forecasting at scale. Am Stat 72(1):37–45
Yu Y, Si X, Hu C, Zhang J (2019) A review of recurrent neural networks: Lstm cells and network architectures. Neural Comput 31(7):1235–1270
Shilpa G, Sheshadri G (2017) Short-term load forecasting using arima model for Karnataka state electrical load. Int J Eng Res Dev 13(7):75–79
Barak S, Sadegh SS (2016) Forecasting energy consumption using ensemble arima-anfis hybrid algorithm. Int J Electric Power Energy Syst 82:92–104
Bianco V, Manca O, Nardini S (2009) Electricity consumption forecasting in Italy using linear regression models. Energy 34(9):1413–1421
Ceperic E, Ceperic V, Baric A (2013) A strategy for short-term load forecasting by support vector regression machines. IEEE Trans Power Syst 28(4):4356–4364
Xu W, Peng H, Zeng X, Zhou F, Tian X, Peng X (2019) A hybrid modelling method for time series forecasting based on a linear regression model and deep learning. Appl Intell 49(8):3002–3015
Ahmad AS, Hassan MY, Abdullah MP, Rahman HA, Hussin F, Abdullah H, Saidur R (2014) A review on applications of ann and svm for building electrical energy consumption forecasting. Renew Sustain Energy Rev 33:102–109
Yang Y, Tao Z, Qian C, Gao Y, Zhou H, Ding Z, Wu J (2022) A hybrid robust system considering outliers for electric load series forecasting. Appl Intell 52(2):1630–1652
Kalogirou SA (2006) Artificial neural networks in energy applications in buildings. Int J Low-Carbon Technol 1(3):201–216
Rahman A, Srikumar V, Smith AD (2018) Predicting electricity consumption for commercial and residential buildings using deep recurrent neural networks. Appl Energy 212:372–385
Hochreiter S, Schmidhuber J (1997) Long short-term memory. Neural Comput 9(8):1735–1780
Kim N, Kim M, Choi JK (2018) Lstm based short-term electricity consumption forecast with daily load profile sequences. In: 2018 IEEE 7th Global Conference on Consumer Electronics (GCCE), pp 136–137. IEEE
Marino DL, Amarasinghe K, Manic M (2016) Building energy load forecasting using deep neural networks. In: IECON 2016-42nd Annual Conference of the IEEE Industrial Electronics Society, pp 7046–7051. IEEE
Choi JY (2018) Lee B (2018) Combining lstm network ensemble via adaptive weighting for improved time series forecasting. MathProbl Eng 8:2470171. https://doi.org/10.1155/2018/2470171
Naz A, Javaid N, Asif M, Javed MU, Ahmed A, Gulfam SM, Shafiq M, Choi J-G (2021) Electricity consumption forecasting using gated-fcn with ensemble strategy. IEEE Access 9:131365–131381
Li W, Logenthiran T, Woo WL (2019) Multi-gru prediction system for electricity generation’s planning and operation. IET Gener Transm Distrib 13(9):1630–1637
Arora P, Jalali SMJ, Ahmadian S, Panigrahi B, Suganthan P, Khosravi A (2022) Probabilistic wind power forecasting using optimized deep auto-regressive recurrent neural networks. IEEE Trans Ind Inf 19(3):2814–2825
Chen Y, Kang Y, Chen Y, Wang Z (2020) Probabilistic forecasting with temporal convolutional neural network. Neurocomputing 399:491–501
Niu Z, Zhong G, Yu H (2021) A review on the attention mechanism of deep learning. Neurocomputing 452:48–62
Huang P-Y, Liu F, Shiang S-R, Oh J, Dyer C (2016) Attention-based multimodal neural machine translation. In: Proceedings of the First Conference on machine translation: volume 2, Shared Task Papers, pp 639–645
Zhang B, Xiong D, Su J (2018) Neural machine translation with deep attention. IEEE Trans Pattern Anal Mach Intell 42(1):154–163
Ru Y, Qiu X, Tan X, Chen B, Gao Y, Jin Y (2022) Sparse-attentive meta temporal point process for clinical decision support. Neurocomputing 485:114–123
Ma F, Chitta R, Zhou J, You Q, Sun T, Gao J (2017) Dipole: Diagnosis prediction in healthcare via attention-based bidirectional recurrent neural networks. In: Proceedings of the 23rd ACM SIGKDD International Conference on knowledge discovery and data mining, pp 1903–1911
Wang S, Hu L, Cao L, Huang X, Lian D, Liu W (2018) Attention-based transactional context embedding for next-item recommendation. In: Proceedings of the AAAI Conference on artificial intelligence, vol. 32
Qian J, Qiu X, Tan X, Li Q, Chen J, Jiang X (2023) An attentive lstm based approach for adverse drug reactions prediction. Appl Intell 53(5):4875–4889
Luong M-T, Pham H, Manning CD (2015) Effective approaches to attention-based neural machine translation. arXiv preprint arXiv:1508.04025
Zhang G, Bai X, Wang Y (2021) Short-time multi-energy load forecasting method based on cnn-seq2seq model with attention mechanism. Mach Learn Appl 5:100064
Sundermeyer M, Schlüter R, Ney H (2012) Lstm neural networks for language modeling. In: Thirteenth Annual Conference of the International Speech Communication Association
Sivaramakrishnan S, Fernandez TF, Babukarthik R, Premalatha S (2022) Forecasting time series data using arima and facebook prophet models. In: Big Data Management in Sensing, pp 47–59. River Publishers
Yifan D, Jialin L, Boxi F (2021) Forecast model of breast cancer diagnosis based on rf-adaboost. In: 2021 International Conference on communications, information system and computer engineering (CISCE), pp 716–719. IEEE
Amjady N (2001) Short-term hourly load forecasting using time-series modeling with peak load estimation capability. IEEE Trans Power Syst 16(3):498–505
Bae D-J, Kwon B-S, Song K-B (2021) Xgboost-based day-ahead load forecasting algorithm considering behind-the-meter solar pv generation. Energies 15(1):128
Funding
This work is supported by the National Natural Science Foundation of China, “Science and Technology Innovation Action Plan” Shanghai Natural Science Foundation (Grant no. 62102241, no. 23ZR1425400).
Author information
Authors and Affiliations
Contributions
All authors contributed to the study conception and design. Material preparation, data collection and analysis were performed by XQ, YR, JC, BC and YG. The first draft of the manuscript was written by XQ and XT all authors commented on previous versions of the manuscript. All authors read and approved the final manuscript.
Corresponding author
Ethics declarations
Conflict of interest
The authors have no relevant financial or non-financial interests to disclose.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Qiu, X., Ru, Y., Tan, X. et al. A k-nearest neighbor attentive deep autoregressive network for electricity consumption prediction. Int. J. Mach. Learn. & Cyber. 15, 1201–1212 (2024). https://doi.org/10.1007/s13042-023-01963-x
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s13042-023-01963-x