Skip to main content

Thank you for visiting nature.com. You are using a browser version with limited support for CSS. To obtain the best experience, we recommend you use a more up to date browser (or turn off compatibility mode in Internet Explorer). In the meantime, to ensure continued support, we are displaying the site without styles and JavaScript.

Advertisement

Scientific Reports
  • View all journals
  • Search
  • My Account Login
  • Content Explore content
  • About the journal
  • Publish with us
  • Sign up for alerts
  • RSS feed
  1. nature
  2. scientific reports
  3. articles
  4. article
An LSTM architecture for real-time multi-domain stability boundary prediction beyond post-fault dependency in power systems
Download PDF
Download PDF
  • Article
  • Open access
  • Published: 27 January 2026

An LSTM architecture for real-time multi-domain stability boundary prediction beyond post-fault dependency in power systems

  • Meysam Shahriyari1,
  • Amin Safari1,
  • Anas Quteishat2,3 &
  • …
  • Hadi Afsharirad1 

Scientific Reports , Article number:  (2026) Cite this article

We are providing an unedited version of this manuscript to give early access to its findings. Before final publication, the manuscript will undergo further editing. Please note there may be errors present which affect the content, and all legal disclaimers apply.

Subjects

  • Energy science and technology
  • Engineering
  • Mathematics and computing

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

  1. 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).

    Google Scholar 

  2. 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).

    Google Scholar 

  3. Belhomme, R. & Pavella, M. A composite electromechanical distance approach to transient stability. IEEE Trans. Power Syst. 6 (2), 622–631 (1991).

    Google Scholar 

  4. 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).

    Google Scholar 

  5. 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).

    Google Scholar 

  6. 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).

    Google Scholar 

  7. 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).

    Google Scholar 

  8. 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).

    Google Scholar 

  9. 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).

    Google Scholar 

  10. 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).

    Google Scholar 

  11. 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).

  12. 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).

    Google Scholar 

  13. 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).

    Google Scholar 

  14. 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).

    Google Scholar 

  15. 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).

    Google Scholar 

  16. W. E. C. Council. NERC/WECC planning standards, Salt Lake City, UT, USA (2003).

  17. 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).

    Google Scholar 

  18. 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).

    Google Scholar 

  19. 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).

    Google Scholar 

  20. 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).

    Google Scholar 

  21. 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).

    Google Scholar 

  22. 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).

    Google Scholar 

  23. 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).

    Google Scholar 

  24. Abdulraheem, B. S. & Gan, C. K. Power system frequency stability and control: survey. Int. J. Appl. Eng. Res. 11 (8), 5688–5695 (2016).

    Google Scholar 

  25. 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).

    Google Scholar 

  26. 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).

    Google Scholar 

  27. Urban, R., Denis, S. & Rafael, M. Estimating frequency stability margin for flexible under-frequency relay operation. Electr. Power Syst. Res. 194, 107116 (2021).

    Google Scholar 

  28. Pujari, R. & Alam, M. N. Review on distance relaying for the protection of modern power system networks. IEEE Access (2025).

  29. 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).

    Google Scholar 

  30. 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).

    Google Scholar 

  31. Phadke, A. G. & Thorp, J. S. Synchronized Phasor Measurements and their Applications (no. 2017) (Springer, 2008).

  32. Vaswani, A. et al. Attention is all you need. In Advances in neural information processing systems, vol. 30 (2017).

  33. Bahdanau, D., Cho, K. & Bengio, Y. Neural machine translation by jointly learning to align and translate, arXiv preprint arXiv:1409.0473 (2014).

  34. 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).

    Google Scholar 

  35. 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).

    Google Scholar 

  36. 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).

    Google Scholar 

  37. 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).

    Google Scholar 

  38. 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).

    Google Scholar 

  39. 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).

    Google Scholar 

  40. 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).

    Google Scholar 

Download references

Funding

This research did not receive any specific grant or funding.

Author information

Authors and Affiliations

  1. Department of Electrical Engineering, Azarbaijan Shahid Madani University, Tabriz, Iran

    Meysam Shahriyari, Amin Safari & Hadi Afsharirad

  2. Communication and Computer Engineering Department, Faculty of Engineering, Al-Ahliyya Amman University, Amman, Jordan

    Anas Quteishat

  3. Electrical Engineering Department, Faculty of Engineering Technology, Al-Balqa Applied University, Al-Salt, Jordan

    Anas Quteishat

Authors
  1. Meysam Shahriyari
    View author publications

    Search author on:PubMed Google Scholar

  2. Amin Safari
    View author publications

    Search author on:PubMed Google Scholar

  3. Anas Quteishat
    View author publications

    Search author on:PubMed Google Scholar

  4. Hadi Afsharirad
    View author publications

    Search author on:PubMed Google Scholar

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

Correspondence to Amin Safari.

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/.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

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

Download citation

  • Received: 03 November 2025

  • Accepted: 13 January 2026

  • Published: 27 January 2026

  • DOI: https://doi.org/10.1038/s41598-026-36571-6

Share this article

Anyone you share the following link with will be able to read this content:

Sorry, a shareable link is not currently available for this article.

Provided by the Springer Nature SharedIt content-sharing initiative

Keywords

  • LSTM deep neural networks
  • Comprehensive dynamic security index
  • Dynamic security
  • Boundary detection
Download PDF

Associated content

Collection

AI-driven electrical systems

Advertisement

Explore content

  • Research articles
  • News & Comment
  • Collections
  • Subjects
  • Follow us on Facebook
  • Follow us on Twitter
  • Sign up for alerts
  • RSS feed

About the journal

  • About Scientific Reports
  • Contact
  • Journal policies
  • Guide to referees
  • Calls for Papers
  • Editor's Choice
  • Journal highlights
  • Open Access Fees and Funding

Publish with us

  • For authors
  • Language editing services
  • Open access funding
  • Submit manuscript

Search

Advanced search

Quick links

  • Explore articles by subject
  • Find a job
  • Guide to authors
  • Editorial policies

Scientific Reports (Sci Rep)

ISSN 2045-2322 (online)

nature.com sitemap

About Nature Portfolio

  • About us
  • Press releases
  • Press office
  • Contact us

Discover content

  • Journals A-Z
  • Articles by subject
  • protocols.io
  • Nature Index

Publishing policies

  • Nature portfolio policies
  • Open access

Author & Researcher services

  • Reprints & permissions
  • Research data
  • Language editing
  • Scientific editing
  • Nature Masterclasses
  • Research Solutions

Libraries & institutions

  • Librarian service & tools
  • Librarian portal
  • Open research
  • Recommend to library

Advertising & partnerships

  • Advertising
  • Partnerships & Services
  • Media kits
  • Branded content

Professional development

  • Nature Awards
  • Nature Careers
  • Nature Conferences

Regional websites

  • Nature Africa
  • Nature China
  • Nature India
  • Nature Japan
  • Nature Middle East
  • Privacy Policy
  • Use of cookies
  • Legal notice
  • Accessibility statement
  • Terms & Conditions
  • Your US state privacy rights
Springer Nature

© 2026 Springer Nature Limited

Nature Briefing AI and Robotics

Sign up for the Nature Briefing: AI and Robotics newsletter — what matters in AI and robotics research, free to your inbox weekly.

Get the most important science stories of the day, free in your inbox. Sign up for Nature Briefing: AI and Robotics