IDEAS home Printed from https://ideas.repec.org/a/gam/jeners/v16y2023i24p8105-d1301670.html
   My bibliography  Save this article

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. 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).
    3. 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.
    4. 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).
    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. 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)

    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. 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).
    2. 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).
    3. 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).
    4. 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.
    5. Katarzyna Rudnik & Anna Hnydiuk-Stefan & Aneta Kucińska-Landwójtowicz & Łukasz Mach, 2022. "Forecasting Day-Ahead Carbon Price by Modelling Its Determinants Using the PCA-Based Approach," Energies, MDPI, vol. 15(21), pages 1-23, October.
    6. Lin Wang & Wuyue An & Feng‐Ting Li, 2024. "Text‐based corn futures price forecasting using improved neural basis expansion network," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 43(6), pages 2042-2063, September.
    7. Khan, Waqas & Walker, Shalika & Zeiler, Wim, 2022. "Improved solar photovoltaic energy generation forecast using deep learning-based ensemble stacking approach," Energy, Elsevier, vol. 240(C).
    8. Elianne Mora & Jenny Cifuentes & Geovanny Marulanda, 2021. "Short-Term Forecasting of Wind Energy: A Comparison of Deep Learning Frameworks," Energies, MDPI, vol. 14(23), pages 1-26, November.
    9. Shengxiang Lv & Lin Wang & Sirui Wang, 2023. "A Hybrid Neural Network Model for Short-Term Wind Speed Forecasting," Energies, MDPI, vol. 16(4), pages 1-18, February.
    10. Pesantez, Jorge E. & Li, Binbin & Lee, Christopher & Zhao, Zhizhen & Butala, Mark & Stillwell, Ashlynn S., 2023. "A Comparison Study of Predictive Models for Electricity Demand in a Diverse Urban Environment," Energy, Elsevier, vol. 283(C).
    11. Hongchao Zhang & Tengteng Zhu, 2022. "Stacking Model for Photovoltaic-Power-Generation Prediction," Sustainability, MDPI, vol. 14(9), pages 1-16, May.
    12. 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).
    13. Wuyue An & Lin Wang & Dongfeng Zhang, 2023. "Comprehensive commodity price forecasting framework using text mining methods," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 42(7), pages 1865-1888, November.
    14. Wang, Xiaoyang & Sun, Yunlin & Luo, Duo & Peng, Jinqing, 2022. "Comparative study of machine learning approaches for predicting short-term photovoltaic power output based on weather type classification," Energy, Elsevier, vol. 240(C).
    15. Cabello-López, Tomás & Carranza-García, Manuel & Riquelme, José C. & García-Gutiérrez, Jorge, 2023. "Forecasting solar energy production in Spain: A comparison of univariate and multivariate models at the national level," Applied Energy, Elsevier, vol. 350(C).
    16. Mirza, Adeel Feroz & Mansoor, Majad & Usman, Muhammad & Ling, Qiang, 2023. "A comprehensive approach for PV wind forecasting by using a hyperparameter tuned GCVCNN-MRNN deep learning model," Energy, Elsevier, vol. 283(C).
    17. Fjelkestam Frederiksen, Cornelia A. & Cai, Zuansi, 2022. "Novel machine learning approach for solar photovoltaic energy output forecast using extra-terrestrial solar irradiance," Applied Energy, Elsevier, vol. 306(PB).
    18. Tang, Qinghu & Guo, Hongye & Zheng, Kedi & Chen, Qixin, 2024. "Forecasting individual bids in real electricity markets through machine learning framework," Applied Energy, Elsevier, vol. 363(C).
    19. 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).
    20. 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).

    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 (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.