Segmenting Soft Tissue Through Metal Streaks Across Hospitals

Automated segmentation of organs in CT scans works well until a patient has metal in them. Hip replacements, dental fillings, and spinal screws throw bright and dark streaks across the image. These streaks land exactly where the hardest boundaries are: the edge between prostate and rectum, or between a salivary gland and the surrounding muscle, which even on clean scans differ by only a few intensity units. The problem gets worse when a model trained at one hospital runs at another, because each scanner vendor and reconstruction setting produces its own kind of streak. The largest multi-center study we found measured an average Dice drop of nearly 8% from metallic hardware alone, the single worst patient-level factor across 20 segmentation models (Beyond Benchmarks). That study only looked at dense bone. The standard multi-center spine benchmark simply threw out every scan containing implants (CTSpine1K).

We propose to train a segmentation model on counterfactual pairs: the same patient's clean scan, and that scan with physically simulated metal inserted under several scanner-like reconstruction settings. The model is then required to draw the same organ boundary in both versions. This constraint is applied only in a thin band around the boundary, where the task is hard. A second output learns to predict where the clean and metal-corrupted boundaries disagree. At test time this gives a map of where the model's contours should not be trusted, with no clean reference needed. Everything runs on ordinary reconstructed DICOM images. We never touch the raw scanner projections, which most hospitals discard or cannot export.

Core Claim

Our claim has three parts. First, invariance to metal must be learned at the boundary, not across the whole mask. Second, it must be learned from matched pairs whose streak statistics vary the way scanners vary. Third, the same pairs give direct supervision for a reliability map that flags metal-corrupted contours. Together, these should cut the metal-induced accuracy gap on low-contrast soft-tissue organs at unseen hospitals by more than two alternatives: removing artifacts before segmenting, or adding simulated metal as plain data augmentation. The reliability map should capture most of the remaining boundary error. If plain augmentation with the same simulator closes the gap equally well, the contribution shrinks to the simulator and the benchmark, and we will report it that way.

What Exists and Where It Stops

Two papers join metal artifacts with hard boundaries, and both motivate this work by what they leave out. Sakamoto et al. segment hip and thigh muscles after hip replacement. Their pipeline forward-projects clean scans with polychromatic simulation, then applies a projection-domain interpolation (NMAR), a refinement U-Net, and a separate segmentation U-Net. The stages are trained independently and need projection data. The method reaches an average surface distance of 1.32 mm on only 3 real patients from one scanner. We borrow their idea of simulating metal from clean preoperative CT. We differ in three ways: our simulation is reconstructed back to image space so it can be used anywhere, we apply the invariance inside the segmenter rather than cleaning the image first, and we test across hospitals. A³DSegNet jointly disentangles artifacts and segments vertebrae in spinal cone-beam CT, reaching Dice 0.926. However, bone is high-contrast, and all its clinical data come from one Siemens system. The authors themselves list multi-vendor validation as future work.

Artifact-removal networks supply a baseline and also a warning. DuDoNet reaches 33.51 dB PSNR on DeepLesion but needs sinograms. ADN removes artifacts without paired data and generalizes to real clinical scans. It was judged only on pixel fidelity and visual inspection, never on downstream segmentation, and its loss weights had to be re-tuned for each dataset. Hatherly et al. is not indexed with an id in the file. Their observation, reported in the file, is that software artifact reduction can invent false structures near hardware. This is the main reason we do not want the segmenter to depend on a cleaned image.

Boundary-focused segmenters show that edge-specific losses help on low-contrast organs, but none was tested with metal present. Examples are the dual-branch pancreas model DB-MSMUNet (Dice 87.59% on MSD Pancreas), the shape-constrained head-and-neck models FocusNetv2, SOARS, and AnatomyNet, and the pelvic model of Zhang et al. (prostate Dice 0.90, rectum 0.87, single site, implant-free scans only). Bounding Maps show that continuous, distance-like targets beat binary ones for low-contrast lesions. This is why our consistency term compares signed distance maps rather than binary masks. FocusNetv2 also carries a constraint for us: rigid shape priors fail when anatomy departs from the normal range. We therefore avoid learned shape manifolds, since streaks can make organs look abnormal.

On generalization, the intra-class correlation regularizer penalizes differences in a model's output for the same subject recorded under different acquisition conditions. That work is on speech. We apply the same principle with an exact pairing: the same anatomy with and without metal. The same paper warns that too much invariance pressure can dull sensitivity to real pathology, which is why we sweep the invariance weight explicitly.

Research Program

The first component is a metal simulator that works from DICOM images alone. We take a reconstructed clean CT slab and forward-project it. We insert implant shapes at anatomically plausible positions: femoral heads for hip prostheses, crowns and fillings for dental amalgam, pedicle tracks for screws. The implant materials are titanium, cobalt-chromium, and amalgam. We model polychromatic beam hardening and photon starvation, as described in the file, and then reconstruct with filtered back-projection. The key cross-institutional ingredient is that each pair randomly samples the tube spectrum, noise level, reconstruction kernel sharpness, and slice thickness over ranges that span vendor protocols. Xie et al. found exactly these kinds of variables shift accuracy by up to 25%. Starting from already-reconstructed data adds an approximation error. We quantify it by comparing simulated streak texture against real implant scans using simple texture statistics.

The second component is the training objective. The segmenter $f$ is a 3D nnU-Net-style backbone with a signed-distance output head. For a clean image $x$ and its corrupted version $\tilde x$, the loss is

