IDEAS home Printed from https://ideas.repec.org/a/gam/jeners/v18y2025i18p5000-d1753832.html

Benchmarking Transformer Variants for Hour-Ahead PV Forecasting: PatchTST with Adaptive Conformal Inference

Author

Listed:
  • Vishnu Suresh

    (Faculty of Electrical Engineering, Wroclaw University of Science and Technology, 50-370 Wroclaw, Poland)

Abstract

Accurate hour-ahead photovoltaic (PV) forecasts are essential for grid balancing, intraday trading, and renewable integration. While Transformer architectures have recently reshaped time series forecasting, their application to short-term PV prediction with calibrated uncertainty remains largely unexplored. This study provides a systematic benchmark of five Transformer variants (Autoformer, Informer, FEDformer, DLinear, and PatchTST) evaluated on a five-year, rooftop PV dataset (5 kW peak) against an unseen 12-month test set. All models are trained within a pipeline using a 48-h rolling input window with cyclical temporal encodings to ensure comparability. Beyond point forecasts, we introduce Adaptive Conformal Inference (ACI), a distribution-free and adaptive framework, to quantify uncertainty in real time. The results demonstrate that PatchTST, through its patch-based temporal tokenization, delivers superior accuracy (MAE = 0.194 kW, RMSE = 0.381 kW), outperforming both classical persistence and other Transformer baselines. When coupled with ACI, PatchTST achieves 86.2% empirical coverage with narrow intervals (0.62 kW mean width) and probabilistic scores (CRPS = 0.54; Winkler = 1.86) that strike a balance between sharpness and reliability. The findings establish that combining patch-based Transformers with adaptive conformal calibration provides a novel and viable route to risk-aware PV forecasting.

