arXiv:2611.07950cs.LGNov 2026

Manuscript Offprint

arXiv:2611.07950

Leakage- and Label-Aware Benchmarking of Class-Imbalance Strategies for Multimodal Chest X-Ray and EHR Classification

Dang-Khoa Bui, Quang-Huy Tran, Minh-Khoi Nguyen-Bui, Duc-Tuan Ngo, Thanh-Trong Tran, Tuan-Khoi Nguyen, Hoang-Anh Ngo

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

Dang-Khoa Bui*‡, Quang-Huy Tran*‡, Minh-Khoi Nguyen-Bui*‡, Duc-Tuan Ngo*‡, Thanh-Trong Tran*‡, Tuan-Khoi Nguyen*†, Hoang-Anh Ngo‡

*Faculty of Computer Science and Engineering,

Ho Chi Minh City University of Technology (HCMUT), VNU-HCM, Vietnam

†Vietnam National University Ho Chi Minh City, Vietnam

‡Applied AI & Data Science Division, AK Technologies Company Limited,

Ho Chi Minh City, Vietnam

Abstract—Benchmarks of class-imbalance strategies for multimodal chest X-ray (CXR) and electronic health record (EHR) prediction are often evaluated on record-level splits of cohorts in which one patient contributes several radiographs. We audit such a benchmark on 29,083 MIMIC-CXR radiographs of 10,479 patients with eight diagnosis targets. First, the record-split benchmark was misleading: a lookup table that copies the label of a development-set radiograph with the same EHR vector nearly matched the best model, and on unseen patients every model fell to the level of predicting every case positive. Second, tracing the labels back to MIMIC-IV explained why: each patient's labels are keyword matches on the diagnosis codes of a single admission, copied, with one EHR vector per patient, to all of the patient's radiographs, so about a third of the radiographs carry labels that differ from the codes of their own admission. Third, under patient-separated evaluation with admission-aligned and rule-refined labels, the initial conclusions do not hold: in the evaluated configurations no imbalance strategy raised the observed mean macro F2 over no augmentation by more than 0.01, tuned tree ensembles showed no consistent advantage over tuned logistic regression, and the released EHR variables stayed at the level of the all-positive baseline, whereas the diagnostic history available at imaging time and image embeddings exceeded it, including, with rule-refined labels, a CheXpert-trained encoder that never saw these radiographs; RAD-DINO had seen 96.6% of them during self-supervised pretraining. Adding either encoder to the diagnostic history gave no statistically significant F2 gain; exploratory AUROC gains were significant with RAD-DINO but not with DenseNet. We provide reusable diagnostics, a leakage-aware protocol and a checklist.

Index Terms—class imbalance, data leakage, multimodal learning, chest X-ray, electronic health records, SMOTE, benchmarking, MIMIC

I. INTRODUCTION

Chest radiographs and structured EHR variables are routinely combined in clinical prediction research, and public resources such as MIMIC-CXR and MIMIC-IV make this easy to do at scale [1], [2]. Many of the diagnostic targets in such cohorts are rare, so studies often add a class-imbalance step: random or synthetic oversampling, class weighting or balanced ensembles [3], [4]. Benchmarks that cross these strategies with feature representations and classifiers are attractive because they promise practical guidance: which sampler to use, which modality carries the signal, and whether fusion helps.

Such guidance is only as good as the evaluation protocol. In MIMIC-derived cohorts one patient usually contributes several radiographs. When labels and EHR variables are attached at the patient level, a record-level split places copies of the same patient, with the same label and the same EHR vector, on both sides of the train-test boundary. Record-wise versus subject-wise evaluation is a known pitfall in clinical machine learning [5], and leakage of this kind is among the most common causes of irreproducible results in machine-learning-based science [6], [7]. Its consequences for imbalance benchmarks, however, are rarely quantified.

We study this problem in a case study. We first benchmarked class-imbalance strategies on a published MIMIC CXR–EHR cohort with eight binary targets [8], [9], whose labels come from keyword-matched ICD codes and whose EHR variables were merged per patient, using a random split over radiographs. This initial run gave clear answers: EHR-only models won every target (macro F2 0.737 vs. 0.457 for early fusion and 0.283 for image-only), Random Forest and Extra Trees won every target, and different oversamplers “won” different targets. Auditing the run against the MIMIC source tables showed that all three conclusions follow from patient leakage and from the way the labels were built. Our aim is therefore not to recommend an augmentation strategy for each disease, but to test whether such recommendations survive leakage-and label-aware evaluation, and to identify what improves performance once they do not. Such benchmarks combine three kinds of prior knowledge with different roles: domain rules that map codes to targets, prior diagnoses known at imaging time that can serve as inputs, and representations learned by image pretraining, whose data may include the evaluation images. We ask whether the apparent contributions of clinical history and visual representations survive patient-

Corresponding author: Dang-Khoa Bui, khoa.buidkhoa@hcmut.edu.vn

Senior author: Hoang-Anh Ngo, hoang-anh.ngo@aktech.ai.vn separated, provenance-aware evaluation, and whether image information adds value beyond the diagnostic knowledge available at prediction time.

Our contributions are:

  • Reusable diagnostics for benchmarks on multi-record clinical cohorts, which need no retraining or only trivial baselines: a no-learning EHR lookup table, a seen/unseen-patient split of the test set, an identifier test for tabular features, a reconstruction of the labels from source codes, and a prior-diagnosis baseline.

  • A leakage and label audit of the case study: three leakage channels and an exact reconstruction of the released labels from MIMIC-IV codes showing that several target names do not match the codes behind them (Section III).

  • A leakage-aware re-benchmark with record, patient-grouped, patient-level and calendar-time splits; released, admission-aligned, rule-refined and report-derived (CheXpert) labels; type-aware oversampling; tuned classifiers; and richer image representations (Sections IV–V).

  • A checklist for multimodal imbalance benchmarks (Section VI).

References (31)