Using Machine Learning To Predict Rainfall in Abeokuta Nigeria

Authors

Keywords:

Rainfall, Machine learning models, Environmental impact

Abstract

Rainfall is extremely important in Abeokuta as it supports agriculture, influences daily life, and the local economy. Abeokuta receives substantial seasonal precipitation; however, variability poses significant risks. This work focuses on Abeokuta and examines rainfall variability from 2001 to 2010. Using machine learning models is one way to extract information, patterns, and trends from historical data, enabling stakeholders to make informed decisions. It is essential to measure the climatic variables that correlate with rainfall, as this will help identify ways to mitigate their effects in pursuit of a balanced nature. In this study, the Seasonal Autoregressive Integrated Moving Average (SARIMA), Random Forest (RF), and Artificial Neural Network (ANN) were used to examine seasonality and patterns in our dataset for predictive purposes. The results show that the ANN model's MSE (7767.4691) and MAE (64.7500) are the lowest among the models used in this work. This suggests that the ANN model's predictions are closer to the actual rainfall values than those of other models. Furthermore, a correlation analysis revealed that the ANN correlated with evaporation and relative humidity. This suggests that during wet seasons or prolonged rainy periods, when rainfall is high, evaporation is low, and less irrigation may be needed, but soils stay wet longer. This might result in flooding. In contrast, in dry seasons with little rain, evaporation is high, and soils dry out quickly, increasing irrigation demand.

Dimensions

Adams, S. O., & Bamanga, M. A. (2020). Modelling and forecasting seasonal behavior of rainfall in Abuja, Nigeria; A SARIMA approach. Am. J. Math. Stat, 10(1), 10-19.

Aiyelokun, O. O., Aiyelokun, O. D., & Agbede, O. A. (2023). Application of random forest (RF) for flood levels prediction in Lower Ogun Basin, Nigeria. Natural Hazards, 119(3), 2179-2195. DOI: https://doi.org/10.1007/s11069-023-06211-7

Anscombe, F. J. (1973). Graphs in statistical analysis. The american statistician, 27(1), 17-21. DOI: https://doi.org/10.1080/00031305.1973.10478966

Box, G.E., Jenkins, G.M., Reinsel, G.C., (2013). Time Series Analysis: Forecasting and Control; John Wiley & Sons, Inc.: Hoboken, NJ, USA.

Cifuentes, J., Marulanda, G., Bello, A., & Reneses, J. (2020). Air temperature forecasting using machine learning techniques: a review. Energies, 13(16), 4215. DOI: https://doi.org/10.3390/en13164215

Dada, E. G., Yakubu, H. J., & Oyewola, D. O. (2021). Artificial neural network models for rainfall prediction. European Journal of Electrical Engineering and Computer Science, 5(2), 30-35. DOI: https://doi.org/10.24018/ejece.2021.5.2.313

EPA., (2009). Climate change, United States Environmental Protection Agency. www.epa.gov

Fowler, H.J., Blenkinsop, S. and Tebaldi, C., (2007). Linking climate change modelling to impacts studies: recent advances in downscaling techniques for hydrological modelling. International Journal of Climatology: A Journal of the Royal Meteorological Society, 27(12), pp.1547-1578. DOI: https://doi.org/10.1002/joc.1556

Helfer, F., Lemckert, C. and Zhang, H., (2012). Impacts of climate change on temperature and evaporation from a large reservoir in Australia. Journal of hydrology, 475, pp.365-378. DOI: https://doi.org/10.1016/j.jhydrol.2012.10.008

IPCC. (2014). Climate Change: Synthesis Report. Contribution of Working Groups I, II, and III to the Fifth Assessment Report of the Intergovernmental Panel on Climate Change. Geneva, Switzerland: IPCC.

Nwosu, C.A., Echeta, D.O., Ukwunna, J.C., (2021). Impact of Climate Shocks on Agricultural Productivity in Nigeria .14th NAEE/IAEE Annual International Conference, Abuja, and July 26th – 28th, 2021.

Ray, S., Das, S. S., Mishra, P., & Al Khatib, A. M. G. (2021). Time series SARIMA modelling and forecasting of monthly rainfall and temperature in the South Asian countries. Earth Systems and Environment, 5(3), 531-546. DOI: https://doi.org/10.1007/s41748-021-00205-w

Statista, (2023). Share of Gross Domestic Production (GDP) generated by the agricultural sector in Nigeria as of 2023. https://www.statista.com/statistics/1207940/share-of-gdp-by-agricultural-sector-in-nigeria/

Vanlaar, W., Robertson, R. and Marcoux, K., (2014). An evaluation of Winnipeg's photo enforcement safety program: Results of time series analyses and an intersection camera experiment. Accident Analysis & Prevention, 62, pp.238-247. DOI: https://doi.org/10.1016/j.aap.2013.09.023

Published

2026-03-25

How to Cite

Using Machine Learning To Predict Rainfall in Abeokuta Nigeria. (2026). Nigerian Journal of Theoretical and Environmental Physics, 4(1), 7-14. https://doi.org/10.62292/njtep.v4i1.2026.104

How to Cite

Using Machine Learning To Predict Rainfall in Abeokuta Nigeria. (2026). Nigerian Journal of Theoretical and Environmental Physics, 4(1), 7-14. https://doi.org/10.62292/njtep.v4i1.2026.104