Submitted:
31 May 2023
Posted:
02 June 2023
You are already at the latest version
Abstract
Keywords:
1. Introduction
2. Background
2.1. Forecasting Models
2.2. Energy Consumption Forecasting
3. Data Used in this Study
3.1. Data Collection



3.2. Data Setup
4. Methodology
4.1. Data Preprocessing
4.2. Forecasting Model - Multivariate Multilayered LSTM
5. Bench-Marking Models
5.1. Linear Regression
5.2. LSTM

5.3. Bidirectional LSTM
6. Experiment
6.1. Metric
6.2. Result and Discussion
6.2.1. General Performance

6.2.2. Experience Different Models
| with labelled time | without labelled time | ||||||
|---|---|---|---|---|---|---|---|
| Dataset | Model | MAE_t | RMSE_t | MAPE_t | MAE | RMSE | MAPE |
| 0.75 | 1.15 | 0.16 | 1.08 | 1.37 | 0.26 | ||
| LSTM | 1.30 | 1.47 | 0.32 | 1.35 | 1.58 | 0.34 | |
| Bi-LSTM | 1.46 | 1.85 | 0.24 | 1.53 | 1.63 | 0.31 | |
| Linear Regression | 1.40 | 1.53 | 0.29 | 1.40 | 1.50 | 0.27 | |
| 0.49 | 0.74 | 0.14 | 0.84 | 0.96 | 0.18 | ||
| LSTM | 1.47 | 1.66 | 0.39 | 1.89 | 2.00 | 0.50 | |
| Bi-LSTM | 1.45 | 1.16 | 0.22 | 1.89 | 2.06 | 0.48 | |
| Linear Regression | 0.60 | 0.75 | 0.17 | 1.21 | 1.52 | 0.34 | |
| 0.66 | 0.85 | 0.07 | 0.69 | 0.87 | 0.10 | ||
| LSTM | 0.79 | 0.95 | 0.18 | 0.67 | 0.94 | 0.43 | |
| Bi-LSTM | 1.61 | 2.15 | 0.40 | 1.23 | 1.92 | 0.81 | |
| Linear Regression | 0.84 | 1.18 | 0.27 | 0.73 | 0.90 | 0.73 | |

