Cross-Dataset Evaluation of Class-Imbalance Handling for Type 2 Diabetes Classification

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.

Authors

Institutions

Publication Details

Journal
INOVTEK Polbeng - Seri Informatika
Published
2026-11-29
DOI
https://doi.org/10.35314/8xj1yn13
Primary Topic
Imbalanced Data Classification Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Cross-Dataset Evaluation of Class-Imbalance Handling for Type 2 Diabetes Classification

Luh Joni Erawati Dewi, I Gede Aris Gunadi, Dede Desnantha Putra
INOVTEK Polbeng - Seri Informatika
Imbalanced Data Classification Techniques
article

Cross-Dataset Evaluation of Class-Imbalance Handling for Type 2 Diabetes Classification

Luh Joni Erawati Dewi, I Gede Aris Gunadi, Dede Desnantha Putra
article en

Abstract

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.

INOVTEK Polbeng - Seri InformatikaVol. 11(4)
Universitas Pendidikan Ganesha (ID)
Imbalanced Data Classification Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon