Submitted:
30 August 2024
Posted:
02 September 2024
You are already at the latest version
Abstract
Keywords:
1. Introduction
2. Related Works
3. Methodology
3.1. Proposed Hybrid Framework for Energy Consumption Predictions in Smart Buildings
3.2. Theoretical Overview of the Proposed Solution
3.2.1. Convolutional Neural Network Building Blocks (layers)
- a.
- The Convolutional Layer
- b.
- The pooling Layer
- c.
- Fully Connected Layer
3.2.3. Long Short-Term Memory Block

3.3. The Proposed Hybrid CNN-LSTM Method
4. Experiments and Results
4.1. Energy Consumption Dataset and Analysis


4.1.1. Energy Consumption by Month
4.1.2. Energy Consumption by Hour
4.2. Model Development and training
4.2.1. Converting a Time Series Task to a Supervised Learning Task
4.2.2. Split the Data into Training, Validation, and Testing
4.2.3. Developed Models for Energy Consumption Predictions
4.3. Evaluation Metrics
4.4. Model Evaluation
4.4.1. Performance Evaluation of the Proposed Model and Other Hybrid Deep Learning Models
4.5. Predicting Daily Energy Consumption






4.6. Model Prediction Performance with Time Change Resolution
5. Discussion
6. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Olu-Ajayi, R., Alaka, H., Sulaimon, I., Sunmola, F., & Ajayi, S. (2022a). Building energy consumption prediction for residential buildings using deep learning and other machine learning techniques. Journal of Building Engineering, 45, 103406. [CrossRef]
- Ozili, P. K. (2021). Sustainability accounting. SSRN Electronic Journal. [CrossRef]
- Pérez-Lombard, L., Ortiz, J., & Pout, C. (2008). A review on buildings energy consumption information. Energy and Buildings, 40(3), 394–398. [CrossRef]
- Hu, S., Hoare, C., Raftery, P., & O’Donnell, J. (2019). Environmental and energy performance assessment of buildings using scenario modelling and fuzzy analytic network process. Applied Energy, 255. [CrossRef]
- Sharma, S., Xu, Y., Verma, A., & Panigrahi, B. K. (2019). Time-Coordinated Multienergy Management of Smart Buildings Under Uncertainties. IEEE Transactions on Industrial Informatics, 15(8), 4788–4798. [CrossRef]
- Gupta, A., Badr, Y., Negahban, A., & Qiu, R. G. (2021). Energy-efficient heating control for smart buildings with deep reinforcement learning. Journal of Building Engineering, 34, 101739. [CrossRef]
- Bourhnane, S., Abid, M. R., Lghoul, R., Zine-Dine, K., Elkamoun, N., & Benhaddou, D. (2020a). Machine learning for energy consumption prediction and scheduling in smart buildings. SN Applied Sciences, 2(2), 1–10. [CrossRef]
- Xu, D., Yang, S., Zhang, H., Xu, Q., Li, Z., Lu, Z., & Chen, W. (2018). A Classified Identification Deep-Belief Network for Predicting Electric-Power Load; A Classified Identification Deep-Belief Network for Predicting Electric-Power Load. 2018 2nd IEEE Conference on Energy Internet and Energy System Integration (EI2).
- Dai, X., Liu, J. and Zhang, X. (2020) ‘A review of studies applying machine learning models to predict occupancy and window-opening behaviours in smart buildings’, Energy and Buildings, 223, p. 110159. [CrossRef]
- Zhao, C., Zhang, M. and Wang, W. (2019) ‘Exploring the influence of severe haze pollution on residents’ intention to purchase energy-saving appliances’, Journal of Cleaner Production, 212, pp. 1536–1543. [CrossRef]
- Mariano-Hernández, D., Hernández-Callejo, L., Solís, M., Zorita-Lamadrid, A., Duque-Perez, O., Gonzalez-Morales, L., & Santos-García, F. (2021). A Data-Driven Forecasting Strategy to Predict Continuous Hourly Energy Demand in Smart Buildings. [CrossRef]
- Afzal, S. et al. (2023) ‘Building energy consumption prediction using multilayer perceptron neural network-assisted models; comparison of different optimization algorithms’, Energy, 282, p. 128446. [CrossRef]
- Sekhar, C. and Dahiya, R. (2023) ‘Robust framework based on hybrid deep learning approach for short term load forecasting of building electricity demand’, Energy, 268, p. 126660. [CrossRef]
- Cai, W. et al. (2023) ‘Predicting the energy consumption in buildings using the optimized support vector regression model’, Energy, 273, p. 127188. [CrossRef]
- Maghraoui, A. el, Ledmaoui, Y., Laayati, O., Hadraoui, H. el, & Chebak, A. (2022). Smart Energy Management: A Comparative Study of Energy Consumption Forecasting Algorithms for an Experimental Open-Pit Mine. Energies, 15(13). [CrossRef]
- Wang, M., Wang, W., & Wu, L. (2022). Application of a new grey multivariate forecasting model in the forecasting of energy consumption in 7 regions of China. Energy, 243, 123024. [CrossRef]
- Gellert, A., Fiore, U., Florea, A., Chis, R., & Palmieri, F. (2022). Forecasting Electricity Consumption and Production in Smart Homes through Statistical Methods. Sustainable Cities and Society, 76, 103426. [CrossRef]
- Ma, H. (2022). Prediction of industrial power consumption in Jiangsu Province by regression model of time variable. Energy, 239, 122093. [CrossRef]
- Shao, M., Wang, X., Bu, Z., Chen, X., & Wang, Y. (2020). Prediction of energy consumption in hotel buildings via support vector machines. Sustainable Cities and Society, 57, 102128. [CrossRef]
- Olu-Ajayi, R., Alaka, H., Sulaimon, I., Sunmola, F., & Ajayi, S. (2022b). Building energy consumption prediction for residential buildings using deep learning and other machine learning techniques. Journal of Building Engineering, 45, 103406. [CrossRef]
- Jin, Y., Yan, D., Zhang, X., Han, M., Kang, X., An, J., & Sun, H. (2019). District household electricity consumption pattern analysis based on auto-encoder algorithm. IOP Conference Series: Materials Science and Engineering, 609(7). [CrossRef]
- Salmerón Gómez, R., García, C. B. G., & Pérez, J. G. (2022). The multiColl Package Versus Other Existing Packages in R to Detect Multicollinearity. Computational Economics, 60(2), 439–450. [CrossRef]
- Azuana Ramli, N., Laili Mazlan, N., Jamilatul Awalin, L., Badrulhisham Ismail, M., Kassim, A., & Menon, A. (2020). A Smart Building Energy Management using Internet of Things (IoT) and Machine Learning. https://www.researchgate.net/publication/342956749.
- Shapi, M. K. M., Ramli, N. A., & Awalin, L. J. (2021). Energy consumption prediction by using machine learning for smart building: Case study in Malaysia. Developments in the Built Environment, 5. [CrossRef]
- Wang, Y., Wang, L., Yang, F., Di, W., & Chang, Q. (2021). Advantages of direct input-to-output connections in neural networks: The Elman network for stock index forecasting. Information Sciences, 547, 1066–1079. [CrossRef]
- Zhang, J., Li, Z., Pu, Z., & Xu, C. (2018). Comparing prediction performance for crash injury severity among various machine learning and statistical methods. IEEE Access, 6, 60079–60087. [CrossRef]
- Kiprijanovska, I., Stankoski, S., Ilievski, I., Jovanovski, S., Gams, M., & Gjoreski, H. (2020). Houseec: Day-ahead household electrical energy consumption forecasting using deep learning. Mdpi.Com. [CrossRef]
- Palak, M., Revati, G., & Sheikh, A. (2021). Smart Building Energy Management using Deep Learning Based Predictions. 2021 North American Power Symposium, NAPS 2021. [CrossRef]
- Sajjad, M., Khan, Z. A., Ullah, A., Hussain, T., Ullah, W., Lee, M. Y., & Baik, S. W. (2020a). A Novel CNN-GRU-Based Hybrid Approach for Short-Term Residential Load Forecasting. IEEE Access, 8, 143759–143768. [CrossRef]
- Albawi, S., Mohammed, T. A., & Al-Zawi, S. (2018). Understanding of a convolutional neural network. Proceedings of 2017 International Conference on Engineering and Technology, ICET 2017, 2018-January, 1–6. [CrossRef]
- Dauphin, Y. N., Fan, A., Auli, M., & Grangier, D. (2017). Language modeling with gated convolutional networks. 34th International Conference on Machine Learning, ICML 2017, 2, 1551–1559.
- Li, Z., Friedrich, D., & Harrison, G. P. (2020). Demand Forecasting for a Mixed-Use Building Using Agent-Schedule Information with a Data-Driven Model. Energies 2020, Vol. 13, Page 780, 13(4), 780. [CrossRef]
- Khalil, M., McGough, A. S., Pourmirza, Z., Pazhoohesh, M., & Walker, S. (2022). Machine Learning, Deep Learning and Statistical Analysis for forecasting building energy consumption — A systematic review. Engineering Applications of Artificial Intelligence, 115, 105287. [CrossRef]
- Graves, A., Jaitly, N., on, A. M.-2013 I. workshop, & 2013, undefined. (n.d.). Hybrid speech recognition with deep bidirectional LSTM. Ieeexplore.Ieee.Org. Retrieved November 29, 2022, from https://ieeexplore.ieee.org/abstract/document/6707742/.
- Shah, F., Naik, T., & Vyas, N. (2019). LSTM based music generation. Proceedings - International Conference on Machine Learning and Data Engineering, ICMLDE 2019, 48–53. [CrossRef]
- Yan, K., Li, W., Ji, Z., Qi, M., & Du, Y. (2019). A Hybrid LSTM Neural Network for Energy Consumption Forecasting of Individual Households. IEEE Access, 7, 157633–157642. [CrossRef]
- Ookura, S., & Mori, H. (2020). An efficient method for wind power generation forecasting by LSTM in consideration of overfitting prevention. IFAC-PapersOnLine, 53(2), 12169–12174. [CrossRef]
- Sherstinsky, A. (2020). Fundamentals of Recurrent Neural Network (RNN) and Long Short-Term Memory (LSTM) network. Physica D: Nonlinear Phenomena, 404, 132306. [CrossRef]
- Kim, C. H. A. (2020). Machine Learning to Predict Cardiovascular Mortality from Electrocardiogram Data.
- Kim, T. Y., & Cho, S. B. (2019). Predicting residential energy consumption using CNN-LSTM neural networks. Energy, 182, 72–81. [CrossRef]
- Liu, T., Xu, C., Guo, Y., & Chen, H. (2019). A novel deep reinforcement learning based methodology for short-term HVAC system energy consumption prediction. International Journal of Refrigeration, 107, 39–51. [CrossRef]
- Sajjad, M., Khan, Z. A., Ullah, A., Hussain, T., Ullah, W., Lee, M. Y., & Baik, S. W. (2020b). A Novel CNN-GRU-Based Hybrid Approach for Short-Term Residential Load Forecasting. IEEE Access, 8, 143759–143768. [CrossRef]
- Beck, M., Pöppel, K., Spanring, M., Auer, A., Prudnikova, O., Kopp, M., Klambauer, G., Brandstetter, J., and Hochreiter, S, 763 xlstm: Extended long short-term memory. arXiv preprint arXiv:2405.04517, 2024. 764.
- Van Houdt, G., Mosquera, C., and Nápoles, G., A review on the long short-term memory model, Artif. Intell. Rev., vol. 53, 765 no. 8, pp. 5929-5955, 2020.
- Morcillo-Jimenez, R., Mesa, J., Gómez-Romero, J., Vila, M. A., & Martin-Bautista, M. J. (2024). Deep learning for prediction of energy consumption: an applied use case in an office building. Applied Intelligence, 54(7), 5813–5825. [CrossRef]
- Pipattanasomporn, M., Chitalia, G., Songsiri, J. et al. CU-BEMS, smart building electricity consumption and indoor environmental sensor datasets. Sci Data 7, 241 (2020). [CrossRef]





