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.

Fig. 1
Fig. 1
Full size image

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.

Fig. 2
Fig. 2
Full size image

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.

Fig. 3
Fig. 3
Full size image

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.

Table 1 Detailed performance (AUROC) on the ProstateNet dataset. Each column represents a held-out test domain. “In” denotes average in-domain performance, while “Out” denotes out-of-domain performance on the specified test set. Average values are computed from the 6-fold results. Note: The asterisk (*) indicates statistical significance (\(p < 0.05\)) compared to the baseline method based on aggregated predictions

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.

Fig. 4
Fig. 4
Full size image

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

Fig. 5
Fig. 5
Full size image

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

Fig. 6
Fig. 6
Full size image

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.

Table 2 Per-domain augmentation ablation on ProstateNet (AUROC) for the cancer aggressiveness task. Each row removes a single augmentation from the full Strong Augmentation pipeline. “In” denotes average performance across the 5 source domains; “Out” denotes performance on the held-out target domain. The first row reproduces the strong augmentation row of Table 1 for reference

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 Detailed performance (AUROC) under clinical site-based cross-validation (Leave-One-Site-Out) on ProstateNet Task 2 (Aggressiveness). For each held-out clinical site, “In” denotes average in-domain performance across the 11 training sites and “Out” denotes performance on the held-out site. N denotes the number of MRI studies per held-out site. Best out-of-domain value per site shown in bold. No method significantly outperformed the baseline after Holm-Bonferroni correction

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.

Table 4 Detailed performance (Kappa) on the DMIST dataset. Each column represents a held-out test domain. “In” denotes average in-domain performance, while “Out” denotes out-of-domain performance on the specified test set. Note: The asterisk (*) indicates statistical significance (\(p < 0.05\)) compared to the Baseline method

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.