International Journal of Applied Information Systems |
Foundation of Computer Science (FCS), NY, USA |
Volume 12 - Number 46 |
Year of Publication: 2025 |
Authors: Oguche Ajah, Abimbola H. Afolayan, Akintoba E. Akinwonmi |
![]() |
Oguche Ajah, Abimbola H. Afolayan, Akintoba E. Akinwonmi . A Comparative Study of Long Short-Term Memory and Gated Recurrent Units for Forecasting Rainfall: A Case Study of Nigeria. International Journal of Applied Information Systems. 12, 46 ( Jan 2025), 15-24. DOI=10.5120/ijais2025451987
Heavy rainfall may trigger floods, destroying human life and the agricultural economy. Accurate rainfall forecasting is vital for mitigating the effects of severe flooding. This study compares deep supervised learning (DSL) algorithms for rainfall forecasting in Nigeria, using a large dataset from ECMWF archives that includes Kaduna, Bauchi, Kwara, Imo, Ondo, and Cross River states representing the six geopolitical zones in Nigeria. Critical attributes in the dataset include rainfall, relative humidity, temperature, dew point, surface pressure, and wind speed. Following meticulous preprocessing and outlier removal, feature engineering was done using Pearson correlation and Spearman rank to ensure the most important predictors were chosen. Two sophisticated models— Long Short-Term Memory (LSTM), and Gated Recurrent Unit (GRU) were developed, trained, and tested extensively. The models were assessed using a variety of metrics, including Mean Squared Error (MSE), Root Mean Squared Error (RMSE), Mean Absolute Error (MAE), R-squared, and Accuracy. The findings were impressive, with the GRU model surpassing the LSTM model with the average MSE, MAE, R-Square, RMSE, and Accuracy values of 3.0504, 1.1644, 0.7978, 1.7381, and 98.43%, respectively. These findings illustrate GRU's exceptional capacity to capture complicated patterns of rainfall data, making it an effective tool for meteorological forecasting.