Automatic Prompt Generation Using Class Activation Maps for Foundational Models: A Polyp Segmentation Case Study

We introduce a weakly supervised segmentation approach that leverages class activation maps and the Segment Anything Model to generate high-quality masks using only classification data. A pre-trained classifier produces class activation maps that, once thresholded, yield bounding boxes encapsulating the regions of interest. These boxes prompt the SAM to generate detailed segmentation masks, which are then refined by selecting the best overlap with automatically generated masks from the foundational model using the intersection over union metric. In a polyp segmentation case study, our approach outperforms existing zero-shot and weakly supervised methods, achieving a mean intersection over union of 0.63. This method offers an efficient and general solution for image segmentation tasks where segmentation data are scarce.

Authors

Institutions

Publication Details

Journal
Machine Learning and Knowledge Extraction
Published
2025-02-24
DOI
https://doi.org/10.3390/make7010022
Citations
1
Primary Topic
Machine Learning and Data Classification
Type
article
Field-Weighted Citation Impact
2.48
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Automatic Prompt Generation Using Class Activation Maps for Foundational Models: A Polyp Segmentation Case Study

Hanna Borgli, Pål Halvorsen, Håkon Kvale Stensland
1 citations
Machine Learning and Knowledge Extraction
Machine Learning and Data Classification
2.48
article

Automatic Prompt Generation Using Class Activation Maps for Foundational Models: A Polyp Segmentation Case Study

Hanna Borgli, Pål Halvorsen, Håkon Kvale Stensland
article en
1 citations

Abstract

We introduce a weakly supervised segmentation approach that leverages class activation maps and the Segment Anything Model to generate high-quality masks using only classification data. A pre-trained classifier produces class activation maps that, once thresholded, yield bounding boxes encapsulating the regions of interest. These boxes prompt the SAM to generate detailed segmentation masks, which are then refined by selecting the best overlap with automatically generated masks from the foundational model using the intersection over union metric. In a polyp segmentation case study, our approach outperforms existing zero-shot and weakly supervised methods, achieving a mean intersection over union of 0.63. This method offers an efficient and general solution for image segmentation tasks where segmentation data are scarce.

Machine Learning and Knowledge ExtractionVol. 7(1)
University of Oslo (NO), Simula Research Laboratory (NO), Simula Metropolitan Center for Digital Engineering (NO)
Openalex Percentile: Top 12%
Machine Learning and Data Classification
2.48
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.