Ultra-Short-Term Wind Power Prediction Based on the ZS-DT-PatchTST Combined Model

Yanlong Gao, Feng Xing, Lipeng Kang, Mingming Zhang, Caiyan QinEnergies 2024

TL;DR

This paper introduces ZS-DT-PatchTST, a novel combined model for ultra-short-term wind power prediction. By addressing data distribution shifts and improving local feature extraction, it achieves state-of-the-art accuracy, outperforming existing methods.

What Problem Does This Paper Address?

Accurate wind power prediction is crucial for grid stability and efficient energy management. Ultra-short-term prediction (within 4 hours) is particularly important for real-time grid operations. However, existing point-by-point time series models struggle with two key issues:

  1. Data Distribution Shifts: The statistical properties (mean and variance) of wind power data can change over time, both between training and testing datasets and between different time windows. This "distribution shift" significantly degrades prediction accuracy.
  2. Limited Local Information Extraction: Traditional models often treat time series data as individual points, failing to capture the intricate local correlations and dependencies between adjacent data points, which are vital for accurate forecasting.

Methods

The proposed ZS-DT-PatchTST model tackles these problems through a multi-stage approach:

  • ZS Standardization: To mitigate the distribution shift between training and testing datasets, Z-score (ZS) standardization is applied. This normalizes data based on the mean and variance of the training set, ensuring consistency.
  • DT Standardization: To address distribution shifts between different time windows, the Dish-TS (DT) algorithm is employed. DT can adaptively learn the mean and variance for standardization, making it more robust than previous methods like RevIN (RV).
  • PatchTST for Local Feature Extraction: The core of the prediction is handled by the Patch Time Series Transformer (PatchTST). This model innovatively converts point-wise input data into "patches" – small, localized segments of the time series. This allows the model to:
  • Maintain Channel Independence: Each feature (e.g., wind speed at different heights) is processed independently.
  • Extract Local Correlations: The multi-head attention mechanism within the Transformer's encoder layer can effectively capture relationships within these local patches.
  • Integrate Local Information: By processing these patches, the model gains a richer understanding of local temporal dynamics.
  • De-standardization: Finally, the predicted values are de-standardized using DT and ZS to return them to their original scale.

Datasets

The study utilizes two wind power datasets:

  1. Wind Power Dataset 1: Publicly available, 200 MW installed capacity, collected at 15-minute intervals, with 12 features. This dataset was used for initial analysis and hyperparameter tuning.
  2. Wind Power Dataset 2: From a 100 MW wind farm, collected at 5-minute intervals, with one feature. This dataset was used to validate the model's performance on a different time scale.

Key Insights and Ideas

  • Distribution Shift is a Major Hurdle: The paper convincingly demonstrates that distribution shifts, both between datasets and within time windows, significantly impair wind power prediction accuracy.
  • Patching is Powerful for Local Context: The PatchTST approach is a key innovation. By breaking down the time series into local patches, it allows the Transformer to learn from localized patterns, which is crucial for capturing complex wind dynamics.
  • DT Outperforms Previous Window Standardization: The DT algorithm shows superior performance in handling window-to-window distribution shifts compared to earlier methods like RV and even a simple ZS approach applied to windows.
  • Combined Approach is Key: The synergy between ZS (for dataset-level shifts), DT (for window-level shifts), and PatchTST (for local feature extraction) is what drives the model's high performance.

Key Results

The ZS-DT-PatchTST model consistently outperformed various baseline models across different datasets and evaluation metrics:

  • Wind Power Dataset 1 (15-min intervals):
    • Achieved a Mean Absolute Error (MAE) of 5.95 MW.
  • Achieved a Root Mean Squared Error (RMSE) of 10.89 MW.
  • Achieved a Coefficient of Determination (R²) of 97.38%.
  • Wind Power Dataset 2 (5-min intervals):
    • Achieved a MAE of 2.27 MW.
  • Achieved a RMSE of 3.84 MW.
  • Achieved an R² of 97.03%.

The model showed significant improvements over:

  • PatchTST alone: MAE reduced by 1.03 MW, RMSE by 2.12 MW, R² increased by 1.31%.
  • ZS-RV-PatchTST: MAE reduced by 0.35 MW, RMSE by 1.10 MW, R² increased by 0.54%.
  • Various Transformer-based models (Informer, Reformer, etc.): ZS-DT-PatchTST consistently showed lower MAE/RMSE and higher R².
  • Linear models (DLinear, NLinear): ZS-DT-PatchTST demonstrated significantly better accuracy.
  • Traditional ML models (GRNN, BP, SVR, RF): ZS-DT-PatchTST achieved substantially lower errors and higher R².
  • LSTM/GRU models: ZS-DT-PatchTST outperformed these recurrent models, highlighting the advantages of the Transformer architecture with patching.

Limitations and Future Work

  • Limitations:
    • The paper acknowledges that Z-score standardization can be affected by a large proportion of anomalies in the wind power data, potentially impacting the mean and variance calculations.
  • The selection of appropriate standardization methods might need to be dataset-specific and requires further research.
  • Future Work:
    • The authors suggest further in-depth research into selecting different standardization methods for different datasets.
  • Exploring more advanced anomaly detection and handling techniques could further enhance robustness.

Summary updated

Abstract

When using point-by-point data input with former series models for wind power prediction, the prediction accuracy decreases due to data distribution shifts and the inability to extract local information. To address these issues, this paper proposes an ultra-short-term wind power prediction model based on the Z-score (ZS), Dish-TS (DT), and Patch time series Transformer (PatchTST). Firstly, to reduce the impact of data distribution shift on prediction accuracy, ZS standardization is applied to both training and testing datasets. Additionally, the DT algorithm, which can self-learn the mean and variance, is introduced for window data standardization. Secondly, the PatchTST model is employed to convert point input data into local-level input data. Feature extraction is then performed using the multi-head attention mechanism in the Encoder layer and a feed-forward network composed of one-dimensional convolution to obtain the prediction results. These results are subsequently de-standardized using DT and ZS to restore the original data amplitude. Finally, experimental analysis is conducted, comparing the proposed ZS-DT-PatchTST model with various prediction models. The proposed model achieves the highest prediction accuracy, with a mean absolute error of 5.95 MW, a mean squared error of 10.89 MW, and a coefficient of determination of 97.38%.
BibTeX
@inproceedings{gao2024ultra,
  author = {Yanlong Gao and Feng Xing and Lipeng Kang and Mingming Zhang and Caiyan Qin},
  title = {{Ultra-Short-Term Wind Power Prediction Based on the ZS-DT-PatchTST Combined Model}},
  booktitle = {Energies},
  year = {2024},
  doi = {10.3390/en17174332},
}
Figure