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

Forecasting of Solar Power Using GRU–Temporal Fusion Transformer Model and DILATE Loss Function

Author

Listed:
  • Fatma Mazen Ali Mazen

    (Electrical Engineering Department, Faculty of Engineering, Fayoum University, Fayoum 63514, Egypt
    These authors contributed equally to this work.)

  • Yomna Shaker

    (Electrical Engineering Department, Faculty of Engineering, Fayoum University, Fayoum 63514, Egypt
    Engineering Department, University of Science and Technology of Fujairah (USTF), Fujairah 2202, United Arab Emirates
    These authors contributed equally to this work.)

  • Rania Ahmed Abul Seoud

    (Electrical Engineering Department, Faculty of Engineering, Fayoum University, Fayoum 63514, Egypt
    These authors contributed equally to this work.)

Abstract

Solar power is a clean and sustainable energy source that does not emit greenhouse gases or other atmospheric pollutants. The inherent variability in solar energy due to random fluctuations introduces novel attributes to the power generation and load dynamics of the grid. Consequently, there has been growing attention to developing an accurate forecast model using various machine and deep learning techniques. Temporal attention mechanisms enable the model to concentrate on the critical components of the input sequence at each time step, thereby enhancing the accuracy of the prediction. The suggested GRU–temporal fusion transformer (GRU-TFT) model was trained and validated employing the “Daily Power Production of Solar Panels” Kaggle dataset. Furthermore, an innovative loss function termed DILATE is introduced to train the proposed model specifically for multistep and nonstationary time series forecasting. The outcomes have been subjected to a comparative analysis with alternative algorithms, such as neural basis expansion analysis for interpretable time series (N-BEATS), neural hierarchical interpolation for time series (N-HiTS), and extreme gradient boosting (XGBoost), using several evaluation metrics, including the absolute percentage error (MAE), mean square error (MSE), and root mean square error (RMSE). The model presented in this study exhibited significant performance improvements compared with traditional statistical and machine learning techniques. This is evident from the achieved values of MAE, MSE, and RMSE, which were 1.19, 2.08, and 1.44, respectively. In contrast, the machine learning approach utilizing the Holt–Winters method for time series forecasting in additive mode yielded MAE, MSE, and RMSE scores of 4.126, 29.105, and 5.3949, respectively.

