Optimization of Smart Building Electrical Load Prediction Using Long Short-Term Memory

Authors

  • Ali Aqil Department of Electrical Engineering, Universitas Al-Azhar
  • Yoga Tri Nugraha Department of Electrical Engineering, Universitas Al-Azhar
  • Sumita Wardani Department of Electrical Engineering, Universitas Al-Azhar
  • Mawardi Department of Mechanical Engineering, Universitas Al-Azhar
  • Muhammad Irwanto Department of Electrical Engineering, Universitas Prima Indonesia

DOI:

https://doi.org/10.33019/hn0m4j24

Keywords:

Smart building, Electrical load prediction, Long Short-Term Memory, Time series, Energy management

Abstract

The advancement of smart building technologies requires energy management systems that are both efficient and capable of adapting to dynamic operational conditions. A key component of such systems is reliable electrical load forecasting, as building energy demand is affected by environmental conditions, occupancy behavior, and operational activities that exhibit nonlinear and time-dependent characteristics. This study explores the use of the Long Short-Term Memory (LSTM) approach for forecasting smart building electricity consumption based on multivariate time-series data. The input dataset incorporates temporal features, ambient temperature, humidity levels, occupancy-related patterns, and major electrical load components within the building. The research workflow consists of data preprocessing, normalization, time-series construction using a sliding window strategy, LSTM model training, and evaluation of forecasting performance. The findings indicate that the building’s electricity demand varies approximately between 6 kW and 17 kW, with an average load ranging from 11 to 12 kW. Performance assessment yields an RMSE of about 3 kW and a MAPE of roughly 25%. The largely symmetric error distribution around zero suggests minimal systematic bias in the predictions, although the model’s accuracy during peak demand periods remains limited.

Downloads

Download data is not yet available.

References

[1] K. Fettah, T. Guia, A. Salhi, S. Mouassa, A. Bosisio, and R. Shirvani, “Optimal Allocation of Capacitor Banks and Distributed Generation: A Comparison of Recently Developed Metaheuristic Optimization Techniques on the Real Distribution Networks of ALG-AB-Hassi Sida, Algeria,” Sustain. , vol. 16, no. 11, 2024, doi: 10.3390/su16114419.

[2] C. Ghenai, O. A. A. Al-Mufti, O. A. M. Al-Isawi, L. H. L. Amirah, and A. Merabet, “Short-term building electrical load forecasting using adaptive neuro-fuzzy inference system (ANFIS),” J. Build. Eng., vol. 52, p. 104323, 2022, doi: https://doi.org/10.1016/j.jobe.2022.104323.

[3] F. M. Al Hadi, H. H. Aly, and T. Little, “Harmonics Forecasting of Wind and Solar Hybrid Model Driven by DFIG and PMSG Using ANN and ANFIS,” IEEE Access, vol. 11, pp. 55413–55424, 2023, doi: 10.1109/ACCESS.2023.3253047.

[4] A. Azeem, I. Ismail, S. M. Jameel, and V. R. Harindran, “Electrical Load Forecasting Models for Different Generation Modalities: A Review,” IEEE Access, vol. 9, pp. 142239–142263, 2021, doi: 10.1109/ACCESS.2021.3120731.

[5] T. Meridji, G. Joós, and J. Restrepo, “A power system stability assessment framework using machine-learning,” Electr. Power Syst. Res., vol. 216, p. 108981, 2023, doi: https://doi.org/10.1016/j.epsr.2022.108981.

[6] D.-J. Bae, B.-S. Kwon, and K.-B. Song, “XGBoost-Based Day-Ahead Load Forecasting Algorithm Considering Behind-the-Meter Solar PV Generation,” Energies, vol. 15, no. 1, p. 128, Dec. 2021, doi: 10.3390/en15010128.

[7] M. S. Uddin et al., “On the protection of power system: Transmission line fault analysis based on an optimal machine learning approach,” Energy Reports, vol. 8, pp. 10168–10182, 2022, doi: https://doi.org/10.1016/j.egyr.2022.07.163.

[8] F. Kahwash, B. Barakat, and A. Maheri, “Coupled thermo-electrical dispatch strategy with AI forecasting for optimal sizing of grid-connected hybrid renewable energy systems,” Energy Convers. Manag., vol. 293, p. 117460, 2023, doi: https://doi.org/10.1016/j.enconman.2023.117460.

[9] R. Rahimi, P. Ravirathinam, A. Ebtehaj, A. Behrangi, J. Tan, and V. Kumar, “Global Precipitation Nowcasting of Integrated Multi-satellitE Retrievals for GPM: A U-Net Convolutional LSTM Architecture,” J. Hydrometeorol., vol. 25, no. 6, pp. 947–963, 2024, doi: https://doi.org/10.1175/JHM-D-23-0119.1.

[10] Y. Xu, X. Ji, and Z. Zhu, “A photovoltaic power forecasting method based on the LSTM-XGBoost-EEDA-SO model,” Sci. Rep., vol. 15, no. 1, p. 30177, Aug. 2025, doi: 10.1038/s41598-025-16368-9.

[11] Y. T. Nugraha, C. I. Cahyadi, R. Rida, M. S. Ningsih, D. Sholeha, and I. Roza, “Application of the adaptive neuro-fuzzy inference system for prediction of the electrical energy production in Jakarta,” IAES Int. J. Artif. Intell., vol. 14, no. 3, p. 1790, Jun. 2025, doi: 10.11591/ijai.v14.i3.pp1790-1798.

