CoolFace
Datasetpublic

MahmoodLab/Patho-Bench

โ™† Patho-Bench ๐Ÿ“„ Preprint | Code Patho-Bench is designed to evaluate patch and slide encoder foundation models for whole-slide images (WSIs). This HuggingFace repository contains the data splits for the public Patho-Bench tasks. Please visit our codebase on GitHub for the full codebase and benchmark implementation. This project was developed by the Mahmood Lab at Harvard Medical School and Brigham and Women's Hospital. This work was funded by NIH NIGMS R35GM138216. [!NOTE]โ€ฆ See the full description on the dataset page: https://huggingface.co/datasets/MahmoodLab/Patho-Bench.

sourceHugging Facecc-by-nc-nd-4.0updated 1y agoView on Hugging Face
13likes1.7kdownloads
Dataset Card

โ™† Patho-Bench

๐Ÿ“„ Preprint | Code

<img src="pathobenchpublic.png" alt="Patho-Bench" style="width: 38%;" align="right"/>

Patho-Bench is designed to evaluate patch and slide encoder foundation models for whole-slide images (WSIs).

This HuggingFace repository contains the data splits for the public Patho-Bench tasks. Please visit our codebase on GitHub for the full codebase and benchmark implementation.

This project was developed by the Mahmood Lab at Harvard Medical School and Brigham and Women's Hospital. This work was funded by NIH NIGMS R35GM138216.

[!NOTE] Contributions are welcome! If you'd like to submit a new dataset and/or task for inclusion in Patho-Bench, please reach out to us via the Issues tab of our Github repo.

Currently, Patho-Bench contains the following task families. We will add more tasks in the future. For further details on each task, please refer to the THREADS foundation model paper.

**Family****Description****Tasks**
Morphological SubtypingClassifying distinct morphological patterns associated with different disease subtypes11
TME CharacterizationPredicting morphological features from the tissue microenvironment (e.g., vascular invasion, necrosis, immune response)16
Tumor GradingAssigning a grade based on cellular differentiation and growth patterns9
Molecular SubtypingPredicting antigen presence (e.g., via IHC staining)6
Mutation PredictionPredicting specific genetic mutations in tumors34
Treatment Response & AssessmentEvaluating patient response to treatment7
Survival PredictionPredicting survival outcomes and risk stratification12
Total95

๐Ÿ”ฅ Latest updates

  • โ€”April 2025: Patho-Bench has been updated with 53 new tasks! Now Patho-Bench contains a total of 95 public tasks across 33 datasets.
  • โ€”February 2025: Patho-Bench is now available on HuggingFace.

โšก Installation

Install the required packages:

pip install --upgrade datasets
pip install --upgrade huggingface_hub

๐Ÿ”‘ Authentication

python
from huggingface_hub import login
login(token="YOUR_HUGGINGFACE_TOKEN")

โฌ‡๏ธ Usage

The Patho-Bench data splits are designed for use with the Patho-Bench software package. However, you are welcome to use the data splits in your custom pipeline. Each task is associated with a YAML file containing task metadata and a TSV file containing the sample IDs, slide IDs, and labels.

[!NOTE] Patho-Bench only provides the data splits and labels, NOT the raw image data. You will need to download the raw image data from the respective dataset repositories (see links below).

Download an individual task

python
import datasets
dataset='cptac_coad'
task='KRAS_mutation'
datasets.load_dataset(
                    'MahmoodLab/Patho-Bench', 
                    cache_dir='/path/to/saveto',
                    dataset_to_download=dataset,     # Throws error if source not found
                    task_in_dataset=task,            # Throws error if task not found in dataset
                    trust_remote_code=True
                )

Download all tasks from a dataset

python
import datasets
dataset='cptac_coad'
task='*'
datasets.load_dataset(
                    'MahmoodLab/Patho-Bench', 
                    cache_dir='/path/to/saveto',
                    dataset_to_download=dataset,     
                    task_in_dataset=task,            
                    trust_remote_code=True
                )

Download entire Patho-Bench [4.2 MB]

python
import datasets
dataset='*'
datasets.load_dataset(
                    'MahmoodLab/Patho-Bench', 
                    cache_dir='/path/to/saveto',
                    dataset_to_download=dataset,
                    trust_remote_code=True
                )

๐Ÿ“ข Image data access links

For each dataset in Patho-Bench, please visit the respective repository below to download the raw image data.

