IDEAS home Printed from https://ideas.repec.org/a/eee/energy/v340y2025ics0360544225048200.html

Wind speed forecasting using dual-attention patch-based multiscale transformer

Author

Listed:
  • Luo, Haiwei
  • Shi, Huifeng
  • Shi, Qiong
  • Chen, Xinjie
  • Duan, Yawen
  • Yan, Saisai

Abstract

Accurate and reliable wind speed forecasting is essential for the sustainable development, efficient operation, and long-term growth of the wind power industry. This paper proposes a novel Patch-based Multi-scale Transformer model that captures dependencies in both temporal and multivariate dimensions of wind speed data for enhanced prediction. The model employs a scalable, serialized architecture composed of stacked Multi-Scale blocks. Each block first divides the input data into patches of varying sizes, and then extracts temporal and variable dependencies through dual attention mechanisms. Specifically, the self-attention mechanism captures temporal dependencies among different wind speed information patches, while a newly developed cross-attention mechanism extracts the influence of other meteorological variables on wind speed data, with particular emphasis on cross-lagged relationships. Experiments on real-world wind speed datasets demonstrate that the proposed model significantly improves prediction performance. Compared to the most recent state-of-the-art models, the MAE, RMSE, and MAPE evaluation metrics are reduced by an average of 25.90%, 10.04%, and 8.61%, respectively. Additionally, the impact of input length on the results is systematically analyzed. Finally, ablation experiments confirm the contribution of each key component in the model design, validating the effectiveness of the proposed architecture.