7. Conclusions
References
- Khalil, M.; McGough, A.S.; Pourmirza, Z.; Pazhoohesh, M.; Walker, S. Machine learning, deep learning and statistical analysis for forecasting building energy consumption — a systematic review. Engineering Applications of Artificial Intelligence. 2022, 115, 105287. [Google Scholar] [CrossRef]
- IEA. Clean energy transitions in emerging and developing economies. 2021. [Google Scholar]
- Shin, S.-Y.; Woo, H.-G. Energy consumption forecasting in korea using machine learning algorithms. Energies 2022, 15, 4880. [Google Scholar] [CrossRef]
- Özbay, H.; Dalcalı, A. Effects of covid-19 on electric energy consumption in turkey and ann-based short-term forecasting. Turkish Journal of Electrical Engineering Computer Sciences 2021, 29, 78–97. [Google Scholar] [CrossRef]
- Ji, Y.; Lomas, K.J.; Cook, M.J. Hybrid ventilation for low energy building design in south China. Building and Environment 2009, 44, 2245–2255. [Google Scholar] [CrossRef]
- Manu, S.; Shukla, Y.; Rawal, R.; Thomas, L.E.; De Dear, R. Field studies of thermal comfort across multiple climate zones for the subcontinent: India Model for Adaptive Comfort (IMAC). Building and Environment 2016, 98, 55–70. [Google Scholar] [CrossRef]
- Delzendeh, E.; Wu, S.; Lee, A.; Zhou, Y. The impact of occupants’ behaviours on building energy analysis: A research review. Renewable and Sustainable Energy Reviews 2017, 80, 1061–1071. [Google Scholar] [CrossRef]
- Itzhak, N.; Tal, S.; Cohen, H.; Daniel, O.; Kopylov, R.; Moskovitch, R. Classification of univariate time series via temporal abstraction and deep learning. In Proceedings of the 2022 IEEE International Conference on Big Data (Big Data); IEEE, 2022; pp. 1260–1265. [Google Scholar]
- Ibrahim, M.; Badran, K.M.; Hussien, A.E. Artificial intelligence-based approach for univariate time-series anomaly detection using hybrid cnn-bilstm model. In Proceedings of the 2022 13th International Conference on Electrical Engineering (ICEENG); IEEE, 2022; pp. 129–133. [Google Scholar]
- Hu, M.; Ji, Z.; Yan, K.; Guo, Y.; Feng, X.; Gong, J.; Zhao, X.; Dong, L. Detecting anomalies in time series data via a meta-feature based approach. IEEE Access 2018, 6, 27760–27776. [Google Scholar] [CrossRef]
- Niu, Z.; Yu, K.; Wu, X. Lstm-based vae-gan for time-series anomaly detection. Sensors 2020, 20, 3738. [Google Scholar] [CrossRef]
- Warrick, P.; Homsi, M.N. Cardiac arrhythmia detection from ecg combining convolutional and long short-term memory networks. In 2017 Computing in Cardiology (CinC); IEEE, 2017; pp. 1–4. [Google Scholar]
- Karim, F.; Majumdar, S.; Darabi, H.; Harford, S. Multivariate lstm-fcns for time series classification. Neural networks 2019, 116, 237–245. [Google Scholar] [CrossRef]
- Gasparin, A.; Lukovic, S.; Alippi, C. Deep learning for time series forecasting: The electric load case. CAAI Transactions on Intelligence Technology 2021, 7. [Google Scholar] [CrossRef]
- Wei, N.; Li, C.; Peng, X.; Zeng, F.; Lu, X. Conventional models and artificial intelligence-based models for energy consumption forecasting: A review. Journal of Petroleum Science and Engineering 2019, 181, 106187. [Google Scholar] [CrossRef]
- Divina, F.; Garcia Torres, M.; Gomez Vela, F.A.; Vazquez Noguera, J.L. A comparative study of time series forecasting methods for short term electric energy consumption prediction in smart buildings. Energies 2019, 12, 1934. [Google Scholar] [CrossRef]
- Johannesen, N.J.; Kolhe, M.; Goodwin, M. Relative evaluation of regression tools for urban area electrical energy demand forecasting. Journal of cleaner production 2019, 218, 555–564. [Google Scholar] [CrossRef]
- Singhal, R.; Choudhary, N.; Singh, N. Short-Term Load Forecasting Using Hybrid ARIMA and Artificial Neural Network Model. 2020, 01, 935–947. [Google Scholar]
- Li, K.; Zhang, T. Forecasting electricity consumption using an improved grey prediction model. Information 2018, 9, 204. [Google Scholar] [CrossRef]
- Kim, Y.; Son, H.G.; Kim, S. Short term electricity load forecasting for institutional buildings. Energy Reports 2019, 5, 1270–1280. [Google Scholar] [CrossRef]
- Chitalia, G.; Pipattanasomporn, M.; Garg, V.; Rahman, S. Robust short-term electrical load forecasting framework for commercial buildings using deep recurrent neural networks. Applied Energy 2020, 278, 115410. [Google Scholar] [CrossRef]
- Pinto, T.; Praça, I.; Vale, Z.; Silva, J. Ensemble learning for electricity consumption forecasting in office buildings. Neurocomputing 2021, 423, 747–755. [Google Scholar] [CrossRef]
- Pallonetto, F.; Jin, C.; Mangina, E. Forecast electricity demand in commercial building with machine learning models to enable demand response programs. Energy and AI 2022, 7, 100121. [Google Scholar] [CrossRef]
- Skomski, E.; Lee, J.Y.; Kim, W.; Chandan, V.; Katipamula, S.; Hutchinson, B. Sequence-to-sequence neural networks for short-term electrical load forecasting in commercial office buildings. Energy and Buildings 2020, 226, 110350. [Google Scholar] [CrossRef]
- Dagdougui, H.; Bagheri, F.; Le, H.; Dessaint, L. Neural network model for short-term and very-short-term load forecasting in district buildings. Energy and Buildings 2019, 203, 109408. [Google Scholar] [CrossRef]
- Khan, Z.A.; Hussain, T.; Ullah, A.; Rho, S.; Lee, M.; Baik, S.W. Towards efficient electricity forecasting in residential and commercial buildings: A novel hybrid CNN with a LSTM-AE based framework. Sensors 2020, 20, 1399. [Google Scholar] [CrossRef]
- Karijadi, I.; Chou, S.Y. A hybrid RF-LSTM based on CEEMDAN for improving the accuracy of building energy consumption prediction. Energy and Buildings 2022, 259, 111908. [Google Scholar] [CrossRef]
- Hwang, J.; Suh, D.; Otto, M.O. Forecasting electricity consumption in commercial buildings using a machine learning approach. Energies 2020, 13, 5885. [Google Scholar] [CrossRef]
- Fernández-Martínez, D.; Jaramillo-Morán, M.A. Multi-Step Hourly Power Consumption Forecasting in a Healthcare Building with Recurrent Neural Networks and Empirical Mode Decomposition. Sensors 2022, 22, 3664. [Google Scholar] [CrossRef] [PubMed]
- Jozi, A.; Pinto, T.; Marreiros, G.; Vale, Z. Electricity consumption forecasting in office buildings: an artificial intelligence approach. In 2019 IEEE Milan PowerTech; 2019; pp. 1–6. [Google Scholar]
- Mariano-Hernández, D.; Hernández-Callejo, L.; Solís, M.; Zorita-Lamadrid, A.; Duque-Pérez, O.; Gonzalez-Morales, L.; Alonso-Gómez, V.; Jaramillo-Duque, A.; Santos García, F. Comparative study of continuous hourly energy consumption forecasting strategies with small data sets to support demand management decisions in buildings. Energy Science & Engineering 2022, 10, 4694–4707. [Google Scholar]
- del Real, A.J.; Dorado, F.; Duran, J. Energy demand forecasting using deep learning: Applications for the french grid. Energies 2020, 13, 2242. [Google Scholar] [CrossRef]
- Fathi, S.; Srinivasan, R.S.; Kibert, C.J.; Steiner, R.L.; Demirezen, E. AI-based campus energy use prediction for assessing the effects of climate change. Sustainability 2020, 12, 3223. [Google Scholar] [CrossRef]
- Khan, S.U.; Khan, N.; Ullah, F.U.M.; Kim, M.J.; Lee, M.Y.; Baik, S.W. Towards intelligent building energy management: AI-based framework for power consumption and generation forecasting. Energy and Buildings 2023, 279, 112705. [Google Scholar] [CrossRef]
- Athiyarath, S.; Paul, M.; Krishnaswamy, S. A comparative study and analysis of time series forecasting techniques. SN Computer Science 2020, 1. [Google Scholar] [CrossRef]
- Noor, R.M.; Yik, N.S.; Kolandaisamy, R.; Ahmedy, I.; Hossain, M.A.; Yau, K.L.A.; Shah, W.M.; Nandy, T. Predict Arrival Time by Using Machine Learning Algorithm to Promote Utilization of Urban Smart Bus. 2020. [Google Scholar]
- Ciampiconi, L.; Elwood, A.; Leonardi, M.; Mohamed, A.; Rozza, A. A survey and taxonomy of loss functions in machine learning. 2023. [Google Scholar]
- Bianco, V.; Manca, O.; Nardini, S. Electricity consumption forecasting in italy using linear regression models. Energy 2009, 34, 1413–1421. [Google Scholar] [CrossRef]
- Saab, S.; Badr, E.; Nasr, G. Univariate modeling and forecasting of energy consumption: the case of electricity in lebanon. Energy 2001, 26, 1–14. [Google Scholar] [CrossRef]
- Yuan, X.; Li, L.; Wang, Y. Nonlinear dynamic soft sensor modeling with supervised long short-term memory network. IEEE transactions on industrial informatics 2019, 16, 3168–3176. [Google Scholar] [CrossRef]
- Durand, D.; Aguilar, J.; R-Moreno, M.D. An analysis of the energy consumption forecasting problem in smart buildings using lstm. Sustainability 2022, 14, 13358. [Google Scholar] [CrossRef]
- Hochreiter, S.; Schmidhuber, J. Long short-term memory. Neural computation 1997, 9, 1735–1780. [Google Scholar] [CrossRef]
- Graves, A.; Schmidhuber, J. Framewise phoneme classification with bidirectional lstm and other neural network architectures. Neural networks 2005, 18, 602–610. [Google Scholar] [CrossRef] [PubMed]
- Le, T.; Vo, M.T.; Vo, B.; Hwang, E.; Rho, S.; Baik, S.W. Improving electric energy consumption prediction using cnn and bi-lstm. Applied Sciences 2019, 9, 4237. [Google Scholar] [CrossRef]





