|
International Journal of Computer Applications
Foundation of Computer Science (FCS), NY, USA
|
| Volume 187 - Issue 146 |
| Published: October 2026 |
| Authors: Okoro Favour Ngozi, Ituma Chinagorom, Chinonso Job |
10.5120/ijca44b0d54c589d
|
Okoro Favour Ngozi, Ituma Chinagorom, Chinonso Job . Comparative Evaluation of Logistic Regression and Random Forest for Diabetes Risk Prediction using the DiaBD Clinical Dataset. International Journal of Computer Applications. 187, 146 (October 2026), 42-46. DOI=10.5120/ijca44b0d54c589d
@article{ 10.5120/ijca44b0d54c589d,
author = { Okoro Favour Ngozi,Ituma Chinagorom,Chinonso Job },
title = { Comparative Evaluation of Logistic Regression and Random Forest for Diabetes Risk Prediction using the DiaBD Clinical Dataset },
journal = { International Journal of Computer Applications },
year = { 2026 },
volume = { 187 },
number = { 146 },
pages = { 42-46 },
doi = { 10.5120/ijca44b0d54c589d },
publisher = { Foundation of Computer Science (FCS), NY, USA }
}
%0 Journal Article
%D 2026
%A Okoro Favour Ngozi
%A Ituma Chinagorom
%A Chinonso Job
%T Comparative Evaluation of Logistic Regression and Random Forest for Diabetes Risk Prediction using the DiaBD Clinical Dataset%T
%J International Journal of Computer Applications
%V 187
%N 146
%P 42-46
%R 10.5120/ijca44b0d54c589d
%I Foundation of Computer Science (FCS), NY, USA
Diabetes mellitus remains one of the fastest-growing chronic diseases worldwide, and early risk identification is essential for timely clinical intervention. This paper presents a comparative evaluation of two supervised machine learning algorithms, Logistic Regression (LR) and Random Forest (RF), for diabetes risk classification using the DiaBD dataset, a recently published clinical dataset of 5,288 patient records from Bangladesh. Chi-square and analysis-of-variance (ANOVA) feature selection identified six clinically relevant predictors: hypertension status, glucose level, systolic and diastolic blood pressure, age, and weight. The Synthetic Minority Over-sampling Technique (SMOTE) was applied to the training partition only, to correct for class imbalance without leaking information into the test set. Both models were trained on an 80/20 train-test split and evaluated using accuracy, precision, recall, F1-score, and the area under the receiver operating characteristic curve (AUC-ROC). Random Forest achieved a higher overall accuracy (0.88) and a marginally higher AUC (0.83) than Logistic Regression (0.81 accuracy, 0.82 AUC); Logistic Regression, however, achieved substantially higher recall for the diabetic class (0.66 versus 0.44). The two models' F1-scores were nearly identical (0.32 for both), which shows that a single blended metric conceals the clinically important difference in how each model distributes its errors. Precision remained modest for both models (0.21-0.25), indicating that a six-variable feature set is not sufficient for high-precision clinical deployment on its own. We argue that model selection for diabetes screening should be guided by the clinical cost of missed diagnoses rather than accuracy alone, and we recommend threshold calibration, cost-sensitive learning, and external validation on additional populations as directions for future work.