Logo Lanfrica
  • Accueil
  • Atlas
  • Analyses
  • Documentation
  • Sign in

© 2026 Lanfrica. Tous droits réservés. Tous les droits d'auteur des ressources affichées sur le site Web Lanfrica appartiennent aux détenteurs de droits d'auteur d'origine, sauf indication contraire explicite.

Development of a machine learning model for precipitation forecasting in Kenya

Domaine:

climateagriculture

Type de record:

paperdatasetmodel
Créateur:
DamJohShaShe
Éditeur:
GSC
Hôte:
Accurate precipitation forecasting is important for mitigating the impacts of climate variability in Kenya, where erratic rainfall events considerably affect agriculture, water control and disaster preparedness. Traditional methods such as ARIMA (Autoregressive Integrated Moving Average) and NWP (Numerical Weather Prediction) have shown to struggle with complex weather patterns due to linearity assumptions, high computational demands and limited spatial resolution. This research develops and evaluates an XGBoost-based machine learning model to enhance precipitation predictions both long-term and short-term. Utilizing a a 20-year weather dataset (2004 - 2024) with 7300 daily data records sourced from online Visual Crossing Weather Data, key features include temperature, humidity, wind speed, lagged precipitation (1-7), rolling means and seasonal encoding to capture bimodal rainfall patterns of the months of march-May, and October-December. Data processing involved min-max normalization of 0-1 range, feature selection, sin/cosine transformations for seasonal patterns and temperature-humidity interactions for connective modelling processes. The dataset used was split with 80% for training and 20% for testing and a temporal split ≤ 2020 for training and > 2020 for testing maintaining the chronological data order. The initial attempts exhibited poor performance with low R2 = 0.066 and a high RMSE=1.06 hence leading to XGBoost binary classification shift to predict the likelihood of rain/no-rain tomorrow. Bayesian optimization and GridSearchCV hyperparameter tuning was applied with default 0.5 threshold adjustment for improved rain class sensitivity using classification metrics and resulted 76.76% accuracy, 70.14% precision, 33.36% recall, 45.12% F1-Score and ROC-AUC 0.75. Post-tuning accuracy by reducing the threshold to 0.3 to capture missed rainfall events: 73% accuracy, no-rain precision and recall 81%, 53% rain precision, 54% recall, F1-Score 54%. Temperature-humidity interaction as the top predictor in feature importance. The results contribute to improved precipitation prediction accuracy hence supporting decision making in agriculture, water resource management and early disaster preparedness in Kenya’s climate vulnerable regions.

Visit

doi.org

Similaires

Report on the development of a machine learning forecasting system for NDVI: A case study for Kenya.cynthiakemboi/Machine-learning-Model-on-Refugee-Population-Forecasting-Resource-Planning-System-for-KenyaDeveloping a Machine Learning Predictive Model for Mobile Network Traffic Forecasting in MalawiDevelopment and Evaluation of a Machine Learning Model for Predicting Terminal DiseasesStatistical, machine learning, and deep learning models for COVID-19 forecasting in Kenyamercyvee/DROUGHT-FORECASTING-IN-KENYA-USING-MACHINE-LEARNING

Report on the development of a machine learning forecasting system for NDVI: A case study for Kenya.

Livelihoods in the horn of Africa have long been vulnerable to the impacts of climate varia

cynthiakemboi/Machine-learning-Model-on-Refugee-Population-Forecasting-Resource-Planning-System-for-Kenya

Kenya hosts refugee and asylum-seeking populations from multiple countries affected by conflict, pol

Developing a Machine Learning Predictive Model for Mobile Network Traffic Forecasting in Malawi

Development and Evaluation of a Machine Learning Model for Predicting Terminal Diseases

International audience Terminal diseases, including kidney disease, heart failure, an

Statistical, machine learning, and deep learning models for COVID-19 forecasting in Kenya

Abstract This study aims to enhance coronavirus disease 201

mercyvee/DROUGHT-FORECASTING-IN-KENYA-USING-MACHINE-LEARNING

This repo is basically to store and collaborate with other members on an upcoming project I am doing