Prompt Once, Segment Everything: Leveraging SAM 2 Potential for Infinite Medical Image Segmentation with a Single Prompt

dc.contributor.affiliationUniversidade de Santiago de Compostela. Departamento de Electrónica e Computación
dc.contributor.authorGutiérrez, Juan D.
dc.contributor.authorDelgado, Emilio
dc.contributor.authorBreuer, Carlos
dc.contributor.authorConejero, José M.
dc.contributor.authorRodriguez-Echeverria, Roberto
dc.date.accessioned2025-04-15T08:51:05Z
dc.date.available2025-04-15T08:51:05Z
dc.date.issued2025-04-14
dc.description.abstractSemantic segmentation of medical images holds significant potential for enhancing diagnostic and surgical procedures. Radiology specialists can benefit from automated segmentation tools that facilitate identifying and isolating regions of interest in medical scans. Nevertheless, to obtain precise results, sophisticated deep learning models tailored to this specific task must be developed and trained, a capability not universally accessible. SAM 2 is a foundation model designed for image and video segmentation tasks, built on its predecessor, SAM. This paper introduces a novel approach leveraging SAM 2’s video segmentation capabilities to reduce the prompts required to segment an entire volume of medical images. The study first compares SAM and SAM 2’s performance in medical image segmentation. Evaluation metrics such as the Jaccard index and Dice score are used to measure precision and segmentation quality. Then, our novel approach is introduced. Statistical tests include comparing precision gains and computational efficiency, focusing on the trade-off between resource use and segmentation time. The results show that SAM 2 achieves an average improvement of 1.76 % in the Jaccard index and 1.49 % in the Dice score compared to SAM, albeit with a ten-fold increase in segmentation time. Our novel approach to segmentation reduces the number of prompts needed to segment a volume of medical images by 99.95 %. We demonstrate that it is possible to segment all the slices of a volume and, even more, of a whole dataset, with a single prompt, achieving results comparable to those obtained by state-of-the-art models explicitly trained for this task. Our approach simplifies the segmentation process, allowing specialists to devote more time to other tasks. The hardware and personnel requirements to obtain these results are much lower than those needed to train a deep learning model from scratch or to modify the behavior of an existing one using model modification techniques.
dc.description.peerreviewedSI
dc.description.sponsorshipThis work was supported by Grant CPP2021-008491 funded by MICIU/AEI/10.13039/ 50100011033 and by the European Union NextGenerationEU/PRTR.
dc.identifier.citationGutiérrez, J.D.; Delgado, E.; Breuer, C.; Conejero, J.M.; Rodriguez-Echeverria, R. Prompt Once, Segment Everything: Leveraging SAM 2 Potential for Infinite Medical Image Segmentation with a Single Prompt. Algorithms 2025, 18, 227
dc.identifier.doi10.3390/a18040227
dc.identifier.issn1999-4893
dc.identifier.urihttps://hdl.handle.net/10347/40814
dc.issue.number4
dc.journal.titleAlgorithms
dc.language.isoeng
dc.publisherMDPI
dc.relation.projectIDinfo:eu-repo/grantAgreement/AEI/Plan Estatal de Investigación Científica y Técnica y de Innovación 2021-2023/CPP2021-008491/ES/MUSICGENIA: Una Plataforma en la Nube para de Generación de Música bajo Demanda por medio de Inteligencia Artificial
dc.relation.publisherversionhttps://doi.org/10.3390/a18040227
dc.rights© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license
dc.rightsAttribution 4.0 Internationalen
dc.rights.accessRightsopen access
dc.rights.urihttp://creativecommons.org/licenses/by/4.0/
dc.subjectImage Segmentation
dc.subjectDeep Learning
dc.subjectZero-Shot Learning
dc.subjectMedical Imaging
dc.subjectFoundation Models
dc.titlePrompt Once, Segment Everything: Leveraging SAM 2 Potential for Infinite Medical Image Segmentation with a Single Prompt
dc.typejournal article
dc.type.hasVersionVoR
dc.volume.number18
dspace.entity.typePublication
relation.isAuthorOfPublication34f83200-7a0f-4455-a120-b9c6daf3bcd4
relation.isAuthorOfPublication.latestForDiscovery34f83200-7a0f-4455-a120-b9c6daf3bcd4

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
algorithms-18-00227.pdf
Size:
10.22 MB
Format:
Adobe Portable Document Format