Efficient day-ahead energy forecasting for microgrids using LSTM optimized by grey wolf algorithm

As distributed energy resources become increasingly integrated into power systems, accurate day-ahead load-forecasting is essential for effective microgrid (MG) management—enabling optimized energy generation, reduced reliance on the main grid. However, forecasting energy demand remains a significan...

Full description

Bibliographic Details
Published in:e-Prime: Advances in Electrical Engineering, Electronics and Energy
Main Authors: Ahmed Khayat, Mohammed Kissaoui, Lhoussaine Bahatti, Abdelhadi Raihani, Khalid Errakkas, Youness Atifi
Format: Article
Language:English
Published: Elsevier 2025-09-01
Subjects:
Online Access:http://www.sciencedirect.com/science/article/pii/S2772671125001615
Description
Summary:As distributed energy resources become increasingly integrated into power systems, accurate day-ahead load-forecasting is essential for effective microgrid (MG) management—enabling optimized energy generation, reduced reliance on the main grid. However, forecasting energy demand remains a significant challenge due to its inherent variability, nonlinear temporal patterns. Many existing models rely on external inputs such as temperature forecasts, which are often imprecise and introduce additional uncertainty. Moreover, energy consumption is influenced by delayed thermal responses in buildings, further complicating prediction accuracy. Traditional methods also struggle to capture sharp demand peaks with sufficient precision. To address these limitations, this study introduces a novel hybrid model based on Long Short-Term Memory (LSTM) networks optimized by the Grey Wolf Optimizer (GWO), referred to as LSTM-GWO. Unlike conventional approaches, the LSTM-GWO eliminates the need for exogenous variables by learning intrinsic seasonal patterns directly from historical consumption data. GWO is employed to automatically fine-tune key hyperparameters without manual intervention. The proposed model achieves a Mean Absolute Percentage Error (MAPE) of 8.69 %, with a peak prediction error of only 1.33 %, outperforming traditional baselines. Performance is further validated using Root Mean Square Error (RMSE) and the coefficient of determination (R²), confirming its ability to accurately capture complex temporal dependencies. In addition to its accuracy, the LSTM-GWO demonstrates high stability across multiple independent runs, ensuring consistent performance and reliability. By leveraging only historical load data, this approach reduces forecasting uncertainty, improves peak load anticipation, and provides a practical, efficient, and scalable solution for short-term load-forecasting in dynamic MG environment.
ISSN:2772-6711