SAM-guided prompt learning for Multiple Sclerosis lesion segmentation

Accurate segmentation of Multiple Sclerosis (MS) lesions remains a critical challenge in medical image analysis due to their small size, irregular shape, and sparse distribution. Despite recent progress in vision foundation models — such as SAM and its medical variant MedSAM — these models have not yet been explored in the context of MS lesion segmentation. Moreover, their reliance on manually crafted prompts and high inference-time computational cost limits their applicability in clinical workflows, especially in resource-constrained environments. In this work, we introduce a novel training-time framework for effective and efficient MS lesion segmentation. Our method leverages SAM solely during training to guide a prompt learner that automatically discovers task-specific embeddings. At inference, SAM is replaced by a lightweight convolutional aggregator that maps the learned embeddings directly into segmentation masks—enabling fully automated, low-cost deployment. We show that our approach significantly outperforms existing specialized methods on the public MSLesSeg dataset, establishing new performance benchmarks in a domain where foundation models had not previously been applied. To assess generalizability, we also evaluate our method on pancreas and prostate segmentation tasks, where it achieves competitive accuracy while requiring an order of magnitude fewer parameters and computational resources compared to SAM-based pipelines. By eliminating the need for foundation models at inference time, our framework enables efficient segmentation without sacrificing accuracy. This design bridges the gap between large-scale pretraining and real-world clinical deployment, offering a scalable and practical solution for MS lesion segmentation and beyond. Code is available at https://github.com/perceivelab/MS-SAM-LESS . • Overcomes SAM’s manual prompting and high inference cost limitations. • Learns automatic prompts for MS lesion segmentation via SAM during training. • Replaces SAM with a lightweight CNN aggregator for efficient deployment. • Outperforms state-of-the-art on the MSLesSeg benchmark. • Demonstrates strong generalization to pancreas and prostate segmentation tasks.

Authors

Institutions

Publication Details

Journal
Pattern Recognition Letters
Published
2025-11-20
DOI
https://doi.org/10.1016/j.patrec.2025.11.018
Primary Topic
Advanced Neural Network Applications
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

SAM-guided prompt learning for Multiple Sclerosis lesion segmentation

Ulaş Bağcı, Federica Proietto Salanitri, Concetto Spampinato, Manuela Pennisi et al.
Pattern Recognition Letters
Advanced Neural Network Applications
article

SAM-guided prompt learning for Multiple Sclerosis lesion segmentation

Ulaş Bağcı, Federica Proietto Salanitri, Concetto Spampinato, Manuela Pennisi, Giovanni Bellitto, Salvatore Calcagno
article en

Abstract

Accurate segmentation of Multiple Sclerosis (MS) lesions remains a critical challenge in medical image analysis due to their small size, irregular shape, and sparse distribution. Despite recent progress in vision foundation models — such as SAM and its medical variant MedSAM — these models have not yet been explored in the context of MS lesion segmentation. Moreover, their reliance on manually crafted prompts and high inference-time computational cost limits their applicability in clinical workflows, especially in resource-constrained environments. In this work, we introduce a novel training-time framework for effective and efficient MS lesion segmentation. Our method leverages SAM solely during training to guide a prompt learner that automatically discovers task-specific embeddings. At inference, SAM is replaced by a lightweight convolutional aggregator that maps the learned embeddings directly into segmentation masks—enabling fully automated, low-cost deployment. We show that our approach significantly outperforms existing specialized methods on the public MSLesSeg dataset, establishing new performance benchmarks in a domain where foundation models had not previously been applied. To assess generalizability, we also evaluate our method on pancreas and prostate segmentation tasks, where it achieves competitive accuracy while requiring an order of magnitude fewer parameters and computational resources compared to SAM-based pipelines. By eliminating the need for foundation models at inference time, our framework enables efficient segmentation without sacrificing accuracy. This design bridges the gap between large-scale pretraining and real-world clinical deployment, offering a scalable and practical solution for MS lesion segmentation and beyond. Code is available at https://github.com/perceivelab/MS-SAM-LESS . • Overcomes SAM’s manual prompting and high inference cost limitations. • Learns automatic prompts for MS lesion segmentation via SAM during training. • Replaces SAM with a lightweight CNN aggregator for efficient deployment. • Outperforms state-of-the-art on the MSLesSeg benchmark. • Demonstrates strong generalization to pancreas and prostate segmentation tasks.

Pattern Recognition LettersVol. 199
Northwestern University (US), University of Catania (IT)
Openalex Percentile: Top 64%
Advanced Neural Network Applications
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.