| Variable Names | Description |
|---|---|
| Date | Year, month, day, hour, minute, and second the electricity energy consumption was recorded on the first floor of the office buildings |
| z1_light | power consumption of lighting load for zone 1(kW) |
| z1_plug | power consumption of plug load for zone 1(kW) |
| z2_AC1 | power consumption of AC unit 1 (kW) |
| z2_AC2 | power consumption of AC unit 2 (kW) |
| z2_AC3 | power consumption of AC unit 3 (kW) |
| z2_AC4 | power consumption of AC unit 4 (kW) |
| z2_light | power consumption of lighting load for zone 2(kW) |
| z2_plug | power consumption of plug load for zone 2 (kW) |
| z3_light | power consumption of lighting load for zone 3 (kW) |
| z3_plug | power consumption of plug load for zone 3(kW) |
| z4_light | power consumption of lighting load for zone 4 (kW) |
| Models | RMSE | MAE | MSE |
|---|---|---|---|
| CNN – LSTM (Proposed Model) | 0.330 | 0.117 | 0.109 |
| CNN – GRU | 0.369 | 0.189 | 0.136 |
| CNN – Bidirectional LSTM | 0.3477 | 0.1339 | 0.1209 |
| Models | RMSE | MAE | MSE |
|---|---|---|---|
| CNN – LSTM (Proposed Model) | 5.380 | 3.649 | 28.95 |
| CNN – GRU | 8.366 | 7.270 | 70.04 |
| CNN – Bidirectional LSTM | 11.97 | 11.22 | 143.4 |
| Models | Time Resolution | Error Metrics | ||
|---|---|---|---|---|
| RMSE | MAE | MSE | ||
| LSTM | Minutely | 0.329 | 0.120 | 0.188 |
| CNN | 0.385 | 0.220 | 0.148 | |
| GRU | 0.335 | 0.164 | 0.112 | |
| CNN-LSTM ж (proposed model) | 0.330 | 0.117 | 0.109 | |
| CNN-GRU | Hourly | 1.689 | 1.070 | 2.855 |
| CNN-Bi LSTM | 1.634 | 0.982 | 2.678 | |
| CNN-LSTM ж (proposed model) | 1.590 | 0.895 | 2.530 | |
| CNN-GRU | Daily | 8.366 | 7.270 | 70.04 |
| CNN-Bi LSTM | 11.97 | 11.22 | 143.4 | |
| CNN-LSTM (proposed model) | 5.380 | 3.649 | 28.95 | |
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/).