Abstract
The proposed study introduces a long short-term memory architecture integrated with a novel comprehensive dynamic security index to enable multi-domain stability assessment beyond post-fault dependencies. The comprehensive dynamic security index unifies voltage, frequency, and transient stability metrics into a single interpretable scalar, quantifying real-time proximity to instability boundaries while classifying system states into five actionable categories. By prioritizing generator terminal dynamics, the framework operates with reduced PMU coverage through strategic feature engineering. Validated on IEEE 14 and 118-bus systems, the long short-term memory-deep neural network (LSTM-DNN) model outperforms state-of-the-art techniques in both prediction speed and operational granularity. By bridging static and dynamic data streams, a hybrid attention mechanism improves operator confidence by linking model decisions to physical grid components. Results demonstrate robustness to class imbalance.
Data availability
The datasets generated and analyzed during the current study are available in the Figshare repository at [https://doi.org/10.6084/m9.figshare.30590399](https:/doi.org/10.6084/m9.figshare.30590399) under the CC BY 4.0 license. Additional or extended data supporting this study are available from the corresponding author upon reasonable request.
Abbreviations
- DSA:
-
Dynamic security assessment
- OC:
-
Operating condition
- PMU:
-
Phasor measurement unit
- CDSI:
-
Comprehensive dynamic security index
- DSMV :
-
Dynamic security margin in term of STVS
- STVS:
-
Short-term voltage stability
- TSM:
-
Transient stability margin
- FSM:
-
Frequency stability margin
- RoCoF:
-
Rate of change of frequency
- RoCoFSM :
-
RoCoF stability margin
- \(\:{V}_{0}\) :
-
Pre-fault steady-state voltage magnitude
- \(\:{V}_{dev}\) :
-
Voltage deviation in postfault
- \(\:{V}_{pre\text{-}fault}\) :
-
Voltage magnitude in prefault
- \(\:{V}_{min}\) :
-
Minimum allowable voltage
- \(\:{V}_{max}\) :
-
Maximum allowable voltage
- \(\:{t}_{u}\) :
-
Duration of the threshold violation
- \(\:{N}_{record}\) :
-
Total number of study cases
- \(\:{N}^{FD}\) :
-
Number of selected fault durations
- \(\:{N}^{FT}\) :
-
Number of fault types
- \(\:{N}^{Line}\) :
-
Number of transmission lines
- \(\:{N}^{POL}\) :
-
Number of fault locations on each line
- \(\:{N}^{OC}\) :
-
Number of operating conditions
- \(\:{P}_{0},\text{\hspace{0.17em}}{Q}_{0}\) :
-
Pre-fault active/reactive power operating point
- \(\:{P}_{new},\text{\hspace{0.17em}}{Q}_{new}\) :
-
Active/reactive power after applied load event used for OC generation
- \(\:{t}_{end}\) :
-
Simulation stop time
- \(\:{I}_{line}\) :
-
Line current flow
- \(\:{I}_{thermal}\) :
-
Current flow limitation
- \(\:{\delta\:}_{i}\left(t\right)\) :
-
Rotor angle of generator i at time t
- \(\:{\delta\:}_{j}\left(t\right)\) :
-
Rotor angle of generator j at time t
- \(\:\varDelta\:{\delta\:}_{max}\) :
-
Maximum rotor angle separation between any pair of generators
- \(\eta\) :
-
Transient stability index
- CCT:
-
Critical clearing time
- \(\:CC{T}_{i}\) :
-
Estimated critical clearing time for ith case studied
- ACT:
-
Actual clearing time
- \(\:AC{T}_{i}\) :
-
Fault clearing time extracted from probability distribution
- \(\:\tau\:\) :
-
difference between current fault clearing time and previous one
- \(\:\stackrel{\prime}{\varepsilon}\) :
-
Convergence constant used in adaptive CCT search (e.g., \(\:0.0078115\)s)
- \(ACT^{\prime}\) :
-
Last clearing time that causes instability in previous steps
- \(ACT^{\prime\prime}\) :
-
Last stable clearing time in previous steps
- \(\:\varDelta\:t\) :
-
Time step used in CCT calculation
- \(\:{f}_{0}\) :
-
Nominal system frequency
- \(\:{f}_{t}\) :
-
System frequency measured at time t
- ft+100 :
-
System frequency measured 100 ms after time t
- \(\:F{N}_{lim}\) :
-
Frequency nadir stability limit
- \(\:RoCo{F}_{lim}\) :
-
Maximum allowable RoCoF limit
- \(\:{F}_{nadir}\) :
-
Frequency nadir
- \(\:F{N}_{ref}\) :
-
Maximum allowable deviation from the nominal frequency
- \(\:RoCo{F}_{ref}\) :
-
Normalization reference for RoCoF margin
- \(\:{W}_{FN}\) :
-
Weighting factor of frequency stability margin
- \(\:{W}_{R}\) :
-
Weighting factor of RoCoF stability margin
- \(\:{W}_{V}\) :
-
Weighting factor of voltage stability margin
- \(\:{W}_{T}\) :
-
Weighting factor of transient stability margin
- \(\:x\) :
-
Raw feature value
- \(\:{x}_{i}\) :
-
Input feature used in data normalization
- \(\:{x}_{min},\text{\hspace{0.17em}}{x}_{max}\) :
-
Minimum and maximum values of feature x
- \(\:{x}_{norm}\) :
-
Min-max normalization
- \(\:{\alpha\:}_{i}\) :
-
Attention weight of ith time step
- \(h_{{LSTM}}^{{(i)}}\) :
-
Hidden state of LSTM’s context integration layer at step i
- Xstatic :
-
Static system parameters
- \(\:{W}_{a}\) :
-
Trainable weight matrix in attention module
- \(\:{b}_{a}\) :
-
Bias
- \(\:\sigma\:(\cdot\:)\) :
-
Sigmoid activation function
- FL:
-
Federated learning
- LSTM-DNN:
-
Long short-term memory deep neural network
- GNN:
-
Graph neural network
References
Ren, J., Zeng, Y. & Qin, C. Practical dynamic security region model: A hybrid physical model-driven and data-driven approach. IEEE Trans. Power Syst. 40 (1), 728–739 (2024).
Kundur, P. et al. Definition and classification of power system stability IEEE/CIGRE joint task force on stability terms and definitions. IEEE Trans. Power Syst. 19 (3), 1387–1401 (2004).
Belhomme, R. & Pavella, M. A composite electromechanical distance approach to transient stability. IEEE Trans. Power Syst. 6 (2), 622–631 (1991).
Sun, N., Chen, T., Ran, L. & Guo, W. Dynamic and static features-aware recommendation with graph neural networks. Comput. Intell. Neurosci. 202(1), 5484119 (2022).
Liu, Z., Zhao, J. & Zou, Z. Impedance modeling, dynamic analysis and damping enhancement for DC microgrid with multiple types of loads. Int. J. Electr. Power Energy Syst. 122, 106183 (2020).
Wang, M. & Milanović, J. V. Simultaneous assessment of multiple aspects of stability of power systems with renewable generation. IEEE Trans. Power Syst. 39 (1), 97–106 (2023).
Gupta, A., Gurrala, G. & Sastry, P. An online power system stability monitoring system using convolutional neural networks. IEEE Trans. Power Systems. 34 (2), 864–872 (2018).
Shahriyari, M., Safari, A., Quteishat, A. & Afsharirad, H. A short-term voltage stability online assessment based on multi-layer perceptron learning. Electr. Power Syst. Res. 223, 109562 (2023).
Rakhshani, E., Gusain, D., Sewdien, V., Torres, J. L. R. & Van Der Meijden, M. A. A key performance indicator to assess the frequency stability of wind generation dominated power system. IEEE Access. 7, 130957–130969 (2019).
Zhou, Y. et al. A novel data-driven approach for transient stability prediction of power systems considering the operational variability. Int. J. Electr. Power Energy Syst. 107, 379–394 (2019).
Shahriyari, M., Khoshkhoo, H., Pouryekta, A. & Ramachandaramurthy, V. Fast prediction of angle stability using support vector machine and fault duration data. In IEEE International Conference on Automatic Control and Intelligent Systems (I2CACIS), 258–263 (2019).
Rovnyak, S., Kretsinger, S., Thorp, J. & Brown, D. Decision trees for real-time transient stability prediction. IEEE Trans. Power Syst. 9 (3), 1417–1426 (1994).
Kim, J., Lee, H., Kim, S., Chung, S. H. & Park, J. H. Transient stability assessment using deep transfer learning. IEEE Access. 11, 116622–116637 (2023).
Li, Y., Cao, J., Xu, Y., Zhu, L. & Dong, Z. Y. Deep learning based on transformer architecture for power system short-term voltage stability assessment with class imbalance. Renew. Sustain. Energy Rev. 189, 113913 (2024).
Bei, T., Xiao, J. & Wang, X. Transient stability assessment of power systems based on the transformer and neighborhood rough set. Electronics 13 (2), 270 (2024).
W. E. C. Council. NERC/WECC planning standards, Salt Lake City, UT, USA (2003).
Sari, T. P. et al. Utilization of supercapacitor to extend the critical clearing time in a power system. IEEE Open. J. Ind. Appl. 1, 248–257 (2020).
Wu, H. & Wang, X. A mode-adaptive power-angle control method for transient stability enhancement of virtual synchronous generators. IEEE J. Emerg. Sel. Top. Power Electron. 8 (2), 1034–1049 (2020).
Tajdinian, M., Seifi, A. R. & Allahbakhshi, M. Transient stability of power grids comprising wind turbines: new formulation, implementation, and application in real-time assessment. IEEE Syst. J. 13 (1), 894–905 (2018).
Papadopoulos, P. N. & Milanović, J. V. Probabilistic framework for transient stability assessment of power systems with high penetration of renewable generation. IEEE Trans. Power Syst. 32 (4), 3078–3088 (2016).
Preece, R. & Milanović, J. V. Probabilistic risk assessment of rotor angle instability using fuzzy inference systems. IEEE Trans. Power Syst. 30 (4), 1747–1757 (2014).
Shahriyari, M. & Khoshkhoo, H. A deep Learning-Based approach for comprehensive rotor angle Stability Assessment. J. Operation Autom. Power Eng. 10 (2), 105–112 (2022).
Guo, T. & Milanović, J. V. Probabilistic framework for assessing the accuracy of data mining tool for online prediction of transient stability. IEEE Trans. Power Syst. 29 (1), 377–385 (2013).
Abdulraheem, B. S. & Gan, C. K. Power system frequency stability and control: survey. Int. J. Appl. Eng. Res. 11 (8), 5688–5695 (2016).
Nedd, M., Browell, J., Bell, K. & Booth, C. Containing a credible loss to within frequency stability limits in a low-inertia GB power system. IEEE Trans. Ind. Appl. 56 (2), 1031–1039 (2019).
Sahoo, B., Bajaj, M. & Blazek, V. Prokop coordinated dual-mode inverter control with NF–ROCOF-based islanding detection for enhanced power quality and seamless transition in DC–AC hybrid microgrids. Eng. Sci. Technol. Int. J. 72, 102229 (2025).
Urban, R., Denis, S. & Rafael, M. Estimating frequency stability margin for flexible under-frequency relay operation. Electr. Power Syst. Res. 194, 107116 (2021).
Pujari, R. & Alam, M. N. Review on distance relaying for the protection of modern power system networks. IEEE Access (2025).
ul Hassan, R., Sun, R. & Liu, Y. Online static security assessment for cascading failure using stacked De-noising Auto-encoder. Int. J. Electr. Power Energy Syst. 137, 107852 (2022).
James, J., Hill, D. J., Lam, A. Y., Gu, J. & Li, V. O. Intelligent time-adaptive transient stability assessment system. IEEE Trans. Power Syst. 33 (1), 1049–1058 (2017).
Phadke, A. G. & Thorp, J. S. Synchronized Phasor Measurements and their Applications (no. 2017) (Springer, 2008).
Vaswani, A. et al. Attention is all you need. In Advances in neural information processing systems, vol. 30 (2017).
Bahdanau, D., Cho, K. & Bengio, Y. Neural machine translation by jointly learning to align and translate, arXiv preprint arXiv:1409.0473 (2014).
Azman, S. K., Isbeih, Y. J., El, M. S., Moursi & Elbassioni, K. A unified online deep learning prediction model for small signal and transient stability. IEEE Trans. Power Syst. 35 (6), 4585–4598 (2020).
Ghazal, T. M. et al. Data space privacy model with federated learning technique for securing IoT communications in autonomous marine vehicles. J. Intell. Robot. Syst. 111, 84 (2025).
Agarwal, L., Jaint, B. & Mandpura, A. K. Reducing overfitting in deep learning intrusion detection for power systems with CTGAN. Chaos Solitons Fractals. 188, 115603 (2024).
Mokhtari, A. H. et al. Noise-resilient deep learning-based CNN for static voltage stability analysis in power systems with wind farm integration. Int. J. Dynamics Control. 14 (1), 29 (2026).
Shahriyari, M., Khoshkhoo, H. & Guerrero, J. M. A novel fast transient stability assessment of power systems using fault-on trajectory. IEEE Syst. J. 16 (3), 4334–4344 (2022).
Wani, A. A. Advancing material stability prediction: leveraging machine learning and high-dimensional data for improved accuracy. Mater. Sci. Appl. 16(02), 79–105 (2025).
Liu, Y., Zhang, H., Guo, P. & Wu, S. Short-term complementary scheduling of cascade energy storage systems for wind and solar regulation. J. Energy Storage. 124, 116775 (2025).
Funding
This research did not receive any specific grant or funding.
Author information
Authors and Affiliations
Contributions
M. Shahriyari: Conceptualization, Software, Writing - original draft preparation; A. Safari: Supervision, Methodology, Writing - review and editing; A. Quteishat: Resources, formal analysis, Writing - review and editing; H. Afsharirad: Formal analysis and investigation. All authors read and approved the final manuscript.
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Additional information
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
About this article
Cite this article
Shahriyari, M., Safari, A., Quteishat, A. et al. An LSTM architecture for real-time multi-domain stability boundary prediction beyond post-fault dependency in power systems. Sci Rep (2026). https://doi.org/10.1038/s41598-026-36571-6
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41598-026-36571-6