IDEAS home Printed from https://ideas.repec.org/a/gam/jforec/v7y2025i4p58-d1773709.html

Machine Learning Forecasting of Direct Solar Radiation: A Multi-Model Evaluation with Trigonometric Cyclical Encoding

Author

Listed:
  • Latif Bukari Rashid

    (Department of Mechanical Engineering, King Fahd University of Petroleum and Minerals (KFUPM), Dhahran 31261, Saudi Arabia)

  • Shahzada Zaman Shuja

    (Department of Mechanical Engineering, King Fahd University of Petroleum and Minerals (KFUPM), Dhahran 31261, Saudi Arabia
    Interdisciplinary Research Center for Sustainable Energy Systems (IRC-SES), King Fahd University of Petroleum and Minerals (KFUPM), Dhahran 31261, Saudi Arabia)

  • Shafiqur Rehman

    (Department of Mechanical Engineering, King Fahd University of Petroleum and Minerals (KFUPM), Dhahran 31261, Saudi Arabia
    Interdisciplinary Research Center for Sustainable Energy Systems (IRC-SES), King Fahd University of Petroleum and Minerals (KFUPM), Dhahran 31261, Saudi Arabia)

Abstract

As the world is shifting toward cleaner energy sources, accurate forecasting of solar radiation is critical for optimizing the performance and integration of solar energy systems. In this study, we explore eight machine learning models, namely, Random Forest Regressor, Linear Regression Model, Artificial Neural Network, k-Nearest Neighbors, Support Vector Regression, Gradient Boosting Regressor, Gaussian Process Regression, and Deep Learning, as to their use in forecasting direct solar radiation across six climatically diverse regions in the Kingdom of Saudi Arabia. The models were evaluated using eight statistical metrics along with time-series and absolute error analyses. A key contribution of this work is the introduction of Trigonometric Cyclical Encoding, which has significantly improved temporal representation learning. Comparative SHAP-based feature-importance analysis revealed that Trigonometric Cyclical Encoding enhanced the explanatory power of temporal features by 49.26% for monthly cycles and 53.30% for daily cycles. The findings show that Deep Learning achieved the lowest root mean square error, as well as the highest coefficient of determination, while Artificial Neural Network demonstrated consistently high accuracy across the sites. Support Vector Regression performed optimally but was less reliable in some regions. Error and time-series analyses reveal that Artificial Neural Network and Deep Learning maintained stable prediction accuracy throughout high solar radiation seasons, whereas Linear Regression, Random Forest Regressor, and k-Nearest Neighbors showed greater fluctuations. The proposed Trigonometric Cyclical Encoding technique further enhanced model performance by maintaining the overall fitness of the models, which ranged between 81.79% and 94.36% in all scenarios. This paper supports the effective planning of solar energy and integration in challenging climatic conditions.