DatasetLink
EBRAINS [Roetzer et al., 2022]https://doi.org/10.25493/WQ48-ZGX
BRACS [Brancati et al., 2021]https://www.bracs.icar.cnr.it/
PANDA [Bulten et al., 2022]https://panda.grand-challenge.org/data/
IMP [Neto et al., 2024]https://rdm.inesctec.pt/dataset/nis-2023-008
BCNB [Xu et al., 2021]https://bupt-ai-cz.github.io/BCNB/
CPTAC-BRCA [Edwards et al., 2015]https://www.cancerimagingarchive.net/collection/cptac-brca/
CPTAC-CCRCC [Edwards et al., 2015]https://www.cancerimagingarchive.net/collection/cptac-ccrcc/
CPTAC-COAD [Edwards et al., 2015]https://www.cancerimagingarchive.net/collection/cptac-coad/
CPTAC-GBM [Edwards et al., 2015]https://www.cancerimagingarchive.net/collection/cptac-gbm/
CPTAC-HNSC [Edwards et al., 2015]https://www.cancerimagingarchive.net/collection/cptac-hnsc/
CPTAC-LSCC [Edwards et al., 2015]https://www.cancerimagingarchive.net/collection/cptac-lscc/
CPTAC-LUAD [Edwards et al., 2015]https://www.cancerimagingarchive.net/collection/cptac-luad/
CPTAC-PDAC [Edwards et al., 2015]https://www.cancerimagingarchive.net/collection/cptac-pda/
MUT-HET-RCChttps://doi.org/10.25452/figshare.plus.c.5983795
OV-Bevacizumab [Wang et al., 2022]https://www.nature.com/articles/s41597-022-01127-6
NADT-Prostate [Wilkinson et al., 2021]https://www.medrxiv.org/content/10.1101/2020.09.29.20199711v1.full
POST-NAT-BRCAhttps://onlinelibrary.wiley.com/doi/10.1002/cyto.a.23244
BOEHMKhttps://www.synapse.org/Synapse:syn25946117/wiki/611576
MBChttps://www.synapse.org/Synapse:syn59490671/wiki/628046
SURGENhttps://www.ebi.ac.uk/biostudies/bioimages/studies/S-BIAD1285 / arXiv
CPTAC-UCEChttps://www.cancerimagingarchive.net/collection/cptac-ucec/
CPTAC-OVhttps://www.cancerimagingarchive.net/collection/cptac-ov/
VisioMelhttps://www.drivendata.org/competitions/148/visiomel-melanoma/
UCLA Lunghttps://idr.openmicroscopy.org/webclient/?show=project-1251
HER2-Tumor-ROIshttps://www.cancerimagingarchive.net/collection/her2-tumor-rois/
DHMC LUADhttps://bmirds.github.io/LungCancer/
DHMC CCRCChttps://bmirds.github.io/KidneyCancer/
Hancockhttps://hancock.research.fau.eu/download
BC Therapyhttps://zenodo.org/records/6337925\#.Y30d1y-l1Ls
COMEThttps://www.ebi.ac.uk/biostudies/bioimages/studies/S-BIAD1714
Multiscannerhttps://www.ebi.ac.uk/biostudies/bioimages/studies/S-BIAD1343
IMP-Cervicalhttps://rdm.inesctec.pt/dataset/nis-2024-003
Valentino-CRC, BRAF-CRChttps://www.ebi.ac.uk/biostudies/bioimages/studies/S-BIAD1407?query=czi

๐Ÿ“‡ Contact

For any questions, contact:

  • โ€”Faisal Mahmood (faisalmahmood@bwh.harvard.edu)
  • โ€”Anurag Vaidya (avaidya@mit.edu)
  • โ€”Andrew Zhang (andrewzh@mit.edu)
  • โ€”Guillaume Jaume (gjaume@bwh.harvard.edu)

๐Ÿ“œ Data description

Developed by: Mahmood Lab AI for Pathology @ Harvard/BWH Repository: GitHub License: CC-BY-NC-4.0

๐Ÿค Acknowledgements

Patho-Bench tasks were compiled from public image datasets and repositories (linked above). We thank the authors of these datasets for making their data publicly available.

๐Ÿ“ฐ How to cite

If Patho-Bench contributes to your research, please cite:

@article{vaidya2025molecular,
  title={Molecular-driven Foundation Model for Oncologic Pathology},
  author={Vaidya, Anurag and Zhang, Andrew and Jaume, Guillaume and Song, Andrew H and Ding, Tong and Wagner, Sophia J and Lu, Ming Y and Doucet, Paul and Robertson, Harry and Almagro-Perez, Cristina and others},
  journal={arXiv preprint arXiv:2501.16652},
  year={2025}
}

@article{zhang2025standardizing,
  title={Accelerating Data Processing and Benchmarking of AI Models for Pathology},
  author={Zhang, Andrew and Jaume, Guillaume and Vaidya, Anurag and Ding, Tong and Mahmood, Faisal},
  journal={arXiv preprint arXiv:2502.06750},
  year={2025}
}