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. 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.
    2. 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.
    3. 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).
    4. 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.
    5. 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.
    6. Hongchao Zhang & Tengteng Zhu, 2022. "Stacking Model for Photovoltaic-Power-Generation Prediction," Sustainability, MDPI, vol. 14(9), pages 1-16, May.
    7. 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).
    8. 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.
    9. 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).
    10. 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).
    11. 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).
    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. Lu, Renzhi & Bai, Ruichang & Ding, Yuemin & Wei, Min & Jiang, Junhui & Sun, Mingyang & Xiao, Feng & Zhang, Hai-Tao, 2021. "A hybrid deep learning-based online energy management scheme for industrial microgrid," Applied Energy, Elsevier, vol. 304(C).
    14. Lv, Sheng-Xiang & Wang, Lin, 2023. "Multivariate wind speed forecasting based on multi-objective feature selection approach and hybrid deep learning model," Energy, Elsevier, vol. 263(PE).
    15. Nebiyu Kedir & Phuong H. D. Nguyen & Citlaly Pérez & Pedro Ponce & Aminah Robinson Fayek, 2023. "Systematic Literature Review on Fuzzy Hybrid Methods in Photovoltaic Solar Energy: Opportunities, Challenges, and Guidance for Implementation," Energies, MDPI, vol. 16(9), pages 1-38, April.
    16. 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).
    17. Cheng, Lilin & Zang, Haixiang & Wei, Zhinong & Zhang, Fengchun & Sun, Guoqiang, 2022. "Evaluation of opaque deep-learning solar power forecast models towards power-grid applications," Renewable Energy, Elsevier, vol. 198(C), pages 960-972.
    18. Huang, Xiaoqiao & Li, Qiong & Tai, Yonghang & Chen, Zaiqing & Liu, Jun & Shi, Junsheng & Liu, Wuming, 2022. "Time series forecasting for hourly photovoltaic power using conditional generative adversarial network and Bi-LSTM," Energy, Elsevier, vol. 246(C).
    19. Korkmaz, Deniz, 2021. "SolarNet: A hybrid reliable model based on convolutional neural network and variational mode decomposition for hourly photovoltaic power forecasting," Applied Energy, Elsevier, vol. 300(C).
    20. Victor Hugo Wentz & Joylan Nunes Maciel & Jorge Javier Gimenez Ledesma & Oswaldo Hideo Ando Junior, 2022. "Solar Irradiance Forecasting to Short-Term PV Power: Accuracy Comparison of ANN and LSTM Models," Energies, MDPI, vol. 15(7), pages 1-23, March.

    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.