Abstract
Deep learning models for medical image analysis often fail in clinical deployment due to domain shift from varied acquisition hardware and protocols. We present a comprehensive evaluation of various domain generalization (DG) techniques to mitigate this performance degradation. We evaluate six DG algorithms against a baseline on two distinct tasks using large, multi-institutional datasets: grading prostate cancer aggressiveness from MRI using the ProstateNet dataset and assessing breast density from mammograms using the DMIST dataset, using a leave-one-domain-out protocol. Our results show that DG methods, particularly those that explicitly regularize the learning process, improve out-of-domain generalization, but do not fully close the gap with in-domain performance. On the ProstateNet dataset, the FISH algorithm achieved the highest average out-of-domain AUROC (0.678), a statistically significant improvement over the baseline (0.613). We observed similar trends on the DMIST dataset. These findings underscore the necessity of incorporating DG strategies to develop clinically deployable AI models.
Similar content being viewed by others
Introduction
The application of deep learning to medical image analysis has shown transformative potential across numerous tasks, such as improving diagnostic accuracy in oncology and reducing the inter-observer variability inherent in human interpretation. However, domain shift hampers the transition of these systems from controlled research settings to widespread clinical practice [26, 35, 36].
Domain shift occurs when a model encounters data whose distribution differs from that of the data on which it was trained and often leads to a degradation in performance. In the medical context, this is a practical reality that undermines the reliability and clinical trust in AI systems [12]. The sources of heterogeneity in medical imaging data are diverse and systemic including variations arising from differences in scanner manufacturers and models, acquisition parameters (such as magnetic field strength for magnetic resonance imaging, MRI, or tube current and voltage in X-ray imaging), acquisition protocols, clinical workflows, and patient demographics [25]. These discrepancies manifest as differences in signal intensity, image contrast, noise characteristics, and artifact patterns. A model that fails to generalize may learn to base its predictions on “spurious correlations,” such as scanner-specific artifacts, rather than the underlying features of the disease [37]. This lack of generalizability represents a patient safety risk and is a primary barrier to large-scale clinical adoption.
To address this challenge, domain generalization (DG) methods have emerged as a promising research direction [18]. DG seeks to learn a model from multiple, heterogeneous source domains that can effectively generalize to any unseen target domain, without requiring prior access to data from that new domain [8]. This paradigm is relevant for healthcare, where privacy regulations and logistical barriers often preclude collecting data from a target deployment site for model adaptation [22]. It is important to distinguish DG from domain adaptation (DA), which typically assumes that at least some, often unlabeled, data from the target domain is available for a model adaptation step. DG represents a more challenging but ultimately more practical and scalable solution for real-world clinical deployment, as it prepares models for the “unseen” nature of new clinical environments.
Researchers have proposed a variety of strategies to achieve domain generalization, which we can broadly categorize into data manipulation, feature alignment, or regularization of the learning process [33, 36]. For example, some have proposed deep stacked transformations for data manipulation [38], contrastive learning for feature alignment [21], and linear-dependency regularization at the model training level [19].
Recently, the literature has seen significant progress in addressing domain shift in medical imaging, particularly for segmentation tasks. A substantial body of this work focuses on unsupervised domain adaptation, utilizing techniques such as triple-level feature alignment [4] or reconstruction-driven dynamic refinement [3] to adapt models to new scanners. Moreover, to address data privacy concerns, source-free domain adaptation approaches that use prompt learning have been introduced to adapt source-pretrained models using only unlabeled target data [15]. While effective, DA and source-free DA paradigms inherently assume that it is possible to further train or adapt a model using data from each target domain prior to deployment, which may not be practical in healthcare settings for a range of practical and regulatory reasons.
To circumvent the need for adaptation to target data, specialized multi-source domain generalization (DG) architectures have been proposed, such as domain and content-adaptive convolutions designed to extract domain-invariant features for medical image segmentation [14]. However, while these specialized networks achieve state-of-the-art performance on pixel-level tasks, the effect of architecture-agnostic DG regularization algorithms for classification tasks in multi-center datasets remains unclear. Most evaluations of these approaches focus on natural imaging datasets [11], where domain shift manifests very differently compared to medical images. While specific architectures have been proposed for tasks such as prostate MRI segmentation [23], comprehensive evaluations of generalizable algorithms for classification tasks remain scarce. The two task types may also differ in their exposure to domain shift: segmentation relies heavily on anatomical shape, which is relatively stable across scanners, whereas classification often depends on subtler intensity and texture cues that are more vulnerable to acquisition differences.
Previous comparative studies evaluating these algorithms in medical imaging have yielded mixed results. Korevaar et al. [17] present an evaluation of multiple DG methods on four medical imaging datasets and conclude that none outperform the baseline. Our study distinguishes itself from their work through two key methodological elements. First, we isolate scanner-induced domain shift by defining domains strictly based on hardware parameters (e.g., manufacturer, field strength, and acquisition bit depth) rather than solely by clinical site. Second, we employ a statistical validation framework using pairwise comparisons on aggregated out-of-domain predictions to assess whether regularizations, such as FISH, provide statistically significant improvements over the baseline in clinical diagnostic classification. Furthermore, whereas these prior comparisons define domains by a single criterion, we examine generalization under two complementary domain definitions, scanner hardware and clinical site, on larger multi-center datasets. This constitutes the largest multi-site evaluation of domain generalization for prostate MRI classification to date, spanning 12 institutions, and one of the largest for mammography, spanning 33 sites.
Examples of multi-parametric MRI sequences (from left to right within each triplet: T2-weighted, ADC, DWI) from the six domains defined according to scanner manufacturer and field strength in the ProstateNet dataset, illustrating the visual heterogeneity due to domain shift
Materials and Methods
Datasets
This study uses two non-public, retrospective medical imaging cohorts, ProstateNet and DMIST, to provide a clinically relevant testbed for domain generalization. ProstateNet is governed by the ProCAncer-I consortium, and DMIST is available through the original trial’s data-sharing procedures.
ProstateNet Dataset
The ProCancer-I consortium, an EU-centered group of clinical institutions, research organizations, and commercial entities, compiled the ProstateNet dataset consisting of a diverse collection of prostate MRIs. The dataset available at the time of commencement of this study consisted of 6202 mpMRI studies from 6196 patients across 12 clinical institutions in Europe. Each study includes a T2-weighted (T2w) image, diffusion-weighted images (DWI), and an apparent diffusion coefficient (ADC) map. The data exhibits significant heterogeneity, providing a natural setting to study domain shift. For this work, we define six domains based on a combination of scanner manufacturer and magnetic field strength: GE 1.5T, GE 3.0T, Phillips 1.5T, Phillips 3.0T, Siemens 1.5T, and Siemens 3.0T. MRI has previously been shown to be the medical imaging modality most vulnerable to domain shift [12] due to its complexity and variations in equipment and techniques between manufacturers. Furthermore, the incorporation of highly heterogeneous diffusion-weighted image exacerbates the problem. ProstateNet is therefore a challenging dataset on which to evaluate the performance of domain generalization methods (Fig. 1).
We assessed domain generalization methods applied to the task of prostate cancer aggressiveness prediction. Following previous work [5], we formulated this as a binary image classification task differentiating between clinically significant (International Society of Urological Pathology grade 2 or higher) and non-clinically significant (grade 1) cancers using pathology-confirmed labels.
DMIST Dataset
A second cohort for breast density classification was drawn from the Digital Mammography Imaging Screening Trial (DMIST) dataset, which consists of digital mammograms from 18,694 patients across 33 clinical sites. We used this dataset to assess domain generalization applied to the task of breast density classification, a four-class classification problem. A single radiologist labeled each image with one of four breast density classes: (a) almost entirely fatty, (b) scattered fibroglandular densities, (c) heterogeneously dense, or (d) extremely dense in accordance with the American College of Radiology’s BI-RADs reporting guidelines. Following challenges with domain shift demonstrated in previous work [2], we divided the dataset into three domains representing three distinct acquisition settings: 12-Bit Monochrome 1, 12-Bit Monochrome 2, and 14-Bit Monochrome 1.
Diagram of the Leave-One-Domain-Out (LODO) cross-validation protocol. For each fold, a model is trained on data from all but one domain. The model’s generalization capability is then evaluated on the held-out, unseen domain (Out-of-Domain), while its baseline performance is assessed on the source domains (In-Domain). This process is repeated until every domain has served as the test set
Experimental Design
As described in the “Datasets” section, domains in the primary analysis were defined according to acquisition-related scanner characteristics: ProstateNet domains correspond to scanner manufacturer and magnetic field strength, whereas DMIST domains correspond to bit depth and monochrome mode. The Leave-One-Domain-Out protocol described below operates on these predefined acquisition-based domains, so that generalization is assessed across scanner-related acquisition differences. As a secondary analysis (“Baseline Performance Under Clinical Site-Based Domain Shift”), we also evaluated a site-based domain definition, where each clinical institution is treated as a domain to examine model behavior under broader institutional variation.
We used a Leave-One-Domain-Out (LODO) cross-validation protocol to evaluate the domain generalization methods. For a dataset with N domains, we trained N separate models with each having \(N-1\) source domains used for training and a single held-out target domain. Figure 2 illustrates this process. Under the primary hardware-stratified configuration, we evaluated two aspects of model performance:
-
Out-of-Domain (OOD): Performance on the held-out target domain. This is the primary measure of generalization.
-
In-Domain: Average performance across the \(N-1\) source domains used for training. This provides an important point of comparison since an ideal domain generalization method would result in OOD performance at the same level as in-domain performance.
We quantified binary classification performance for ProstateNet using Area Under the Receiver Operating Characteristic Curve (AUROC) and multi-class classification performance on DMIST using Cohen’s Kappa (\(\kappa \)). To assess the statistical significance of performance differences on ProstateNet, a pairwise comparison analysis was performed. First, all out-of-domain (OOD) predictions from the six LODO folds were concatenated into a single aggregated dataset. Subsequently, DeLong’s test was employed to compare the AUROC of all model pairs on this aggregated data. As this procedure entails multiple comparisons (28 pairs), an adjustment was required to control the family-wise error rate. Therefore, the resulting p-values were adjusted using the Holm-Bonferroni correction [13]. Only corrected p-values below 0.05 were considered statistically significant.
Illustration of the strong data augmentation pipeline. The top row shows the original multi-parametric MRI sequences (T2-weighted, ADC, DWI). The bottom row shows one possible outcome after applying the stochastic augmentation pipeline, which includes spatial (affine, flip) and intensity (noise, contrast, bias field) transformations
For the DMIST dataset, which involves a multi-class classification task, a different statistical test was required. We performed pairwise comparisons using McNemar’s test with continuity correction. This test, based on the chi-squared distribution, is appropriate for comparing the performance of two classifiers on the same set of test items. Similar to the ProstateNet analysis, all out-of-domain predictions from the three LODO folds were aggregated. The resulting p-values from the 28 pairwise comparisons were then adjusted using the Holm-Bonferroni correction to control the family-wise error rate, with corrected p-values below 0.05 considered significant.
As a secondary analysis of multi-institutional domain shift, we extended this design to a clinical site-based validation framework using the ProstateNet cohort. This analysis defines domains according to the geographical and institutional origin of the data, capturing combined differences in scanner hardware, acquisition protocols, and regional patient demographics. We used a 12-fold Leave-One-Site-Out cross-validation scheme in which each of the 12 European clinical institutions served once as the independent OOD test set, while the remaining 11 sites were pooled for centralized baseline training.
ProstateNet: Preprocessing and Augmentation
We applied dataset-specific preprocessing pipelines to minimize variability unrelated to the domain shift under investigation. For the ProstateNet cohort, we followed the steps outlined by Cleveland et al. [5]. Briefly, we used a preprocessing pipeline consisting of orientation standardization, resampling to \(0.4 \times 0.4 \times 1.5\) mm, cropping to a bounding box centered on the segmented prostate region, and intensity normalization.
To enhance model generalization, we incorporated two distinct data augmentation strategies for this dataset. The baseline model was trained with a Standard Augmentation pipeline. This pipeline applied transformations stochastically, beginning with randomly shifting (jittering) the center of the cropping window by up to [4, 4, 1] voxels. Spatial transformations included random flipping along the left-right axis (probability 0.5) and random affine transformations (probability 0.9) with isotropic scaling (up to 20%), shearing (up to 0.1), and translations (up to [20, 20, 2] voxels). Intensity transformations, each applied with an independent probability of 0.2, consisted of random Gaussian noise (std=0.2), Gaussian smoothing, Gaussian sharpening, random contrast adjustments (gamma 0.5–2.0), and simulated low-frequency bias field artifacts [31].
As an enhanced baseline, we evaluated a Strong Augmentation pipeline, which employs more aggressive, domain-generalization-oriented transformations as illustrated in Fig. 3. In this pipeline, all augmentations were applied with a probability of 1.0. Spatial transformations were intensified to include flipping on all three axes and more aggressive affine parameters: scaling (up to 30%), shearing (up to 0.2), translations (up to [30, 30, 5] voxels), and rotations (up to 0.1 radians). Intensity augmentations were similarly intensified, using higher-range Gaussian noise (std=0.333), sharpening (alpha 20.0−30.0), contrast adjustment (gamma 0.5−4.5 with image inversion enabled), and a more complex bias field simulation (degree 4). Crucially, this pipeline also introduced five new transformations to simulate scanner-induced artifacts: posterization (reducing bits to 2), line corruption, wave artifacts (max strength 0.2), random downsampling (up to 7.5 mm voxel size), and gamma scaling (max gamma 1.0).
DMIST: Preprocessing and Augmentation
For the DMIST dataset, we ensured a channel-first dimension and resized all images to a uniform resolution of [512, 400] pixels using bilinear interpolation. This dataset also used two augmentation levels. The Standard Augmentation pipeline for DMIST included spatial and intensity transformations. Spatial transforms included horizontal flipping (probability 0.5) and affine transformations (probability 0.75) with rotation (up to 0.25 radians), scaling (up to 20–25%), shearing (up to 0.1), and translation (up to 10 pixels). Intensity transforms, applied with probabilities between 0.1 and 0.4, included Gaussian noise (std 0.033), smoothing (sigma 0.25–0.75), sharpening (alpha 10–30), and contrast adjustment (gamma 0.7–1.5), with a small chance of image inversion.
The Strong Augmentation pipeline for DMIST was significantly more aggressive. It introduced vertical flipping (probability 0.5), more extreme affine transforms (probability 0.9, rotation 0.5, scale 0.3, shear 0.2, translate 20), and added random grid distortion (probability 0.5). Intensity transforms had higher probabilities (0.5–0.6) and wider ranges, such as Gaussian noise (std 0.05), smoothing (sigma 0.5–1.5), sharpening (alpha 10–50), and contrast adjustment (gamma 0.6–1.7). This pipeline also added new transforms: random coarse dropout (8 holes, 32px size, prob 0.5) and random intensity scaling (factor 0.3, prob 0.5).
Domain Generalization Methodologies
As introduced in the “Introduction” section, DG strategies can be broadly categorized into data manipulation, feature alignment, and learning-process regularization. To provide a representative evaluation, we selected six complementary methods that span these three categories. We evaluated a set of representative DG algorithms against a Baseline model. This baseline model minimizes the standard cross-entropy loss across all source domains and was trained using the standard augmentation pipeline. We compared this against several DG-specific methods.
Strong Augmentation
This serves as an enhanced baseline, using the extensive, domain-generalization-oriented augmentation pipeline described previously to assess the impact of data augmentation alone.
CORAL (Correlation Alignment)
This is a feature alignment method that minimizes the difference between the second-order statistics (covariance) of feature distributions from different source domains [30].
MMD (Maximum Mean Discrepancy)
This is a non-parametric feature alignment method that minimizes the MMD, a statistical distance metric, between the feature distributions of source domains [20].
DANN (Domain-Adversarial Neural Network)
This feature alignment method introduces a domain classifier trained adversarially to make the main feature extractor produce domain-invariant features [9].
FISH
This is a model-level regularization method that enforces consistency in the learning dynamics by penalizing conflicting gradients from different domains [29].
MixStyle
This feature-space augmentation technique probabilistically mixes feature statistics (mean and standard deviation) between instances from different domains during training [39].
Experimental Setup
We implemented all models in PyTorch 1.13.1 and MONAI 1.3.0 [1, 28]. We based the network architecture on a 3D dense convolutional network [16]. We trained all models for 60 epochs using the AdamW optimizer with an initial learning rate of \(1 \times 10^{-4}\) and a weight decay of \(4 \times 10^{-5}\). We reduced the learning rate by a factor of 10 after 45 epochs. We trained the baseline and strong augmentation models using only this setup.
Regarding hyperparameter selection, values were explicitly chosen based on the standard recommendations established in their respective foundational works to ensure reproducibility. For CORAL and MMD, we balanced the domain alignment loss against the main task loss using a trade-off weight \(\lambda \) of 0.1, following the standard formulation of these methods as auxiliary regularizers [20, 30]. The DANN model utilized a domain classifier with two hidden layers, and we annealed its gradient reversal layer weight from 0.0 to 1.0 according to the schedule proposed in the original work [9]. For FISH, we set the gradient penalty \(\lambda _{fish}\) to 0.01, consistent with its role as a small regularization term that encourages gradient agreement without overpowering the primary classification loss [29]. Finally, we applied MixStyle after the first two convolutional blocks of the encoder with a mixing probability \(p = 0.5\), matching the probabilistic style-mixing design introduced in the original method [39].
To prevent data leakage, the held-out target domain (out-of-domain) was excluded from all training and tuning phases. Model selection used a validation split drawn only from the aggregated source domains. This in-domain validation set was used for early stopping and for monitoring hyperparameter stability, while the reported out-of-domain results were computed only on domains not used during training or tuning.
Results
ProstateNet Dataset Performance
Quantitative evaluation on the ProstateNet dataset revealed that most DG methods provided an improvement in out-of-domain (OOD) performance compared to the baseline. Table 1 presents the detailed results of the leave-one-domain-out cross-validation. The baseline model achieved an average OOD AUROC (based on aggregated predictions) of 0.613, which increased to 0.639 with the addition of strong data augmentation. Among the dedicated DG techniques, FISH, the gradient-based regularization method, achieved the highest average OOD AUROC of 0.678. The distribution alignment method CORAL yielded the second-best average OOD AUROC of 0.657.
Statistical analysis using DeLong’s test [6] with Holm-Bonferroni correction on the aggregated OOD predictions confirmed the significance of these findings. The improvement of FISH was statistically significant when compared to the baseline (\(p = 0.003\)) and MixStyle (\(p = 0.019\)). However, after correction, the differences between FISH and other methods, such as strong augmentation (\(p = 0.435\)) and DANN (\(p = 0.333\)), were not statistically significant. Notably, while FISH outperformed CORAL numerically, the difference was not significant (\(p = 1.000\)). The analysis also confirmed that the modest gain from strong augmentation over the baseline was not significant (\(p = 1.000\)).
To examine the consistency of these findings across held-out domains, we also performed pairwise DeLong’s tests within each LODO fold separately, with Holm-Bonferroni correction applied across the 28 pairwise comparisons per fold. At the per-fold level, FISH was statistically superior to every other evaluated method in 5 of the 6 held-out domains. The exception was the Siemens 3.0T fold, where FISH did not reach significance against five of the six comparators (baseline, \(p=0.222\); CORAL, \(p=0.143\); DANN, \(p=0.167\); MMD, \(p=0.169\); MixStyle, \(p=0.215\)), with strong augmentation being the only significant comparison in that fold (\(p=0.016\)). The concentration of non-significant results within a single fold suggests that the Siemens 3.0T domain may behave differently from the others, rather than a uniform absence of effect. The difference between the aggregated and per-fold results may relate to the aggregated DeLong test pooling predictions from six separately trained models, which is not the single-classifier setting the test assumes, and may increase the variance of the AUROC estimate. The per-fold analysis thus provides a complementary, within-fold perspective on these comparisons.
The visualization in Fig. 4 illustrates the performance gap between in-domain training distributions and the unseen OOD test set for each method. The UMAP visualization of the feature embeddings (Fig. 5) provides a qualitative explanation for these results, showing clear clustering by domain for the baseline, which visually confirms the presence of a domain shift.
Furthermore, the UMAP visualization of the feature embeddings (Fig. 5) provides a qualitative explanation for these quantitative results. The baseline model exhibits distinct clustering by scanner domain, confirming that the network relies on domain-specific features (spurious correlations) rather than disease pathology. In contrast, effective DG methods such as FISH and CORAL lead to more integrated embeddings where domains overlap, suggesting the successful learning of domain-invariantrepresentations.
In-Domain vs. Out-of-Domain Performance (AUROC) on the ProstateNet dataset for each held-out domain. The box plots show the distribution of performance for in-domain data, while the diamonds represent the performance on the out-of-domain test set. This visualization highlights the generalization gap and the variance in performance across different methods
UMAP visualization of feature embeddings for all evaluated methods on the ProstateNet dataset. Each plot represents the feature space distribution, colored by domain. A successful DG method should show increased overlap between domains compared to the baseline, indicating the learning of domain-invariant features
Decision curve analysis comparing Baseline and FISH on the cancer aggressiveness task using aggregated out-of-domain predictions. The y-axis shows net benefit per 100 patients relative to the “treat all” (biopsy all) strategy; the orange dashed “treat none” (no biopsy) curve serves as the second reference. Shaded bands represent bootstrap 95% confidence intervals. The green region marks the threshold range (0.21–0.54) over which at least one of the two models provides positive net benefit relative to both reference strategies
Clinical Utility Analysis
We complemented the AUROC-based comparisons with a decision curve analysis (DCA) [32], computed on the aggregated out-of-domain predictions for the baseline and FISH models on the cancer aggressiveness task. For this task, treatment corresponds to referral for biopsy, so the analysis weighs the benefit of detecting clinically significant cancer against the cost of unnecessary biopsies. DCA reports net benefit per 100 patients across a range of probability thresholds, accounting for the threshold-implied trade-off between true positives and false positives. We report net benefit relative to a “treat all” (biopsy all) reference and include the “treat none” (no biopsy) reference as a second comparison, with bootstrap 95% confidence intervals.
Figure 6 shows the resulting curves. Within the threshold range where at least one of the two models provides positive net benefit relative to both reference strategies (0.21–0.54), FISH provides positive utility across the full range (0.21–0.54), while the baseline provides positive utility only for a subset (0.30–0.49). At sensitivity-oriented operating points (thresholds 0.21–0.30), FISH is the only model among the two that adds utility over default strategies, with an estimated net benefit of approximately 2–4 additional true positives per 100 patients relative to “treat all”. At higher thresholds (above 0.40), both models converge in net benefit, and the difference between them narrows.
The 95% confidence intervals of Baseline and FISH overlap throughout most of the utility range, so the per-threshold net benefit advantage of FISH cannot be claimed as statistically significant from this analysis alone. The pattern is nonetheless consistent with the AUROC and per-fold analyses reported above: FISH provides a modest but more consistent signal than the baseline across operating points relevant for clinical decision-making.
Augmentation Component Ablation
We assessed the contribution of individual components of the strong augmentation pipeline through a leave-one-out ablation of four augmentations introduced in that pipeline: posterization, line corruption, wave artifact simulation, and gamma scaling. Posterization and gamma scaling act on image intensity, whereas line corruption and wave artifact simulation reproduce structural scanner artifacts. For each configuration, we removed a single augmentation from the full pipeline while leaving all spatial and standard intensity transformations unchanged, and we retrained the model under identical hyperparameters across all six LODO folds of the cancer aggressiveness task. Random downsampling was kept fixed in every configuration to preserve voxel-resolution comparability across runs.
Table 2 summarizes the per-domain results, with each ablated configuration compared against the strong augmentation row reproduced from Table 1 (average OOD AUROC 0.635). Removing posterization showed the largest decrease, reducing the average OOD AUROC to 0.603 (−0.032; per-domain range −0.024 to −0.041). Removing gamma scaling reduced it to 0.613 (−0.022; range −0.014 to −0.030). Removing line corruption and wave artifact simulation produced marginal differences of −0.007 and −0.004, respectively, which did not reach statistical significance after Holm-Bonferroni correction (DeLong’s test on aggregated predictions, line \(p=0.182\), wave \(p=0.341\)).
The ranking of these effects was consistent across all six held-out domains, with posterization and gamma scaling showing the largest reductions in every domain. These results indicate that, among these augmentations, the intensity-based transformations contribute more to the pipeline’s out-of-domain performance than the structural artifact simulations, the latter producing only marginal differences when removed.
Baseline Performance Under Clinical Site-Based Domain Shift
To evaluate model vulnerability when confronting raw institutional variability rather than controlled hardware strata, we analyzed the true 12-fold site-based cross-validation protocol for the cancer aggressiveness task. The 12 clinical institutions participating in the ProCAncer-I consortium represent diverse geographical locations across Europe (e.g., the Netherlands, the UK, Italy, Spain) and exhibit significant data imbalance, ranging from large-volume centers (with \(N=1,905\) scans) to smaller regional sites (with \(N=78\) scans).
Table 3 reports the performance of the standard centralized baseline alongside two representative domain generalization methods, CORAL and FISH, across all 12 institutions. The baseline achieves a robust average In-Domain AUROC of 0.734, indicating stable learning when source data are pooled. However, when evaluating OOD generalization on the held-out institutions, performance dropped across all sites, with an average OOD AUROC of 0.597 and an average generalization gap of 0.137. The largest decrease was observed in smaller sites: at UPI (\(N=78\)), baseline OOD AUROC falls to 0.540. This consistent performance drop provides empirical evidence that institutional multi-center heterogeneity introduces a critical domain shift that standard centralized empirical risk minimization fails to handle.
In contrast to the clear gains observed under the primary hardware-stratified analysis (“ProstateNet Dataset Performance”), both DG methods provide only modest numerical improvements under the site-based protocol. CORAL raises the average OOD AUROC from 0.597 to 0.606 and FISH to 0.614, narrowing the generalization gap by less than 0.025 in either case. Applying DeLong’s test with Holm-Bonferroni correction to the aggregated OOD predictions (\(N=5{,}302\)), neither improvement reaches statistical significance compared to the baseline (CORAL, \(p=0.214\); FISH, \(p=0.087\)), nor does FISH significantly differ from CORAL (\(p=0.638\)). No single method dominated across institutions: FISH achieved the best OOD AUROC at 6 of the 12 sites, CORAL at 4, and the baseline at the remaining 2 (HSM and IPC). This site-level inconsistency reinforces the absence of a clear ranking among the three approaches and is in line with the non-significant overall differences reported above. The per-site pattern is also informative at the extremes: at the smallest and most clinically idiosyncratic site (UPI), OOD AUROC rises from 0.540 to 0.550 with CORAL and 0.570 with FISH, well below the consistency of gain observed on the hardware-stratified domains. This dilution of effect is consistent with the interpretation that institutional shift compounds variations in hardware, acquisition protocols, and patient demographics and is therefore harder to mitigate with current DG techniques than the more controlled, single-factor hardware shift. These findings echo the conclusion of Korevaar et al. [17] that DG methods evaluated under purely site-based domain definitions may fail to surpass a well-tuned baseline, and underscore the value of explicit, single-factor domain isolation when characterizing where DG provides a reliable benefit.
DMIST Dataset Results
To validate the findings from the prostate MRI cohort, we performed the same experiments on the DMIST mammography dataset. Table 4 summarizes the results, which show a consistent trend. The baseline model achieved an average OOD Cohen’s Kappa score of 0.5045. While most methods hovered near this baseline, FISH again provided the most substantial improvement, reaching an average OOD Kappa of 0.5473, followed by MixStyle at 0.5257. This consistency across a different imaging modality, clinical task, and dataset composition reinforces the observation that regularizing the learning dynamics is an effective strategy for domain generalization in medical imaging.
To confirm these observations, we performed a statistical analysis using McNemar’s [24] test with Holm-Bonferroni correction on the aggregated OOD predictions. The analysis showed that the superior performance of FISH was statistically significant compared to every other method evaluated, including the baseline (\(p < 0.001\)), strong augmentation (\(p < 0.001\)), CORAL (\(p < 0.001\)), and the second-best method, MixStyle (\(p < 0.001\)).
Discussion
This study provides a comparative analysis of several domain generalization techniques to address the challenge of scanner-induced domain shift in medical imaging. Our findings demonstrate that explicitly accounting for domain heterogeneity during training is essential for developing models that we can deploy in diverse clinical environments. The standard baseline approach showed significant performance loss on OOD data, a finding consistent with a growing body of literature that highlights the brittleness of models trained on pooled multi-site data without explicit generalization mechanisms [37]. Our analysis confirmed that while intensive data augmentation offered a marginal benefit, this suggests that simple augmentations may be insufficient and that more advanced methods aimed specifically at domain generalization may be required for substantial gains [27, 38].
The performance of the FISH algorithm points to the efficacy of its underlying principle. By penalizing conflicting gradients between domains, FISH encourages the optimization process to converge to a solution that is optimal on average and beneficial for all source domains. This mechanism appears to guide the model towards learning more fundamental representations encoding relevant imaging features with less entanglement with domain-specific artifacts. This aligns with other studies that have found regularization of the learning process to be a method for DG in medical contexts [7, 19]. A surprising finding is that, while it was originally proposed as a domain-generalization method, FISH also significantly improved in-domain performance, suggesting that it is a generally useful method when training models across multiple disparate domains.
The success of distribution alignment methods, particularly CORAL, reinforces the hypothesis that a component of domain shift lies in the statistical properties of the feature space. While the aggregated comparison did not show a significant difference between CORAL and FISH, the per-domain analysis (“ProstateNet Dataset Performance”) found FISH ranking above CORAL in 5 of 6 individual folds. Among the distribution-alignment methods, CORAL performed best, supporting the alignment of second-order statistics as a useful strategy for this problem. Its stable improvement suggests that harmonizing feature variance is a valuable approach. The adversarial approach of DANN, while also beneficial, may be more challenging to optimize, which could explain its more modest improvement. Particularly in mammography, recent work has shown success with contrastive learning approaches to learn domain-invariant features, aligning with our findings that feature-space methods are effective [10, 21, 34].
The inconsistent results of MixStyle highlight a subtlety in feature-space augmentation. The poor performance of the random-mixing variant implies that arbitrary combinations of feature statistics may generate unrealistic feature representations that are out of distribution for any real-world domain, thereby confusing the learning process.
Our finding that specific learning process regularizations can provide measurable benefits under scanner-induced domain shift offers a counterpoint to some prior comparative evaluations in medical imaging. Notably, Korevaar et al. [17] evaluated several DG methods and concluded that none reliably surpassed the standard baseline. This divergence in outcomes highlights the impact of experimental design on evaluating algorithmic performance. While their evaluation focused primarily on model selection vulnerabilities across institutional sites, our protocol establishes explicit domain boundaries using a combination of clinical sites and specific hardware configurations. Furthermore, by executing pairwise statistical testing on aggregated out-of-domain predictions, we are able to detect statistically significant improvements, such as those demonstrated by FISH, that might otherwise be obscured in non-corrected or site-only multi-center analyses.
This architectural and algorithmic resilience is further contextualized by our secondary institutional site baseline. When domains are defined strictly by individual hospital sites rather than isolated hardware configurations, the baseline model’s OOD degradation (an average AUROC drop of 0.137, falling to 0.597) mirrors the behavior observed in our primary scanner-stratified experiments. Furthermore, the extreme performance collapse observed in our smallest test sites (e.g., UPI) underscores the fragility of evaluating models strictly on local institutional distributions. This cross-experimental consistency demonstrates that whether domain shift is isolated by the manufacturer or encountered as a composite, real-world institutional footprint, conventional training inevitably overfits to local parameters.
Under site-based shift, the DG methods that improved significantly under hardware shift produced only modest, non-significant changes (CORAL, \(+0.009\) OOD AUROC, \(p=0.214\); FISH, \(+0.017\) OOD AUROC, \(p=0.087\) after Holm-Bonferroni correction). A site bundles together many sources of variation, including patient demographics and labeling conventions, alongside the acquisition differences captured by the hardware-based definition. The alignment objectives used by CORAL and FISH appear better suited to these simpler imaging characteristics than to the compounded variation that separates one institution from another. This is consistent with Korevaar et al. [17]: DG provides clearer gains when the dominant axis of shift is isolated, as in the hardware-stratified protocol, and attenuates when domains are defined by institution. For clinical translation, hardware-aware DG should therefore be viewed as one component of a broader strategy for handling multifactorial shift.
An observation from our experiments is the persistent “generalization gap” between in-domain and OOD performance, which we observed for all methods. Although techniques like FISH improved both metrics, indicating they learned a more potent representation overall, no method was able to achieve the same level of performance on an unseen domain as it did on the domains it was trained on. This suggests that current DG methods partially mitigate but do not fully eliminate the effects of domain shift, a known open challenge in the field [33, 36].
The persistent gap likely reflects a structural limitation of statistical DG: these methods can only align variation that is present across the source domains used for training. With six hardware configurations sampled here, the training distribution covers a substantial but not exhaustive portion of the acquisition variability encountered at deployment. A target distribution that lies outside this range receives, by construction, weaker regularization. Increasing the diversity of source domains is therefore likely to narrow the remaining gap, though not to close it entirely.
The clinical relevance of the observed gains should be interpreted cautiously. The increase in average OOD AUROC from 0.613 (baseline) to 0.678 (FISH) on the cancer aggressiveness task corresponds to roughly an 11% relative improvement, but a change in AUROC does not translate directly into clinical benefit. The practical value of the model depends on the operating point selected, the relative cost of false positives and false negatives, and the calibration of the predicted probabilities, which determines whether a fixed decision threshold yields the intended sensitivity and specificity at a new site. At an operating point that prioritizes sensitivity, this AUROC difference may shift the balance between detection of clinically significant cancers and unnecessary follow-up procedures, such as biopsies. Our decision curve analysis (“Clinical Utility Analysis”) complements the AUROC comparison by accounting for the relative cost of false positives and false negatives that would lead a user to choose a given threshold, and shows that FISH provides positive net benefit across a wider range of clinically relevant thresholds than the Baseline, including sensitivity-oriented operating points where the Baseline does not. At the same time, the absolute AUROC of 0.678 remains below the range typically considered sufficient for standalone clinical use (\(>0.80\)), supporting the use of such models as decision-support tools rather than primary diagnostic systems. We therefore interpret these findings as evidence that DG-based regularization may contribute to clinically deployable prostate-MRI classifiers, but further improvement and per-domain calibration assessment are needed before standalone deployment could be considered.
Computational cost has little bearing on deployment here. All methods share the same architecture and inference path, so inference latency and memory at deployment are identical; they differ only in training cost, which is paid once by the developer and is modest for the feature-alignment methods and larger for FISH. Method selection can therefore be guided by generalization performance rather than deployment-side compute.
This study has limitations. We based our domain definitions on scanner manufacturer and field strength, which, while a primary source of variation, does not encompass all potential sources of domain shift, such as reconstruction algorithms or patient population differences. Furthermore, we evaluated a representative but not exhaustive set of DG algorithms. Nonetheless, our findings provide an empirical and statistical basis for selecting DG strategies for medical imaging applications.
Conclusions
The clinical translation of AI models in medical imaging depends on their ability to perform reliably across the range of acquisition settings found in clinical practice. Our results confirm that standard training is insufficient under scanner-induced domain shift and that domain generalization methods, particularly learning-process regularization (FISH) and feature-distribution alignment (CORAL), can improve out-of-domain performance. These gains were statistically significant under a controlled, hardware-stratified domain definition, but attenuated under a composite site-based definition, and the absolute performance remained below the range typically required for standalone clinical use. Therefore, we recommend that the development of clinical AI models should move beyond standard training and incorporate principled DG strategies as a standard practice.
Future work should focus on several key areas. First, the development of hybrid DG methods that combine the strengths of different approaches, such as integrating the gradient consistency of FISH with the explicit feature alignment of CORAL, may yield further performance gains. Second, research is needed to understand the theoretical limits of domain generalization and to what extent the observed generalization gap can be closed. Finally, future studies should explore the impact of DG methods on predictive accuracy, interpretability, and fairness, ensuring that models generalize well and do so for the right clinical reasons across all domains and patient subgroups.
Data Availability
We obtained the ProstateNet and DMIST datasets used in this study from private, multi-institutional consortia; they are not publicly available due to patient privacy regulations. The process for requesting access to the data can be initiated through the ProCAncer-I consortium for ProstateNet and the American College of Radiology for DMIST, subject to data use agreements.
References
M Jorge Cardoso, Wenqi Li, Richard Brown, et al. Monai: An open-source framework for deep learning in healthcare. arXiv preprint arXiv:2211.02701, 2022.
Ken Chang et al. Generalizing deep learning for medical image analysis on unseen sites: A survey. arXiv preprint arXiv:2002.02450, 2020.
Ziyang Chen, Yongsheng Pan, and Yong Xia. Reconstruction-driven dynamic refinement based unsupervised domain adaptation for joint optic disc and cup segmentation. IEEE Journal of Biomedical and Health Informatics, 27(7):3537–3548, 2023. https://doi.org/10.1109/JBHI.2023.3266576.
Ziyang Chen, Yongsheng Pan, Yiwen Ye, Zhiyong Wang, and Yong Xia. Trila: Triple-level alignment based unsupervised domain adaptation for joint segmentation of optic disc and optic cup. IEEE Journal of Biomedical and Health Informatics, 28(9):5497–5508, 2024. https://doi.org/10.1109/JBHI.2024.3406447.
Mason C. Cleveland, Dagoberto Pulido-Arias, Jay Patel, Zhewei Wang, Yu Leng, Tiago Filipe Goncalves, Maggie Yao, Albert E. Kim, Daniele Regge, Kostas Marias, Manolis Tsiknakis, Henkjan Huisman, Nikolaos Papanikolaou, The ProCAncer-I Consortium, Christopher P. Bridge, and Jayashree Kalpathy-Cramer. Assessing federated learning for prostate cancer mri analysis in the international procancer-i consortium, 2025.
Elizabeth R DeLong, David M DeLong, and Daniel L Clarke-Pearson. Comparing the areas under two or more correlated receiver operating characteristic curves: a nonparametric approach. Biometrics, pages 837–845, 1988.
Qi Dou et al. Domain generalization for medical image analysis with meta-learning. In International Conference on Medical Image Computing and Computer-Assisted Intervention, pages 559–568. Springer, 2019.
Chelsea Finn. Lecture slides: Domain generalization. cs330: Deep multi-task and meta learning, 2022.
Yaroslav Ganin et al. Domain-adversarial training of neural networks. The journal of machine learning research, 17(1):2096–2030, 2016.
Lidia Garrucho, Kaisar Kushibar, Socayna Jouide, Oliver Diaz, Laura Igual, and Karim Lekadir. Domain generalization in deep learning based mass detection in mammography: A large-scale multi-center study. Artificial Intelligence in Medicine, 132:102386, 10 2022. ISSN 0933-3657. https://doi.org/10.1016/j.artmed.2022.102386.
Ishaan Gulrajani and David Lopez-Paz. In search of lost domain generalization. arXiv preprint arXiv:2007.01434, 2020.
Brian Guo, Darui Lu, Gregory Szumel, Rongze Gui, Tingyu Wang, Nicholas Konz, and Maciej A. Mazurowski. The impact of scanner domain shift on deep learning performance in medical imaging: an experimental study, 2024. URL https://arxiv.org/abs/2409.04368.
Sture Holm. A simple sequentially rejective multiple test procedure. Scandinavian journal of statistics, pages 65–70, 1979.
Shishuai Hu, Zehui Liao, Jianpeng Zhang, and Yong Xia. Domain and content adaptive convolution based multi-source domain generalization for medical image segmentation. IEEE Transactions on Medical Imaging, 42(1):233–244, 2023. https://doi.org/10.1109/TMI.2022.3210133.
Shishuai Hu, Zehui Liao, and Yong Xia. Source-free domain adaptation using prompt learning for medical image segmentation. Pattern Recognition, 171:112290, 2026. ISSN 0031-3203. https://doi.org/10.1016/j.patcog.2025.112290. URL https://www.sciencedirect.com/science/article/pii/S0031320325009513.
Gao Huang, Zhuang Liu, Laurens Van Der Maaten, and Kilian Q Weinberger. Densely connected convolutional networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 4700–4708, 2017.
Steven Korevaar, Ruwan Tennakoon, and Alireza Bab-Hadiashar. Failure to achieve domain invariance with domain generalization algorithms: An analysis in medical imaging. IEEE Access, 11:39351–39372, 2023.
Chenxin Li, Xin Lin, Yijin Mao, Wei Lin, Qi Qi, Xinghao Ding, Yue Huang, Dong Liang, and Yizhou Yu. Domain generalization on medical imaging classification using episodic training with task augmentation. Computers in Biology and Medicine, 141:105144, 2 2022. ISSN 0010-4825. https://doi.org/10.1016/j.compbiomed.2021.105144.
Haoliang Li, Yufei Wang, Renjie Wan, Shiqi Wang, Tieling Li, and A. Kot. Domain Generalization for Medical Imaging Classification with Linear-Dependency Regularization. Neural Information Processing Systems, 2020.
Ya Li et al. Domain generalization with adversarial feature learning. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 5079–5088, 2018.
Zheren Li, Zhiming Cui, Sheng Wang, Yuji Qi, Xi Ouyang, Qitian Chen, Yuezhi Yang, Zhong Xue, Dinggang Shen, and Jie-Zhi Cheng. Domain Generalization for Mammography Detection via Multi-style and Multi-view Contrastive Learning, pages 98–108. Springer International Publishing, 2021. ISBN 9783030872335.
Y Liu et al. Federated learning in medical imaging: A systematic review. Frontiers in Oncology, 11:775858, 2021.
Ye Lu, Xiaohan Xing, and Max Q.-H. Meng. Unseen domain generalization for prostate mri segmentation via disentangled representations. In 2021 IEEE International Conference on Robotics and Biomimetics (ROBIO), pages 1986–1991. IEEE, 2021. https://doi.org/10.1109/ROBIO54168.2021.9739504.
Quinn McNemar. Note on the sampling error of the difference between correlated proportions or percentages. Psychometrika, 12(2):153–157, 1947.
A Meyer et al. Domain generalization for prostate segmentation in multi-center mri data. In International Conference on Medical Image Computing and Computer-Assisted Intervention, pages 550–558. Springer, 2019.
Ziwei Niu, Shuyi Ouyang, Shiao Xie, Yen-wei Chen, and Lanfen Lin. A Survey on Domain Generalization for Medical Image Analysis. arXiv.org, 2024. https://doi.org/10.48550/ARXIV.2402.05035
Cheng Ouyang, Chen Chen, Surui Li, Zeju Li, Chen Qin, Wenjia Bai, and Daniel Rueckert. Causality-Inspired Single-Source Domain Generalization for Medical Image Segmentation. IEEE Transactions on Medical Imaging, 42(4):1095–1106, 4 2023. ISSN 0278-0062. https://doi.org/10.1109/tmi.2022.3224067. URL http://dx.doi.org/10.1109/TMI.2022.3224067.
Adam Paszke, Sam Gross, Francisco Massa, et al. Pytorch: An imperative style, high-performance deep learning library. In Advances in neural information processing systems, volume 32, 2019.
Yuge Shi et al. Gradient matching for domain generalization. In International Conference on Learning Representations, 2021.
Baochen Sun and Kate Saenko. Deep coral: Correlation alignment for deep domain adaptation. In European conference on computer vision, pages 443–450. Springer, 2016.
Nicholas J Tustison, Brian B Avants, Philip A Cook, et al. N4itk: improved n3 bias correction. IEEE transactions on medical imaging, 29(6):1310–1320, 2010.
Andrew J. Vickers and Elena B. Elkin. Decision curve analysis: A novel method for evaluating prediction models. Medical Decision Making, 26(6):565–574, 2006. https://doi.org/10.1177/0272989X06295361. URL https://doi.org/10.1177/0272989X06295361.
J Wang et al. Generalizing to unseen domains: A survey on domain generalization. IEEE Transactions on Knowledge and Data Engineering, 2022.
Yijun Yang, Shujun Wang, Lihao Liu, Sarah Hickman, Fiona J Gilbert, Carola-Bibiane Schönlieb, and Angelica I. Aviles-Rivero. Mammodg: Generalisable Deep Learning Breaks the Limits of Cross-Domain Multi-Center Breast Cancer Screening. 2023. https://doi.org/10.48550/ARXIV.2308.01057. arXiv:2308.01057.
Jee Seok Yoon, Kwanseok Oh, Jeong-Hyeon Park, and Heung-Il Suk. Domain generalization for medical image analysis: A review. Proceedings of the IEEE, 2023.
Jee Seok Yoon, Kwanseok Oh, Yooseung Shin, Maciej A. Mazurowski, and Heung-Il Suk. Domain Generalization for Medical Image Analysis: A Review. Proceedings of the IEEE, 112(10):1583–1609, 10 2024. ISSN 0018-9219. https://doi.org/10.1109/jproc.2024.3507831.
L Zhang et al. A survey on domain generalization. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2022.
Ling Zhang, Xiaosong Wang, Dong Yang, Thomas Sanford, Stephanie Harmon, Baris Turkbey, Bradford J. Wood, Holger Roth, Andriy Myronenko, Daguang Xu, and Ziyue Xu. Generalizing Deep Learning for Medical Image Segmentation to Unseen Domains via Deep Stacked Transformation. IEEE Transactions on Medical Imaging, 39(7):2531–2540, 7 2020. ISSN 0278-0062. https://doi.org/10.1109/tmi.2020.2973595.
Kaiyang Zhou et al. Domain generalization with mixstyle. In International Conference on Learning Representations, 2021.
Funding
This project has received funding from the European Union’s Horizon 2020 research and innovation programme; grant agreement No 952159 (ProCAncer-I). Much of the computation required for this research was performed on computational hardwaregenerously provided by the Massachusetts Life Sciences Center (https://www.masslifesciences.com/). We thank the ProCancer-I consortium and the Digital Mammography Imaging Screening Trial (DMIST) investigators for providing the datasets.
Author information
Authors and Affiliations
Consortia
Contributions
All authors contributed to the study conception and design. Material preparation, data collection, and analysis were performed by Dagoberto Pulido-Arias, Mason C. Cleveland, Jay Patel, Zhewei Wang, Yu Leng, Tiago Filipe Goncalves, Maggie Yao, Albert E. Kim, and Christopher P. Bridge. Data curation was performed by Daniele Regge, Kostas Marias, Manolis Tsiknakis, Henkjan Huisman, Nikolaos Papanikolaou, and The ProCAncer-I Consortium. The first draft of the manuscript was written by Dagoberto Pulido-Arias, and all authors commented on previous versions of the manuscript. Supervision was provided by Christopher P. Bridge and Jayashree Kalpathy-Cramer. Project administration and funding acquisition were led by Jayashree Kalpathy-Cramer. All authors read and approved the final manuscript.
Corresponding author
Ethics declarations
Ethics Approval
This study was approved by the Mass General Brigham Institutional Review Board.
Consent to Participate
The need for informed consent was waived by the Mass General Brigham Institutional Review Board for this retrospective study.
Consent for Publication
Consent for publication was obtained from all individuals whose data is included in this article.
Conflict of Interest
The authors declare no competing interests.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
About this article
Cite this article
Pulido-Arias, D., Cleveland, M.C., Patel, J. et al. Domain Generalization Mitigates Scanner-Induced Domain Shift in Medical Imaging. J Digit Imaging. Inform. med. (2026). https://doi.org/10.1007/s10278-026-02082-z
Received:
Revised:
Accepted:
Published:
Version of record:
DOI: https://doi.org/10.1007/s10278-026-02082-z





