Implicit Shape Modeling for Anatomical Structure Refinement of Volumetric Medical Images

Minghui Zhang, Hanxiao Zhang, Xin You, Yun Gu

TL;DR

Standard 3D CNNs for medical image segmentation frequently suffer from boundary staircase artifacts, structural errors, and misclassifications due to discrete voxel grids and patch-wise processing. This paper introduces an implicit neural representation framework that learns continuous, category-wide anatomical shape templates and deforms them to refine initial CNN predictions. By bridging continuous coordinate transforms with template deformation, the approach dramatically improves surface accuracy and topological consistency across liver, pancreas, and lung lobe CT scans.

What Problem Does This Paper Address?

Volumetric segmentation models (such as 3D U-Net) are constrained by GPU memory limits, forcing them to use discrete voxel grids and patch-based inputs. This localized, grid-bound approach often loses global context, yielding anatomically impossible shapes, blurred boundaries, or severe staircase artifacts.

While Implicit Neural Representations (INRs)—like DeepSDF—have revolutionized 3D shape reconstruction in computer vision by defining continuous surfaces as zero-level sets of neural fields, directly applying them to medical volumes fails:

  1. Lack of canonical alignment: Unlike synthetic 3D CAD datasets (e.g., ShapeNet), medical scans differ in patient orientation, field-of-view, origin, and anisotropic voxel spacing. Training INRs directly on raw coordinates causes severe "floating artifacts."
  2. Generalization to unseen data: Standard INRs require partial surface point clouds at test time to optimize latent codes—a requirement incompatible with raw volumetric image testing.

Methods

[Raw CT Scan] ──> [Pretrained CNN] ──> [Initial Coarse Mesh]
                                                │
[Physical Metadata]                             ▼
(Origin, Spacing, Direction) ──> [PICCT Alignment to Canonical Frame]
                                                │
       ┌────────────────────────────────────────┘
       ▼
[Template Interaction Module (TIM)]
   │ Filter top-matched points using CPD probability
   ▼
[Deform-Template INR]
   ├── Deform Field (MLP driven by Hypernetwork H(β)) ──> Offsets (Δvec, Δdis)
   └── Shared Template Field (MLP, fixed at test time) ─> Continuous SDF
                                                │
                                                ▼
                                    [Refined Surface / Volume]

The proposed pipeline consists of three core components:

  • Physical-Informed Continuous Coordinate Transform (PICCT): Uses volume metadata (origin, spacing, directional cosines) to transform voxel coordinates into continuous world coordinates, followed by Coherent Point Drift (CPD) rigid registration against a chosen anchor shape to map all shapes into a standardized canonical frame.
  • Decomposed Deform-Template Modeling: Instead of modeling each patient in isolation, the architecture factorizes shapes into:
  • A shared Template Field ($Temp$) that captures canonical organ topology.
  • An instance-specific Deformation Field ($Deform$), which outputs a 3D coordinate vector flow ($\Delta vec$) and a scalar displacement ($\Delta dis$).
  • A Hypernetwork ($H(\beta)$) driven by a hyper-latent vector $\beta$ to generate layer weights for the deformation field, dynamically conditioning the deformation on instance code $\alpha$.
  • Explicit geometric regularization losses (Eikonal gradient penalty, normal consistency, Laplacian smoothing on vector flow, and displacement shrinkage).
  • Template Interaction Module (TIM): At test time, initial predictions from standard CNNs are converted to canonical coordinates. TIM aligns the candidate mesh with the fixed, learned template using CPD, selects the top 25% highest-confidence matching points, and optimizes the instance latent vectors ($\alpha, \beta$) to output the refined, continuous Signed Distance Function (SDF).

Datasets

The authors evaluated their approach on three public CT benchmarks:

  • MSD Liver Dataset: 131 contrast-enhanced abdominal CT scans (91 train, 13 validation, 27 test).
  • NIH Pancreas-CT Dataset: 80 abdominal contrast-enhanced CT scans (56 train, 8 validation, 16 test).
  • Lung Lobe Dataset: 50 CT scans annotated with five distinct pulmonary lobes (35 train, 5 validation, 10 test).

No new datasets were introduced.

Key Insights and Ideas

  • Physical metadata matters for continuous fields: Coordinate-based neural networks are translation- and scale-sensitive. Inverting physical voxel spacing and origin metadata prior to rigid alignment is essential to eliminate floating artifacts and enable shared template learning across diverse patient scans.
  • Decoupled template and deformation fields: Splitting the implicit field into an invariant template and a variant deformation provides an interpretable shape prior. The template retains standard anatomical landmarks (e.g., pancreas head/body/tail or hepatic lobes), while the deformation field accounts for patient-specific variation.
  • Test-time filtering replaces ground truth points: By using alignment confidence between the initial segmentation and the template, the network selectively conditions test-time adaptation on reliable regions, effectively discarding false positives and out-of-boundary artifacts.

Key Results

The framework consistently outperformed voxel-based post-processors (Double-UNet, SCAN, ICTNet) and coordinate-based baselines (Implicit U-Net, NUDF, IOSNet):

  • Surface Quality (Continuous Space):
  • Liver: Chamfer Distance (CD $\times 10^2$) dropped from 0.407 (baseline 3D U-Net) to 0.232, and Earth Mover's Distance (EMD) dropped from 0.113 to 0.087.
  • Pancreas: CD improved to 0.128 (vs. 0.223 baseline) and EMD to 0.069 (vs. 0.097).
  • Lung Lobes: CD improved to 0.417 (vs. 0.677 baseline) and EMD to 0.100 (vs. 0.115).
  • Boundary Distance (Voxel Space):
  • 95% Hausdorff Distance (HD95) improved substantially: Liver decreased from 18.05 mm to 11.40 mm; Pancreas from 4.91 mm to 4.13 mm; Lung Lobes from 14.97 mm to 12.04 mm.
  • Plug-and-Play Compatibility: When applied on top of nnUNet, it further reduced CD on the Pancreas from 0.348 to 0.155 and HD95 from 14.97 mm to 12.04 mm on Lung Lobes.

Limitations and Future Work

  • Altered Anatomies & Resections: The shared template assumes standard healthy topologies. For patients who underwent surgical resections (e.g., partial hepatectomy) or have severe anatomical defects, the rigid deformation cannot accommodate missing substructures.
  • Independent Multi-Class Modeling: Multi-organ or multi-lobe configurations currently require independently trained implicit models for each structure rather than a single unified multi-class implicit representation.
  • Occluded Boundaries: On tightly touching surfaces (such as interlobar lung fissures), computing accurate ground-truth SDFs from virtual multi-view renderings is difficult because interfaces are hidden from external views. Alternative supervisory signals will be needed to handle internal contact surfaces.

Summary updated

BibTeX
@misc{zhang2023implicit,
  author = {Minghui Zhang and Hanxiao Zhang and Xin You and Yun Gu},
  title = {{Implicit Shape Modeling for Anatomical Structure Refinement of Volumetric Medical Images}},
  year = {2023},
  eprint = {2312.06164},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.06164},
}
Figure