| No | Forecasting Model | Year | Country | Forecast Horizon | Ref | Accuracy | ||
|---|---|---|---|---|---|---|---|---|
| MAPE | RMSE | MAE | ||||||
| 1 | ANN model with external variables (NARX) | 2019 | Korea | hour ahead | [20] | 1.69% | 85.44 | |
| 2 | Long Short-term Memory Networks with attention (LSTM) | 2020 | USA | hour ahead | [21] | 5.96% | 7.21 | |
| 3 | AdaBoost.R2 | 2021 | Portugal | hour ahead | [22] | 5.34% | ||
| 4 | Support Vector Machine (SVM) | 2022 | Ireland | hour ahead | [23] | 5.3% | 3.82 | 11.94 kW |
| 5 | Seq2seq RNN | 2020 | USA | hour ahead | [24] | 3.74 kW | ||
| 6 | Bayesian regularized (BR) (12 inputs) | 2019 | Canada | hour ahead | [25] | 1.83% | 105.03 kW | |
| Levenberg Macquardt (LM) (12 inputs) | 2019 | Canada | hour ahead | 1.82% | 104.21 kW | |||
| 7 | Hybrid convolutional neural network (CNN) | 2020 | Korea | hour ahead | [26] | 0.76% | 0.47 | 0.31 |
| with an LSTM autoencoder (LSTM-AE) | ||||||||
| 8 | Hybrid method of Random Forest (RF) and Long Short-Term | 2022 | USA | hour ahead | [27] | 5.33% | 0.57 | 0.43 |
| Memory (LSTM) based on Complete Ensemble Empirical | ||||||||
| Mode Decomposition with Adaptive Noise (CEEMDA) | ||||||||
| 9 | Seasonal autoregressive integrated moving average (SARIMAX) | 2020 | Korea | day ahead | [28] | 27.15% | 557.6 kW | |
| 10 | Gated Recurrent Unit (GRU) | 2022 | Spain | day ahead | [29] | 7.86% | 156.11 | |
| 11 | Hybrid Neural Fuzzy Interface System (HyFIS) | 2019 | Portugal | day ahead | [30] | 8.71% | ||
| Wang and Mendel’s Fuzzy Rule Learning Method (WM) | 2019 | Portugal | day ahead | 8.58% | ||||
| A genetic fuzzy system for fuzzy rule learning | 2019 | Portugal | day ahead | 9.87% | ||||
| based on the MOGUL methodology (GFS.FR.MOGUL) | ||||||||
| 12 | XGBoost | 2022 | Spain | day ahead | [31] | 8.83 |
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. |
© 2023 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/).