CellViT: Vision Transformers for Precise Cell Segmentation and Classification

Fabian Hörst, Moritz Rempe, Lukas Heine, Constantin Seibold, Julius Keyl +6 more
6/27/2023
eess.IVcs.CVcs.LG

Official code: TIO-IKIM/CellViT (394 stars, PyTorch, last commit 2025-07-23).

Abstract

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 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 F1-detection score of 0.83. The code is publicly available at https://github.com/TIO-IKIM/CellViT

View on arXivView PDF

Code Implementations(1)

TIO-IKIM/CellViTOfficial100%
PyTorch

CellViT: Vision Transformers for Precise Cell Segmentation and Classification

39474CSS, HTMLJun 20, 20231 years agoNOASSERTION
aicelldigitalpathologymicroscopyml+2 more

Similar Papers

Cite this paper

@article{hrst2023cellvit,
  title  = {CellViT: Vision Transformers for Precise Cell Segmentation and Classification},
  author = {Fabian Hörst and Moritz Rempe and Lukas Heine and Constantin Seibold and Julius Keyl and Giulia Baldini and Selma Ugurel and Jens Siveke and Barbara Grünwald and Jan Egger and Jens Kleesiek},
  year   = {2023},
  eprint = {2306.15350},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.15350v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2306.15350.svg)](https://codeofpaper.com/paper/2306.15350)

Discussion