Day-Ahead Hourly Forecasting of Solar Radiation using a Physics-based Hybrid Machine Learning Model in Some Selected Locations in Nigeria

Authors

Keywords:

Stacked hybrid model, SARIMAX, LSTM, XGBoost

Abstract

Day-ahead hourly forecasting of Solar Radiation (SR) is crucial for optimizing renewable energy generation, grid stability, and storage management, especially for locations with high solar potential but low utilization. This study develops a stacked hybrid forecasting model that combines statistical and machine learning approaches to forecast day-ahead hourly SR across eight Nigerian locations. Relevant historical meteorological data spanning one to two years. The datasets were divided into five temporal scales, consisting of annual, pre-rainy(MAM), rainy(JJA), post-rainy(SON), and dry(DJF) seasons.  Three baseline models—Seasonal Auto-regressive Integrated Moving Average with exogenous variables (SARIMAX), Long Short-Term Memory (LSTM) networks, and Extreme Gradient Boosting (XGBoost) were developed by using 70:20 of the datasets in each temporal scale for the purpose of training and testing respectively and the remaining 10% for final evaluation of the hybridized linear regression stacked model. The performances of the models were evaluated using Root Mean Square Error (RMSE), Mean Bias Error (MBE), and Coefficient of Determination (R²). All the six possible combinations of the models were subjected to Diebold-Mariano(DM) test of significance. The RMSE together with DM were also carefully combined to rank the models. The results showed that while SARIMAX(R2: 0.60 to 0.88) captured seasonal patterns, it consistently under-performed against the machine learning models. LSTM excelled (R2: 0.76 to 0.92) for datasets where clearer temporal patterns exist, and XGBoost was more effective(R2: 0.75 to 0.90) under irregular or noisy conditions. The hybrid model demonstrated the most robust and reliable performance overall(R2: 0.68 to 0.92) with potential to reduce bias (MBE:-7.24 to 17.21 W/m2). The performance of the model were at their best in the DJF (R2: 0.90 to 0.92) for most of the locations, while MAM and SON were over- and under predicted respectively for most locations due to higher cloud-cover fluctuations.  XGBoost and Hybrid models delivered the best...

Author Biography

Emmanuel O. Ayegboyin

Department of Physics, Postgraduate student

Dimensions

Agbo, E. P., Edet, C. O., Magu, T. O., Njok, A. O., Ekpo, C. M., & Louis, H. (2021). Solar energy: A panacea for the electricity generation crisis in Nigeria. Heliyon, 7(5). https://doi.org/10.1016/j.heliyon.2021.e07016

Aggarwal, S. K., & Saini, L. M. (2014). Solar energy prediction using linear and non-linear regularization models: A study on AMS (American Meteorological Society) 2013–14 Solar Energy Prediction Contest.s Energy, 78, 247–256. https://doi.org/10.1016/j.energy.2014.10.012

Alabi, N. O., & Ojo, G. O. (2024). Dihybrid Recurrent Neural Networks for Solar Radiation Prediction: A Comparative Study in Nigeria. International Journal of Women in Technical Education and Employment, 5(2), 62–71. https://fpiwitedjournal.federalpolyilaro.edu.ng/administrator/docs/6101001.pdf

Ali, M. A., Elsayed, A., Elkabani, I., Akrami, M., Youssef, M. E., & Hassan, G. E. (2023). Optimizing Artificial Neural Networks for the Accurate Prediction of Global Solar Radiation: A Performance Comparison with Conventional Methods. Energies, 16(17). https://doi.org/10.3390/en16176165

Alsharif, M. H., Younes, M. K., & Kim, J. (2019). Time Series ARIMA Model for Prediction of Daily and Monthly Average Global Solar Radiation: The Case Study of Seoul, South Korea. Symmetry, 11(2), 240. https://doi.org/10.3390/sym11020240

Belaid, S., & Mellit, A. (2016). Prediction of daily and mean monthly global solar radiation using support vector machine in an arid climate. Energy Conversion and Management, 118, 105–118. https://doi.org/10.1016/j.enconman.2016.03.082

Benitez, I. B., Ibañez, J. A., Lumabad, C. I. D., Cañete, J. M., & Principe, J. A. (2023). Day-Ahead Hourly Solar Photovoltaic Output Forecasting Using SARIMAX, Long Short-Term Memory, and Extreme Gradient Boosting: Case of the Philippines. Energies, 16(23), 7823. https://doi.org/10.3390/en16237823

Besharat, F., Dehghan, A. A., & Faghih, A. R. (2013). Empirical models for estimating global solar radiation: A review and case study. Renewable and Sustainable Energy Reviews, 21, 798–821. https://doi.org/10.1016/j.rser.2012.12.043

