TL;DR
SegmentAnyBone is a versatile new deep learning model that brings universal bone segmentation to MRI scans across any body location and imaging sequence. By adapting Meta’s Segment Anything Model (SAM) with a novel 3D depth-attention mechanism and parameter-efficient fine-tuning, the model excels at both fully automated and interactive, prompt-based segmentation, significantly outperforming traditional medical imaging architectures.
What Problem Does This Paper Address?
While automated bone segmentation is highly successful in Computed Tomography (CT) scans (thanks to high contrast and large public datasets like TotalSegmentator), doing the same in Magnetic Resonance Imaging (MRI) remains a major challenge. MRI is superior for evaluating soft tissues and medullary bone without ionizing radiation, but segmenting bones on MRI is notoriously difficult due to the low contrast at fat-water interfaces and significant intensity variations across different scanner protocols.
Furthermore, existing MRI bone segmentation algorithms are highly specialized—trained only for a single anatomical area like the knee or the spine. Developing a "universal" model has been blocked by a severe shortage of diverse, multi-location MRI datasets with expert bone annotations.
Methods
To build a universal segmenter, the authors developed SegmentAnyBone, which adapts the 2D Segment Anything Model (SAM) and MobileSAM architectures for 3D medical volumes using three key innovations:
- Parameter-Efficient Fine-Tuning (PEFT): Instead of retraining SAM's massive weights from scratch (which risks model collapse), the authors froze over 95% of the pre-trained parameters and inserted lightweight "Adapter" layers into the image encoder and mask decoder blocks.
- 3D Depth-Attention Branch: Because SAM processes images slice-by-slice, it lacks 3D spatial context. The authors introduced a parallel branch that downsamples the entire MRI volume into a $64 \times 64 \times 64$ grid, passes it through a lightweight 3D V-Net optimized with Tversky loss, and generates a 3D attention map. This map is fused back into the 2D SAM features via a learnable gate, ensuring slice-to-slice consistency.
- Hybrid Prompting Strategy: The model is trained to operate in two modes. In automatic mode, it autonomously segments all bones in an image. In prompt mode, users can provide point or box prompts to isolate specific bones or manually correct minor errors.
Datasets
The authors curated a diverse internal dataset and validated their model on an external benchmark:
- Internal Dataset: Comprises over 300 annotated volumes and 8,485 slices spanning 17 distinct anatomical locations (e.g., ankle, hand, hip, spine). Annotations were initially performed on standard T1-weighted sequences and then mapped to corresponding non-T1 sequences (T2, STIR, PD) using rigid image registration.
- External Dataset: The SPIDER lumbar spine MRI dataset (447 exams containing T1, T2, and T2 SPACE volumes) was used to evaluate the model's out-of-distribution generalization capability.
Key Insights and Ideas
- The 2D vs. 3D Paradox: Interestingly, fully 3D models (like 3D nnU-Net) performed worse than 2D models in this task. This is because MRI scans often have low resolution in the depth (axial) direction, and 2D models benefit from a vastly larger slice-level training pool (thousands of slices vs. a few hundred volumes).
- Foundation Models Generalize Better: Standard architectures trained from scratch struggle heavily when tested on unseen body parts or sequences. Grounding the network in a vision foundation model (SAM) provides robust zero-shot capabilities, allowing SegmentAnyBone to handle out-of-distribution clinical data elegantly.
- Low-Res 3D Context is Enough: Rather than processing full-resolution 3D volumes—which is computationally prohibitive—injecting a low-resolution 3D attention map into a 2D pipeline successfully prevents slice-to-slice inconsistencies.
Key Results
SegmentAnyBone achieved state-of-the-art results across multiple validation scenarios:
- Standard Testing: On the internal T1 sequence test set, the model achieved an average Dice Similarity Coefficient (DSC) of 86.36% and an Intersection over Union (IoU) of 77.08%, outperforming SwinUnet by 15.02% and the popular nnU-Net (2D) by 2.64%.
- Unseen Locations: When trained on only 5 primary body locations and tested on completely unseen areas (Ankle, Elbow, Lumbar Spine, Hand), SegmentAnyBone maintained a 78.73% DSC, significantly beating nnU-Net (71.99%) and Unet (57.54%).
- External Generalization: On the external SPIDER dataset, SegmentAnyBone achieved a 77.62% DSC, demonstrating massive improvements over 2D nnU-Net (60.48%) and standard Unet (46.64%).
Limitations and Future Work
The primary limitation is that SegmentAnyBone is currently a binary segmentation model ("bone" vs. "not bone"). It cannot yet differentiate between individual bones (e.g., distinguishing the femur from the tibia in a knee scan). The authors note that expanding the architecture to include a location-aware multi-class classifier at the output layer should be relatively straightforward. Additionally, due to expert radiologist time constraints, independent validation was focused primarily on seven major body locations.
Summary updated