Where Scanner Fingerprints Leak Into 3D Segmentation Networks

Segmentation networks for 3D medical scans often lose accuracy when moved to a hospital that uses a different scanner brand. The common fix is to make the network's deepest, most compressed internal representation "scanner-blind." This proposal argues that this fix targets the wrong place. Many 3D segmentation networks use a feature pyramid, a design that merges coarse, high-level features with fine, high-resolution ones through shortcut paths between layers. In such networks, the scanner's fingerprint (noise grain, reconstruction texture, vendor-specific contrast) probably reaches the output through the shallow, high-resolution shortcuts and skips the deep layer entirely. We propose to measure, level by level, how much scanner identity each shortcut carries. We then apply invariance pressure in proportion to that measured leakage, and we test whether this closes the gap on a scanner vendor never seen in training.

The setting matters because the problem is worst in MRI. Under a controlled study of vendor splits, MRI lost on average 0.097 AUC (area under the ROC curve, a ranking-quality score) while CT lost only 0.02. One prostate MRI model fell from 0.791 to 0.505 when moved off Siemens hardware (The Impact of Scanner Domain Shift on Deep Learning Performance in Medical Imaging). In the multi-vendor cardiac MRI challenge, accuracy dropped in a fixed order: trained vendors did best, an unlabeled target vendor did worse, and a completely unseen Canon scanner did worst (The M&Ms Challenge). Zero-shot transfer to new hardware therefore remains open, and it is the regime where hospitals cannot collect and annotate their own calibration data.

Core Claim

In a volumetric network with pyramid-style shortcuts, vendor information that survives to the prediction travels mostly through the highest-resolution lateral connections. Two consequences follow. First, scanner-blinding applied only at the bottleneck removes the fingerprint where it matters least. Second, scanner-blinding applied uniformly at every level wastes capacity and risks erasing real anatomy and pathology at levels that were never leaking. The claim is falsifiable on its first step. If a simple probe cannot read vendor identity from the shallow shortcuts any better than from the bottleneck, the premise fails and the method is unnecessary.

Relation to Prior Work

The closest prior work is C3 (Domain and Geometry Agnostic CNNs for Left Atrium Segmentation in 3D Ultrasound). C3 trains a 3D V-Net together with a discriminator that tries to guess the ultrasound vendor from the bottleneck features, while the segmenter learns to fool it. It also adds a shape-prior autoencoder. C3 supplies our adversarial technique, and its single-bottleneck placement is exactly the design we test against. C3 also downsampled volumes to 64³, which removes much of the fine texture where we expect the leak to live.

Two lines of work motivate the scale-dependence hypothesis. MADGNet (Modality-Agnostic Domain Generalizable Medical Image Segmentation by Multi-Frequency in Multi-Scale Attention) filters features by frequency at each pyramid level to generalize across modalities, but it works on 2D slices and never measures where vendor information sits. The 3D pulmonary nodule pyramid (3DFPN with Self-supervised Feature Learning) shows that a volumetric pyramid can be robust across CT manufacturers. It relies on self-supervised pretraining rather than any explicit alignment, and it works in CT, where Hounsfield calibration already limits shift.

MAPSeg (MAPSeg) adapts 3D segmenters with masked autoencoding and pseudo-labels. It targets cross-modality and cross-age shifts rather than within-MRI vendor shifts, and it needs unlabeled target data. Our proposal does not need data from the unseen vendor.

Two results constrain the design. Histogram matching beat elaborate generative models in M&Ms (Histogram Matching Augmentation), so any feature-level method must be stacked on top of it rather than compared against a weaker pipeline. Gaussian noise augmentation fails and can hurt (Szumel et al.), which tells us that random perturbation does not imitate vendor signatures.

Research Program

The base model is a 3D encoder–decoder in the nnU-Net style. Its decoder merges each upsampled deep feature map with the matching encoder map through a 1×1×1 convolution, and anisotropic MRI spacing is handled by the usual in-plane-only downsampling at early stages. We train it on M&Ms vendors A and B with histogram-matching augmentation, so the starting point is already the strong pipeline.

Step 1: measure leakage. We freeze the trained network. At each pyramid level $l$, we fit a small linear probe that predicts vendor from globally pooled lateral features, using vendors A, B and the unlabeled vendor C. We define leakage $\kappa_l$ as the probe's balanced accuracy above chance. As a second, causal measure, we swap one level's lateral features between scans from different vendors and record how much the output segmentation changes. A probe can find information the decoder never uses, so the swap test checks whether the decoder actually relies on it.

Step 2: align in proportion to leakage. We retrain with a gradient-reversal vendor classifier attached to each lateral connection. The total objective is

$$\mathcal{L} = \mathcal{L}_{\text{seg}} - \sum_{l} \lambda \, \frac{\kappa_l}{\sum_{m} \kappa_m} \, \mathcal{L}^{(l)}_{\text{adv}}.$$

