Volume 9 , Issue 2 , PP: 37-53, 2025 | Cite this article as | XML | Html | PDF | Full Length Article
Khaled Sh. Gaber 1 * , Mahmoud Elshabrawy Mohamed 2
Doi: https://doi.org/10.54216/JAIM.090203
Correct rainfall prediction is fundamental for developing resilient climates, guaranteeing sustainable farms and planned water distribution networks, and reducing possible disasters. Many meteorological elements affect rainfall patterns because rainfall shows nonlinear behavior and dependence across different timescales and diverse spatial areas. Multiple problematic features defeat conventional forecasting techniques because they produce insufficient accurate predictions of short-duration precipitation patterns. Because of rising climate variability, we require predictive frameworks built with data with strong performance abilities and human- understandable features. In this paper, we establish a machine learning that predicts daily rainfall in advance with a refined dataset consisting of detailed weather measurements spanning 20 United States metropolises from 2024 to 2025. The selected dataset contains six atmospheric factors: temperature, humidity, wind speed, and cloud cover with pressure and precipitation and a binary outcome to show rainfall prediction for the following day. Random Forest and Support Vector Machine (RBF) KNearest Neighbors (KNN), Logistic Regression, Naive Bayes, and Linear SVM formed the set of machine learning models that underwent training and evaluation. The SHAP method was integrated to improve prediction interpretation and trust through Shapley additive explanations value measures. SHAP values provided quantitative measurement and graphical visualization to explain the role of each input variable in making individual prediction outcomes. SHAP analysis of the model showcased precipitation and humidity as their most crucial features because they match the principles of meteorological theory and demonstrate the rational decision-making process of the model. The Random Forest approach scored the highest performance from all models, reaching perfect measurements for Precision = 100, Recall = 100 and F1-score = 100. The RBF SVM model alongside KNN showed strong performance since they delivered F1 scores of 0.97 and 0.94. The evaluation revealed that Logistic Regression, Linear SVM and Naive Bayes achieved satisfactory results, providing F1-score ratings between 0.76 and0.77.The SHAP-based diagnostic results showed that Random Forest yielded exceptional classification results while simultaneously showing consistent weighting patterns between features across diverse locations. The integration of the Random Forest model with SHAP interpretation creates an effective solution for rainfall forecasting despite its high prediction capabilities. The model achieves complete prediction accuracy with precise explanation capabilities, generating trust for using it in actual deployment scenarios. According to the results, weather-sensitive sectors like agriculture, urban planning, and disaster response can leverage these transparent machine learning systems into their decision-making support pipelines. The approach described has the potential to become a model structure for conducting future predictive analyses in meteorology and environmental science.
Rainfall prediction , SHAP , Machine Learning , Random Forest
[1] Kelemu Wudu, Assefa Abegaz, Linger Ayele, and Mussie Ybabe. The impacts of climate change on bio- diversity loss and its remedial measures using nature based conservation approach: a global perspective. Biodiversity and Conservation, 32(12):3681–3701, 2023.
[2] Sintayehu Alemayehu, Daniel Olago, Tadesse Terefe Zeleke, and Sintayehu W Dejene. Spatiotemporal analysis of rainfall and temperature variability and trends for a mixed crop-livestock production system: its implications for developing adaptation strategies. International Journal of Climate Change Strategies and Management, 17(1):268–290, 2025.
[3] Farzad Piadeh, Kourosh Behzadian, and Amir M Alani. A critical review of real-time modelling of flood forecasting in urban drainage systems. Journal of Hydrology, 607:127476, 2022.
[4] Maximilian Kotz, Anders Levermann, and Leonie Wenz. The effect of rainfall changes on economic production. Nature, 601(7892):223–227, 2022.
[5] Mostafa A Mohamed, Gamal S El Afandi, and Mohamed El-Sayed El-Mahdy. Impact of climate change on rainfall variability in the blue nile basin. Alexandria Engineering Journal, 61(4):3265–3275, 2022.
[6] Driss Bari, Thierry Bergot, and Robert Tardif. Fog decision support systems: A review of the current perspectives. Atmosphere, 14(8):1314, 2023.
[7] PH Hrudya, Hamza Varikoden, and R Vishnu. A review on the indian summer monsoon rainfall, vari- ability and its association with enso and iod. Meteorology and Atmospheric Physics, 133:1–14, 2021.
[8] Alexis P´erez Bello, Alain Mailhot, Dominique Paquin, and Danah´e Paquin-Ricard. Temperature- precipitation scaling rates: A rainfall event-based perspective. Journal of Geophysical Research: At- mospheres, 127(22):e2022JD037873, 2022.
[9] Catherine O de Burgh-Day and Tennessee Leeuwenburg. Machine learning for numerical weather and climate modelling: a review. Geoscientific Model Development, 16(22):6433–6477, 2023.
[10] A. Yadav and F. Khan. Machine learning techniques in rainfall forecasting. Applied Soft Computing, 2023.
[11] Yashon O Ouma, Rodrick Cheruyot, and Alice N Wachera. Rainfall and runoff time-series trend analysis using lstm recurrent neural network and wavelet neural network with satellite-based meteorological data: case study of nzoia hydrologic basin. Complex & Intelligent Systems, pages 1–24, 2021.
[12] David B Olawade, Ojima Z Wada, Abimbola O Ige, Bamise I Egbewole, Adedayo Olojo, and Bankole I Oladapo. Artificial intelligence in environmental monitoring: Advancements, challenges, and future directions. Hygiene and Environmental Health Advances, page 100114, 2024.
[13] Chalachew Muluken Liyew and Haileyesus Amsaya Melese. Machine learning techniques to predict daily rainfall amount. Journal of Big Data, 8:1–11, 2021.
[14] Ari Yair Barrera-Animas, Lukumon O Oyedele, Muhammad Bilal, Taofeek Dolapo Akinosho, Juan Manuel Davila Delgado, and Lukman Adewale Akanbi. Rainfall prediction: A comparative analysis of modern machine learning algorithms for time-series forecasting. Machine Learning with Applications, 100204:7, 2022.
[15] Olusola Samuel Ojo and Samuel Toluwalope Ogunjo. Machine learning models for prediction of rainfall over nigeria. Scientific African, 16:e01246, 2022.
[16] Faisal Baig, Luqman Ali, Muhammad Abrar Faiz, Haonan Chen, and Mohsen Sherif. How accurate are the machine learning models in improving monthly rainfall prediction in hyper arid environment? Journal of Hydrology, 633:131040, 2024.
[17] Mobin Akhtar, Abdallah Saleh Ali Shatat, Shabi Alam Hameed Ahamad, Sara Dilshad, and Faizan Sam-dani. Optimized cascaded cnn for intelligent rainfall prediction model: a research towards statistic-based
machine learning. Theoretical Issues in Ergonomics Science, 24(5):564–592, 2023.
[18] Mohammed Falah Allawi, Uday Hatem Abdulhameed, Ammar Adham, Khamis Naba Sayl, Sadeq Oleiwi
Sulaiman, Majeed Mattar Ramal, Mohsen Sherif, and Ahmed El-Shafie. Monthly rainfall forecasting modelling based on advanced machine learning methods: Tropical region as case study. Engineering Applications of Computational Fluid Mechanics, 17(1):2243090, 2023.
[19] Chengcheng Chen, Qian Zhang, Mahsa H Kashani, Changhyun Jun, Sayed M Bateni, Shahab S Band, Sonam Sandeep Dash, and Kwok-Wing Chau. Forecast of rainfall distribution based on fixed sliding window long short-term memory. Engineering Applications of Computational Fluid Mechanics, 16(1):248–261, 2022.
[20] G Tuysuzoglu, KU Birant, and D Birant. Rainfall prediction using an ensemble machine learning model based on k-stars. sustainability, 15 (7), 5889, 2023.
[21] Hasan Ahmadi, Babak Aminnejad, and Hojat Sabatsany. Application of machine learning ensemble models for rainfall prediction. Acta Geophysica, 71(4):1775–1786, 2023.
[22] Athul Rasheeda Satheesh, Peter Knippertz, and Andreas H Fink. Machine learning models for daily rainfall forecasting in northern tropical africa using tropical wave predictors. arXiv preprint arXiv:2408.16349, 2024.
[23] Jiayue Gu, Shuguang Liu, Zhengzheng Zhou, Sergey R Chalov, and Qi Zhuang. A stacking ensemble learning model for monthly rainfall prediction in the taihu basin, china. Water, 14(3):492, 2022.
[24] Fehaid Alqahtani, Mostafa Abotaleb, Alhumaima Ali Subhi, El-Sayed M El-Kenawy, Abdelaziz A Ab- delhamid, Khder Alakkari, Amr Badr, HK Al-Mahdawi, Abdelhameed Ibrahim, and Ammar Kadi. A hybrid deep learning model for rainfall in the wetlands of southern iraq. Modeling Earth Systems and Environment, 9(4):4295–4312, 2023.
[25] Sedigheh Mohamadi, Zohreh Sheikh Khozani, Mohammad Ehteram, Ali Najah Ahmed, and Ahmed El- Shafie. Rainfall prediction using multiple inclusive models and large climate indices. Environmental Science and Pollution Research, 29(56):85312–85349, 2022.
[26] Yan Zhao, Xingmin Meng, Tianjun Qi, Yajun Li, Guan Chen, Dongxia Yue, and Feng Qing. Ai-based rainfall prediction model for debris flows. Engineering Geology, 296:106456, 2022.
[27] Bishwajit Roy, Maheshwari Prasad Singh, and Anshuman Singh. A novel approach for rainfall-runoff modelling using a biogeography-based optimization technique. International Journal of River Basin Management, 19(1):67–80, 2021.
[28] Kavya Johny, Maya L Pai, et al. A multivariate emd-lstm model aided with time dependent intrinsic cross-correlation for monthly rainfall prediction. Applied Soft Computing, 123:108941, 2022.
[29] Waqar Ali. Usa rainfall prediction dataset (2024–2025). https://www.kaggle.com/datasets/ waqi786/usa-rainfall-prediction-dataset-2024-2025/data, 2025.
[30] S. Alam and N. Yao. The impact of preprocessing steps on the accuracy of machine learning algorithms in sentiment analysis. Computational and Mathematical Organization Theory, 25(3):319–335, 2019.