Power supply quality prediction method based on LSTM and self-attention mechanism

Existing LSTM-based power quality (PQ) prediction models primarily rely on historical information, which limits their ability to fully capture contextual dependencies. Furthermore, these models process inputs sequentially without accounting for the varying importance of different time steps, leading to significant prediction inaccuracies. To address these limitations, this study proposes an enhanced PQ prediction model that integrates Bidirectional Long Short-Term Memory (BiLSTM) with a Self-Attention (SA) mechanism. The BiLSTM module is introduced to model both forward and backward temporal dependencies, enabling a more comprehensive capture of long-term patterns in time series data. The SA mechanism dynamically adjusts the importance of different time steps through weighted summation, enhancing the model’s ability to focus on critical features and improving its capacity to model nonlinear relationships. The weighted features from the SA layer are then mapped to a fully connected layer to generate the final prediction outputs. Experiments were conducted using power quality data from Nanchang as the primary dataset, with additional datasets from Nanjing, Wuhan, Changsha, and Beijing used for generalization testing. The results demonstrate that the BiLSTM-SA model outperforms traditional LSTM models across all PQ metrics, achieving a mean absolute error (MAE) of 0.09 for voltage deviation, a 0.05 improvement over single-layer LSTM. Notably, the model maintains robust performance in complex power supply scenarios, with a generalized MAE of only 0.2 in Beijing. These findings highlight the effectiveness of combining BiLSTM with the SA mechanism in reducing prediction errors and ensuring the stability of power supply quality, offering a significant advancement in PQ prediction methodologies.

Authors

Publication Details

Journal
Journal of Computational Methods in Sciences and Engineering
Published
2025-04-26
DOI
https://doi.org/10.1177/14727978251337953
Primary Topic
Energy Load and Power Forecasting
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Power supply quality prediction method based on LSTM and self-attention mechanism

Yan Yang, Yu Chang
Journal of Computational Methods in Sciences and Engineering
Energy Load and Power Forecasting
article

Power supply quality prediction method based on LSTM and self-attention mechanism

Yan Yang, Yu Chang
article en

Abstract

Existing LSTM-based power quality (PQ) prediction models primarily rely on historical information, which limits their ability to fully capture contextual dependencies. Furthermore, these models process inputs sequentially without accounting for the varying importance of different time steps, leading to significant prediction inaccuracies. To address these limitations, this study proposes an enhanced PQ prediction model that integrates Bidirectional Long Short-Term Memory (BiLSTM) with a Self-Attention (SA) mechanism. The BiLSTM module is introduced to model both forward and backward temporal dependencies, enabling a more comprehensive capture of long-term patterns in time series data. The SA mechanism dynamically adjusts the importance of different time steps through weighted summation, enhancing the model’s ability to focus on critical features and improving its capacity to model nonlinear relationships. The weighted features from the SA layer are then mapped to a fully connected layer to generate the final prediction outputs. Experiments were conducted using power quality data from Nanchang as the primary dataset, with additional datasets from Nanjing, Wuhan, Changsha, and Beijing used for generalization testing. The results demonstrate that the BiLSTM-SA model outperforms traditional LSTM models across all PQ metrics, achieving a mean absolute error (MAE) of 0.09 for voltage deviation, a 0.05 improvement over single-layer LSTM. Notably, the model maintains robust performance in complex power supply scenarios, with a generalized MAE of only 0.2 in Beijing. These findings highlight the effectiveness of combining BiLSTM with the SA mechanism in reducing prediction errors and ensuring the stability of power supply quality, offering a significant advancement in PQ prediction methodologies.

Journal of Computational Methods in Sciences and EngineeringVol. 25(5)
Affordable and clean energy
Openalex Percentile: Top 93%
Energy Load and Power Forecasting
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.