Suggested Citation

  • Latif Bukari Rashid & Shahzada Zaman Shuja & Shafiqur Rehman, 2025. "Machine Learning Forecasting of Direct Solar Radiation: A Multi-Model Evaluation with Trigonometric Cyclical Encoding," Forecasting, MDPI, vol. 7(4), pages 1-25, October.
  • Handle: RePEc:gam:jforec:v:7:y:2025:i:4:p:58-:d:1773709
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2571-9394/7/4/58/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2571-9394/7/4/58/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Yang, Liu & Cao, Qimeng & Yu, Ying & Liu, Yan, 2020. "Comparison of daily diffuse radiation models in regions of China without solar radiation measurement," Energy, Elsevier, vol. 191(C).
    2. Hasna Hissou & Said Benkirane & Azidine Guezzaz & Mourade Azrour & Abderrahim Beni-Hssane, 2023. "A Novel Machine Learning Approach for Solar Radiation Estimation," Sustainability, MDPI, vol. 15(13), pages 1-21, July.
    3. Rehman, Shafiqur & Mohandes, Mohamed, 2008. "Artificial neural network estimation of global solar radiation using air temperature and relative humidity," Energy Policy, Elsevier, vol. 36(2), pages 571-576, February.
    4. Zang, Haixiang & Cheng, Lilin & Ding, Tao & Cheung, Kwok W. & Wang, Miaomiao & Wei, Zhinong & Sun, Guoqiang, 2020. "Application of functional deep belief network for estimating daily global solar radiation: A case study in China," Energy, Elsevier, vol. 191(C).
    5. Chao Chen & Jamie Twycross & Jonathan M Garibaldi, 2017. "A new accuracy measure based on bounded relative error for time series forecasting," PLOS ONE, Public Library of Science, vol. 12(3), pages 1-23, March.
    6. Wassila Tercha & Sid Ahmed Tadjer & Fathia Chekired & Laurent Canale, 2024. "Machine Learning-Based Forecasting of Temperature and Solar Irradiance for Photovoltaic Systems," Energies, MDPI, vol. 17(5), pages 1-20, February.
    7. Duan, Jikai & Zuo, Hongchao & Bai, Yulong & Chang, Mingheng & Chen, Xiangyue & Wang, Wenpeng & Ma, Lei & Chen, Bolong, 2023. "A multistep short-term solar radiation forecasting model using fully convolutional neural networks and chaotic aquila optimization combining WRF-Solar model results," Energy, Elsevier, vol. 271(C).
    8. Edna S. Solano & Carolina M. Affonso, 2023. "Solar Irradiation Forecasting Using Ensemble Voting Based on Machine Learning Algorithms," Sustainability, MDPI, vol. 15(10), pages 1-19, May.
    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. Almorox, Javier & Voyant, Cyril & Bailek, Nadjem & Kuriqi, Alban & Arnaldo, J.A., 2021. "Total solar irradiance's effect on the performance of empirical models for estimating global solar radiation: An empirical-based review," Energy, Elsevier, vol. 236(C).
    2. Li, Honglian & He, Xi & Hu, Yao & Lv, Wen & Yang, Liu, 2024. "Research on the generation method of missing hourly solar radiation data based on multiple neural network algorithm," Energy, Elsevier, vol. 287(C).
    3. Tomás Gavilánez & Néstor Zamora & Josué Navarrete & Nino Vega & Gabriela Vergara, 2025. "AI-Based Virtual Assistant for Solar Radiation Prediction and Improvement of Sustainable Energy Systems," Sustainability, MDPI, vol. 17(19), pages 1-20, October.
    4. Ağbulut, Ümit & Gürel, Ali Etem & Biçen, Yunus, 2021. "Prediction of daily global solar radiation using different machine learning algorithms: Evaluation and comparison," Renewable and Sustainable Energy Reviews, Elsevier, vol. 135(C).
    5. Makade, Rahul G. & Chakrabarti, Siddharth & Jamil, Basharat & Sakhale, C.N., 2020. "Estimation of global solar radiation for the tropical wet climatic region of India: A theory of experimentation approach," Renewable Energy, Elsevier, vol. 146(C), pages 2044-2059.
    6. Fei Wang & Zengqiang Mi & Shi Su & Hongshan Zhao, 2012. "Short-Term Solar Irradiance Forecasting Model Based on Artificial Neural Network Using Statistical Feature Parameters," Energies, MDPI, vol. 5(5), pages 1-16, May.
    7. Hewamalage, Hansika & Bergmeir, Christoph & Bandara, Kasun, 2021. "Recurrent Neural Networks for Time Series Forecasting: Current status and future directions," International Journal of Forecasting, Elsevier, vol. 37(1), pages 388-427.
    8. Wang, Zhenyu & Zhang, Yunpeng & Li, Guorong & Zhang, Jinlong & Zhou, Hai & Wu, Ji, 2024. "A novel solar irradiance forecasting method based on multi-physical process of atmosphere optics and LSTM-BP model," Renewable Energy, Elsevier, vol. 226(C).
    9. Will, A. & Bustos, J. & Bocco, M. & Gotay, J. & Lamelas, C., 2013. "On the use of niching genetic algorithms for variable selection in solar radiation estimation," Renewable Energy, Elsevier, vol. 50(C), pages 168-176.
    10. Lu, Yunbo & Wang, Lunche & Zhu, Canming & Zou, Ling & Zhang, Ming & Feng, Lan & Cao, Qian, 2023. "Predicting surface solar radiation using a hybrid radiative Transfer–Machine learning model," Renewable and Sustainable Energy Reviews, Elsevier, vol. 173(C).
    11. Jarimi, Hasila & Al-Waeli, Ali H.A. & Razak, Tajul Rosli & Abu Bakar, Mohd Nazari & Fazlizan, Ahmad & Ibrahim, Adnan & Sopian, Kamaruzzaman, 2022. "Neural network modelling and performance estimation of dual-fluid photovoltaic thermal solar collectors in tropical climate conditions," Renewable Energy, Elsevier, vol. 197(C), pages 1009-1019.
    12. Margarete Afonso de Sousa Guilhon Araujo & Soraida Aguilar & Reinaldo Castro Souza & Fernando Luiz Cyrino Oliveira, 2024. "Global Horizontal Irradiance in Brazil: A Comparative Study of Reanalysis Datasets with Ground-Based Data," Energies, MDPI, vol. 17(20), pages 1-25, October.
    13. Zarzo, Manuel & Martí, Pau, 2011. "Modeling the variability of solar radiation data among weather stations by means of principal components analysis," Applied Energy, Elsevier, vol. 88(8), pages 2775-2784, August.
    14. Kong, Xiangfei & Du, Xinyu & Xue, Guixiang & Xu, Zhijie, 2023. "Multi-step short-term solar radiation prediction based on empirical mode decomposition and gated recurrent unit optimized via an attention mechanism," Energy, Elsevier, vol. 282(C).
    15. Gönül, Ömer & Yazar, Fatih & Duman, A. Can & Güler, Önder, 2022. "A comparative techno-economic assessment of manually adjustable tilt mechanisms and automatic solar trackers for behind-the-meter PV applications," Renewable and Sustainable Energy Reviews, Elsevier, vol. 168(C).
    16. Mehmet Das & Erhan Arslan & Sule Kaya & Bilal Alatas & Ebru Akpinar & Burcu Özsoy, 2024. "Performance Evaluation of Photovoltaic Panels in Extreme Environments: A Machine Learning Approach on Horseshoe Island, Antarctica," Sustainability, MDPI, vol. 17(1), pages 1-34, December.
    17. Meenal, R. & Selvakumar, A. Immanuel, 2018. "Assessment of SVM, empirical and ANN based solar radiation prediction models with most influencing input parameters," Renewable Energy, Elsevier, vol. 121(C), pages 324-343.
    18. Su, Gang & Zhang, Shuangyang & Hu, Mengru & Yao, Wanxiang & Li, Ziwei & Xi, Yue, 2022. "The modified layer-by-layer weakening solar radiation models based on relative humidity and air quality index," Energy, Elsevier, vol. 239(PE).
    19. Francisco A. Ramírez-Rivera & Néstor F. Guerrero-Rodríguez, 2024. "Ensemble Learning Algorithms for Solar Radiation Prediction in Santo Domingo: Measurements and Evaluation," Sustainability, MDPI, vol. 16(18), pages 1-27, September.
    20. Chen, Ji-Long & He, Lei & Chen, Qiao & Lv, Ming-Quan & Zhu, Hong-Lin & Wen, Zhao-Fei & Wu, Sheng-Jun, 2019. "Study of monthly mean daily diffuse and direct beam radiation estimation with MODIS atmospheric product," Renewable Energy, Elsevier, vol. 132(C), pages 221-232.

    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:jforec:v:7:y:2025:i:4:p:58-:d:1773709. 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.