[12] H. Tindra, I. D. Sara, and R. Adriman, “Daily Peak Load Forecast of Banda Aceh City Using Adaptive Neuro Fuzzy Inference System (ANFIS) Method,” in 2023 2nd International Conference on Computer System, Information Technology, and Electrical Engineering (COSITE), 2023, pp. 238–243. doi: 10.1109/COSITE60233.2023.10249581.

[13] A. B. Upadhyay, S. R. Shah, and R. A. Thakker, “Advanced rainfall nowcasting using 3D convolutional LSTM networks on satellite data,” J. Comput. Math. Data Sci., vol. 16, p. 100125, 2025, doi: https://doi.org/10.1016/j.jcmds.2025.100125.

[14] E. V. Vijay and K. Aparna, “Deep Learning-CT based spectrum sensing for cognitive radio for proficient data transmission in Wireless Sensor Networks,” e-Prime - Adv. Electr. Eng. Electron. Energy, vol. 9, p. 100659, 2024, doi: https://doi.org/10.1016/j.prime.2024.100659.

[15] J. A. Weyn, D. R. Durran, R. Caruana, and N. Cresswell‐Clay, “Sub‐Seasonal Forecasting With a Large Ensemble of Deep‐Learning Weather Prediction Models,” J. Adv. Model. Earth Syst., vol. 13, no. 7, Jul. 2021, doi: 10.1029/2021MS002502.

[16] J. A. Weyn, D. R. Durran, and R. Caruana, “Improving Data‐Driven Global Weather Prediction Using Deep Convolutional Neural Networks on a Cubed Sphere,” J. Adv. Model. Earth Syst., vol. 12, no. 9, Sep. 2020, doi: 10.1029/2020MS002109.

[17] K. Ullah et al., “Short-Term Load Forecasting: A Comprehensive Review and Simulation Study With CNN-LSTM Hybrids Approach,” IEEE Access, vol. 12, pp. 111858–111881, 2024, doi: 10.1109/ACCESS.2024.3440631.

[18] Z. Zhenglei, C. Jun, Y. Zhou, W. Wenguang, and D. Hong, “Research on urban power load forecasting based on improved LSTM,” Front. Energy Res., vol. 12, Oct. 2024, doi: 10.3389/fenrg.2024.1443814.

[19] H. Suyono, D. O. Prabawanti, M. Shidiq, R. N. Hasanah, U. Wibawa, and A. Hasibuan, “Forecasting of Wind Speed in Malang City of Indonesia using Adaptive Neuro-Fuzzy Inference System and Autoregressive Integrated Moving Average Methods,” in 2020 International Conference on Technology and Policy in Energy and Electric Power (ICT-PEP), 2020, pp. 131–136. doi: 10.1109/ICT-PEP50916.2020.9249867.

[20] S. Anapyanova et al., “Assessment of Small-Settlement Wastewater Discharges on the Irtysh River Using Tracer-Based Mixing Diagnostics and Regularized Predictive Models,” 2026. doi: 10.3390/w18020232.

[21] B. S. Pattnaik, A. S. Pattanayak, S. K. Udgata, and A. K. Panda, “Machine learning based soft sensor model for BOD estimation using intelligence at edge,” Complex Intell. Syst., vol. 7, no. 2, pp. 961–976, Apr. 2021, doi: 10.1007/s40747-020-00259-9.

[22] J. Cukjati, D. Mongus, K. R. Žalik, and B. Žalik, “IoT and Satellite Sensor Data Integration for Assessment of Environmental Variables: A Case Study on NO2,” Sensors, vol. 22, no. 15, p. 5660, Jul. 2022, doi: 10.3390/s22155660.

[23] Y. H. Abdulameer, “Forecasting of Electrical Energy Consumption Using Hybrid Models of GRU, CNN, LSTM, And ML Regressors,” J. Wirel. Mob. Networks, Ubiquitous Comput. Dependable Appl., vol. 16, no. 1, pp. 560–575, Mar. 2025, doi: 10.58346/JOWUA.2025.I1.033.

[24] Al-Khowarizmi, S. Efendi, M. K. M. Nasution, and M. Herman, “The Role of Detection Rate in MAPE to Improve Measurement Accuracy for Predicting FinTech Data in Various Regressions,” in 2023 International Conference on Computer Science, Information Technology and Engineering (ICCoSITE), 2023, pp. 874–879. doi: 10.1109/ICCoSITE57641.2023.10127820.

[25] A. R. Lubis, S. Prayudani, Y. Fatmi, M. Lubis, and Al-Khowarizmi, “MAPE accuracy of CPO Forecasting by Applying Fuzzy Time Series,” in 2021 8th International Conference on Electrical Engineering, Computer Science and Informatics (EECSI), 2021, pp. 370–373. doi: 10.23919/EECSI53397.2021.9624303.

Published

30.04.2026

How to Cite

[1]
Ali Aqil, Y. T. Nugraha, Sumita Wardani, Mawardi, and Muhammad Irwanto, “Optimization of Smart Building Electrical Load Prediction Using Long Short-Term Memory ”, JurnalEcotipe, vol. 13, no. 1, Apr. 2026, doi: 10.33019/hn0m4j24.

Most read articles by the same author(s)