IDEAS home Printed from https://ideas.repec.org/a/eee/energy/v320y2025ics0360544225008564.html
   My bibliography  Save this article

CRAformer: A cross-residual attention transformer for solar irradiation multistep forecasting

Author

Listed:
  • Zhang, Zongbin
  • Huang, Xiaoqiao
  • Li, Chengli
  • Cheng, Feiyan
  • Tai, Yonghang

Abstract

In recent years, solar energy has gained widespread adoption in smart grids due to its safety, environmental friendliness, abundance, and other advantages, driving the application of photovoltaic (PV) power generation technology. Accurately predicting solar irradiance is essential for ensuring the operational stability of PV power systems, making it a critical challenge for maintaining grid security and stability. Although Transformer models in deep learning have achieved significant advancements in solar irradiance forecasting, existing studies often treat cross-batch time-series data (TSD) as independent. By overlooking the complex coupling relationships between different data batches, they fail to fully capture the underlying patterns in TSD under varying conditions. Moreover, handling the long-term dependencies and short-term weather-induced fluctuations inherent in TSD remains difficult. To address these issues, this paper proposes an efficient Transformer model (CRAformer) based on Cross-Residual Attention (CRA) for multi-step solar irradiance forecasting. CRAformer effectively captures the deep coupling relationships within TSD through a residual scoring mechanism, which can dynamically adjust feature weights and balance long-term dependencies with short-term variations. Furthermore, by incorporating a dual-output mode and dual-attention strategy, the model can deconstruct complex data structures and guide the prediction process with greater accuracy. Additionally, the newly designed Convolutional Weighted Fusion Module (CWFM) enhances the model's capability to recognize diverse patterns and characteristics in TSD. By dynamically regulating the information transfer process, the CWFM improves the model's generalization, fitting accuracy, and robustness. To evaluate CRAformer's performance, four prediction tasks with varying time steps (24 h, 48 h, 72 h, 96 h) were designed using irradiance datasets from different locations: Denver, Clark, and Folsom. The experimental results demonstrate that, compared to the second-best model, iTransformer, CRAformer reduces the RMSE by an average of 5.6 %, 3.9 %, and 5.6 % across the four prediction steps for the datasets from Denver, Clark, and Folsom, respectively. These results indicate that CRAformer offers significant advantages in multi-step solar irradiance forecasting, providing a valuable reference for future model optimization.