Suggested Citation

  • Fatma Mazen Ali Mazen & Yomna Shaker & Rania Ahmed Abul Seoud, 2023. "Forecasting of Solar Power Using GRU–Temporal Fusion Transformer Model and DILATE Loss Function," Energies, MDPI, vol. 16(24), pages 1-24, December.
  • Handle: RePEc:gam:jeners:v:16:y:2023:i:24:p:8105-:d:1301670
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/1996-1073/16/24/8105/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/1996-1073/16/24/8105/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Songjiang Li & Wenxin Zhang & Peng Wang, 2023. "TS2ARCformer: A Multi-Dimensional Time Series Forecasting Framework for Short-Term Load Prediction," Energies, MDPI, vol. 16(15), pages 1-22, August.
    2. Moradzadeh, Arash & Moayyed, Hamed & Mohammadi-Ivatloo, Behnam & Vale, Zita & Ramos, Carlos & Ghorbani, Reza, 2023. "A novel cyber-Resilient solar power forecasting model based on secure federated deep learning and data visualization," Renewable Energy, Elsevier, vol. 211(C), pages 697-705.
    3. Li, Pengtao & Zhou, Kaile & Lu, Xinhui & Yang, Shanlin, 2020. "A hybrid deep learning model for short-term PV power forecasting," Applied Energy, Elsevier, vol. 259(C).
    4. Mellit, A. & Pavan, A. Massi & Lughi, V., 2021. "Deep learning neural networks for short-term photovoltaic power forecasting," Renewable Energy, Elsevier, vol. 172(C), pages 276-288.
    5. Miranda, Raul F.C. & Szklo, Alexandre & Schaeffer, Roberto, 2015. "Technical-economic potential of PV systems on Brazilian rooftops," Renewable Energy, Elsevier, vol. 75(C), pages 694-713.
    6. 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).
    7. Khan, Zulfiqar Ahmad & Hussain, Tanveer & Baik, Sung Wook, 2023. "Dual stream network with attention mechanism for photovoltaic power forecasting," Applied Energy, Elsevier, vol. 338(C).
    8. Hanifi, Shahram & Zare-Behtash, Hossein & Cammarano, Andrea & Lotfian, Saeid, 2023. "Offshore wind power forecasting based on WPD and optimised deep learning methods," Renewable Energy, Elsevier, vol. 218(C).
    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. 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).

    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. Hao, Jianhua & Liu, Fangai & Zhang, Weiwei, 2024. "Multi-scale RWKV with 2-dimensional temporal convolutional network for short-term photovoltaic power forecasting," Energy, Elsevier, vol. 309(C).
    2. 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).
    3. Verdone, Alessio & Panella, Massimo & De Santis, Enrico & Rizzi, Antonello, 2025. "A review of solar and wind energy forecasting: From single-site to multi-site paradigm," Applied Energy, Elsevier, vol. 392(C).
    4. Liu, Lin & Zhang, Jianqiu & Xue, Shibei, 2025. "Photovoltaic power forecasting: Using wavelet threshold denoising combined with VMD," Renewable Energy, Elsevier, vol. 249(C).
    5. Miguel López Santos & Xela García-Santiago & Fernando Echevarría Camarero & Gonzalo Blázquez Gil & Pablo Carrasco Ortega, 2022. "Application of Temporal Fusion Transformer for Day-Ahead PV Power Forecasting," Energies, MDPI, vol. 15(14), pages 1-22, July.
    6. Yang, Yanru & Liu, Yu & Zhang, Yihang & Shu, Shaolong & Zheng, Junsheng, 2025. "DEST-GNN: A double-explored spatio-temporal graph neural network for multi-site intra-hour PV power forecasting," Applied Energy, Elsevier, vol. 378(PA).
    7. Pei, Jingyin & Dong, Yunxuan & Guo, Pinghui & Wu, Thomas & Hu, Jianming, 2024. "A Hybrid Dual Stream ProbSparse Self-Attention Network for spatial–temporal photovoltaic power forecasting," Energy, Elsevier, vol. 305(C).
    8. Gupta, Priya & Singh, Rhythm, 2023. "Combining simple and less time complex ML models with multivariate empirical mode decomposition to obtain accurate GHI forecast," Energy, Elsevier, vol. 263(PC).
    9. Gao, Xifeng & Zang, Yuesong & Ma, Qian & Liu, Mengmeng & Cui, Yiming & Dang, Dazhi, 2025. "A physics-constrained deep learning framework enhanced with signal decomposition for accurate short-term photovoltaic power generation forecasting," Energy, Elsevier, vol. 326(C).
    10. Wang, Renshun & Xie, Yuchen & Wang, Shilong & Geng, Guangchao & Jiang, Quanyuan & Liu, Chun & Wang, Bo, 2025. "Capacity credit assessment of regional renewable generation considering multi-time-scale forecast errors," Energy, Elsevier, vol. 331(C).
    11. Khan, Zulfiqar Ahmad & Khan, Shabbir Ahmad & Hussain, Tanveer & Baik, Sung Wook, 2024. "DSPM: Dual sequence prediction model for efficient energy management in micro-grid," Applied Energy, Elsevier, vol. 356(C).
    12. Liu, Tianhao & Shan, Linke & Jiang, Meihui & Li, Fangning & Kong, Fannie & Du, Pengcheng & Zhu, Hongyu & Goh, Hui Hwang & Kurniawan, Tonni Agustiono & Huang, Chao & Zhang, Dongdong, 2025. "Multi-dimensional data processing and intelligent forecasting technologies for renewable energy generation," Applied Energy, Elsevier, vol. 398(C).
    13. Xia, Chenyue & Xu, Yinliang & Tai, Nengling & Sun, Hongbin, 2026. "A dual-layer feature-selection transformer network for transferable probabilistic forecasting of PV power," Applied Energy, Elsevier, vol. 406(C).
    14. Wen, Yan & Pan, Su & Li, Xinxin & Li, Zibo & Wen, Wuzhenghong, 2024. "Improving multi-site photovoltaic forecasting with relevance amplification: DeepFEDformer-based approach," Energy, Elsevier, vol. 299(C).
    15. Chen, Rujian & Liu, Gang & Cao, Yisheng & Xiao, Gang & Tang, Jianchao, 2024. "CGAformer: Multi-scale feature Transformer with MLP architecture for short-term photovoltaic power forecasting," Energy, Elsevier, vol. 312(C).
    16. Limouni, Tariq & Yaagoubi, Reda & Bouziane, Khalid & Guissi, Khalid & Baali, El Houssain, 2023. "Accurate one step and multistep forecasting of very short-term PV power using LSTM-TCN model," Renewable Energy, Elsevier, vol. 205(C), pages 1010-1024.
    17. Khan, Taimoor & Choi, Chang, 2025. "Attention enhanced dual stream network with advanced feature selection for power forecasting," Applied Energy, Elsevier, vol. 377(PC).
    18. Liu, Xiangjie & Liu, Yuanyan & Kong, Xiaobing & Ma, Lele & Besheer, Ahmad H. & Lee, Kwang Y., 2023. "Deep neural network for forecasting of photovoltaic power based on wavelet packet decomposition with similar day analysis," Energy, Elsevier, vol. 271(C).
    19. Liu, Zhi-Feng & Chen, Xiao-Rui & Huang, Ya-He & Luo, Xing-Fu & Zhang, Shu-Rui & You, Guo-Dong & Qiang, Xiao-Yong & Kang, Qing, 2024. "A novel bimodal feature fusion network-based deep learning model with intelligent fusion gate mechanism for short-term photovoltaic power point-interval forecasting," Energy, Elsevier, vol. 303(C).
    20. 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.

    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:16:y:2023:i:24:p:8105-:d:1301670. 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 The email address of this maintainer does not seem to be valid anymore. Please ask MDPI Indexing Manager to update the entry or send us the correct address (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.