Davou, N., & Umar, I. (2024). Evaluating the potential of large-scale photovoltaic power generation for rural electrification in Makurdi Town, Benue State.: Vol. 2(1), 8–19. FNAS Journal of Applied and Physical Sciences,. https://fnasjournals.com/index.php/FNAS-JAPS/article/view/439?utm_source=chatgpt.com

Duffie, J. A., & Beckman, W. A. (2013). Solar Engineering of Thermal Processes (1st ed.). Wiley. https://doi.org/10.1002/9781118671603

Ebtehaj, I., & Bonakdari, H. (2024). CNN vs. LSTM: A Comparative Study of Hourly Precipitation Intensity Prediction as a Key Factor in Flood Forecasting Frameworks. Atmosphere, 15(9), 1082. https://doi.org/10.3390/atmos15091082

Gers, F. A., Schmidhuber, J., & Cummins, F. (2000). Learning to Forget: Continual Prediction with LSTM. Neural Computation, 12(10), 2451–2471. https://doi.org/10.1162/089976600300015015

Haider, S. A., Hussain, A., Kim, C. H., & Shahzad, M. (2022). Deep learning and statistical methods for short- and long-term solar irradiance forecasting. Renewable and Sustainable Energy Reviews, 161, 112388. https://doi.org/10.1016/j.rser.2022.112388

He, Y., Chen, G., Potter, C., & Meentemeyer, R. K. (2019). Integrating multi-sensor remote sensing and species distribution modeling to map the spread of emerging forest disease and tree mortality. Remote Sensing of Environment, 231, 111238. https://doi.org/10.1016/j.rse.2019.111238

Hipel, K. W., & McLeod, A. Ian. (1994). Time series modelling of water resources and environmental systems. Amsterdam; NewYork : Elsevier. http://lib.ugent.be/catalog/ebk01:1000000000555384

Hochreiter, S., & Schmidhuber, J. (1997). Long Short-Term Memory. Neural Computation, 9(8), 1735–1780. https://doi.org/10.1162/neco.1997.9.8.1735

International Energy Agency, I. E. A. (2022). Nigeria;Energy policy review. https://www.iea.org/reports/nigeria-energy-policy-review

Isma’il, M., & Aliyu, S. (2023). Daily Solar Radiation Forecasting for Northwest Nigeria Using Long Short-Term Memory. International Journal of Science for Global Sustainability, 9(1), 8. https://doi.org/10.57233/ijsgs.v9i1.407

Julius, K. A., & Balogun, R. A. (2022). Characteristics and Distribution of Some Radiation Parameters over Nigeria. European Journal of Environment and Earth Sciences, 3(4), 32–40. https://doi.org/10.24018/ejgeo.2022.3.4.255

Kassem, Y., Camur, H., Adamu, M. T., Chikowero, T., & Apreala, T. (2023). Prediction of Solar Irradiation in Africa using Linear-Nonlinear Hybrid Models. Engineering, Technology & Applied Science Research, 13(4), 11472–11483. https://doi.org/10.48084/etasr.6131

Lamidi, L. O., Oyelakin, A. M., & Akinbi, M. B. (2024). A Survey on Machine Learning Techniques for The Prediction of Solar Power Production. Indonesian Journal of Data and Science, 5(2). https://doi.org/10.56705/ijodas.v5i2.130

Li, X., Ma, L., Chen, P., Xu, H., Xing, Q., Yan, J., Lu, S., Fan, H., Yang, L., & Cheng, Y. (2022). Probabilistic solar irradiance forecasting based on XGBoost. Energy Reports, 8, 1087–1095. https://doi.org/10.1016/j.egyr.2022.02.251

Lim, S. C., Choi, J. H., & Park, J. Y. (2022). Solar power forecasting using CNN–LSTM hybrid model. Energies, 15(21), 8233. https://doi.org/10.3390/en15218233

Mujabar, S., & Chintaginjala Venkateswara, R. (2021). Empirical models for estimating the global solar radiation of Jubail Industrial City, the Kingdom of Saudi Arabia. SN Applied Sciences, 3(1), 95. https://doi.org/10.1007/s42452-020-04043-9

Mukhtar, M., Oluwasanmi, A., Yimen, N., Qinxiu, Z., Ukwuoma, C. C., Ezurike, B., & Bamisile, O. (2022). Development and Comparison of Two Novel Hybrid Neural Network Models for Hourly Solar Radiation Prediction. Applied Sciences, 12(3), 1435. https://doi.org/10.3390/app12031435

NERC, N. (2022). Renewable energy policy and regulation in Nigeria. Abuja: Nigerian Electricity Regulatory Commission. https://nerc.gov.ng

