Abstract
Medical image registration is traditionally framed as the estimation of a dense displacement field (DDF), a task that is often mathematically ill-posed and requires extensive labeled data. We present SAMReg, a novel framework that reframes registration as a discrete matching problem between regions-of-interest (ROIs). By leveraging the zero-shot segmentation and feature extraction capabilities of the Segment Anything Model (SAM), SAMReg achieves state-of-the-art registration accuracy across diverse clinical datasets without requiring task-specific training or manual annotations.
Introduction
Image registration—the process of aligning a "moving" image to a "fixed" reference—is fundamental to medical AI applications such as surgical navigation and tumor tracking. Conventional deep learning approaches typically attempt to calculate a DDF, mapping every voxel from one coordinate space to another. However, this approach faces two primary challenges: the "ill-posed" nature of estimating millions of displacement vectors from limited data, and the high cost of generating the segmented ground truths required for weakly-supervised training.
SAMReg addresses these hurdles by questioning the necessity of a full coordinate map. For most clinical tasks, correspondence between specific anatomical or structural regions is sufficient. By treating registration as "two segmentations and a matching step," SAMReg bypasses the need for complex, unstable optimization and massive training sets.
Methodology
The SAMReg framework operates through a four-stage pipeline that utilizes the Segment Anything Model (SAM) as a zero-shot foundation:
- Segment Everything: Using SAM’s "everything" mode, the system automatically generates a comprehensive array of masks (ROIs) for both the moving and fixed images. These ROIs do not need to correspond to named anatomical organs; they represent consistent geometric structures or cavities within the volume.
- ROI Embedding: High-dimensional features are extracted for each segmented region using SAM’s internal image encoder, producing a unique "prototype" vector for every mask.
- Matching: The system calculates the cosine similarity between the prototypes of the moving and fixed images. The highest-scoring pairs are identified as corresponding landmarks.
- ROI-to-Dense Warping: If a full-image warp is required, these matched ROIs serve as "anchors." The framework iteratively refines a standard displacement field to align the images based on these high-confidence correspondences.
Notably, SAMReg requires no fine-tuning or task-specific engineering. It utilizes SAM's pre-trained weights to identify and match structures across different patients and modalities.
Experimental Setup
The model was evaluated on three distinct clinical scenarios to test its generalizability:
- MR-Prostate: Inter-subject registration (aligning different patients).
- MR-Cardiac: Intra-subject registration (aligning the same heart across the cardiac cycle).
- CT-Abdomen: Inter-subject registration of multi-organ abdominal scans.
Performance was benchmarked against classical intensity-based tools (NiftyReg), unsupervised deep learning models (VoxelMorph), and weakly-supervised models trained on manual labels (LabelReg).
Results and Discussion
SAMReg demonstrated superior performance compared to both classical and unsupervised deep learning baselines. As shown in the quantitative analysis, SAMReg significantly outperformed NiftyReg and VoxelMorph in both Dice scores (measuring overlap accuracy) and Target Registration Error (TRE).
Remarkably, SAMReg achieved results competitive with LabelReg, despite the latter being specifically trained on ground-truth manual segmentations. This suggests that SAM’s internal features are robust enough to identify corresponding structures in 3D medical volumes without explicit anatomical supervision.
A key insight from the study is that the ROIs used for registration do not need to be anatomically significant. "Pseudo-ROIs"—random but consistent blobs identified by SAM—proved to be as effective for alignment as perfectly segmented organs. Furthermore, ablation studies indicated that using as few as three high-quality ROI pairs was often sufficient to achieve optimal registration, emphasizing the value of landmark quality over quantity.
Conclusion
SAMReg represents a paradigm shift in medical image registration, moving away from dense coordinate transformations toward region-based matching. By utilizing foundation models like SAM, the framework provides a powerful, zero-shot solution that eliminates the need for expensive manual labeling and task-specific training. Future work will focus on extending SAM's 2D architecture to native 3D feature extraction and optimizing the computational overhead of the "segment everything" process.
Summary updated