Segment Anything for Histopathology

Published: 27 Mar 2025, Last Modified: 01 May 2025MIDL 2025 OralEveryoneRevisionsBibTeXCC BY 4.0
Keywords: segment anything, histopathology, instance segmentation
TL;DR: This paper presents PathoSAM, a SAM-based model for nucleus segmentation in H&E-stained histology images. It improves generalization across datasets, supports automatic and interactive segmentation, and addresses SAM's histopathology limitations.
Abstract: Nucleus segmentation is an important analysis task in digital pathology. However, methods for automatic segmentation often struggle with new data from a different distribution, requiring users to manually annotate nuclei and retrain data-specific models. Vision foundation models (VFMs), such as the Segment Anything Model (SAM), offer a more robust alternative for automatic and interactive segmentation. Despite their success in natural images, a foundation model for nucleus segmentation in histopathology is still missing. Initial efforts to adapt SAM have shown some success, but did not yet introduce a comprehensive model for diverse segmentation tasks. To close this gap, we introduce PathoSAM, a VFM for nucleus segmentation, based on training SAM on a diverse dataset. Our extensive experiments show that it is the new state-of-the-art model for automatic and interactive nucleus instance segmentation in histopathology. We also demonstrate how it can be adapted for other segmentation tasks, including semantic nucleus segmentation. For this task, we show that it yields results better than popular methods, while not yet beating the state-of-the-art, CellViT. Our models are open-source and compatible with popular tools for data annotation. We also provide scripts for whole-slide image segmentation.
Primary Subject Area: Foundation Models
Secondary Subject Area: Segmentation
Paper Type: Methodological Development
Registration Requirement: Yes
Reproducibility: https://github.com/computational-cell-analytics/patho-sam
Visa & Travel: Yes
Submission Number: 186
Loading

OpenReview is a long-term project to advance science through improved peer review with legal nonprofit status. We gratefully acknowledge the support of the OpenReview Sponsors. © 2025 OpenReview