Skip to content
Open access

Performance enhancement of machine learning models for diabetes diagnosis through data balancing and hyperparameter optimization

Oct 2026 · PeerJ Computer Science · Vol 12, pp. e4099 · 0 citations · 35 references

TL;DR

The results indicate that careful preprocessing and model optimization can enhance predictive performance, highlighting the potential of ensemble-based methods for clinical decision support.

Abstract

Early and reliable prediction of diabetes is crucial for better outcomes. Seven machine learning (ML) algorithms—Logistic Regression (LR), Decision Tree (DT), Support Vector Machines (SVM), K-Nearest Neighbors (KNN), Gradient Boosting (GB), LightGBM, and CatBoost—are assessed for diagnosing diabetes automatically. The models were tested using a sequential approach, including imputing missing values, removing outliers, balancing the data samples using Synthetic Minority Oversampling Technique (SMOTE) and hyperparameter tuning using GridSearchCV. Using 10-fold cross-validation on the Pima Indian Diabetes (PIMA) dataset, CatBoost outperformed other models with an accuracy of 83.70% and F1-score of 84.49%, with KNN, GB and LightGBM performing similarly. External validation on a German dataset ( n = 2,000) yielded higher accuracy (up to ~90%), with KNN, LightGBM, and CatBoost maintaining strong performance, suggesting good generalization across datasets. Overall, the results indicate that careful preprocessing and model optimization can enhance predictive performance, highlighting the potential of ensemble-based methods for clinical decision support.

Read PDF

Similar papers

Open access Aug 2026

A Comparative Evaluation of Machine Learning Algorithms for Diabetes Risk Prediction

Evaluated machine learning algorithms for predicting diabetes risk from routinely available clinical and lifestyle variables confirm that ensemble tree-based methods, particularly Random Forest, provide a reliable, interpretable, and deployable basis for diabetes risk screening, especially in resource-constrained setti...

T. Olayinka · 0 citations
Open access Oct 2026

Enhanced diabetes prediction using SMOTE-Tomek and F1-optimized machine learning models

This study presents a systematic and effective strategy for the early prediction of diabetes, utilizing a hybrid machine learning framework designed to address prevalent issues found in conventional diagnostic systems. A significant challenge in medical datasets, particularly in the context of diabetes, is the issue of...

Chaitra Nayak Janasale, R. Mohanty, S. N. Prasad · 0 citations
Open access 2026

A Comparative Analysis of Machine Learning Algorithms for the Early Prediction of Diabetes with an Evaluation of Class-Imbalance Handling

The study comes to the conclusion that headline accuracy is an unreliable guide in imbalanced medical prediction, that imbalance handling can change a model's practical usefulness, and that this benefit is strongly algorithm-dependent, meaning that the decision to resample should be based on the algorithm and the scree...

Ayorinde P. Oduroye, Temilade Opanuga, Esther Tosin Akanbi et al. · 0 citations
Open access Sep 2026

Evaluating the performance of ensemble learning methods in diabetes disease classification

Diabetes mellitus is a widespread metabolic disorder marked by chronic hyperglycemia and severe complications. Early and accurate detection is crucial for effective management and preventing disease progression. This study systematically evaluates the performance of three ensemble learning strategies Bagging, Boostin...

Sajjad Aghasi Javid, Aliasghar Khakpaki · 0 citations
Open access Aug 2026

Enhancing Multiclass Diabetes Prediction with SMOTE and Machine Learning Classifiers

The results prove that ensemble models applied to class balancing and explainability methods can be used to rely on and provide clear tools regarding multiclass diabetes classification and illustrate the costs and benefits of operating a global model versus a minority-class sensitive one.

M. H. Ahmed, J. Qadir · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.