CellViT: Vision Transformers for Precise Cell Segmentation and Classification
Overview
Authors
Affiliations
Nuclei detection and segmentation in hematoxylin and eosin-stained (H&E) tissue images are important clinical tasks and crucial for a wide range of applications. However, it is a challenging task due to nuclei variances in staining and size, overlapping boundaries, and nuclei clustering. While convolutional neural networks have been extensively used for this task, we explore the potential of Transformer-based networks in combination with large scale pre-training in this domain. Therefore, we introduce a new method for automated instance segmentation of cell nuclei in digitized tissue samples using a deep learning architecture based on Vision Transformer called CellViT. CellViT is trained and evaluated on the PanNuke dataset, which is one of the most challenging nuclei instance segmentation datasets, consisting of nearly 200,000 annotated nuclei into 5 clinically important classes in 19 tissue types. We demonstrate the superiority of large-scale in-domain and out-of-domain pre-trained Vision Transformers by leveraging the recently published Segment Anything Model and a ViT-encoder pre-trained on 104 million histological image patches - achieving state-of-the-art nuclei detection and instance segmentation performance on the PanNuke dataset with a mean panoptic quality of 0.50 and an F-detection score of 0.83. The code is publicly available at https://github.com/TIO-IKIM/CellViT.
Ali M, Benfante V, Basirinia G, Alongi P, Sperandeo A, Quattrocchi A J Imaging. 2025; 11(2).
PMID: 39997561 PMC: 11856378. DOI: 10.3390/jimaging11020059.
Yadav D, Sharma B, Noonia A, Mehbodniya A Sci Rep. 2025; 15(1):6391.
PMID: 39984521 PMC: 11845714. DOI: 10.1038/s41598-025-87627-y.
SAMCell: Generalized Label-Free Biological Cell Segmentation with Segment Anything.
VandeLoo A, Malta N, Aponte E, van Zyl C, Xu D, Forest C bioRxiv. 2025; .
PMID: 39974978 PMC: 11839016. DOI: 10.1101/2025.02.06.636835.
Segment Anything for Microscopy.
Archit A, Freckmann L, Nair S, Khalid N, Hilt P, Rajashekar V Nat Methods. 2025; 22(3):579-591.
PMID: 39939717 PMC: 11903314. DOI: 10.1038/s41592-024-02580-4.
Machine learning methods for histopathological image analysis: Updates in 2024.
Komura D, Ochi M, Ishikawa S Comput Struct Biotechnol J. 2025; 27:383-400.
PMID: 39897057 PMC: 11786909. DOI: 10.1016/j.csbj.2024.12.033.