Here $\mathcal{L}_{\text{seg}}$ is the usual Dice plus cross-entropy loss on labeled cases, and $\mathcal{L}^{(l)}_{\text{adv}}$ is the vendor-classification loss of the level-$l$ discriminator. The minus sign means the encoder is pushed to make that loss large, that is, to hide vendor identity. $\lambda$ is one global strength, and the fraction redistributes it toward the levels that leak. Unlabeled vendor C cases contribute only to the adversarial terms. We re-estimate $\kappa_l$ once, midway through training, to check whether the leak migrates to another level once it is blocked.

Step 3: protect pathology. Blinding shallow features risks the "wash-out" that Ma warned about for intensity-defined tissue. We therefore report results separately for each disease subgroup in M&Ms, and we keep the ground-truth shape-prior term from C3 as an option.

Baselines

Naive reference. The 3D network trained on vendors A and B with standard augmentation and nothing else. This shows the raw gap. M&Ms reports roughly a 6% accuracy drop for baselines on unseen vendors (M&Ms).

Strongest existing pipeline. Histogram-matching nnU-Net (Histogram Matching Augmentation). It placed third in M&Ms with average Dice of 0.9051 for the left ventricle, 0.8405 for the myocardium and 0.8749 for the right ventricle, and it cut boundary error on Canon by up to 5 mm. The challenge winner reports left-ventricle Dice of about 0.88–0.92 and reduced the unseen-vendor gap to about 1.5% (M&Ms). We found no per-vendor Canon Dice for either method on Lacuna, so we will rerun histogram matching ourselves. It will use the same backbone, data, epochs and number of hyperparameter trials as our method, and we will report its Canon result under our protocol. Beating it means a better Canon (vendor D) Dice and 95th-percentile Hausdorff distance, averaged over three seeds with confidence intervals that do not overlap, with no loss on vendors A and B. Matching it within noise counts as a negative result.

Placement ablations. These isolate the key ingredient. Bottleneck-only adversary (C3 placement), uniform adversary at all levels, shallow-only adversary, and leakage-weighted adversary all share one tuned $\lambda$ budget. If uniform weighting performs as well as leakage weighting, the measurement step adds nothing beyond "align everywhere," and we will report it that way.

Why not just…?

Why not just use histogram matching, which already won? Histogram matching aligns the global intensity distribution of each volume. It cannot touch spatially local signatures such as reconstruction texture or noise grain, which are the signals we expect in shallow features. This is testable directly: we run the Step 1 probe on the histogram-matched model. If shallow vendor decodability is already near chance, our method has nothing left to remove, and we expect no gain. We treat that as a real possibility, not a formality.

Why not just fine-tune on 10–20% target-scanner data? Szumel et al. show that this recovers much of the lost performance, and where data can be obtained it is the right answer. We include it as an upper reference by fine-tuning on Canon cases. Our question is zero-shot transfer for sites that cannot annotate data or share it, the regime MAPSeg also highlights. The value of our method is how much of the fine-tuning gain it recovers without any target labels.

Why not just put the discriminator at the bottleneck, as C3 does? This is the central comparison, and it is settled by the placement ablation and the swap test. If bottleneck-only alignment also lowers shallow-level vendor decodability, perhaps because gradients propagate upward through the encoder, our premise is wrong.

Why not just slice into 2D and use a pretrained 2D pyramid? Slicing breaks continuity along the depth axis. The 3D U-Net reported an IoU of 0.863 against 0.796 for its 2D variant (3D U-Net). A 2D histogram-matched nnU-Net is part of the same M&Ms pipeline, so we report it too.

Proposed Experiments and Decisive Checks

Primary benchmark: M&Ms. We train on vendors A and B (plus unlabeled C for the adversary), select hyperparameters on held-out A and B cases only, and test on all four vendors. Canon is the decisive split. Metrics are Dice and 95th-percentile Hausdorff distance per structure.

Secondary benchmark: 3D echocardiography. If the multi-center 3D echocardiography set is available, we train on GE Vivid E9 and Philips EPIQ 7C and test on the held-out Philips iE33. We run at 64³ to reproduce C3 and also at a higher resolution, because our hypothesis predicts larger gains when fine texture is kept. The reference figure is C3's mean surface distance of 2.01 mm against 3.56 mm for V-Net on EPIQ→Vivid transfer.

Classification extension. The probe-and-weight procedure applied to a 3D classifier on the MRI-Prostate vendor split tests whether the effect goes beyond segmentation. The reference figure is the AUC drop from 0.791 to 0.505.

Negative control in CT. The theory predicts little shallow leakage and little benefit in CT, given Hounsfield calibration. We test this on multi-manufacturer CT nodule data. A large CT gain would suggest we are measuring something other than vendor signatures.

Decisive checks. The proposal survives only if three things hold. Shallow lateral levels must show higher vendor decodability and larger swap effects than the bottleneck, even after histogram matching. Leakage-weighted alignment must beat both bottleneck-only and uniform alignment on Canon. Disease-subgroup Dice must not fall relative to the histogram-matching baseline. Failure on the first check ends the line of work. Failure on the second reduces it to a diagnostic study, which is still useful.