Accurate short-term forecasting of electricity demand is essential for real-time smart grid optimisation and efficient energy management. This paper presents a multivariate Long Short-Term Memory (LSTM) neural network framework for short-term multi-horizon electrical load forecasting using historical smart grid operational data, historical load measurements, renewable energy variables, and environmental factors used as explanatory features for load forecasting. A comprehensive data processing pipeline is developed, incorporating time-series feature engineering, cyclical temporal encoding, chronological data partitioning, and standardisation to ensure robust model training without information leakage. Sliding-window sequence generation is employed to transform time-series data into a supervised learning format suitable for deep learning architectures. The proposed stacked LSTM model is trained to forecast short-term load dynamics at a 15-minute temporal resolution using historical energy and environmental data. The forecasting framework is evaluated using multiple performance metrics, including Mean Absolute Error (MAE), Root Mean Square Error (RMSE), and Mean Absolute Percentage Error (MAPE). Experimental results demonstrate that the LSTM model effectively captures temporal dependencies and seasonal patterns in energy consumption, achieving high forecasting accuracy suitable for real-time decision support. The forecasting framework developed in this study serves as the predictive component of a broader smart grid optimisation system. The generated forecasts will be integrated with a multi-objective optimisation framework in subsequent work to enable real-time energy management under uncertainty and improve operational efficiency in modern smart grid environments.
References
[1]
Panahi, H., Sabouhi, F., Bozorgi-Amiri, A. and Ghaderi, S.F. (2024) A Data-Driven Optimization Model for Renewable Electricity Supply Chain Design. Renewable and Sustainable Energy Reviews, 202, Article ID: 114618. https://doi.org/10.1016/j.rser.2024.114618
[2]
Esparza, A., Blondin, M. and Trov?o, J.P.F. (2025) A Review of Optimization Strategies for Energy Management in Microgrids. Energies, 18, Article No. 3245. https://doi.org/10.3390/en18133245
[3]
Asghari, M., Afshari, H., Jaber, M.Y. and Searcy, C. (2025) Enhancing Grid Stability: A Weather-Adaptive Robust Optimization to Mitigating Renewables Curtailment. Renewable and Sustainable Energy Reviews, 219, Article ID: 115874. https://doi.org/10.1016/j.rser.2025.115874
[4]
Kumar, A., Maulik, A. and Chinmaya, K.A. (2025) Energy Management Strategies for Active Distribution Networks and Microgrids—A Comprehensive Survey. IETE Technical Review, 42, 502-541. https://doi.org/10.1080/02564602.2025.2522083
[5]
Biswal, B., Deb, S., Datta, S., Ustun, T.S. and Cali, U. (2024) Review on Smart Grid Load Forecasting for Smart Energy Management Using Machine Learning and Deep Learning Techniques. Energy Reports, 12, 3654-3670. https://doi.org/10.1016/j.egyr.2024.09.056
[6]
Dudek, G., Piotrowski, P. and Baczyński, D. (2025) Forecasting in Modern Power Systems: Challenges, Techniques, and Emerging Trends. Energies, 18, Article No. 3589. https://doi.org/10.3390/en18143589
[7]
Boopathy, P., Liyanage, M., Deepa, N., Velavali, M., Reddy, S., Maddikunta, P.K.R., et al. (2024) Deep Learning for Intelligent Demand Response and Smart Grids: A Comprehensive Survey. Computer Science Review, 51, Article ID: 100617. https://doi.org/10.1016/j.cosrev.2024.100617
[8]
Kuster, C., Rezgui, Y. and Mourshed, M. (2017) Electrical Load Forecasting Models: A Critical Systematic Review. Sustainable Cities and Society, 35, 257-270. https://doi.org/10.1016/j.scs.2017.08.009
[9]
Zhou, B., Wang, H., Xie, Y., Li, G., Yang, D. and Hu, B. (2024) Regional Short-Term Load Forecasting Method Based on Power Load Characteristics of Different Industries. Sustainable Energy, Grids and Networks, 38, Article ID: 101336. https://doi.org/10.1016/j.segan.2024.101336
[10]
Guo, W., Liu, S., Weng, L. and Liang, X. (2025) Power Grid Load Forecasting Using a CNN-LSTM Network Based on a Multi-Modal Attention Mechanism. Applied Sciences, 15, Article No. 2435. https://doi.org/10.3390/app15052435
[11]
Chen, H., Zhu, M., Hu, X., Wang, J., Sun, Y. and Yang, J. (2023) Research on Short-Term Load Forecasting of New-Type Power System Based on GCN-LSTM Considering Multiple Influencing Factors. Energy Reports, 9, 1022-1031. https://doi.org/10.1016/j.egyr.2023.05.048
[12]
Kong, W., Dong, Z.Y., Jia, Y., Hill, D.J., Xu, Y. and Zhang, Y. (2019) Short-Term Residential Load Forecasting Based on LSTM Recurrent Neural Network. IEEE Transactions on Smart Grid, 10, 841-851. https://doi.org/10.1109/tsg.2017.2753802
[13]
Wen, X., Liao, J., Niu, Q., Shen, N. and Bao, Y. (2024) Deep Learning-Driven Hybrid Model for Short-Term Load Forecasting and Smart Grid Information Management. Scientific Reports, 14, Article No. 13720. https://doi.org/10.1038/s41598-024-63262-x
[14]
Pai H, A., Mishra, K.K., R, M.T., Jeyan, J.V.M.L. and Sayal, A. (2025) Enhanced Household Energy Consumption Forecasting Using Multivariate Long Short-Term Memory (LSTM) Networks with Weather Data Integration. Results in Engineering, 27, Article ID: 106512. https://doi.org/10.1016/j.rineng.2025.106512
[15]
Anil, A.I.A., Al Muttaki, M.R., Afrin, S. and Hasan, S. (2026) The Next Generation of Energy Storage for Smart and Sustainable Power Grids: A Systematic Review. Energy Conversion and Management: X, 30, Article ID: 101771. https://doi.org/10.1016/j.ecmx.2026.101771
[16]
Chen, Z. (2025) Research on Short-Term Load Forecasting Model for Smart Grid Based on Wavelet Variation and Bidirectional LSTM. 2025 IEEE 3rd International Conference on Control, Electronics and Computer Technology (ICCECT), Jilin, 25-27 April 2025, 736-742. https://doi.org/10.1109/iccect64621.2025.11339782
[17]
Sezer, O.B., Gudelek, M.U. and Ozbayoglu, A.M. (2020) Financial Time Series Forecasting with Deep Learning: A Systematic Literature Review: 2005-2019. Applied Soft Computing, 90, Article ID: 106181. https://doi.org/10.1016/j.asoc.2020.106181
[18]
Masood, M.Y., Aurangzeb, S., Aleem, M., Chilwan, A. and Awais, M. (2024) Demand-Side Load Forecasting in Smart Grids Using Machine Learning Techniques. PeerJ Computer Science, 10, e1987. https://doi.org/10.7717/peerj-cs.1987
[19]
Ullah, K., Ahsan, M., Hasanat, S.M., Haris, M., Yousaf, H., Raza, S.F., et al. (2024) Short-Term Load Forecasting: A Comprehensive Review and Simulation Study with CNN-LSTM Hybrids Approach. IEEE Access, 12, 111858-111881. https://doi.org/10.1109/access.2024.3440631
[20]
Zafar, S., Hashmi, S.A., Ayub, R.H. and Farooq, H. (2024) Short-Term Load Forecasting for Smart Grid Based on Bidirectional-LSTM Recurrent Neural Network. https://doi.org/10.21203/rs.3.rs-5458984/v1