Machine learning-based energy demand forecasting with dynamic pricing and security risk scoring: A big data analytics approach
Öz
Accurate short-term energy demand forecasting is critical for effective grid management, dynamic pricing, and risk assessment in modern smart energy systems. This study proposes an integrated data-driven framework that combines Long Short-Term Memory (LSTM) neural network-based demand forecasting, rule-based dynamic pricing, and deviation-based security risk scoring. The LSTM model is trained using a sliding window approach, leveraging the previous 24 hours of consumption data to predict the next hour’s demand, and optimized with the Adam algorithm to capture nonlinear and temporal dependencies. Forecast performance is evaluated using RMSE, MAE, and MAPE metrics, demonstrating significant improvements over the persistence baseline, particularly during peak demand hours.In addition, the proposed LSTM model is benchmarked against traditional machine learning algorithms, namely Random Forest and Gradient Boosting, to provide a comprehensive comparative evaluation of forecasting performance. The predicted demand values feed into a dynamic pricing module, where price adjustments are applied according to demand percentiles, effectively balancing grid load and increasing revenue. Additionally, a normalized risk score is calculated based on forecast deviations, enabling early detection of anomalous consumption behaviors. Simulation results indicate that the proposed approach reduces peak-hour demand, enhances revenue, and provides reliable early warning for potential system anomalies. Comparative results show that while benchmark models may achieve competitive absolute error values, the LSTM model provides superior performance in relative error (MAPE), demonstrating higher robustness for energy management applications. Overall, the integrated framework demonstrates the effectiveness of combining advanced forecasting techniques with decision-support modules, offering a scalable and practical solution for short-term energy management in smart grids.
Anahtar Kelimeler
Kaynakça
- [1] Alexiadis V, Drakaki M, Tzionas P. LSTM-Based electricity demand forecasting in smart and sustainable hospitality buildings. Electronics 2025; 14(22): 4456.
- [2] Semmelmann L, Henni S, Weinhardt C. Load forecasting for energy communities: a novel LSTM-XGBoost hybrid model based on smart meter data. Energy Informatics 2022; 5(Suppl 1): 24.
- [3] Khalid R, Javaid N, Al-Zahrani FA, Aurangzeb K, Qazi E-u-H, Ashfaq T. Electricity load and price forecasting using Jaya-Long Short Term Memory (JLSTM) in smart grids. Entropy 2019; 22(1): 10.
- [4] Memarzadeh G, Keynia F. Short-term electricity load and price forecasting by a new optimal LSTM-NN based prediction algorithm. Electric Power Systems Research 2021; 192: 106995.
- [5] Zafar S, Hashmi SA, Ayub RH, Farooq H. Short-Term Load Forecasting for Smart Grid based on Bidirectional-LSTM Recurrent Neural Network. Preprint 2024.
- [6] Tayseer M, Talaat M, Zamel AA, Sedhom BE, Elgamal M, Senjyu T, Song D, Ibrahim IM, Elkholy M. Cyber-resilient machine learning framework for accurate individual load forecasting and anomaly detection in smart grids. Scientific Reports 2025; 15: 44054.
- [7] Wu Y, Sun W, Li Q. Power load forecasting and anomaly detection using a two-stage attention mechanism and deep neural networks. Electric Power Systems Research 2025; 249: 112056.
- [8] Kong W, Dong ZY, Jia Y, Hill DJ, Xu Y, Zhang Y. Short-term residential load forecasting based on LSTM recurrent neural network. IEEE Transactions on Smart Grid 2017; 10(1): 841–51.
Ayrıntılar
Birincil Dil
İngilizce
Konular
Enerji, Üretim ve Endüstri Mühendisliği (Diğer)
Bölüm
Araştırma Makalesi
Yazarlar
Yayımlanma Tarihi
30 Haziran 2026
Gönderilme Tarihi
30 Mart 2026
Kabul Tarihi
11 Mayıs 2026
Yayımlandığı Sayı
Yıl 2026 Cilt: 11 Sayı: 2