Suggested Citation

  • Zhang, Zongbin & Huang, Xiaoqiao & Li, Chengli & Cheng, Feiyan & Tai, Yonghang, 2025. "CRAformer: A cross-residual attention transformer for solar irradiation multistep forecasting," Energy, Elsevier, vol. 320(C).
  • Handle: RePEc:eee:energy:v:320:y:2025:i:c:s0360544225008564
    DOI: 10.1016/j.energy.2025.135214
    as

    Download full text from publisher

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

    File URL: https://libkey.io/10.1016/j.energy.2025.135214?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. Qu, Zhijian & Xu, Juan & Wang, Zixiao & Chi, Rui & Liu, Hanxin, 2021. "Prediction of electricity generation from a combined cycle power plant based on a stacking ensemble and its hyperparameter optimization with a grid-search method," Energy, Elsevier, vol. 227(C).
    2. Ahmed, R. & Sreeram, V. & Mishra, Y. & Arif, M.D., 2020. "A review and evaluation of the state-of-the-art in PV solar power forecasting: Techniques and optimization," Renewable and Sustainable Energy Reviews, Elsevier, vol. 124(C).
    3. Das, Utpal Kumar & Tey, Kok Soon & Seyedmahmoudian, Mehdi & Mekhilef, Saad & Idris, Moh Yamani Idna & Van Deventer, Willem & Horan, Bend & Stojcevski, Alex, 2018. "Forecasting of photovoltaic power generation and model optimization: A review," Renewable and Sustainable Energy Reviews, Elsevier, vol. 81(P1), pages 912-928.
    4. Rao K, D.V. Siva Krishna & Premalatha, M. & Naveen, C., 2018. "Analysis of different combinations of meteorological parameters in predicting the horizontal global solar radiation with ANN approach: A case study," Renewable and Sustainable Energy Reviews, Elsevier, vol. 91(C), pages 248-258.
    5. Zhao, He & Huang, Xiaoqiao & Xiao, Zenan & Shi, Haoyuan & Li, Chengli & Tai, Yonghang, 2024. "Week-ahead hourly solar irradiation forecasting method based on ICEEMDAN and TimesNet networks," Renewable Energy, Elsevier, vol. 220(C).
    6. Gandoman, Foad H. & Abdel Aleem, Shady H.E. & Omar, Noshin & Ahmadi, Abdollah & Alenezi, Faisal Q., 2018. "Short-term solar power forecasting considering cloud coverage and ambient temperature variation effects," Renewable Energy, Elsevier, vol. 123(C), pages 793-805.
    7. Liu, Jiarui & Fu, Yuchen, 2023. "Renewable energy forecasting: A self-supervised learning-based transformer variant," Energy, Elsevier, vol. 284(C).
    8. Hanif, M.F. & Mi, J., 2024. "Harnessing AI for solar energy: Emergence of transformer models," Applied Energy, Elsevier, vol. 369(C).
    9. Tao, Kejun & Zhao, Jinghao & Tao, Ye & Qi, Qingqing & Tian, Yajun, 2024. "Operational day-ahead photovoltaic power forecasting based on transformer variant," Applied Energy, Elsevier, vol. 373(C).
    10. Ferbar Tratar, Liljana & Strmčnik, Ervin, 2016. "The comparison of Holt–Winters method and Multiple regression method: A case study," Energy, Elsevier, vol. 109(C), pages 266-276.
    11. Xiao, Zenan & Huang, Xiaoqiao & Liu, Jun & Li, Chengli & Tai, Yonghang, 2023. "A novel method based on time series ensemble model for hourly photovoltaic power prediction," Energy, Elsevier, vol. 276(C).
    12. Kumari, Pratima & Toshniwal, Durga, 2021. "Long short term memory–convolutional neural network based deep hybrid approach for solar irradiance forecasting," Applied Energy, Elsevier, vol. 295(C).
    13. Chen, Jie & Peng, Tian & Qian, Shijie & Ge, Yida & Wang, Zheng & Nazir, Muhammad Shahzad & Zhang, Chu, 2025. "An error-corrected deep Autoformer model via Bayesian optimization algorithm and secondary decomposition for photovoltaic power prediction," Applied Energy, Elsevier, vol. 377(PD).
    14. Mo, Fan & Jiao, Xuan & Li, Xingshuo & Du, Yang & Yao, Yunting & Meng, Yuxiang & Ding, Shuye, 2024. "A novel multi-step ahead solar power prediction scheme by deep learning on transformer structure," Renewable Energy, Elsevier, vol. 230(C).
    15. Kim, Jimin & Obregon, Josue & Park, Hoonseok & Jung, Jae-Yoon, 2024. "Multi-step photovoltaic power forecasting using transformer and recurrent neural networks," Renewable and Sustainable Energy Reviews, Elsevier, vol. 200(C).
    16. Deo, Ravinesh C. & Wen, Xiaohu & Qi, Feng, 2016. "A wavelet-coupled support vector machine model for forecasting global incident solar radiation using limited meteorological dataset," Applied Energy, Elsevier, vol. 168(C), pages 568-593.
    17. Hu, Zehuan & Gao, Yuan & Ji, Siyu & Mae, Masayuki & Imaizumi, Taiji, 2024. "Improved multistep ahead photovoltaic power prediction model based on LSTM and self-attention with weather forecast data," Applied Energy, Elsevier, vol. 359(C).
    18. Agga, Ali & Abbou, Ahmed & Labbadi, Moussa & El Houm, Yassine, 2021. "Short-term self consumption PV plant power production forecasts based on hybrid CNN-LSTM, ConvLSTM models," Renewable Energy, Elsevier, vol. 177(C), pages 101-112.
    19. Huang, Songtao & Zhou, Qingguo & Shen, Jun & Zhou, Heng & Yong, Binbin, 2024. "Multistage spatio-temporal attention network based on NODE for short-term PV power forecasting," Energy, Elsevier, vol. 290(C).
    20. Bashir, Tasarruf & Wang, Huifang & Tahir, Mustafa & Zhang, Yixiang, 2025. "Wind and solar power forecasting based on hybrid CNN-ABiLSTM, CNN-transformer-MLP models," Renewable Energy, Elsevier, vol. 239(C).
    21. Cui, Shuhui & Lyu, Shouping & Ma, Yongzhi & Wang, Kai, 2024. "Improved informer PV power short-term prediction model based on weather typing and AHA-VMD-MPE," Energy, Elsevier, vol. 307(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. Tang, Yugui & Yang, Kuo & Zhang, Shujing & Zhang, Zhen, 2022. "Photovoltaic power forecasting: A hybrid deep learning model incorporating transfer learning strategy," Renewable and Sustainable Energy Reviews, Elsevier, vol. 162(C).
    2. Hu, Zehuan & Gao, Yuan & Ji, Siyu & Mae, Masayuki & Imaizumi, Taiji, 2024. "Improved multistep ahead photovoltaic power prediction model based on LSTM and self-attention with weather forecast data," Applied Energy, Elsevier, vol. 359(C).
    3. Li, Yifan & Liu, Gang & Cao, Yisheng & Chen, Jiawei & Gang, Xiao & Tang, Jianchao, 2025. "WNPS-LSTM-Informer: A Hybrid Stacking model for medium-term photovoltaic power forecasting with ranked feature selection," Renewable Energy, Elsevier, vol. 244(C).
    4. Zhang, Ruoyang & Wu, Yu & Zhang, Lei & Xu, Chongbin & Wang, ZeYu & Zhang, Yanfeng & Sun, Xiaomin & Zuo, Xin & Wu, Yuhan & Chen, Qian, 2025. "A multiscale network with mixed features and extended regional weather forecasts for predicting short-term photovoltaic power," Energy, Elsevier, vol. 318(C).
    5. Rai, Amit & Shrivastava, Ashish & Jana, Kartick C., 2023. "Differential attention net: Multi-directed differential attention based hybrid deep learning model for solar power forecasting," Energy, Elsevier, vol. 263(PC).
    6. Li, Jiaqian & Rao, Congjun & Gao, Mingyun & Xiao, Xinping & Goh, Mark, 2025. "Efficient calculation of distributed photovoltaic power generation power prediction via deep learning," Renewable Energy, Elsevier, vol. 246(C).
    7. Putri Nor Liyana Mohamad Radzi & Muhammad Naveed Akhter & Saad Mekhilef & Noraisyah Mohamed Shah, 2023. "Review on the Application of Photovoltaic Forecasting Using Machine Learning for Very Short- to Long-Term Forecasting," Sustainability, MDPI, vol. 15(4), pages 1-21, February.
    8. Zhu, Yinlong & Li, Guoliang & Jiang, Yonglei & Li, Ming & Wang, Yunfeng & Zhang, Ying & Liu, Yali & Yao, Muchi, 2025. "Predicting photovoltaic greenhouse irradiance at low-latitudes of plateau based on ultra-short-term time series," Renewable Energy, Elsevier, vol. 239(C).
    9. Gupta, Priya & Singh, Rhythm, 2023. "Combining a deep learning model with multivariate empirical mode decomposition for hourly global horizontal irradiance forecasting," Renewable Energy, Elsevier, vol. 206(C), pages 908-927.
    10. Mohammad Mahdi Forootan & Iman Larki & Rahim Zahedi & Abolfazl Ahmadi, 2022. "Machine Learning and Deep Learning in Energy Systems: A Review," Sustainability, MDPI, vol. 14(8), pages 1-49, April.
    11. Zhai, Chao & He, Xinyi & Cao, Zhixiang & Abdou-Tankari, Mahamadou & Wang, Yi & Zhang, Minghao, 2025. "Photovoltaic power forecasting based on VMD-SSA-Transformer: Multidimensional analysis of dataset length, weather mutation and forecast accuracy," Energy, Elsevier, vol. 324(C).
    12. Yu, Sheng & He, Bin & Fang, Lei, 2025. "Multi-step short-term forecasting of photovoltaic power utilizing TimesNet with enhanced feature extraction and a novel loss function," Applied Energy, Elsevier, vol. 388(C).
    13. Gao, Yuan & Hu, Zehuan & Chen, Wei-An & Liu, Mingzhe & Ruan, Yingjun, 2025. "A revolutionary neural network architecture with interpretability and flexibility based on Kolmogorov–Arnold for solar radiation and temperature forecasting," Applied Energy, Elsevier, vol. 378(PA).
    14. Xie, Yang & Zheng, Jianyong & Mei, Fei & Taylor, Gareth & Gao, Ang, 2025. "An efficient approach for regional photovoltaic power forecasting optimization based on texture features from satellite images and transfer learning," Applied Energy, Elsevier, vol. 385(C).
    15. Paletta, Quentin & Hu, Anthony & Arbod, Guillaume & Lasenby, Joan, 2022. "ECLIPSE: Envisioning CLoud Induced Perturbations in Solar Energy," Applied Energy, Elsevier, vol. 326(C).
    16. Huang, Xiaoqiao & Li, Qiong & Tai, Yonghang & Chen, Zaiqing & Zhang, Jun & Shi, Junsheng & Gao, Bixuan & Liu, Wuming, 2021. "Hybrid deep neural model for hourly solar irradiance forecasting," Renewable Energy, Elsevier, vol. 171(C), pages 1041-1060.
    17. Yuhan Wu & Chun Xiang & Heng Qian & Peijian Zhou, 2024. "Optimization of Bi-LSTM Photovoltaic Power Prediction Based on Improved Snow Ablation Optimization Algorithm," Energies, MDPI, vol. 17(17), pages 1-21, September.
    18. Tian, Zhirui & Chen, Yujie & Wang, Guangyu, 2025. "Enhancing PV power forecasting accuracy through nonlinear weather correction based on multi-task learning," Applied Energy, Elsevier, vol. 386(C).
    19. Sabadus, Andreea & Blaga, Robert & Hategan, Sergiu-Mihai & Calinoiu, Delia & Paulescu, Eugenia & Mares, Oana & Boata, Remus & Stefu, Nicoleta & Paulescu, Marius & Badescu, Viorel, 2024. "A cross-sectional survey of deterministic PV power forecasting: Progress and limitations in current approaches," Renewable Energy, Elsevier, vol. 226(C).
    20. Fernando Venâncio Mucomole & Carlos Augusto Santos Silva & Lourenço Lázaro Magaia, 2025. "Parametric Forecast of Solar Energy over Time by Applying Machine Learning Techniques: Systematic Review," Energies, MDPI, vol. 18(6), pages 1-51, March.

    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:320:y:2025:i:c:s0360544225008564. 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.