RSIS Repository Open-access research from RSIS International journals

International Journal of Research and Scientific Innovation (IJRSI)

A Machine Learning Model for Predicting the Risk of Developing Diabetes - T2DM Using Real-World Data from Kilifi, Kenya

byIsaac Mumo Kailu; Dr. Mvurya Mgala; Dr. Fullgence Mwakondo

Published August 29, 2025  •  Vol. 12, Issue 8, pp. 302–310Open Access
DOI: 10.51244/IJRSI.2025.120800026

Abstract

Type 2 Diabetes Mellitus (T2DM) is a growing public health concern in low-resource settings, where early detection remains limited due to infrastructural and diagnostic constraints. This study presents a machine learning-based risk prediction model developed using real-world data from Kilifi County Referral Hospital in Kenya, aiming to identify individuals at risk of developing T2DM before clinical onset. The study applied the CRISP-DM framework to guide the end-to-end process, from data collection to model deployment. A dataset comprising 2,500 anonymized electronic health records was used, incorporating a diverse range of features including clinical, behavioral, demographic, and socioeconomic variables. Feature selection was conducted using both statistical (Chi-square test) and algorithm-based methods (Random Forest, Recursive Feature Elimination, and XGBoost importance), resulting in two candidate feature sets (14-feature and 7-feature subsets). Four supervised learning algorithms; Logistic Regression, Support Vector Machine (SVM), Random Forest, and XGBoost were trained and evaluated using 5-fold cross-validation. Among them, the XGBoost model achieved the best performance, with a test set accuracy of 91.33%, F1-score of 88.66%, and an AUC-ROC of 96.24%, outperforming other models across all metrics. This study demonstrates that integrating multi-domain features with machine learning can enhance early risk stratification for T2DM in under-resourced environments. The final model’s ability to categorize individuals into low, medium, and high-risk groups offers a practical tool for targeted screening and preventive healthcare interventions in Kenyan public health systems.

Keywords: Type 2 Diabetes Mellitus, Machine Learning, Risk Prediction, XGBoost, CRISP-DM, Kenya

JournalInternational Journal of Research and Scientific Innovation (IJRSI)
ISSN2321-2705
Volume / IssueVolume 12, Issue 8
Pages302–310
Publication dateAugust 29, 2025
DOI10.51244/IJRSI.2025.120800026
PublisherRSIS International
LicenseOpen Access

How to cite this article

Isaac Mumo Kailu, Dr. Mvurya Mgala, & Dr. Fullgence Mwakondo (2025). A Machine Learning Model for Predicting the Risk of Developing Diabetes - T2DM Using Real-World Data from Kilifi, Kenya. International Journal of Research and Scientific Innovation (IJRSI), 12(8), 302-310. https://doi.org/10.51244/IJRSI.2025.120800026

BibTeX

@article{Isaac2025,
  title   = {A Machine Learning Model for Predicting the Risk of Developing Diabetes - T2DM Using Real-World Data from Kilifi, Kenya},
  author  = {Isaac Mumo Kailu and Dr. Mvurya Mgala and Dr. Fullgence Mwakondo},
  journal = {International Journal of Research and Scientific Innovation (IJRSI)},
  volume  = {12},
  number  = {8},
  pages   = {302--310},
  year    = {2025},
  doi     = {10.51244/IJRSI.2025.120800026},
  publisher = {RSIS International}
}