Suggested Citation

  • Luo, Haiwei & Shi, Huifeng & Shi, Qiong & Chen, Xinjie & Duan, Yawen & Yan, Saisai, 2025. "Wind speed forecasting using dual-attention patch-based multiscale transformer," Energy, Elsevier, vol. 340(C).
  • Handle: RePEc:eee:energy:v:340:y:2025:i:c:s0360544225048200
    DOI: 10.1016/j.energy.2025.139178
    as

    Download full text from publisher

    File URL: http://www.sciencedirect.com/science/article/pii/S0360544225048200
    Download Restriction: Full text for ScienceDirect subscribers only

    File URL: https://libkey.io/10.1016/j.energy.2025.139178?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to

    for a different version of it.

    References listed on IDEAS

    as
    1. Jicheng Quan & Li Shang, 2020. "Short-Term Wind Speed Forecasting Based on Ensemble Online Sequential Extreme Learning Machine and Bayesian Optimization," Mathematical Problems in Engineering, Hindawi, vol. 2020, pages 1-13, November.
    2. Dongxiao Niu & Yi Liang & Wei-Chiang Hong, 2017. "Wind Speed Forecasting Based on EMD and GRNN Optimized by FOA," Energies, MDPI, vol. 10(12), pages 1-18, December.
    3. He, Jinhua & Hu, Zechun & Wang, Songpo & Mujeeb, Asad & Yang, Pengwei, 2024. "Windformer: A novel 4D high-resolution system for multi-step wind speed vector forecasting based on temporal shifted window multi-head self-attention," Energy, Elsevier, vol. 310(C).
    4. Liu, Xiaolei & Lin, Zi & Feng, Ziming, 2021. "Short-term offshore wind speed forecast by seasonal ARIMA - A comparison against GRU and LSTM," Energy, Elsevier, vol. 227(C).
    5. Pan, Xiaoxin & Wang, Long & Wang, Zhongju & Huang, Chao, 2022. "Short-term wind speed forecasting based on spatial-temporal graph transformer networks," Energy, Elsevier, vol. 253(C).
    6. Qiu, Hong & Shi, Kaikai & Wang, Renfang & Zhang, Liang & Liu, Xiufeng & Cheng, Xu, 2024. "A novel temporal–spatial graph neural network for wind power forecasting considering blockage effects," Renewable Energy, Elsevier, vol. 227(C).
    7. Liu, Hui & Chen, Chao, 2019. "Data processing strategies in wind energy forecasting models and applications: A comprehensive review," Applied Energy, Elsevier, vol. 249(C), pages 392-408.
    8. Zhang, Jun & Zhang, Yagang & Liu, Ke & Zhao, Chunyang, 2025. "Multi-step prediction of spatio-temporal wind speed based on the multimodal coupled ST-DFNet model," Energy, Elsevier, vol. 334(C).
    9. Kavasseri, Rajesh G. & Seetharaman, Krithika, 2009. "Day-ahead wind speed forecasting using f-ARIMA models," Renewable Energy, Elsevier, vol. 34(5), pages 1388-1393.
    10. Wang, Yaqi & Zhao, Xiaomeng & Li, Zheng & Zhu, Wenbo & Gui, Renzhou, 2024. "A novel hybrid model for multi-step-ahead forecasting of wind speed based on univariate data feature enhancement," Energy, Elsevier, vol. 312(C).
    11. Ma, Long & Huang, Ling & Shi, Huifeng, 2023. "Multi-node wind speed forecasting based on a novel dynamic spatial–temporal graph network," Energy, Elsevier, vol. 285(C).
    12. Nascimento, Erick Giovani Sperandio & de Melo, Talison A.C. & Moreira, Davidson M., 2023. "A transformer-based deep neural network with wavelet transform for forecasting wind speed and wind energy," Energy, Elsevier, vol. 278(C).
    13. Zhao, Weigang & Wei, Yi-Ming & Su, Zhongyue, 2016. "One day ahead wind speed forecasting: A resampling-based approach," Applied Energy, Elsevier, vol. 178(C), pages 886-901.
    14. Wu, Huijuan & Meng, Keqilao & Fan, Daoerji & Zhang, Zhanqiang & Liu, Qing, 2022. "Multistep short-term wind speed forecasting using transformer," Energy, Elsevier, vol. 261(PA).
    15. Wu, Tangjie & Ling, Qiang, 2024. "Self-supervised dynamic stochastic graph network for spatio-temporal wind speed forecasting," Energy, Elsevier, vol. 304(C).
    16. Yang, Wendong & Zang, Xinyi & Wu, Chunying & Hao, Yan, 2024. "A new multi-objective ensemble wind speed forecasting system: Mixed-frequency interval-valued modeling paradigm," Energy, Elsevier, vol. 304(C).
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Wu, Binrong & Lin, Jiacheng & Liu, Rui & Wang, Lin, 2026. "A multi-dimensional interpretable wind speed forecasting model with two-stage feature exploring," Renewable Energy, Elsevier, vol. 256(PB).
    2. Zeng, Huanze & Wu, Binrong & Fang, Haoyu & Lin, Jiacheng, 2025. "Interpretable wind speed forecasting through two-stage decomposition with comprehensive relative importance analysis," Applied Energy, Elsevier, vol. 392(C).
    3. Wu, Binrong & Yu, Sihao & Peng, Lu & Wang, Lin, 2024. "Interpretable wind speed forecasting with meteorological feature exploring and two-stage decomposition," Energy, Elsevier, vol. 294(C).
    4. Lin, Shengmao & Wang, Shu & Xu, Xuefang & Li, Ruixiong & Shi, Peiming, 2024. "GAOformer: An adaptive spatiotemporal feature fusion transformer utilizing GAT and optimizable graph matrixes for offshore wind speed prediction," Energy, Elsevier, vol. 292(C).
    5. Wu, Binrong & Wang, Lin & Zeng, Yu-Rong, 2022. "Interpretable wind speed prediction with multivariate time series and temporal fusion transformers," Energy, Elsevier, vol. 252(C).
    6. Wu, Tangjie & Ling, Qiang, 2024. "STELLM: Spatio-temporal enhanced pre-trained large language model for wind speed forecasting," Applied Energy, Elsevier, vol. 375(C).
    7. Wang, Yaqi & Zhao, Xiaomeng & Li, Zheng & Zhu, Wenbo & Gui, Renzhou, 2024. "A novel hybrid model for multi-step-ahead forecasting of wind speed based on univariate data feature enhancement," Energy, Elsevier, vol. 312(C).
    8. Ma, Jiawei & Du, Jie & Chen, Qixian & Jiang, Xinyu & Pan, Linlin, 2025. "Multi-feature extraction spatio-temporal interaction graph network for wind speed forecasting in windfarm," Energy, Elsevier, vol. 333(C).
    9. Wang, Yun & Zou, Runmin & Liu, Fang & Zhang, Lingjun & Liu, Qianyi, 2021. "A review of wind speed and wind power forecasting with deep neural networks," Applied Energy, Elsevier, vol. 304(C).
    10. Li, Shibao & Guo, Liang & Zhu, Jinze & Liu, Menglong & Chen, Jiaxin & Meng, Zihan, 2026. "Short-term multi-step wind speed forecasting with multi-feature inputs using Variational Mode Decomposition, a novel artificial intelligence network, and the Polar Lights Optimizer," Renewable Energy, Elsevier, vol. 256(PB).
    11. Jiang, Wenjun & Liu, Bo & Liang, Yang & Gao, Huanxiang & Lin, Pengfei & Zhang, Dongqin & Hu, Gang, 2024. "Applicability analysis of transformer to wind speed forecasting by a novel deep learning framework with multiple atmospheric variables," Applied Energy, Elsevier, vol. 353(PB).
    12. Wu, Binrong & Wang, Lin, 2024. "Two-stage decomposition and temporal fusion transformers for interpretable wind speed forecasting," Energy, Elsevier, vol. 288(C).
    13. Wang, Qiang & Xu, Feiyan & He, Jiahua & Luo, Kun & Fan, Jianren, 2026. "A new fusion model for enhanced ultra-short-term offshore wind power forecasting," Renewable Energy, Elsevier, vol. 256(PA).
    14. Wang, Yun & Xu, Houhua & Zou, Runmin & Zhang, Lingjun & Zhang, Fan, 2022. "A deep asymmetric Laplace neural network for deterministic and probabilistic wind power forecasting," Renewable Energy, Elsevier, vol. 196(C), pages 497-517.
    15. Wang, Yun & Duan, Xiaocong & Zhang, Fan & Wu, Guang & Zou, Runmin & Wan, Jie & Hu, Qinghua, 2025. "MFFDM-WLS: A multi-granularity feature-based coherent forecasting method for temporal hierarchical wind speed time series," Applied Energy, Elsevier, vol. 400(C).
    16. Ban, Guihua & Chen, Yan & Xiong, Zhenhua & Zhuo, Yixin & Huang, Kui, 2024. "The univariate model for long-term wind speed forecasting based on wavelet soft threshold denoising and improved Autoformer," Energy, Elsevier, vol. 290(C).
    17. Wu, Tangjie & Ling, Qiang, 2024. "Self-supervised dynamic stochastic graph network for spatio-temporal wind speed forecasting," Energy, Elsevier, vol. 304(C).
    18. Yukun Wang & Aiying Zhao & Xiaoxue Wei & Ranran Li, 2023. "A Novel Ensemble Model Based on an Advanced Optimization Algorithm for Wind Speed Forecasting," Energies, MDPI, vol. 16(14), pages 1-19, July.
    19. Wang, Yun & Xu, Houhua & Song, Mengmeng & Zhang, Fan & Li, Yifen & Zhou, Shengchao & Zhang, Lingjun, 2023. "A convolutional Transformer-based truncated Gaussian density network with data denoising for wind speed forecasting," Applied Energy, Elsevier, vol. 333(C).
    20. Fu, Zhengze & Qian, Hongliang & Chu, Xuanxuan & Yang, Fan & Guo, Chengchao & Wang, Fuming, 2025. "Hybrid ultra-short-term wind speed forecasting model based on improved BO-HMA-BiGRU and GMBInformer: Integrating SVMD-SWT dual decomposition and MPE-driven modeling mechanism," Energy, Elsevier, vol. 339(C).

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:eee:energy:v:340:y:2025:i:c:s0360544225048200. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Catherine Liu (email available below). General contact details of provider: http://www.journals.elsevier.com/energy .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.