Skip to content

Dense-Prompt-Guided Adaptation of the Segment Anything Model for Fully Automatic Multiple Sclerosis Lesion Segmentation

Shideh Maleki, Mohammad Reza Mohammadi, Mohsen Soryani

eess.IV

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