@article{18171, author = {Hanna Borgli and H{\r a}kon Stensland and P{\r a}l Halvorsen}, title = {Automatic Prompt Generation Using Class Activation Maps for Foundational Models: A Polyp Segmentation Case Study}, 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.}, year = {2025}, journal = {Machine Learning \& Knowledge Extraction}, volume = {7}, number = {22}, pages = {1-27}, month = {02/2025}, publisher = {MDPI}, issn = {2504-4990}, url = {https://www.mdpi.com/2504-4990/7/1/22}, doi = {10.3390/make7010022}, }