Automated Batch-Variable Selection for ComBat-Based Radiomic Harmonization

Jose Lozano-Montoya, Gemma Urbanos, Carmen Prieto-de-la-Lastra, Emilio Soria-Olivas, Ana Jimenez-Pastor

TL;DR

When hospitals pool medical scans to train AI models, differences in scanner hardware and settings introduce technical noise ("batch effects") that can masquerade as biology. Researchers usually clean this up using an algorithm called ComBat by guessing which setting to adjust for—like scanner manufacturer—which risks under-correcting or warping the real data. This paper introduces ParsiComBat, a data-driven tool that automatically identifies the minimal set of acquisition parameters causing the noise, knows when to leave clean data alone, and reveals a sobering truth about how much cleaning up technical noise actually helps clinical predictions.

What Problem Does This Paper Address?

In radiomics, we extract thousands of quantitative measurements (texture, intensity, shape) from medical images like CTs and MRIs to predict clinical outcomes, such as tumor stage or survival. The catch? Radiomic features are notoriously sensitive to how the image was taken. A GE scanner using a sharp CT reconstruction kernel produces systematically different numbers than a Siemens scanner using a smooth one.

To pool data across hospitals, researchers "harmonize" features using ComBat, a statistical method borrowed from genomics that aligns feature distributions across batches. However, ComBat requires a human to manually pick the batch variable. Guess one obvious variable (like manufacturer), and you might miss the dominant source of noise (like slice thickness). Correct for every recorded parameter sequentially, and you risk overcorrecting—erasing true biological signals or injecting fake ones. Worse, existing automated extensions either blindly adjust for every variable given or invent opaque "clusters" of settings, and none of them ask a crucial first question: do we even need to harmonize at all?

Methods

While ComBat itself is standard, ParsiComBat wraps it in an automated, parsimonious selection pipeline that chooses which metadata variables to feed into sequential ComBat—or abstains entirely.

It works in a six-step funnel:

  1. Preprocess: Continuous metadata (like echo time) are binned into tertiles; sparse or incomplete variables are dropped.
  2. Rank: Candidate parameters are ranked on raw features using a weighted sum of three statistical measures of batch separation (PERMANOVA pseudo-F, Robust Effect Size Index [RESI], and Average Silhouette Width).
  3. Prune: If two settings are heavily correlated (e.g., vendor-specific kernels and manufacturers, measured via Cramér’s V), the weaker one is dropped to avoid redundancy.
  4. Search & Score: The top $n$ candidates (here, $n=3$) are tested in all possible sequential ComBat orders. Each sequence gets a combined score balancing batch-effect removal ($90\%$ weight) against feature-structure preservation ($10\%$ weight, ensuring feature-to-feature correlations aren't scrambled).
  5. Decide: Only if the winning sequence beats a strict score threshold ($\tau = 0.60$, calibrated via simulations to keep false positives under $5\%$) does ParsiComBat apply it. Otherwise, it abstains.
Overview of study cohorts, the three validation experiments, and the five harmonization strategies compared.

The authors tested ParsiComBat in simulations with injected noise, measured real-world batch removal using an independent metric (kBET rejection rate, where $0$ is well-mixed and $1$ is separated by batch), and trained five ML model families (from Logistic Regression to XGBoost) to test downstream clinical predictions.

Datasets

No new datasets were introduced; the authors evaluated two public collections:

  • NSCLC-Radiomics (CT): $422$ lung cancer patients from a single center scanned across varied hardware ($1,413$ features; $7$ candidate CT settings). Endpoints: cancer stage and 2-year survival.
  • MAMA-MIA (DCE-MRI): Multicenter breast cancer data ($1,365$ features; $8$ candidate MRI settings). Models were trained/harmonized on the ISPY2 subset ($980$ patients) to predict pathological complete response (pCR), and externally validated on Duke ($280$), ISPY1 ($167$), and NACT ($64$).

Key Insights and Ideas

  • Knowing when not to act is a superpower: Applying ComBat when no batch effect exists can fabricate group differences. When ParsiComBat missed a weak simulated batch effect, $99.7\%$ of those misses were safe abstentions rather than harmonizing on the wrong variable.
  • Conventional wisdom picks the wrong culprit: Researchers routinely harmonize CT data by manufacturer. ParsiComBat discovered that reconstruction kernel is the true heavyweight—and because kernels are vendor-specific, fixing kernel alone cleaned up manufacturer differences for free.
  • Harmonization doesn't magically boost clinical AI: Removing massive amounts of scanner noise yielded zero statistically significant improvement in clinical prediction AUC compared to raw, unharmonized features. Why? Final ML models relied on just $3\text{--}11$ predictive features, and technical scanner noise wasn't necessarily correlated with patient outcomes.
  • ComBat hits a wall with MRI physics: In breast MRI, no ComBat strategy could remove the batch effect of magnetic field strength ($1.5\text{ T}$ vs. $3.0\text{ T}$), suggesting field strength alters image features in non-linear ways that simple location-and-scale shifts cannot fix.

Key Results

  • Simulations: Across $21,000$ trials, ParsiComBat identified the true batch variable in $92.9\%$ of positive trials ($99.7\%$ when the effect size RESI $\ge 0.30$) and abstained in $99.2\%$ of null controls ($0.8\%$ false-positive rate).
  • CT Batch Removal: Selecting only reconstruction kernel dropped mean kBET from $0.276$ (Raw) to $0.032$, trouncing Manual manufacturer correction ($0.176$) and AutoCombat ($0.050$), while nearly matching Greedy 6-variable correction ($0.021$).
  • MRI Batch Removal: Selecting slice thickness and manufacturer reduced mean kBET from $0.680$ to $0.325$, beating Manual ($0.395$) and AutoCombat ($0.478$), though trailing Greedy 7-variable correction ($0.265$). Feature correlation structure stayed above $0.979$ across all methods.
  • Clinical Prediction: Across all internal and external cohorts, ROC AUC differences between ParsiComBat and every alternative (including Raw features) ranged from $-0.025$ to $+0.070$, with all Holm-adjusted $p \ge 0.60$.

Limitations and Future Work

  • Metadata dependency: ParsiComBat can only select what is recorded in DICOM headers; $23\%$ of the CT records lacked kernel or voltage tags, leaving unrecorded variations untouchable.
  • Scope of harmonization: Only feature-level ComBat variants were tested, excluding image-level or deep-learning harmonization (like style-transfer GANs).
  • Metrics & Generalizability: The study evaluated only two modalities/cohorts retrospectively and measured model discrimination (AUC) rather than probability calibration, which ComBat can also affect. Confirming these findings across broader modalities and centers remains future work.

Summary updated

BibTeX
@misc{lozanomontoya2026automated,
  author = {Jose Lozano-Montoya and Gemma Urbanos and Carmen Prieto-de-la-Lastra and Emilio Soria-Olivas and Ana Jimenez-Pastor},
  title = {{Automated Batch-Variable Selection for ComBat-Based Radiomic Harmonization}},
  year = {2026},
  eprint = {2611.34618},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.34618},
}
Figure