Ogbaka D.T, O., A.H, B., & V.Z, J. (2020). Angstrom-Prescott Model for Predicting Global Solar Radiation in Mubi, Nigeria. Asian Journal of Basic Science & Research, 02(02), 86–92. https://doi.org/10.38177/AJBSR.2020.2209

Ohijeagbon, O., Waheed, A., & Ajayi, O. (2025). Machine Learning-Based Solar Radiation Forecasting Models for Enhancing Renewable Energy Integration in Nigeria. SSRN. https://doi.org/10.2139/ssrn.5200160

Ohunakin, O. S., Adaramola, M. S., Oyewola, Olanrewaju. M., & Fagbenle, R. O. (2014). Solar energy applications and development in Nigeria: Drivers and barriers. Renewable and Sustainable Energy Reviews, 32, 294–301. https://doi.org/10.1016/j.rser.2014.01.014

Onwuka, B. (2018). Effects of Soil Temperature on Some Soil Properties and Plant Growth. Advances in Plants & Agriculture Research, 8(1). https://doi.org/10.15406/apar.2018.08.00288

Otunla, T. A. (2020). Estimation of daily solar radiation at equatorial region of West Africa using a more generalized Ȧngström-based broadband hybrid model. Meteorology and Atmospheric Physics, 132(3), 341–351. https://doi.org/10.1007/s00703-019-00691-8

Otunla, T.A. & Kolebaje O.T.(2015). Assesing the performance of global solar radiation empirical models at a Sahelian Site, Sokoto, Nigeria. Journal of the Association of Mathematical Physics, 30, 489-496.

Oyedepo, S. O. (2012). Energy and sustainable development in Nigeria: The way forward. Energy, Sustainability and Society, 2(1), 15. https://doi.org/10.1186/2192-0567-2-15

Qing, X., & Niu, Y. (2018). Hourly day-ahead solar irradiance prediction using weather forecasts by LSTM. Energy, 148, 461–468. https://doi.org/10.1016/j.energy.2018.01.177

Santos, M.L.; García-Santiago, X.; Camarero, F.E.; Gil, G.B.; Ortega, P.C. Application of Temporal Fusion Transformer for Day-Ahead PV Power Forecasting. Energies 2022, 15, 5232.

Sharma, J.; Soni, S.; Paliwal, P.; Saboor, S.; Chaurasiya, P.K.; Sharifpur, M.; Khalilpoor, N.; Afzal, A. A novel long term solar photovoltaic power forecasting approach using LSTM with Nadam optimizer: A case study of India. Energy Sci. Eng. 2022, 10, 2909–2929.

Tajjour, S., Chandel, S. S., Alotaibi, M. A., Malik, H., García Márquez, F. P., & Afthanorhan, A. (2023). Short-Term Solar Irradiance Forecasting Using Deep Learning Techniques: A Comprehensive Case Study. IEEE Access, 11, 119851–119861. https://doi.org/10.1109/ACCESS.2023.3325292

Urhuerhi, O. P., Udomboso, C., & Sigauke, C. (2025). Forecasting solar power output in Ibadan: A machine learning approach leveraging weather data and system specifications. arXiv E-Prints, arXiv:2508.07462. https://doi.org/10.48550/arXiv.2508.07462

Zhang, Z., Zhang, T., Zhang, R., Zhu, X., Wu, X., Tan, S., & Jian, Z. (2024). Predicting colorectal cancer risk: A novel approach using anemia and blood test markers. Frontiers in Oncology, 14, 1347058. https://doi.org/10.3389/fonc.2024.1347058

Zhu, R.; Guo, W.; Gong, X. Short-Term Photovoltaic Power Output Prediction Based on k-Fold Cross-Validation and an Ensemble Model. Energies 2019, 12, 1220.

Zhong, Y.-J.; Wu, Y.-K. Short-Term Solar Power Forecasts Considering Various Weather Variables. In Proceedings of the 2020 International Symposium on Computer, Consumer and Control (IS3C), Taichung City, Taiwan, 13–16 November 2020; pp. 432–435.

Published

2026-04-28

How to Cite

Otunla, T. A., & Ayegboyin, E. O. (2026). Day-Ahead Hourly Forecasting of Solar Radiation using a Physics-based Hybrid Machine Learning Model in Some Selected Locations in Nigeria. Nigerian Journal of Physics, 35(2), 83-95. https://doi.org/10.62292/njp.v35i2.2026.503

How to Cite

Otunla, T. A., & Ayegboyin, E. O. (2026). Day-Ahead Hourly Forecasting of Solar Radiation using a Physics-based Hybrid Machine Learning Model in Some Selected Locations in Nigeria. Nigerian Journal of Physics, 35(2), 83-95. https://doi.org/10.62292/njp.v35i2.2026.503