Datasets:
|
Download README.md from chehablab/SICAPv2: direct link, hf CLI and curl.
- Browser
- Download file 7.34 kB
-
https://huggingface.co/datasets/chehablab/SICAPv2/resolve/main/README.md
- Command line
-
hf download hf://datasets/chehablab/SICAPv2/README.md
-
curl -L -o README.md https://huggingface.co/datasets/chehablab/SICAPv2/resolve/main/README.md
7.34 kB
| dataset_info: | |
| features: | |
| - name: image_id | |
| dtype: string | |
| - name: image | |
| dtype: image | |
| - name: slide_id | |
| dtype: string | |
| - name: patient_id | |
| dtype: string | |
| - name: grade | |
| dtype: string | |
| - name: cribriform | |
| dtype: bool | |
| - name: label | |
| dtype: int32 | |
| splits: | |
| - name: train | |
| num_bytes: 1528412239 | |
| num_examples: 12081 | |
| download_size: 1412503832 | |
| dataset_size: 1528412239 | |
| configs: | |
| - config_name: default | |
| data_files: | |
| - split: train | |
| path: data/train-* | |
| license: cc-by-4.0 | |
| task_categories: | |
| - image-classification | |
| language: | |
| - en | |
| tags: | |
| - histopathology | |
| - prostate | |
| - prostate-cancer | |
| - gleason | |
| - h&e | |
| - medical | |
| - classification | |
| pretty_name: SICAPv2 | |
| # SICAPv2 — Prostate Histology Patches with Gleason Grade Annotations | |
| > [!NOTE] | |
| > This dataset card was generated with the help of generative AI and checked against the original sources. If you find an error or anything unclear, please open a discussion in the [Community tab](https://huggingface.co/datasets/chehablab/SICAPv2/discussions) of this repository. | |
| This dataset is derived from SICAPv2 (Silva-Rodríguez et al., 2020), a database of prostate histology whole slide images with both global Gleason score annotations and patch-level Gleason grade annotations, originally hosted on Mendeley Data. | |
| Here, we provide the labelled image patches. We kept the original JPG patches unchanged and added the slide ID, the patient ID, the Gleason grade, a cribriform flag and an integer label from the original annotation files. | |
| The dataset is designed for patch-level Gleason grading of prostate histology. | |
| ## 📦 Dataset Structure | |
| The dataset has a single `train` split, with each row corresponding to a single H&E image patch: | |
| | Field | Description | | |
| |---|---| | |
| | `image_id` | Original patch filename without extension | | |
| | `image` | RGB H&E-stained prostate histology patch (JPG) | | |
| | `slide_id` | Whole slide image the patch was extracted from (the prefix of the patch filename) | | |
| | `patient_id` | Patient ID from the original whole-slide label file | | |
| | `grade` | Patch-level Gleason grade: `NC`, `G3`, `G4` or `G5` | | |
| | `cribriform` | `True` if the patch is annotated with the cribriform Gleason 4 pattern | | |
| | `label` | Integer grade: `0` = NC, `1` = G3, `2` = G4, `3` = G5 | | |
| ## ⚙️ Preprocessing | |
| - `SICAPv2.zip` was downloaded from Mendeley Data (`9xxm58dvs3`, version 2) | |
| - Patches were kept as the original JPG files (no re-encoding, resizing or color normalization) | |
| - Patch labels were taken from the original partition files, which give each patch a one-hot Gleason grade (`NC`, `G3`, `G4`, `G5`) and a cribriform flag (`G4C`) | |
| - `slide_id` was taken from the patch filename, and `patient_id` from the original whole-slide label file | |
| - `label` is the index of `grade` in the list `NC, G3, G4, G5` | |
| - The original partitions (cross-validation folds and test set) and the segmentation masks were not included | |
| ## 🚀 Usage | |
| ```python | |
| from datasets import load_dataset | |
| import matplotlib.pyplot as plt | |
| from sklearn.model_selection import GroupShuffleSplit | |
| ds = load_dataset("chehablab/SICAPv2", split="train") | |
| # One example patch per Gleason grade | |
| grades = ["NC", "G3", "G4", "G5"] | |
| labels = ds["label"] | |
| fig, axes = plt.subplots(1, len(grades), figsize=(12, 3)) | |
| for ax, label in zip(axes, range(len(grades))): | |
| sample = ds[labels.index(label)] | |
| ax.imshow(sample["image"]) | |
| ax.set_title(f"{grades[label]} | slide {sample['slide_id']}") | |
| ax.axis("off") | |
| plt.tight_layout() | |
| plt.show() | |
| # Split by patient so no patient appears in both sets | |
| gss = GroupShuffleSplit(n_splits=1, test_size=0.2, random_state=0) | |
| train_idx, test_idx = next(gss.split(range(len(ds)), groups=ds["patient_id"])) | |
| train, test = ds.select(train_idx), ds.select(test_idx) | |
| ``` | |
| --- | |
| ## 🏷️ Feature Descriptions | |
| ### Gleason Grades | |
| Patch-level grades following the Gleason grading system for prostate adenocarcinoma: | |
| - NC (`label=0`) — Non-cancerous tissue | |
| - G3 (`label=1`) — Gleason pattern 3: well-formed, discrete glands | |
| - G4 (`label=2`) — Gleason pattern 4: fused, poorly formed or cribriform glands | |
| - G5 (`label=3`) — Gleason pattern 5: no glandular differentiation (solid sheets, cords or single cells) | |
| ### Cribriform Pattern | |
| `cribriform` marks patches annotated with the cribriform Gleason 4 pattern, a subtype of G4 associated with worse prognosis. It can be used for cribriform pattern detection. | |
| ### Image Specifications | |
| - Modality: Brightfield microscopy of H&E-stained prostate tissue (digitized whole slide images) | |
| - Content: Patches extracted from whole slide images | |
| - Format: RGB, JPG | |
| --- | |
| ## 🧪 Use Cases | |
| - Patch-level Gleason grading (NC, G3, G4, G5) | |
| - Cancer vs. non-cancer classification of prostate tissue | |
| - Cribriform pattern detection | |
| - Representation learning and feature extraction for computational pathology | |
| ## ⚠️ Important Notes | |
| - No official split in this release: The dataset has a single `train` split. Split by `patient_id` (see Usage), since many patches come from the same slide and patient. The original release also provides patient-based cross-validation folds and a test partition; see the original Mendeley record. | |
| - Correlated patches: Patches from the same slide can overlap and share staining, so image-level splits overestimate performance. | |
| - Class imbalance: The number of patches varies between grades. Use weighted sampling or class balancing as needed. | |
| - Masks not included: The original release also provides annotation masks; see the original Mendeley record for segmentation tasks. | |
| ## 📚 Citation | |
| This dataset is derived from data originally published on Mendeley Data under a CC BY 4.0 license. If you use this dataset, please acknowledge [Chehab Lab](https://chehablab.com) and cite the original SICAPv2 dataset: | |
| ```bibtex | |
| @misc{SilvaRodriguez2020SICAPv2Data, | |
| author = {Silva-Rodr{\'i}guez, Julio}, | |
| title = {SICAPv2 - Prostate Whole Slide Images with Gleason Grades Annotations [dataset]}, | |
| year = {2020}, | |
| publisher = {Mendeley Data}, | |
| version = {2}, | |
| doi = {10.17632/9xxm58dvs3.2} | |
| } | |
| ``` | |
| Additionally, cite the research paper associated with this dataset: | |
| ```bibtex | |
| @article{SilvaRodriguez2020Gleason, | |
| author = {Silva-Rodr{\'i}guez, J. and Colomer, A. and Sales, M. A. and Molina, R. and Naranjo, V.}, | |
| title = {Going deeper through the Gleason scoring scale: An automatic end-to-end system for histology prostate grading and cribriform pattern detection}, | |
| journal = {Computer Methods and Programs in Biomedicine}, | |
| volume = {195}, | |
| pages = {105637}, | |
| year = {2020}, | |
| doi = {10.1016/j.cmpb.2020.105637} | |
| } | |
| ``` | |
| ## ✉️ Original Authors | |
| Julio Silva-Rodríguez, Adrián Colomer, María A. Sales, Rafael Molina, Valery Naranjo | |
| Mendeley Data: https://data.mendeley.com/datasets/9xxm58dvs3/2 (original files) | |
| ## 📜 License | |
| This dataset is released under the Creative Commons Attribution 4.0 International (CC BY 4.0) license, consistent with the original SICAPv2 dataset. | |
| You may copy, modify, distribute, and use the data for any purpose (commercial or non-commercial), provided that appropriate credit is given to Silva-Rodríguez et al., Mendeley Data, and the original paper. | |
| [](https://creativecommons.org/licenses/by/4.0/) | |
| **Chehab Lab @ 2026** | |