Home
Global Journal of Engineering and Technology Advances
International Peer reviewed Engineering Journal || Crossref DOI || Impact Factor 8.6 || ISSN: 2582-5003

Main navigation

  • Home
    • Journal Information
    • Editorial Board Members
    • Reviewer Panel
    • Abstracting and Indexing
    • Journal Policies
    • Our CrossMark Policy
    • Publication Ethics
    • Issue in Progress
    • Current Issue
    • Past Issues
    • Instructions for Authors
    • Article processing fee
    • Track Manuscript Status
    • Get Publication Certificate
    • Join Editorial Board
    • Join Reviewer Panel
  • Contact us
  • Downloads

Research & review articles are invited for publication in November 2026 (Vol. 29, Issue 2) || Submission: up to 28th November || Editorial decision: within 48 hrs.

Development of a machine learning model for precipitation forecasting in Kenya

Breadcrumb

  • Home
  • Development of a machine learning model for precipitation forecasting in Kenya

Damaris Muthoki Mulinge 1, *, John M. Kihoro 2, Shadrack S. Madila 3 and Shem Mbandu Angolo 4

1 Department of Information and Communication Technology, The Cooperative University of Kenya, Karen, Nairobi, Kenya.
2 Department of Mathematical Sciences, The Cooperative University of Kenya, Karen, Nairobi, Kenya.
3 Department of Information and Communication Technology, Moshi Cooperative University, Moshi, Tanzania.
4 Department of Information and Communication Technology, The Cooperative University of Kenya, Karen, Nairobi, Kenya.
 
Research Article
Global Journal of Engineering and Technology Advances, 2025, 24(03), 043-050.
Article DOI: 10.30574/gjeta.2025.24.3.0261
DOI url: https://doi.org/10.30574/gjeta.2025.24.3.0261
Received on 26 July 2025; revised on 29 August; accepted on 01 September 2025
 
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.
 
 
Machine Learning; Climate variability; Precipitation forecasting; XGBoost; Binary Classification
 
https://gjeta.com/sites/default/files/fulltext_pdf/GJETA-2025-0261.pdf

Preview Article PDF

Damaris Muthoki Mulinge, John M. Kihoro, Shadrack S. Madila and Shem Mbandu Angolo. Development of a machine learning model for precipitation forecasting in Kenya. Global Journal of Engineering and Technology Advances, 2025, 24(3), 043-050. Article DOI: https://doi.org/10.30574/gjeta.2025.24.3.0261

Copyright © Author(s). All rights reserved. This article is published under the terms of the Creative Commons Attribution 4.0 International License (CC BY 4.0), which permits use, sharing, adaptation, distribution, and reproduction in any medium or format, as long as appropriate credit is given to the original author(s) and source, a link to the license is provided, and any changes made are indicated.


All statements, opinions, and data contained in this publication are solely those of the individual author(s) and contributor(s). The journal, editors, reviewers, and publisher disclaim any responsibility or liability for the content, including accuracy, completeness, or any consequences arising from its use.

Get Certificates

Get Publication Certificate

Download LoA

Check Corssref DOI details

Issue details

Issue Cover Page

Editorial Board

Table of content

          

 

Copyright © 2026 Global Journal of Engineering and Technology Advances - All rights reserved

Developed & Designed by VS Infosolution