## Point-supervised Brain Tumor Segmentation with Box-prompted MedSAM

Xiaofeng Liu, Jonghye Woo, Chao Ma, Jinsong Ouyang, and Georges El Fakhri

Abstract -Delineating lesions and anatomical structure is important for image-guided interventions. Point-supervised medical image segmentation (PSS) has great potential to alleviate costly expert delineation labeling. However, due to the lack of precise size and boundary guidance, the effectiveness of PSS often falls short of expectations. Although recent vision foundational models, such as the medical segment anything model (MedSAM), have made significant advancements in bounding-box-prompted segmentation, it is not straightforward to utilize point annotation, and is prone to semantic ambiguity. In this preliminary study, we introduce an iterative framework to facilitate semantic-aware point-supervised MedSAM. Specifically, the semantic box-prompt generator (SBPG) module has the capacity to convert the point input into potential pseudo bounding box suggestions, which are explicitly refined by the prototype-based semantic similarity. This is then succeeded by a prompt-guided spatial refinement (PGSR) module that harnesses the exceptional generalizability of MedSAM to infer the segmentation mask, which also updates the box proposal seed in SBPG. Performance can be progressively improved with adequate iterations. We conducted an evaluation on BraTS2018 for the segmentation of whole brain tumors and demonstrated its superior performance compared to traditional PSS methods and on par with box-supervised methods.

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00706v1-figure-dd0be3bc-e078-4f72-b401-d8af41c1634d.jpg)

## I. INTRODUCTION

T HE costly labeling effort in medical image delineation significantly hinder the development of data-driven AI models. There are increasing interests on weakly supervised segmentation to utilize bounding box or even a single point as label for training supervision [5]. However, due to the absence of accurate size and boundary guidance, there is a large performance gap between point-supervised medical image segmentation (PSS) and mask/box-supervised counterparts [2].

The recent progress of vision foundational models has achieved breakthroughs in several weakly supervised tasks, benefited by their strong zero-shot generalizability. For instance, the point-prompt natural image segment anything model (SAM) has been applied to enhance pseudo labels for point-supervised segmentation [1], [2]. Recently, the medical image version of SAM (MedSAM) [4] has been trained with 1.5 million segmented medical images to achieve generalizable box-prompt segmentation. MedSAM takes both an image slice and a bounding box, i.e., prompt, to predict the possible segmentation mask within the box. Notably, the natural image SAM itself follows point-prompt design. Therefore, it is not straight forward to integrate box-prompt MedSAM to PSS task as [1]. In addition, a significant limitation of SAM/MedSAM is the lack

X. Liu, C. Ma, J. Ouyang and G. El Fakhri are with the Department of Radiology and Biomedical Imaging, Yale University, New Haven, CT 06519. J. Woo is with the Massachusetts General Hospital and Harvard Medical School, Boston, MA 02114.

Fig. 1: Proposed iterative refinement framework with SBPG and PGSR modules for semantic-aware PSS utilizing the offthe-shelf box-prompt MedSAM. Only prompt refiner θ is to be trained with point-supervision.

of classification ability, resulting in class / structure-agnostic segmentation results [1], [2]. They are designed for general use, while fails to accurately delineate the specific lesion or structure as desired [1], [2].

To our knowledge, this is the first attempt to integrate MedSAM to facilitate semantic-aware PSS. We adopt an iterative framework to achieve coarse-to-fine progression of the bounding box. The point prompt is first converted to a box-proposal seed. Then, we configure a semantic box-prompt generator (SBPG) to propose and pick the reasonable box according to semantic similarity as [2]. It is followed by a box prompt guided spatial refinement (PGSR) to utilize the generalizable MedSAM to predict the segmentation mask. In addition, the smallest box that covers the mask is further used as the box seed in the next round of SBPG. We do not need to fine-tune the MedSAM to be semantic aware, which is prone to catastrophic forgetting. Notably, only the prompt refiner θ with the encoder part of the segmentor model will be trained, which involves about half the parameters of mask-supervised UNet training.

We demonstrated its effectiveness in BraTS2018 for PSS

of the whole brain tumor segmentation from T2-weighted MRI slices. We show that in testing, with 3 to 5 rounds of iteration, the point-prompt can achieve superior performance to approximate the box-supervised MedSAM [4].

## II. METHODOLOGY

