Introduction
Image registration—the process of aligning two separate medical scans into a single coordinate system—is a fundamental task in clinical AI. Traditional deep learning approaches typically rely on minimizing pixel intensity differences between images. However, this method is highly sensitive to "intensity discrepancies" caused by varying scanner settings, noise, or artifacts, which do not reflect actual anatomical changes.
SAMIR (Segment Anything Model for Image Registration) addresses these challenges by leveraging the robust, contrast-invariant features of the Segment Anything Model (SAM). By shifting the focus from raw pixels to high-level semantic features, SAMIR achieves superior alignment even in low-quality imaging conditions.
Methodology
The SAMIR framework introduces a feature-level matching paradigm through three core components: Structure-Aware Feature Embedding (SAFE), Pyramidal Deformation Field Prediction (PDFP), and Hierarchical Feature Consistency (HFC) loss.
Structure-Aware Feature Embedding (SAFE)
Instead of processing raw intensities, SAMIR utilizes the frozen image encoder from SAM to extract structural embeddings. Because SAM was pre-trained on over a billion masks, its internal representations are exceptionally skilled at identifying object boundaries and anatomical shapes regardless of lighting or noise. To adapt the 2D SAM encoder for 3D medical volumes, SAMIR processes scans as a series of 2D slices and employs a lightweight 3D convolutional head to reconstruct the volumetric context.
Pyramidal Deformation Field Prediction (PDFP)
To handle complex anatomical variations, the model employs a coarse-to-fine strategy. The PDFP module progressively refines the deformation field, starting with global alignment of large structures and moving toward local refinements for finer anatomical details.
Hierarchical Feature Consistency (HFC) Loss
A novel HFC loss function compares SAM features across multiple scales. This forces the model to align the underlying "meaning" of the images (the anatomy) rather than just matching pixel brightness, ensuring semantic consistency across the registered volumes.
Experimental Results
The framework was evaluated on the ACDC (cardiac MRI) and Abdomen CT benchmarks, outperforming state-of-the-art models like VoxelMorph and TransMorph.
- Accuracy: SAMIR achieved a 2.68% improvement in Dice score on the ACDC dataset and a significant 6.44% improvement on the Abdomen CT dataset, which involves challenging inter-subject registration.
- Robustness: In stress tests involving synthetic noise and contrast shifts, SAMIR’s performance remained stable, while competing models saw sharp increases in error rates. This confirms that SAM’s features are inherently more reliable than raw pixel values for medical tasks.
- Efficiency: Despite utilizing a large foundation model, the inference time is approximately 0.32 seconds per pair, making it efficient enough for real-time clinical workflows.
Conclusion
SAMIR demonstrates that visual foundation models like SAM can be repurposed as robust feature extractors for medical image registration. By prioritizing semantic consistency over intensity matching, the framework provides a more accurate and noise-resilient solution for anatomical alignment. Future work will investigate true 3D foundation models to further improve inter-slice anatomical continuity.
Summary updated