MIAS-SAM: Medical Image Anomaly Segmentation without thresholding
Marco Colussi, Dragan Ahmetovic, Sergio Mascetti
TL;DR
MIAS-SAM addresses unsupervised medical anomaly segmentation without thresholding by constructing a patch-based memory bank of normal features from a SAM ViT encoder and scoring test patches via memory-distance. It computes the anomaly map's center of gravity and uses the resulting coordinates as a point prompt to guide the SAM decoder, yielding accurate, threshold-free segmentation. Across Brain MRI, Liver CT, and Retina OCT, MIAS-SAM achieves competitive to state-of-the-art DICE scores and excels on Retina OCT, while avoiding dataset-specific textual prompts. The approach highlights the potential of memory-augmented embeddings and gravity-based prompting for robust medical anomaly segmentation using foundational models.
Abstract
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: https://github.com/warpcut/MIAS-SAM