In PSS, we are given tuplet { x , ρ i i c , s i } , in which x i can be an MR slice, while the point prompt ρ i c = { ρ , ρ i x i y , c } indicates the 2D spatial coordinates and the interested class c , e.g., tumor or normal tissue. We would expect the segmentation mask prediction ˆ s i c to approximate the expert annotation s i c .

To catering the box-prompt MedSAM [4], an initial box proposal seed of class c , i.e., b i c :0 , is generated from ρ i c , which is centered on point location ( ρ , ρ i x i y ) with the size of X × Y . We do not expect b i c :0 fit the region of interests very well as there is no prior information about the size in the initial step. Then, the proposal bag B i c = { b i c n : } N n =1 is created by scaling b i c :0 with N different scales. Therefore, the boxes in group B i c has strong spatial correlation with ρ i c , which avoid the inefficient random proposal in whole image [2].

To enable the model be aware of the specific semantic class, for example tumor in our task, a parameterized prompt refiner θ with a segmentor encoder and two fully connected layers is applied. Specifically, for the training sample with segmentation mask label s i c , we convert s i c to the corresponding smallest rectangle bounding box label b i c . Then, we store a set of feature f i c n : = ( θ x , b i i c n : ) in the most recent M batches to a memory buffer, and calculate the mean of { f i c nm : } N,M n,m =1 as the prototype V c . As conventional multiple instance learning (MIL) based methods [5], the instance level probability indicating the likelihood of b i c n : matches V c can be approximated with

$$p ( b _ { c \colon n } ^ { i }, \mathcal { V } _ { c } ) = \frac { e ^ { c o s ( f _ { c \colon n } ^ { i }, \mathcal { V } _ { c } ) } } { \sum _ { c = 1 } ^ { C } e ^ { c o s ( f _ { c \colon n } ^ { i }, \mathcal { V } _ { c } ) } }, \quad \quad ( 1 ) \quad \text{in } \mathbb { 1 } _ { \text{ to en} }$$

where cos ( ) · indicates the cosine similarity, and C is the number of segmentation category. With the ground truth b i c , θ is trained with the binary cross entropy loss of