$$ \mathcal{L} = \mathcal{L}_{seg}(f(\tilde x), y) + \mathcal{L}_{seg}(f(x), y) + \lambda \sum_{v \in B_\delta(y)} \big| d_{f(x)}(v) - d_{f(\tilde x)}(v) \big|, $$

where $y$ is the ground-truth mask, $d_{f(\cdot)}$ is the predicted signed distance to the organ surface, and $B_\delta(y)$ is the set of voxels within $\delta$ mm of the true boundary. We work in 3D to avoid the slice-to-slice jaggedness the file flags for 2D boundary models. Restricting the consistency term to the band stops interior voxels, which make up most of the organ, from swamping it.

The third component is a reliability head $g$. It is trained to predict $|d_{f(x)} - d_{f(\tilde x)}|$ from $\tilde x$ alone. At deployment it outputs a per-voxel map of expected contour error caused by metal. This answers the explicit call in Beyond Benchmarks for models that flag low-confidence zones near implants.

The fourth component is an evaluation set. The file lists no public multi-site benchmark of soft-tissue organs under real metal. We will therefore annotate real implant scans from at least three hospitals with different vendors. The pelvic set covers prostate, rectum, and bladder in patients with hip prostheses. The head-and-neck set covers parotid and submandibular glands in patients with dental restorations. Each set also has matched implant-free controls from the same sites. We train on one site's clean scans plus public clean data, including MICCAI 2015 head and neck, and hold out all other sites entirely.

Baselines

The naive reference point is a 3D nnU-Net trained on clean scans only and applied directly to metal cases. Two reference numbers come from the file. CTSpine1K reports about 0.87 Dice for nnU-Net on individual vertebrae, but on metal-free data. Zhang et al. report rectum Dice 0.87 on clean, single-site pelvic CT. We found no reported result on Lacuna for any method segmenting pelvic or head-and-neck soft tissue under real metal across institutions, so the naive gap must be measured here. Xie et al.'s roughly 8% Dice drop for bone is our prior expectation of its size, and we expect it to be larger for soft tissue.

The strongest existing competitor is a two-stage pipeline: ADN removes artifacts, then the same nnU-Net segments. ADN is the best-documented method that needs neither sinograms nor paired real data, and it held up on real clinical scans where supervised removal methods failed. Its reported results are qualitative on CL1 and CL2. No segmentation number exists for it, so we will produce one. For fairness, ADN is trained on the same unpaired clean and metal images available to our method. Its loss weights get the same number of tuning trials we give $\lambda$ and $\delta$, selected on the same source-site validation split. We also include the Sakamoto et al. approach of refining the image and then segmenting, run on our simulated projections, because it is the closest prior method for soft tissue near hip prostheses.

A second strong competitor is a boundary-aware architecture without metal handling: a 3D adaptation of DB-MSMUNet's edge-enhancement branch. It tests whether better edge modeling alone survives streaks.

The central ablation is the same backbone trained with our simulator used purely as augmentation, with no pairing and no consistency term, under identical compute and number of samples. Further ablations apply consistency over the whole mask instead of the band, use a single fixed reconstruction setting instead of sampled vendor settings, and replace the reliability head with ensemble entropy.

Our method beats the field if, on held-out sites, it reduces the metal-versus-control Dice and surface-distance gap in the boundary band by a margin whose confidence interval excludes zero against both ADN-then-segment and the augmentation ablation. It must also do this without lowering accuracy on implant-free controls.

Why not just…?

Why not just remove the artifacts first and then segment? Removal networks are trained to restore pixels, not boundaries. Hatherly et al., as summarized in the file, found that software artifact reduction invents false structures near hardware. ADN has never been scored on segmentation, and its loss weights needed re-tuning per dataset, which is a bad sign for unseen hospitals. The strongest projection-domain methods, DuDoNet and NMAR, also need sinograms that most hospitals do not keep. The ADN-then-segment baseline tests this directly. If it matches us, removal is sufficient, and our result becomes a measurement of that fact.

Why not just augment training with simulated metal? This is the real threat. Realistic, vendor-varied simulation may do most of the work, and the consistency term may add little. The paired-versus-unpaired ablation settles it with the same simulator, the same number of samples, and the same compute. Even if augmentation alone matches accuracy, only the pairs supply a training target for the reliability head. So we would still report the reliability map as the distinct contribution, and we would present the invariance loss as unnecessary.

Why not just pool data from many hospitals, as Harmon et al. did for COVID CT? Pooling multinational data works when the confound appears randomly across sites. Here, however, public multi-site datasets systematically exclude metal (CTSpine1K), so pooling them adds almost no implant cases. We will still run a pooled-data nnU-Net on all available public clean data as a check. Xie et al.'s finding that moderately sized, diverse training sets beat large homogeneous ones suggests diversity of streaks, not volume of scans, is what matters.

Decisive Checks

The main analysis fits a linear mixed-effects model, following Xie et al. Boundary-band Dice and surface distance are the outcomes. Fixed effects are method, metal presence, implant material, and their interactions, with random effects for site and patient. This yields a per-method estimate of the metal penalty at unseen hospitals.

The claim succeeds if the metal-by-method interaction shows a smaller penalty for our model than for ADN-then-segment and for the augmentation ablation. It fails if the penalty is indistinguishable from augmentation alone.

For the reliability map, we measure what fraction of total boundary error on real implant scans falls inside the top 10% of flagged voxels, compared against ensemble entropy. Real implant scans have no clean counterpart, so this check is the honest test of whether training on simulated disagreement transfers to real metal.

Finally, we sweep $\lambda$ and track Dice on tumor-containing controls. This guards against the sensitivity loss that the ICC work warns of.