Answers are grounded in this paper and cite their sources.
Class imbalance remains an important challenge in medical classification because high overall predictive accuracy may coexist with poor detection of minority-class patients. This study evaluates the effects of class-imbalance handling on Type 2 Diabetes Mellitus classification using Gaussian Naïve Bayes, Decision Tree, and K-Nearest Neighbors (KNN) across three datasets with different sample sizes and imbalance characteristics. Feature-type-appropriate resampling was applied, consisting of SMOTEN for categorical data, SMOTE for numerical data, SMOTENC for mixed numerical-categorical data, Tomek Links, and hybrid oversampling–Tomek configurations. All preprocessing, scaling, encoding, resampling, and model development procedures were implemented within leakage-controlled training pipelines. Hyperparameters were selected exclusively from the training partition using stratified five-fold cross-validation with F1-score as the selection criterion, while robustness was evaluated using repeated stratified five-fold cross-validation. Performance was assessed using accuracy, precision, recall, and F1-score, with uncertainty quantified using standard deviations and bootstrap 95% confidence intervals. On the Puskesmas dataset, KNN without resampling achieved a test F1-score of 0.8169, whereas KNN with SMOTEN-Tomek achieved the highest mean cross-validation F1-score of 0.8238. On Diabetes Dataset II, SMOTE increased KNN mean recall from 0.5967 to 0.7820 and mean F1-score from 0.6326 to 0.6764. On the highly imbalanced Diabetes Prediction Dataset I, Decision Tree without resampling and with Tomek Links achieved comparable F1-scores of 0.8059 and 0.8067, respectively, whereas SMOTENC increased recall but reduced precision and F1-score. These findings demonstrate that the effect of resampling is dataset- and classifier-dependent and that improved minority-class recall does not necessarily correspond to higher overall predictive performance.
No takes yet. Share an insight, caveat, or question.
Putra et al. (2026) studied this question.
Synapse has enriched 10 related papers. Consider them for comparative context: