Dense-Prompt-Guided Adaptation of the Segment Anything Model for Fully Automatic Multiple Sclerosis Lesion Segmentation
Abstract
Multiple sclerosis (MS) lesion segmentation in magnetic resonance imaging (MRI) is challenging due to the small size, irregular shape, and low contrast of lesions. Although the Segment Anything Model (SAM) has strong generalization ability in natural image segmentation, its direct use in medical imaging is limited by manual prompt dependence and the domain gap between natural and medical images. We propose a fully automatic dense-prompt-guided framework that adapts SAM to multimodal MRI without full fine-tuning. Fluid-attenuated inversion recovery (FLAIR), T1-weighted, and T2-weighted images are processed by the SAM image encoder and a parallel HarDNet-85-based dense-prompt branch with a lightweight Small Decoder, whose output is fused with the SAM image embedding for automatic mask prediction. Lightweight adapters are incorporated into the image encoder and mask decoder, while a query-conditioned HyPAdapter dynamically generates projection weights from decoder query tokens. A two-stage training strategy progressively activates encoder-side adaptation while keeping the original encoder parameters frozen. On the MSSEG 2016 test set, the proposed framework achieved a mean Dice similarity coefficient (DSC) of 71.49% and a mean intersection over union (mIoU) of 62.12% over lesion-containing slices. Adding the query-conditioned HyPAdapter increased mean DSC by 9.87 percentage points compared with the configuration using dense guidance and standard adapters.
Create a lesson
Metadata
- Categories
- eess.IV, cs.CV
- Comments
- 18 pages, 4 figures, 3 tables
Related papers
SWIMSS: An Open Multi-Center SwinUNETR Model for Multiple Sclerosis White Matter Lesion Segmentation
Shared title terminologyeess.IVFederico Spagnolo, Po-Jui Lu, Mario Ocampo-Pineda et al.
Where does pancreatic lesion segmentation fail on public CT? An attenuation-stratified analysis of a duct-guided pipeline on PanTS
Shared title terminologyeess.IVKang-Won Byun
FGCARL: Fisher-Guided Continuously Adaptive Representation Learning for Medical Image Segmentation
Shared title terminologyeess.IVXiaobing Yu, Jin Yang, Peijie Qiu et al.
LiSC: Lesion-Size-Stratified Compression Analysis Shows Small Lesions Vanish While Dice Stays Flat in White Matter Hyperintensity Segmentation
Shared title terminologyeess.IVJunsu Lim, Kyeonghun Kim, Jiwon Park et al.
Uncertainty-Aware Correction and Language-Guided Refinement for Brain Tumor Segmentation in MRI
Shared title terminologyeess.IVDanish Ali, Ajmal Mian, Naveed Akhtar et al.
AIstatLab at BraTS-GoAT 2026 Task 3: Quality-Controlled Consensus Pseudo-Labeling and Dense Expert Adaptation
Shared title terminologyeess.IVHeeseung Shin, Changwon Lim