Leakage-Free Is Not Confounder-Free: What a Patient-Level Split Cannot Certify About a Medical Imaging Benchmark
Organizations: Department of Theoretical and Applied Sciences, University of Insubria, Varese, Italy · Departamento de Qu´ımica, Facultad de Ciencias Exactas y Naturales, Universidad T´ecnica Particular de Loja, Loja, Ecuador · Joint Research Centre, Ispra, Italy
Abstract
Patient-level splitting is the standard safeguard against subject leakage in medical imaging evaluation, but it cannot remove a confounder that every fold inherits: an acquisition variable aligned with the diagnosis across the whole cohort. We present a five-question audit of a candidate confounder: how well it predicts the diagnosis, whether it can be decoded from the images, whether diagnostic scores depend on it, whether the image adds predictive value beyond it and how much discrimination survives once it is controlled. We apply it to DMR-IR, the public dataset on which most machine-learning results in breast thermography rest. On 236 patients under a strict patient-disjoint protocol, the acquisition date alone predicts malignancy at AUROC 0.980, above every imaging arm we evaluated (best 0.949), because benign and malignant patients were recruited in different years. The acquisition year is decodable from the pixels among patients who share a diagnosis, largely through a global thermal offset outside the breast, yet only one arm, the one pooling every frame of a visit, demonstrably carries it into its diagnostic score. No arm improves on the date on paired folds, and once the date is controlled, discrimination either collapses or survives only on comparisons the benchmark cannot attribute. The dataset contains only eight cross-label same-date pairs, from ten patients, which limits reliable evaluation within recorded acquisition-date groups. A second, independently acquired cohort, whose dominant channel is patient age, reproduces every finding except legibility, from a confounder that is clinically legitimate. Mitigation may suppress such a confounder, but without cross-label acquisition support no evaluation on the benchmark can certify that what remains is pathology.
Figures & tables
| Channel | AUROC [95% CI] |
|---|---|
| Acquisition date alone | 0.980 [0.967, 0.992] |
| Tabular record, all fields | 0.952 [0.921, 0.976] |
| Clinical text, TF–IDF | 0.927 [0.888, 0.960] |
| Thermogram, image-level split | 0.968 [0.945, 0.985] |
| Thermogram, all frames, Swin-T | 0.949 [0.918, 0.973] |
| Thermogram, all frames, ConvNeXt-T | 0.922 [0.882, 0.955] |
| Arm | Diagn. | Era within benign |
|---|---|---|
| AUROC | AUROC [95% CI], | |
| ConvNeXt-T, all frames | 0.922 | 0.636 [0.540, 0.729], 0.005 |
| Swin-T, all frames | 0.949 | 0.593 [0.495, 0.691], 0.063 |
| ConvNeXt-T, frontal, fine-tuned | 0.923 | 0.537 [0.438, 0.630], 0.47 |
| Swin-T, frontal, fine-tuned | 0.920 | 0.502 [0.402, 0.599], 0.97 |
| ConvNeXt-T, frontal, frozen | 0.815 | 0.509 [0.413, 0.610], 0.85 |
| Arm | AUROC | vs. date [95% CI] |
|---|---|---|
| Date alone | 0.980 | – |
| Frontal image alone | 0.811 | [ , ] |
| Date + frontal (fixed) | 0.926 | [ , ] |
| Date + frontal (stacked) | 0.977 | [ , ] |
| ConvNeXt-T all frames alone | 0.920 | [ , ] |
| Date + ConvNeXt-T all fr. (fixed) | 0.967 | [ , ] |
Appendix figures & tables16 assets
Supplementary material from the paper’s appendix.
Appendix
| Encoder / regime | Frames | Diagnosis AUROC | Era AUROC |
|---|---|---|---|
| ConvNeXt-T, frozen | frontal | 0.811 [0.755, 0.864] | 0.813 [0.740, 0.887] |
| ConvNeXt-T, fine-tuned | frontal | 0.923 [0.887, 0.954] | 0.813 [0.740, 0.887] |
| Swin-T, frozen | frontal | 0.872 [0.820, 0.918] | 0.821 [0.748, 0.885] |
| Swin-T, fine-tuned | frontal | 0.920 [0.878, 0.956] | 0.821 [0.748, 0.885] |
| ResNet-50, frozen † | frontal | 0.824 [0.762, 0.880] | 0.823 [0.747, 0.891] |
| ResNet-50, fine-tuned † | frontal | 0.799 [0.734, 0.858] | 0.823 [0.747, 0.891] |
| Arm | Frames | Diagn. | Era within benign |
|---|---|---|---|
| AUROC | AUROC [95% CI], | ||
| ConvNeXt-T, frozen | all fr. | 0.922 | 0.636 [0.540, 0.729], 0.005 |
| Swin-T, frozen | all fr. | 0.949 | 0.593 [0.495, 0.691], 0.063 |
| ConvNeXt-T, fine-tuned | frontal | 0.923 | 0.537 [0.438, 0.630], 0.47 |
| ResNet-50, frozen | all fr. | 0.898 | 0.525 [0.431, 0.627], 0.62 |
| Swin-T, frozen | frontal | 0.872 | 0.524 [0.423, 0.619], 0.62 |
| Encoder | Frontal | All frames | Paired [95% CI] |
|---|---|---|---|
| ConvNeXt-T | 0.509 | 0.631 | [ , ] |
| Swin-T | 0.524 | 0.582 | [ , ] |
| ResNet-50 † | 0.403 | 0.520 | [ , ] |
| Split unit | Analysis unit | AUROC | Contamination |
|---|---|---|---|
| Patient | per patient | 0.922 [0.882, 0.955] | 0.0000 |
| Patient | per frame | 0.881 [0.873, 0.890] | 0.0000 |
| Image | per patient | 0.968 [0.945, 0.985] | 0.9998 |
| Image | per frame | 0.928 [0.922, 0.935] | 0.9998 |
| Arm | Patients | Table 1 | Alone row |
|---|---|---|---|
| Frontal, ConvNeXt-T frozen | 231 | 0.815 | 0.811 |
| All frames, ConvNeXt-T | 236 | 0.922 | 0.920 |
| All frames, Swin-T | 236 | 0.949 | 0.945 |
| Cohort | scored | Confounder | Image AUROC | Size controls | Above CI | |
|---|---|---|---|---|---|---|
| original | 236 | 231 | 0.981 | 0.833 [0.780, 0.882] | – | – |
| overlap | 60 | 58 | 0.720 | 0.544 [0.390, 0.705] | 0.731–0.828 | yes |
| year_balanced | 28 | 28 | 0.556 | 0.393 [0.169, 0.623] | 0.393–0.679 | no |
| days_matched_7 | 20 | 20 | 0.540 | 0.820 [0.606, 0.990] | 0.460–0.820 | no |
| days_matched_30 | 22 | 21 | 0.521 | 0.818 [0.591, 0.981] | 0.405–0.661 | no |
| days_matched_90 | 26 | 25 | 0.503 | 0.526 [0.286, 0.763] | 0.420–0.728 | no |
| Arm | Cohort | Conf. | Image AUROC [95% CI] | Size controls |
|---|---|---|---|---|
| Frontal ConvNeXt-T | original | 0.981 | 0.833 [0.780, 0.882] | – |
| overlap | 0.720 | 0.544 [0.390, 0.705] | 0.731–0.828 ∗ | |
| null ctrl | 0.981 | 0.823 [0.757, 0.879] | 0.834–0.848 | |
| All frames Swin-T | original | 0.981 | 0.950 [0.920, 0.974] | – |
| overlap | 0.720 | 0.757 [0.628, 0.878] | 0.853–0.894 | |
| null ctrl | 0.981 | 0.954 [0.922, 0.977] | 0.939–0.952 |
| Score | All | 180d | 90d | 30d | 7d | Same group |
|---|---|---|---|---|---|---|
| Date (control) | 0.981 ∗ | 0.490 | 0.379 | 0.452 | 0.578 | 0.500 |
| All frames, ConvNeXt-T | 0.920 † | 0.690 ∗ | 0.688 | 0.720 | 0.733 | 0.375 |
| All frames, Swin-T | 0.948 † | 0.779 † | 0.746 ∗ | 0.860 † | 0.911 † | 0.875 |
| Frontal, ConvNeXt-T, fine-tuned | 0.923 † | 0.554 | 0.590 | 0.720 | 0.756 | 0.625 |
| Frontal, Swin-T, fine-tuned | 0.920 † | 0.618 | 0.652 | 0.763 | 0.756 | 0.750 |
| Frontal, Swin-T, frozen | 0.872 † | 0.605 | 0.629 | 0.742 | 0.800 | 0.875 |
| Statistic | Observed | Null median [2.5, 97.5] |
|---|---|---|
| Date groups holding both classes | 3 | 44 [38, 50] |
| Pairs sharing a date group | 8 | 155 [136, 171] |
| Subset | Repr. | AUROC |
|---|---|---|
| Pre-diagnostic fields | Tabular | 0.668 [0.595, 0.737] |
| Care-pathway fields | Tabular | 0.811 [0.753, 0.866] |
| biopsy alone | Tabular | 0.714 [0.639, 0.785] |
| Field presence only | Tabular | 0.555 [0.478, 0.631] |
| All fields | Tabular | 0.952 [0.921, 0.976] |
| Full prompt | Text | 0.927 [0.888, 0.960] |
| Arm | Diagn. | Age within benign | Spearman | Age within |
|---|---|---|---|---|
| AUROC | AUROC [95% CI], | (benign) | malignant | |
| Swin-T, fine-tuned | 0.669 | 0.630 [0.504, 0.760], 0.048 | 0.830 | |
| ConvNeXt-T, fine-tuned ‡ | 0.658 | 0.642 [0.513, 0.765], 0.030 | 0.806 | |
| ConvNeXt-T, fine-tuned | 0.654 | 0.641 [0.510, 0.764], 0.030 | 0.824 | |
| ResNet-50, fine-tuned † | 0.581 | 0.589 [0.455, 0.720], 0.18 | 0.668 | |
| ConvNeXt-T, frozen | 0.535 | 0.501 [0.370, 0.630], 0.99 | 0.633 |
| Cohort | acquisition_days | age_at_visit | body_temp. | menarche |
|---|---|---|---|---|
| original | ||||
| overlap | ||||
| year_balanced | ||||
| days_matched_7 | ||||
| days_matched_30 | ||||
| days_matched_90 |
| Cohort | age | bmi | temperature |
|---|---|---|---|
| original | |||
| overlap | |||
| age_matched_2 | |||
| age_matched_5 | |||
| age_matched_10 | |||
| propensity_clinical |
| Representation | Features | Era AUROC [95% CI] |
|---|---|---|
| Background only | 12 | 0.938 [0.892, 0.976] |
| Whole frame | 12 | 0.924 [0.875, 0.966] |
| Temperature histogram | 33 | 0.899 [0.841, 0.951] |
| Breast region only | 12 | 0.806 [0.729, 0.875] |
| Encoder | Frozen | Fine-tuned | Paired [95% CI] |
|---|---|---|---|
| ConvNeXt-T | 0.953 | 0.945 | [ , ] |
| Swin-T | 0.937 | 0.940 | [ , ] |
Medical Image Benchmarks
Medical image benchmarks compare AI methods on curated clinical images, tasks, and evaluation protocols to measure accuracy, robustness, and clinical usefulness.
See all 381 papers