TY - JOUR
T1 - SG-StabNet
T2 - Smart Grid Stability prediction using Hybrid Transformer-BiGRU model with focal loss optimization
AU - Aslam, Muhammad Mobeen
AU - Saleem, Umar
AU - Ahmed, Usman
AU - Li, Weilin
AU - Liu, Wenjie
N1 - Publisher Copyright:
© The Author(s), under exclusive licence to Springer Science+Business Media, LLC, part of Springer Nature 2026.
PY - 2026/8
Y1 - 2026/8
N2 - Smart grids (SGs) are pivotal to modern energy systems, requiring advanced solutions to ensure stability amid fluctuating loads and the integration of renewable resources. However, accurate stability prediction remains challenging due to imbalanced data and complex temporal dynamics. This paper proposes SG-StabNet, a novel deep learning model that combines a Transformer encoder for global dependencies and a Bi-directional Gated Recurrent Unit (BiGRU) for local temporal patterns, augmented by feature engineering and Focal Loss optimization to address class imbalance. While real-world SG faces diverse stability issues, this study focuses on two specific stability scenarios: transient stability in a Decentralized Smart Grid Control (DSGC) and a Microgrid (MG) under a false data injection (FDI) attack. Evaluated via fivefold cross-validation, SG-StabNet shows exceptional results, with 99.65% accuracy and 99.73% F1-Score on the DSGC dataset. On the highly unbalanced (95.8 / 4.2%), multi-scenario MG FDI simulation-based dataset shows exceptional results compared to other models, with 98.54% accuracy and 82.79% F1-Score. The model outperforms 36 benchmark models, including 19 classical and 17 recent literature approaches, demonstrating superior robustness. Furthermore, Explainable AI (XAI) techniques (SHAP and LIME) reveal critical features driving stability predictions, enhancing interpretability for real-world deployment. SG-StabNet’s hybrid architecture and optimization strategies offer a scalable solution for real-time grid monitoring, bridging the gap between high accuracy and actionable insights for grid management.
AB - Smart grids (SGs) are pivotal to modern energy systems, requiring advanced solutions to ensure stability amid fluctuating loads and the integration of renewable resources. However, accurate stability prediction remains challenging due to imbalanced data and complex temporal dynamics. This paper proposes SG-StabNet, a novel deep learning model that combines a Transformer encoder for global dependencies and a Bi-directional Gated Recurrent Unit (BiGRU) for local temporal patterns, augmented by feature engineering and Focal Loss optimization to address class imbalance. While real-world SG faces diverse stability issues, this study focuses on two specific stability scenarios: transient stability in a Decentralized Smart Grid Control (DSGC) and a Microgrid (MG) under a false data injection (FDI) attack. Evaluated via fivefold cross-validation, SG-StabNet shows exceptional results, with 99.65% accuracy and 99.73% F1-Score on the DSGC dataset. On the highly unbalanced (95.8 / 4.2%), multi-scenario MG FDI simulation-based dataset shows exceptional results compared to other models, with 98.54% accuracy and 82.79% F1-Score. The model outperforms 36 benchmark models, including 19 classical and 17 recent literature approaches, demonstrating superior robustness. Furthermore, Explainable AI (XAI) techniques (SHAP and LIME) reveal critical features driving stability predictions, enhancing interpretability for real-world deployment. SG-StabNet’s hybrid architecture and optimization strategies offer a scalable solution for real-time grid monitoring, bridging the gap between high accuracy and actionable insights for grid management.
KW - Artificial intelligence for power system stability
KW - Bi-directional gated recurrent unit
KW - Decentralized smart grid stability
KW - Deep learning
KW - Microgrid
KW - Transformer encoder
UR - https://www.scopus.com/pages/publications/105046212726
U2 - 10.1007/s10586-026-06411-3
DO - 10.1007/s10586-026-06411-3
M3 - 文章
AN - SCOPUS:105046212726
SN - 1386-7857
VL - 29
JO - Cluster Computing
JF - Cluster Computing
IS - 10
M1 - 606
ER -