Optimizing prompt strategies for SAM: advancing lesion segmentation across diverse medical imaging modalities
- 29 August 2025
- journal article
- Published by IOP Publishing in Physics in Medicine & Biology
- Vol. 70 (17) , 175014
Abstract
Object. To evaluate various segment anything model (SAM) prompt strategies across four lesion datasets and to subsequently develop a reinforcement learning (RL) agent to optimize SAM prompt placement. Approach. This retrospective study included patients with four independent ovarian, lung, renal, and breast tumor datasets. Manual segmentation and SAM-assisted segmentation were performed for all lesions. An RL model was developed to predict and select SAM points to maximize segmentation performance. Statistical analysis of segmentation was conducted using pairwise t-tests. Main results. Results show that increasing the number of prompt points significantly improves segmentation accuracy, with Dice coefficients rising from 0.272 for a single point to 0.806 for five or more points in ovarian tumors. The prompt location also influenced performance, with surface and union-based prompts outperforming center-based prompts, achieving mean Dice coefficients of 0.604 and 0.724 for ovarian and breast tumors, respectively. The RL agent achieved a peak Dice coefficient of 0.595 for ovarian tumors, outperforming random and alternative RL strategies. Additionally, it significantly reduced segmentation time, achieving a nearly ten-fold improvement compared to manual methods using SAM. Significance. While increased SAM prompts and non-centered prompts generally improved segmentation accuracy, each pathology and modality has specific optimal thresholds and placement strategies. Our RL agent achieved superior performance compared to other agents while achieving a significant reduction in segmentation time.Keywords
All Related Versions
Funding Information
- National Institutions of Health / National Cancer Institute Grant (P30CA006973)
This publication has 28 references indexed in Scilit:
- Optimizing Efficiency and Effectiveness in Sequential Prompt Strategy for SAM Using Reinforcement Learning2024
- Car-Dcros: A Dataset and Benchmark for Enhancing Cardiovascular Artery Segmentation Through Disconnected Components Repair and Open Curve Snake2024
- Autonomous Mobile Robots2023
- Segment anything model for medical image analysis: An experimental studyMedical Image Analysis, 2023
- The role of anatomical context in soft‐tissue multi‐organ segmentation of cadaveric non‐contrast‐enhanced whole body CTMedical Physics, 2023
- Multi-agent medical image segmentation: A surveyComputer Methods and Programs in Biomedicine, 2023
- Reinforcement learning in medical image analysis: Concepts, applications, challenges, and future directionsJournal of Applied Clinical Medical Physics, 2023
- The state of the art in kidney and kidney tumor segmentation in contrast-enhanced CT imaging: Results of the KiTS19 challengeMedical Image Analysis, 2020
- Auto‐segmentation of organs at risk for head and neck radiotherapy planning: From atlas‐based to deep learning methodsMedical Physics, 2020
- Local Shannon entropy measure with statistical tests for image randomnessInformation Sciences, 2013