Suggested Citation

  • Vishnu Suresh, 2025. "Benchmarking Transformer Variants for Hour-Ahead PV Forecasting: PatchTST with Adaptive Conformal Inference," Energies, MDPI, vol. 18(18), pages 1-26, September.
  • Handle: RePEc:gam:jeners:v:18:y:2025:i:18:p:5000-:d:1753832
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/1996-1073/18/18/5000/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/1996-1073/18/18/5000/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Elham M. Al-Ali & Yassine Hajji & Yahia Said & Manel Hleili & Amal M. Alanzi & Ali H. Laatar & Mohamed Atri, 2023. "Solar Energy Production Forecasting Based on a Hybrid CNN-LSTM-Transformer Model," Mathematics, MDPI, vol. 11(3), pages 1-19, January.
    2. Vishnu Suresh & Przemyslaw Janik & Jacek Rezmer & Zbigniew Leonowicz, 2020. "Forecasting Solar PV Output Using Convolutional Neural Networks with a Sliding Window Algorithm," Energies, MDPI, vol. 13(3), pages 1-15, February.
    3. 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).
    4. Wang, Xinyu & Ma, Wenping, 2024. "A hybrid deep learning model with an optimal strategy based on improved VMD and transformer for short-term photovoltaic power forecasting," Energy, Elsevier, vol. 295(C).
    5. Xin Jin & Tingzhe Pan & Heyang Yu & Zongyi Wang & Wangzhang Cao, 2025. "Electricity Load Forecasting Method Based on the GRA-FEDformer Algorithm," Energies, MDPI, vol. 18(15), pages 1-13, July.
    6. Le Hoang Anh & Dang Thanh Vu & Seungmin Oh & Gwang-Hyun Yu & Nguyen Bui Ngoc Han & Hyoung-Gook Kim & Jin-Sul Kim & Jin-Young Kim, 2024. "Partial Transfer Learning from Patch Transformer to Variate-Based Linear Forecasting Model," Energies, MDPI, vol. 17(24), pages 1-18, December.
    7. Jiang, Yuqi & Gao, Tianlu & Dai, Yuxin & Si, Ruiqi & Hao, Jun & Zhang, Jun & Gao, David Wenzhong, 2022. "Very short-term residential load forecasting based on deep-autoformer," Applied Energy, Elsevier, vol. 328(C).
    8. José Manuel Oliveira & Patrícia Ramos, 2024. "Evaluating the Effectiveness of Time Series Transformers for Demand Forecasting in Retail," Mathematics, MDPI, vol. 12(17), pages 1-28, August.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Tong, Shuoying & Jiang, Anqi & Luo, Jiabin & Hu, Hao & An, Ziheng & Zhang, Shuqing, 2026. "Dual-channel feature extraction and weather-guided two-stage clustering for short-term photovoltaic power prediction," Renewable Energy, Elsevier, vol. 257(C).

    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. Cheng, Fang & Liu, Hui, 2024. "Multi-step electric vehicles charging loads forecasting: An autoformer variant with feature extraction, frequency enhancement, and error correction blocks," Applied Energy, Elsevier, vol. 376(PB).
    2. Sun, Qihui & Yan, Feng & Sun, Wanqing & Zhou, Yuqing, 2025. "DWT-Former: Fusing wavelet-based multi-scale features and transformer-based temporal representations for photovoltaic power forecasting," Energy, Elsevier, vol. 341(C).
    3. Al-Dahidi, Sameer & Alrbai, Mohammad & Rinchi, Bilal & Alahmer, Hussein & Al-Ghussain, Loiy & Hayajneh, Hassan S. & Alahmer, Ali, 2025. "Techno-economic implications and cost of forecasting errors in solar PV power production using optimized deep learning models," Energy, Elsevier, vol. 323(C).
    4. Pavel Buchatskiy & Stefan Onishchenko & Sergei Petrenko & Semen Teploukhov, 2025. "Methodology for Assessing the Technical Potential of Solar Energy Based on Artificial Intelligence Technologies and Simulation-Modeling Tools," Energies, MDPI, vol. 18(19), pages 1-25, October.
    5. Hussan, Umair & Wang, Huaizhi & Peng, Jianchun & Jiang, Hui & Rasheed, Hamna, 2026. "Transformer-based renewable energy forecasting: A comprehensive review," Renewable and Sustainable Energy Reviews, Elsevier, vol. 226(PC).
    6. Wang, Xinlin & Wang, Hao & Li, Shengping & Jin, Haizhen, 2024. "A reinforcement learning-based online learning strategy for real-time short-term load forecasting," Energy, Elsevier, vol. 305(C).
    7. Wang, Tao & Xu, Ye & Qin, Yu & Wang, Xu & Zheng, Feifan & Li, Wei, 2025. "Short-term PV forecasting of multiple scenarios based on multi-dimensional clustering and hybrid transformer-BiLSTM with ECPO," Energy, Elsevier, vol. 334(C).
    8. Hasala Dharmawardena & Ganesh Kumar Venayagamoorthy, 2022. "Distributed Volt-Var Curve Optimization Using a Cellular Computational Network Representation of an Electric Power Distribution System," Energies, MDPI, vol. 15(12), pages 1-18, June.
    9. Antonesi, Gabriel & Cioara, Tudor & Anghel, Ionut & Michalakopoulos, Vasilis & Sarmas, Elissaios & Toderean, Liana, 2025. "A systematic review of transformers and large language models in the energy sector: towards agentic digital twins," Applied Energy, Elsevier, vol. 401(PA).
    10. Bujin Shi & Xinbo Zhou & Peilin Li & Wenyu Ma & Nan Pan, 2023. "An IHPO-WNN-Based Federated Learning System for Area-Wide Power Load Forecasting Considering Data Security Protection," Energies, MDPI, vol. 16(19), pages 1-20, October.
    11. Guo, Su & Fan, Huiying & Huang, Jing, 2025. "Ultra-short-term PV power prediction based on an improved hybrid model with sky image features and data two-dimensional purification," Energy, Elsevier, vol. 331(C).
    12. Zhewei Huang & Yawen Yi, 2024. "Short-Term Load Forecasting for Regional Smart Energy Systems Based on Two-Stage Feature Extraction and Hybrid Inverted Transformer," Sustainability, MDPI, vol. 16(17), pages 1-25, September.
    13. Richard Guanoluisa & Diego Arcos-Aviles & Marco Flores-Calero & Wilmar Martinez & Francesc Guinjoan, 2023. "Photovoltaic Power Forecast Using Deep Learning Techniques with Hyperparameters Based on Bayesian Optimization: A Case Study in the Galapagos Islands," Sustainability, MDPI, vol. 15(16), pages 1-18, August.
    14. Tian, Zhirui & Liang, Bingjie, 2025. "PVMTF: End-to-end long-sequence time-series forecasting frameworks based on patch technique and information fusion coding for mid-term photovoltaic power forecasting," Applied Energy, Elsevier, vol. 396(C).
    15. Gong, Ying & Wang, Yongzheng & Xie, Yuanhang & Peng, Xuzhang & Peng, Yan & Zhang, Wenhua, 2025. "Dynamic fusion LSTM-Transformer for prediction in energy harvesting from human motions," Energy, Elsevier, vol. 327(C).
    16. Li, Hao & Ma, Gang & Wang, Bo & Wang, Shu & Li, Wenhao & Meng, Yuxiang, 2025. "Multi-modal feature fusion model based on TimesNet and T2T-ViT for ultra-short-term solar irradiance forecasting," Renewable Energy, Elsevier, vol. 240(C).
    17. 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).
    18. Fachrizal Aksan & Yang Li & Vishnu Suresh & Przemysław Janik, 2023. "Multistep Forecasting of Power Flow Based on LSTM Autoencoder: A Study Case in Regional Grid Cluster Proposal," Energies, MDPI, vol. 16(13), pages 1-20, June.
    19. Raiden Skala & Mohamed Ahmed T. A. Elgalhud & Katarina Grolinger & Syed Mir, 2023. "Interval Load Forecasting for Individual Households in the Presence of Electric Vehicle Charging," Energies, MDPI, vol. 16(10), pages 1-21, May.
    20. Zhou, Daixuan & Liu, Yujin & Wang, Xu & Wang, Fuxing & Jia, Yan, 2025. "Combined ultra-short-term photovoltaic power prediction based on CEEMDAN decomposition and RIME optimized AM-TCN-BiLSTM," Energy, Elsevier, vol. 318(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:gam:jeners:v:18:y:2025:i:18:p:5000-:d:1753832. 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: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    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.