SMOTE placement in cross-validation pipelines: quantifying performance inflation across tabular medical datasets
Accepted manuscript, PLOS ONE (manuscript PONE-D-26-30839R1). The final version will be published by the journal. Clinical prediction datasets are often imbalanced, and classifiers trained on them favour the majority class and miss many of the patients they are meant to detect. The Synthetic Minority Over-sampling Technique (SMOTE) addresses this by creating synthetic minority-class samples. When SMOTE is applied to the whole dataset before cross-validation, two problems arise: the synthetic training samples are built partly from patients later used for testing, and the test folds contain synthetic records. How much each of these problems inflates results in tabular clinical data is unknown. We used nine public clinical datasets (imbalance ratios 1.18:1 to 19.52:1) and three classifiers: Random Forest, Logistic Regression and XGBoost. A correct pipeline, fitting SMOTE and preprocessing within each training fold, was compared with pipelines that leaked through SMOTE, through imputation and scaling, or both. All four were scored on the same real patients in 10 × 10 repeated stratified cross-validation. SMOTE should be fitted within each training fold, and studies should report where oversampling was applied.
Authors
- Muhammad Idrees
Institutions
- Institute of Management Sciences Peshawar (PK)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-24
- DOI
- https://doi.org/10.5281/zenodo.24492684
- Primary Topic
- Imbalanced Data Classification Techniques
- Type
- preprint