BEETLE: a multicentric dataset for training and benchmarking breast cancer segmentation in H&E slides
Automated semantic segmentation of whole-slide images (WSIs) stained with hematoxylin and eosin (H&E) is essential for large-scale artificial intelligence-based biomarker analysis in breast cancer. However, existing public datasets for breast cancer segmentation lack the morphological diversity needed to support model generalizability and robust biomarker validation across heterogeneous patient cohorts. We introduce BrEast cancEr hisTopathoLogy sEgmentation (BEETLE), a dataset for multiclass semantic segmentation of H&E-stained breast cancer WSIs. The development set consists of 587 WSIs of biopsy and resection specimens from 527 patients across three collaborating clinical centers and two public datasets, digitized using seven scanners, and covers all molecular subtypes and histological grades. Using diverse annotation strategies, we collected annotations across four classes - invasive epithelium, non-invasive epithelium, necrosis, and other - with particular focus on morphologies underrepresented in existing datasets, such as ductal carcinoma in situ and dispersed lobular tumor cells. The dataset's diversity and relevance to the rapidly growing field of automated biomarker quantification in breast cancer ensure its high potential for reuse. Finally, we provide a well-curated, multicentric external evaluation set to enable standardized benchmarking of breast cancer segmentation models.
Welcome to the GitHub repository for the BEETLE dataset. This repository provides:
- Code to download the dataset from the associated Zenodo repository
- Code to run inference using the nnU-Net model trained on the dataset for technical validation
The repository is laid out as follows:
- The
data/folder starts out empty and is populated with files after running thedownload_all.shshell script, which downloads and extracts the dataset files. After extraction, the folder is organized as follows:
.
└── data/
├── annotations/ # Annotations for the development set in multiple formats
│ ├── jsons/ # JSON format with tissue compartments annotated as polygons
│ ├── label_map.json # Mapping of pixel values to class labels
│ ├── masks/ # Multiresolution TIFF images with pixel-wise class labels
│ └── xmls/ # XML format with tissue compartments annotated as polygons
│
├── images/ # Images for the development and evaluation sets
│ ├── development/
│ │ └── wsis/ # Whole-slide images for development
│ └── evaluation/
│ ├── rois/ # PNG images of ROIs for evaluation
│ └── wsis/ # Whole-slide images for evaluation
│
└── model/ # Weights of the final ensemble nnU-Net model used for technical validation, together with the dataset.json used for training- The
code/contains Python code for running inference on the evaluation set.
We describe additional details regarding the datasets on our Zenodo data repository.
The nnU-Net model used for technical validation was trained using nnU-Net-for-Pathology, nnunet_for_pathology_v2 branch, at commit ea9244701500adae7646c4cbcea6da4e38fb6efa. The HED augmentation settings were taken from the preceding commit and set to hem=0.05, eos=0.05, dab=0.05, with a probability of 1. We trained the networks using the nnUNetTrainer_WSD_wei_i0_nnunet_aug_json trainer variant.
- Download all data from Zenodo by running the
download_all.shshell script. All data is automatically organized in the directory layout as described above. - To run code for running inference, build the Docker. Then use the script:
code/docker/run_inference.sh
This GitHub repository is released under the Apache-2.0 license. The data of the BEETLE dataset is released under the CC BY-NC-SA 4.0 license.
If you use this dataset, please cite:
@misc{lems2025beetle,
title={A Multicentric Dataset for Training and Benchmarking Breast Cancer Segmentation in H&E Slides},
author={Carlijn Lems and Leslie Tessier and John-Melle Bokhorst and Mart van Rijthoven and Witali Aswolinskiy and Matteo Pozzi and Natalie Klubickova and Suzanne Dintzis and Michela Campora and Maschenka Balkenhol and Peter Bult and Joey Spronck and Thomas Detone and Mattia Barbareschi and Enrico Munari and Giuseppe Bogina and Jelle Wesseling and Esther H. Lips and Francesco Ciompi and Frédérique Meeuwsen and Jeroen van der Laak},
year={2025},
eprint={2510.02037},
archivePrefix={arXiv},
primaryClass={q-bio.QM},
url={https://arxiv.org/abs/2510.02037},
}