MIAS-SAM: Medical Image Anomaly Segmentation without thresholding

This paper presents MIAS-SAM, a novel approach for the segmentation of anomalous regions in medical images. MIAS-SAM uses a patch-based memory bank to store relevant image features, which are extracted from normal data using the SAM encoder. At inference time, the embedding patches extracted from the SAM encoder are compared with those in the memory bank to obtain the anomaly map. Finally, MIAS-SAM computes the center of gravity of the anomaly map to prompt the SAM decoder, obtaining an accurate segmentation from the previously extracted features. Differently from prior works, MIAS-SAM does not require to define a threshold value to obtain the segmentation from the anomaly map. Experimental results conducted on three publicly available datasets, each with a different imaging modality (Brain MRI, Liver CT, and Retina OCT) show accurate anomaly segmentation capabilities measured using DICE score. The code is available at:this https URL
View on arXiv@article{colussi2025_2505.22762, title={ MIAS-SAM: Medical Image Anomaly Segmentation without thresholding }, author={ Marco Colussi and Dragan Ahmetovic and Sergio Mascetti }, journal={arXiv preprint arXiv:2505.22762}, year={ 2025 } }