Logo Lanfrica
  • Home
  • Atlas
  • Insights
  • Docs
  • Sign in

© 2026 Lanfrica. All rights reserved. All copyrights of the resources shown on the Lanfrica website belong to the original copyright holders, unless explicitly stated otherwise.

Machine Learning Algorithms for Analysing Weather Patterns: A Case Study of Western Region of Kenya

Domain:

climate

Record type:

paper
Creator:
MauDanRic
Publisher:
Zenodo
Host:avatar
Traditional meteorological models often face challenges in processing large volumes of real-time data and capturing complex nonlinear atmospheric relationships. Recent advances in Machine Learning (ML) have provided powerful tools for analysing weather patterns and improving forecasting accuracy. The paper discusses relevant literature on machine learning algorithms suitable for weather pattern analysis, identifies research gaps and proposes future research directions involving deep learning and hybrid forecasting systems. This paper presents an integrated Internet of Things (IoT) and Machine Learning (ML) model for analysing weather patterns in Bungoma County, Kenya. Historical weather data (2006–2025) from the Nzoia Sugar Factory Weather Station and simulated real-time IoT sensor observations were analysed using Random Forest (RF) and K-Nearest Neighbours (KNN). Data preprocessing included outlier detection using the IQR method, polynomial interpolation for missing values, Min-Max normalization, and feature engineering. The model was trained and evaluated with an Infinite Random Search hyperparameter optimiser (578 configurations, 3-hour window). Performance was assessed using Mean Absolute Error (MAE), Root Mean Squared Error (RMSE), and the Coefficient of Determination (R²).. The overall average R² across all predicted weather targets was 0.495, with relative humidity at 15:00 achieving R² = 0.836 and maximum temperature achieving R² = 0.629.  Comparative evaluation showed that RF consistently outperformed KNN in predictive accuracy, demonstrating the suitability of ensemble learning for nonlinear meteorological datasets. The integration of IoT enabled continuous monitoring and improved decision support for agriculture and disaster preparedness. These findings contribute to the growing body of knowledge on ML applications in meteorology and provide a foundation for developing localized weather forecasting systems in regions with similar climatic conditions.

Visit

doi.org

Licenses

Creative Commons Attribution 4.0 Internationalhttps://creativecommons.org/licenses/by/4.0/legalcode

Similar

Performance evaluation of machine learning algorithms for estimating reference evapotranspiration based on NASA POWER weather data: a case study in NigeriaComparative Analysis Of Machine Learning Algorithms For Land Use And Land Cover Mapping: Case Study Of Berrechid-Settat Region, MoroccoImpact of Weather Factors on Migration Intention Using Machine Learning AlgorithmsEstimation of Fluid Saturation Using Machine Learning Algorithms: A Case Study of Niger Delta Sandstone ReservoirsA Comparative Study of Selected Supervised Machine Learning Algorithms for Detecting Child MortalityTowards Resilient Agriculture to Hostile Climate Change in the Sahel Region: A Case Study of Machine Learning-Based Weather Prediction in Senegal

Performance evaluation of machine learning algorithms for estimating reference evapotranspiration based on NASA POWER weather data: a case study in Nigeria

The Penman–Monteith (PM) method is recognized as the globally accepted approach for estimating refer

Comparative Analysis Of Machine Learning Algorithms For Land Use And Land Cover Mapping: Case Study Of Berrechid-Settat Region, Morocco

This study analyses the spatiotemporal dynamics of Land Use and Land Cover (LULC) in the Berrechid-S

Impact of Weather Factors on Migration Intention Using Machine Learning Algorithms

International audience A growing attention in the empirical literature has been paid

Estimation of Fluid Saturation Using Machine Learning Algorithms: A Case Study of Niger Delta Sandstone Reservoirs

Abstract Water Saturation (Sw) is a critical input to reserves estimation and reser

A Comparative Study of Selected Supervised Machine Learning Algorithms for Detecting Child Mortality

The World Health Organization (WHO) defines under-five mortality rate as the probability that a chil

Towards Resilient Agriculture to Hostile Climate Change in the Sahel Region: A Case Study of Machine Learning-Based Weather Prediction in Senegal

To ensure continued food security and economic development in Africa, it is very important to addres