$$\mathcal { L } = - \sum _ { c = 1 } ^ { C } \{ c _ { 1 } ^ { i } \log \sum _ { n } ^ { N } p ( b _ { c \cdot n } ^ { i }, \mathcal { V } _ { c } ) + ( 1 - c _ { 1 } ^ { i } ) \log ( 1 - \sum _ { n } ^ { N } p ( b _ { c \cdot n } ^ { i }, \mathcal { V } _ { c } ) ) \}, \quad \text{target} \quad \text{$\quad \text{$target$th$} \\ \text{where $c^{i}$ is the one-hot class label. Therefore the non-muted $medSAN$} \\ \text{where $c^{i}$ is the one-hot class label. Therefore the non-muted $medSAN$}$$

where c i ✶ is the one-hot class label. Therefore, the prompt refiner is optimized to be semantic aware for the specific anatomical structure. The prototype in buffer is also updated with the new model θ . With p b ( i c n : , V c ) for each b i c n : , we pick the highest probability one in B i c as our optimal proposal b i c : ∗ in current stage, which is also our bounding box inference.

Then, in the PGSR module, the off-the-shelf MedSAM [4] takes both x i and b i c : ∗ to predict the possible segmentation mask ˆ s i c . Notably, no information about the interested class can be directly informed in MedSAM. Although the MedSAM has strong ability of zero-shot segmentation to delineate the relatively accurate mask within the current box prompt b i c : ∗ , the alignment of ˆ s i c is highly dependent on the precise b i c : ∗ . This motivated us to refine b i c : ∗ with a more suitable proposal seed b i c :0 in SBPG.

In practice, we can simply apply the smallest bounding box ˆ b i c :0 for ˆ s i c :0 , and use ˆ b i c :0 as our box proposal seed in the

TABLE I: Numerical comparisons and ablation studies of the cross-modality brain tumor HSI segmentation task

| Method     | Supervision   |   Dice score ↑ | Hausdorff distance   |
|------------|---------------|----------------|----------------------|
| WISE-Net   | point         |          32.48 | 67.25 [mm]           |
| Ours(T=1)  | point         |          52.15 | 43.88 [mm]           |
| Ours(T=5)  | point         |          65.17 | 21.36 [mm]           |
| Ours(T=10) | point         |          65.29 | 21.12 [mm]           |
| MedSAM     | box           |          68.74 | 18.42 [mm]           |

next round of SBPG. With T rounds of iteration, we expect that the box-prompt can be progressively refined to inform the MedSAM to predict an accurate segmentation mask.

In particular, in the last round of testing, we do not need to generate ˆ b i c :0 . Instead, the T -th round ˆ s i c :0 is used as our final prediction.

## III. EXPERIMENTS AND RESULTS

We evaluated on BraTS dataset for whole tumor segmentation as [3], and use T2-weighted slices as our input. We used the 80%/20% split for training or testing. We generate the smallest bounding box for the mask and use its center as ρ i c . Our prompt refiner adopted the encoder part of the segmentor in [3], which is followed by two fully connected layers of 1024 and 256 dimensions, respectively. We empirically set X × Y = 21 × 21 and search proper T ∈ { 1 2 3 5 10 , , , , } . We followed [2] to compare with the conventional point-supervised method of WISE-Net without the use of the vision fundation model. Also, we directly input the ground truth of the bounding box into MedSAM, which can be 'upper bound" of the performance of pointwise method. In Tab.I, we can see that our model with T ≥ 5 outperforms WISE-Net by a large margin. The Dice score is close to the box-supervised MedSAM.

## IV. CONCLUSION

In this work, we proposed an efficient iterative framework to enable box-prompt MedSAM to point-supervised medical image segmentation. A lightweight prompt refiner with only encoder is specifically trained for the interested structural class. We show that the fixed off-the-shelf large model can flexibly target the specific downstream task without the need of large scale fine-tuning. The medical PSS performance can be largely improved by the advance of vision foundation model, e.g., MedSAM, which show great promise for facilitating the imageguided interventions.

## ACKNOWLEDGMENT

This work is supported by R21EB034911, R01CA165221, R01DC018511, P41EB022544, and NAIRR240016.

## REFERENCES

- [1] T. Chen, Z. Mai, R. Li, and W.-l. Chao. Segment anything model (sam) enhanced pseudo labels for weakly supervised semantic segmentation. NeurIPS2023 ICBINB Workshop , 2023.
- [2] G. Guo, D. Shao, C. Zhu, S. Meng, X. Wang, and S. Gao. P2p: Transforming from point supervision to explicit visual prompt for object detection and segmentation. ICLR , 2024.
- [3] X. Liu, H. A. Shih, F. Xing, E. Santarnecchi, G. El Fakhri, and J. Woo. Incremental learning for heterogeneous structure segmentation in brain tumor MRI. In MICCAI , pages 46-56. Springer, 2023.
- [4] J. Ma, Y. He, F. Li, L. Han, C. You, and B. Wang. Segment anything in medical images. Nature Communications , 15(1):654, 2024.
- [5] W. Shen, Z. Peng, X. Wang, H. Wang, J. Cen, D. Jiang, and Q. Tian. A survey on label-efficient deep image segmentation: Bridging the gap between weak supervision and dense prediction. IEEE TPAMI , 2023.
Xiaofeng Liu Jonghye Woo Chao Ma Jinsong Ouyang Georges El Fakhri
Point-supervised Brain Tumor Segmentation with Box-prompted MedSAM
Delineating lesions and anatomical structure is important for image-guided
interventions. Point-supervised medical image segmentation (PSS) has great
potential to alleviate costly expert delineation labeling. However, due to the
lack of precise size and boundary guidance, the effectiveness of PSS often
falls short of expectations. Although recent vision foundational models, such
as the medical segment anything model (MedSAM), have made significant
advancements in bounding-box-prompted segmentation, it is not straightforward
to utilize point annotation, and is prone to semantic ambiguity. In this
preliminary study, we introduce an iterative framework to facilitate
semantic-aware point-supervised MedSAM. Specifically, the semantic box-prompt
generator (SBPG) module has the capacity to convert the point input into
potential pseudo bounding box suggestions, which are explicitly refined by the
prototype-based semantic similarity. This is then succeeded by a prompt-guided
spatial refinement (PGSR) module that harnesses the exceptional
generalizability of MedSAM to infer the segmentation mask, which also updates
the box proposal seed in SBPG. Performance can be progressively improved with
adequate iterations. We conducted an evaluation on BraTS2018 for the
segmentation of whole brain tumors and demonstrated its superior performance
compared to traditional PSS methods and on par with box-supervised methods.