Short-term wind speed forecasting model based on an attention-gated recurrent neural network and error correction strategy

Haojian HuangarXiv 2024 · DOI

Accurate short-term wind speed forecasting is vital for the integration of wind energy into power grids. This paper proposes a hybrid forecasting framework, SSA-AtGRU-VMD-GRU, which combines Singular Spectrum Analysis (SSA) for denoising, an Attention-Gated Recurrent Unit (AtGRU) for preliminary prediction, and a secondary GRU network for error correction based on Variational Mode Decomposition (VMD). Experimental results across three diverse datasets demonstrate that this multi-stage approach significantly reduces forecasting errors compared to traditional single-model methods, particularly in multi-step ahead scenarios.

Introduction

The transition to renewable energy sources necessitates robust tools for managing the inherent variability of wind power. Wind speed is characterized by high non-linearity and non-stationarity, making it difficult to predict using conventional statistical or simple machine learning models. While deep learning models like Recurrent Neural Networks (RNNs) and Gated Recurrent Units (GRUs) have shown promise, they often struggle with long-term dependencies or fail to capture the residual patterns in prediction errors. This paper addresses these challenges by introducing a "predictor-corrector" architecture that systematically refines its forecasts.

Methodology

The proposed SSA-AtGRU-VMD-GRU model operates in four distinct stages:

1. Data Denoising with SSA

Raw wind speed data often contains high-frequency noise that can obscure underlying trends. Singular Spectrum Analysis (SSA) is employed to decompose the original time series into trend, periodic, and noise components, allowing the model to focus on the most informative signals.

2. Preliminary Prediction with AtGRU

The denoised data is processed by an Attention-Gated Recurrent Unit (AtGRU). The core of this component is the GRU, which uses gating mechanisms to control the flow of information and mitigate the vanishing gradient problem.

Internal structure of a Gated Recurrent Unit (GRU), showing the update and reset gates used to manage temporal dependencies.

As shown in Figure 1, the GRU utilizes a reset gate ($r_t$) to decide how much of the previous state to forget and an update gate ($z_t$) to determine how much of the new information to incorporate into the current state ($h_t$). To enhance this, an attention mechanism is integrated into the recurrent structure.

The attention mechanism architecture, which assigns weights to historical hidden states to focus on relevant past events.

Figure 2 illustrates how the attention module calculates weights ($\alpha_{ki}$) for different historical hidden states ($h_i$). This allows the model to dynamically focus on the most relevant past time steps when generating the context vector ($C$) for the current prediction, effectively filtering the temporal information for better accuracy.

3. Error Decomposition via VMD

The initial prediction from the AtGRU inevitably leaves a residual error. To extract meaningful patterns from this "noise-like" signal, the paper utilizes Variational Mode Decomposition (VMD). VMD decomposes the error sequence into several intrinsic mode functions (IMFs) with specific sparsity properties, making the error more structured and predictable for a neural network.

4. Error Correction and Final Output

A secondary GRU network is trained on the decomposed error modes to forecast the likely error of the next step. The final wind speed forecast is obtained by summing the AtGRU's preliminary prediction and the GRU's predicted error correction.

Results and Discussion

The model was validated using hourly wind speed data from three disparate sites: Woodburn (Oregon), St. Thomas Island, and Santa Cruz Island. Comparative analysis against SVR, BPNN, RNN, and standard GRU models revealed significant improvements across all metrics (RMSE, MAE, MAPE, and $R^2$).

  • Accuracy Boost: In the Woodburn case study, the proposed model reduced the Root Mean Square Error (RMSE) by 71.45% compared to SVR and 15.63% compared to a standard RNN in one-step forecasting.
  • Multi-step Stability: The model maintained high precision even as the forecast horizon increased. For Site 3, the three-step forecast achieved an $R^2$ of 0.9830, indicating that the error correction strategy effectively mitigates the "error accumulation" typically seen in multi-step AI forecasts.
  • Error Reduction: The error correction results processed by VMD decreased the Mean Absolute Percentage Error (MAPE) by up to 44.94% compared to other decomposition methods like CEEMDAN.

Conclusion

The SSA-AtGRU-VMD-GRU framework represents a significant advancement in wind speed forecasting. By combining advanced denoising, attention-based temporal modeling, and a sophisticated error correction strategy, the model achieves high accuracy and stability. While the model's complexity requires sufficient training data, its ability to learn from its own mistakes provides a robust template for other volatile time-series domains, such as urban traffic management or financial forecasting.

Summary updated

BibTeX
@misc{huang2024short,
  author = {Haojian Huang},
  title = {{Short-term wind speed forecasting model based on an attention-gated recurrent neural network and error correction strategy}},
  year = {2024},
  eprint = {2404.11422},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.11422},
}
Figure