Leveraging machine learning for diabetes prediction: Ensemble model.

dc.contributor.authorOtieno Ogutu, McDonald
dc.contributor.authorNzioka Kituku, Benson
dc.contributor.authorKarume, Simon M.
dc.date.accessioned2026-01-13T09:12:28Z
dc.date.available2026-01-13T09:12:28Z
dc.date.issued2025-10-07
dc.descriptionA research article published in the Global Journal of Engineering and Technology Advances.en_US
dc.description.abstractDiabetes presents great global health challenge, with delayed diagnosis significantly impeding effective management, particularly in resource-constrained regions. This project aimed to enhance timely and accurate diabetes prediction by developing an advanced ensemble machine learning model. A hybrid dataset, compiled from the PIMA Indian (768 instances) and Hospital Frankfurt Germany (2000 instances) datasets, totaling to 2768 datapoints, was utilized to improve generalizability beyond single-source limitations. The methodology involved comprehensive data preprocessing, including the critical imputation of physiologically impossible zero values and feature standardization. F1-score was selected as the primary performance metric due to its ability to provide a vital balance between precision and recall, which is crucial in a medical context where both false positives and false negatives carry significant consequences. Six single classifier models—Logistic Regression, Decision Tree, K-Nearest Neighbors, Support Vector Machine, Random Forest, and XGBoost—were trained on the data and evaluated after hyperparameter tuning. The F1-scores of these optimized models were: Logistic Regression (0.6328), Decision Tree (0.9843), K-Nearest Neighbors (0.9869), Support Vector Machine (0.9843), Random Forest (0.9947), and XGBoost (0.9974). Based on these results, XGBoost and Random Forest were selected as base learners for a Stacking Classifier ensemble, which utilized a Logistic Regression meta-learner. The developed ensemble model demonstrated exceptional performance, achieving near-perfect ROC-AUC of 0.9999 and an F1-score of 0.9974. This performance not only surpassed results from recent studies but also highlighted the significant potential of machine learning to predict diabetes accurately. The project recommended further development and integration of the ensemble model into a web application.en_US
dc.identifier.issneISSN:2582-5003
dc.identifier.urihttps://doi.org/10.30574/gjeta.2025.25.1.0267
dc.identifier.urihttps://repository.cuk.ac.ke/handle/123456789/1866
dc.language.isoenen_US
dc.publisherGlobal Journal of Engineering and Technology Advances.en_US
dc.subjectMachine learning.en_US
dc.subjectSupport vector machine.en_US
dc.subjectGradient boosting.en_US
dc.subjectRandom Forest.en_US
dc.subjectDecision Tree.en_US
dc.titleLeveraging machine learning for diabetes prediction: Ensemble model.en_US
dc.typeArticleen_US

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
Leveraging machine learning for diabetes prediction.pdf
Size:
1 MB
Format:
Adobe Portable Document Format
Description:
PDF

License bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
license.txt
Size:
1.71 KB
Format:
Item-specific license agreed upon to submission
Description: