Enhancing MedSAM with a Lightweight Box Predictor for Medical Image Segmentation

Amirhossein Movahedisefat, Amirreza Fateh, Mohammad Reza Mohammadi
6/3/2026
3 citations
cs.CVcs.AI

Official code: Amirhosseinmovahedi/MedSAM-BoxPredictor (2 stars, Python, last commit 2026-09-03).

Abstract

Semantic segmentation in medical imaging is a critical yet challenging task due to data scarcity and high variability across modalities. While foundation models like the Segment Anything Model (SAM) show promise, they often struggle with medical images without specific adaptation.

Show full abstract

Moreover, point prompts, despite being the most natural form of user interaction, provide insufficient spatial context for reliable segmentation, particularly when target structures are irregular or poorly contrasted. In this paper, we propose an enhanced segmentation framework that integrates a lightweight Box Predictor module into the MedSAM architecture. The Box Predictor estimates an approximate bounding box from a single user click using localized image embedding features, providing spatial guidance that reduces the ambiguity of point prompts, while introducing only 1.6M additional parameters and negligible inference overhead. We introduce a two-stage training pipeline where the Box Predictor is trained independently before being integrated into MedSAM. To validate the generalization capability of our method, we conduct extensive evaluations on four diverse datasets (FLARE22, BRISC, BUSI, LungSegDB) spanning distinct imaging modalities, including CT, MRI, and Ultrasound. Our method improves segmentation accuracy and robustness across varied anatomical structures and imaging domains, achieving Dice scores of 0.89 (BUSI), 0.93 (FLARE22), 0.88 (BRISC), and 0.98 (LungSegDB). Code is available at https://github.com/Amirhosseinmovahedi/MedSAM-BoxPredictor

View on arXivView PDF

Code Implementations(1)

20PythonMay 28, 20262 months ago

Similar Papers

Cite this paper

@article{movahedisefat2026enhancing,
  title  = {Enhancing MedSAM with a Lightweight Box Predictor for Medical Image Segmentation},
  author = {Amirhossein Movahedisefat and Amirreza Fateh and Mohammad Reza Mohammadi},
  year   = {2026},
  eprint = {2606.04705},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.04705v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.04705.svg)](https://codeofpaper.com/paper/2606.04705)

Discussion