# PatchCamelyon (PCam): lymph node metastasis patch classification benchmark

## Facts

- Provider: Bastiaan Veeling et al. (from the CAMELYON16 challenge); Parquet conversion by 1aurent
- License: CC0-1.0 (https://github.com/basveeling/pcam)
- Size: 19 files
- Format: Parquet (in sampled files)
- Stored at: Hugging Face, https://huggingface.co/datasets/1aurent/PatchCamelyon
- Access: public, readable without an account
- Category: Health & Biomedical
- Source: https://doi.org/10.1007/978-3-030-00934-2_24
- Page: https://scigantic.com/archive/41af0e75-76af-55cb-91fc-8f9e269ebbe7
- Keywords: Health & Biomedical, histopathology, benchmark, Parquet, Hugging Face

## About

PatchCamelyon (PCam) is a histopathology image classification benchmark introduced by Veeling et al. (MICCAI 2018) as a medical counterpart to CIFAR-10. It consists of 327,680 colour patches of 96 x 96 pixels extracted from H&E-stained whole-slide images of sentinel lymph node sections in the CAMELYON16 challenge, undersampled to 10x. Each patch carries a binary label marking whether its centre 32 x 32 region contains tumour tissue. Splits are 262,144 training and 32,768 each for validation and test, with no slide overlap between splits and a 50/50 class balance. This repository is a Parquet conversion of the original HDF5 release with image and label columns. As measured 2026-11-14 it holds 17 Parquet shards under data/ totalling about 7.6 GB; load with datasets (load_dataset('1aurent/PatchCamelyon')) or pyarrow and decode images with PIL. Used for benchmarking CNNs and vision transformers on pathology, rotation-equivariant networks, self-supervised pretraining and pathology foundation model evaluation. The original PCam repository releases the data under CC0, matching CAMELYON16; cite Veeling et al. 2018 and Ehteshami Bejnordi et al. 2017.

## Load the data

```python
from datasets import load_dataset
ds = load_dataset("1aurent/PatchCamelyon")
print(ds)
```

## Data structure

File types in sampled files: Parquet

Example file: `data/test-00000-of-00002-bb04e6313f58efa0.parquet`

## Open it

- In a hosted notebook with the data mounted: https://scigantic.com/archive/41af0e75-76af-55cb-91fc-8f9e269ebbe7
- Full record as JSON (schema card included): https://api.scigantic.com/api/archives/41af0e75-76af-55cb-91fc-8f9e269ebbe7
- Over MCP: `get_schema_card` with id `41af0e75-76af-55cb-91fc-8f9e269ebbe7` at https://api.scigantic.com/mcp

## Related topics

- [Parquet datasets](https://scigantic.com/topics/parquet)
- [Benchmark datasets](https://scigantic.com/topics/benchmark)
- [Health & Biomedical datasets](https://scigantic.com/topics/health-and-biomedical)
- [Histopathology datasets](https://scigantic.com/topics/histopathology)
