Submitted:
14 May 2024
Posted:
15 May 2024
You are already at the latest version
Abstract
Keywords:
Introduction
Methodology
ARIMA and SARIMA
Long Short-Term Memory (LSTM)
Results and Discussion
Data Visualization
- Seasonal decomposition: Addressing the observed seasonality can be achieved through techniques like seasonal decomposition. This process separates the time series into trend, seasonal and residual components, facilitating the isolation of patterns and enhancing the model's capability to capture underlying dynamics.
- Feature Engineering: Knowledge of monthly energy consumption trends allows for the creation of additional features, such as binary indicators for high or low consumption months. These engineered features contribute to the model's adaptability to specific patterns.
- Model Selection: The distinctive seasonality evident in the plot guides the selection of appropriate time series models. Models like SARIMA (Seasonal Autoregressive Integrated Moving Average), explicitly designed to account for seasonal variations, can be considered to effectively capture the observed patterns.

Kaggle Dataset
Prediction Analysis
LSTM (Long Short term Memory)
-
MAE (Mean Absolute Error):
- o
- Test Data: This metric measures the average absolute difference between the actual and predicted values in your test dataset. In your case, the MAE for the test data is 0.097, indicating an average absolute error of approximately 0.097 units.
- o
- Train Data: Similarly, for the training dataset, the MAE is 0.079. This suggests an average absolute error of around 0.079 units between the actual and predicted values during the training phase.
-
RMSE (Root Mean Squared Error):
- o
- Test Data: RMSE is a measure of the average magnitude of the errors between predicted and actual values, giving more weight to larger errors. Your RMSE for the test data is 0.1308, indicating the square root of the average squared differences between the predicted and actual values.
- o
- Train Data: For the training dataset, the RMSE is 0.112, representing the square root of the average squared errors during the training phase.
BiLSTM (Bidirectional LSTM)
- RMSE (Root Mean Square Error):
- Train Data: 0.108
- Test Data: 0.124
- MAE (Mean Absolute Error):
- Train Data: 0.076
- Test Data: 0.092
SARIMA (Seasonal Autoregressive Integrated Moving Average)
- RMSE (Root Mean Square Error):
- Test Data: 0.251
- MAE (Mean Absolute Error):
- Test Data: 0.203
Conclusion
- The proposed model presents a promising approach for forecasting the time-series energy generated by both consumers and prosumers. It offers an alternative solution for delivering reliable predictions.
-
Utilizing the time variable enables precise capture of periodicity. Incorporating this variable into the LSTM model enhances accuracy in predicting energy consumption. Furthermore, the BiLSTM method demonstrates superior prediction performance compared to LSTM, ARIMA, and SARIMA models.
- o
- The RMSE of BiLSTM is 5.35% lower than LSTM, 46.08% lower than ARIMA and 50.6% lower than SARIMA in the forecasting of long term time series.
- o
- The MAE of BiLSTM is 5.15% lower than LSTM, 52.08% lower than ARIMA and 54.18% lower than SARIMA in the forecasting of long term time series.
- Optimal parameter configuration plays a pivotal role in determining the performance of the LSTM model. Careful consideration should be given to selecting the training epoch to prevent insufficient training and overfitting issues. Introducing additional hidden layers can enhance the accuracy of both BiLSTM and LSTM models to some degree, albeit at the expense of increased computational time.
References
- J. Liu, Y. Chen, J. Zhan, F. Shang, An On-Line Energy Management Strategy Based on Trip Condition Prediction for Commuter Plug-In Hybrid Electric Vehicles, IEEE Trans Veh Technol 67 (2018) 3767–3781. [CrossRef]
- B. Han, D. Zhang, T. Yang, Energy consumption analysis and energy management strategy for sensor node, Proceedings of the 2008 IEEE International Conference on Information and Automation, ICIA 2008 (2008) 211–214. [CrossRef]
- H.T. Pao, Forecast of electricity consumption and economic growth in Taiwan by state space modeling, Energy 34 (2009) 1779–1791. [CrossRef]
- R. Fu, Z. Zhang, L. Li, Using LSTM and GRU neural network methods for traffic flow prediction, Proceedings - 2016 31st Youth Academic Annual Conference of Chinese Association of Automation, YAC 2016 (2017) 324–328. [CrossRef]
- S. Rasp, S. Lerch, Neural Networks for Postprocessing Ensemble Weather Forecasts, Mon Weather Rev 146 (2018) 3885–3900. [CrossRef]
- Q. Zhang, H. Wang, J. Dong, G. Zhong, X. Sun, Prediction of Sea Surface Temperature Using Long Short-Term Memory, IEEE Geoscience and Remote Sensing Letters 14 (2017) 1745–1749. [CrossRef]
- Y. Zuo, E. Kita, Stock price forecast using Bayesian network, Expert Syst Appl 39 (2012) 6729–6737. [CrossRef]
- F. Nomiyama, J. Asai, T. Murakami, J. Murata, A study on global solar radiation forecasting using weather forecast data, Midwest Symposium on Circuits and Systems (2011). [CrossRef]
- M. Khashei, M. Bijari, A novel hybridization of artificial neural networks and ARIMA models for time series forecasting, Appl Soft Comput 11 (2011) 2664–2675. [CrossRef]
- K. Kumaresan, P. Ganeshkumar, Software reliability prediction model with realistic assumption using time series (S)ARIMA model, J Ambient Intell Humaniz Comput 11 (2020) 5561–5568. [CrossRef]
- S. Panigrahi, H.S. Behera, A hybrid ETS–ANN model for time series forecasting, Eng Appl Artif Intell 66 (2017) 49–59. [CrossRef]
- W. Chen, C.K. Yeo, C.T. Lau, B.S. Lee, Leveraging social media news to predict stock index movement using RNN-boost, Data Knowl Eng 118 (2018) 14–24. [CrossRef]
- A.R.S. Parmezan, V.M.A. Souza, G.E.A.P.A. Batista, Evaluation of statistical and machine learning models for time series prediction: Identifying the state-of-the-art and the best conditions for the use of each model, Inf Sci (N Y) 484 (2019) 302–337. [CrossRef]
- T. Fischer, C. Krauss, Deep learning with long short-term memory networks for financial market predictions, Eur J Oper Res 270 (2018) 654–669. [CrossRef]
- H. Abbasimehr, M. Shabani, M. Yousefi, An optimized model using LSTM network for demand forecasting, Comput Ind Eng 143 (2020) 106435. [CrossRef]
- V. Gundu, S.P. Simon, PSO–LSTM for short term forecast of heterogeneous time series electricity price signals, J Ambient Intell Humaniz Comput 12 (2021) 2375–2385. [CrossRef]
- A. Kulshrestha, V. Krishnaswamy, M. Sharma, Bayesian BILSTM approach for tourism demand forecasting, Ann Tour Res 83 (2020) 102925. [CrossRef]
- R. Law, G. Li, D.K.C. Fong, X. Han, Tourism demand forecasting: A deep learning approach, Ann Tour Res 75 (2019) 410–423. [CrossRef]
- M.A. Ilani, M. Khoshnevisan, Study of surfactant effects on intermolecular forces (IMF) in powder-mixed electrical discharge machining (EDM) of Ti-6Al-4V, International Journal of Advanced Manufacturing Technology 116 (2021) 1763–1782. [CrossRef]
- M.A. Ilani, M. Khoshnevisan, An evaluation of the surface integrity and corrosion behavior of Ti-6Al-4 V processed thermodynamically by PM-EDM criteria, International Journal of Advanced Manufacturing Technology 120 (2022) 5117–5129. [CrossRef]
- R. Hosseini Rad, S. Baniasadi, P. Yousefi, H. Morabbi Heravi, M. Shaban Al-Ani, M. Asghari Ilani, Presented a Framework of Computational Modeling to Identify the Patient Admission Scheduling Problem in the Healthcare System, J Healthc Eng 2022 (2022). [CrossRef]
- H. Abbasimehr, R. Paki, Improving time series forecasting using LSTM and attention models, J Ambient Intell Humaniz Comput 13 (2022) 673–691. [CrossRef]
- H. Sharadga, S. Hajimirza, R.S. Balog, Time series forecasting of solar power generation for large-scale photovoltaic plants, Renew Energy 150 (2020) 797–807. [CrossRef]
- L. Breiman, Random forests, Mach Learn 45 (2001) 5–32. [CrossRef]
- S. Siami-Namini, N. Tavakoli, A. Siami Namin, A Comparison of ARIMA and LSTM in Forecasting Time Series, Proceedings - 17th IEEE International Conference on Machine Learning and Applications, ICMLA 2018 (2018) 1394–1401. [CrossRef]
- D.P. Kingma, J.L. Ba, Adam: A method for stochastic optimization, 3rd International Conference on Learning Representations, ICLR 2015 - Conference Track Proceedings (2015).












Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).