Datasets:
image_id string | split string | image image | patient_id string | cell_type string | label int32 |
|---|---|---|---|---|---|
UID_H11_10_1_hem | fold_0 | H11 | hem | 0 | |
UID_H11_10_2_hem | fold_0 | H11 | hem | 0 | |
UID_H11_10_3_hem | fold_0 | H11 | hem | 0 | |
UID_H11_11_1_hem | fold_0 | H11 | hem | 0 | |
UID_H11_11_2_hem | fold_0 | H11 | hem | 0 | |
UID_H11_12_1_hem | fold_0 | H11 | hem | 0 | |
UID_H11_12_2_hem | fold_0 | H11 | hem | 0 | |
UID_H11_12_3_hem | fold_0 | H11 | hem | 0 | |
UID_H11_12_4_hem | fold_0 | H11 | hem | 0 | |
UID_H11_13_1_hem | fold_0 | H11 | hem | 0 | |
UID_H11_13_2_hem | fold_0 | H11 | hem | 0 | |
UID_H11_13_3_hem | fold_0 | H11 | hem | 0 | |
UID_H11_13_4_hem | fold_0 | H11 | hem | 0 | |
UID_H11_13_5_hem | fold_0 | H11 | hem | 0 | |
UID_H11_14_1_hem | fold_0 | H11 | hem | 0 | |
UID_H11_14_2_hem | fold_0 | H11 | hem | 0 | |
UID_H11_14_3_hem | fold_0 | H11 | hem | 0 | |
UID_H11_14_4_hem | fold_0 | H11 | hem | 0 | |
UID_H11_15_1_hem | fold_0 | H11 | hem | 0 | |
UID_H11_15_2_hem | fold_0 | H11 | hem | 0 | |
UID_H11_15_3_hem | fold_0 | H11 | hem | 0 | |
UID_H11_15_4_hem | fold_0 | H11 | hem | 0 | |
UID_H11_16_1_hem | fold_0 | H11 | hem | 0 | |
UID_H11_16_2_hem | fold_0 | H11 | hem | 0 | |
UID_H11_17_1_hem | fold_0 | H11 | hem | 0 | |
UID_H11_17_2_hem | fold_0 | H11 | hem | 0 | |
UID_H11_18_1_hem | fold_0 | H11 | hem | 0 | |
UID_H11_18_2_hem | fold_0 | H11 | hem | 0 | |
UID_H11_19_1_hem | fold_0 | H11 | hem | 0 | |
UID_H11_19_2_hem | fold_0 | H11 | hem | 0 | |
UID_H11_19_3_hem | fold_0 | H11 | hem | 0 | |
UID_H11_19_4_hem | fold_0 | H11 | hem | 0 | |
UID_H11_1_1_hem | fold_0 | H11 | hem | 0 | |
UID_H11_20_1_hem | fold_0 | H11 | hem | 0 | |
UID_H11_20_2_hem | fold_0 | H11 | hem | 0 | |
UID_H11_21_1_hem | fold_0 | H11 | hem | 0 | |
UID_H11_21_2_hem | fold_0 | H11 | hem | 0 | |
UID_H11_3_1_hem | fold_0 | H11 | hem | 0 | |
UID_H11_4_1_hem | fold_0 | H11 | hem | 0 | |
UID_H11_5_1_hem | fold_0 | H11 | hem | 0 | |
UID_H11_6_1_hem | fold_0 | H11 | hem | 0 | |
UID_H11_6_2_hem | fold_0 | H11 | hem | 0 | |
UID_H11_7_1_hem | fold_0 | H11 | hem | 0 | |
UID_H11_8_1_hem | fold_0 | H11 | hem | 0 | |
UID_H11_8_2_hem | fold_0 | H11 | hem | 0 | |
UID_H11_9_1_hem | fold_0 | H11 | hem | 0 | |
UID_H11_9_2_hem | fold_0 | H11 | hem | 0 | |
UID_H12_10_1_hem | fold_0 | H12 | hem | 0 | |
UID_H12_10_2_hem | fold_0 | H12 | hem | 0 | |
UID_H12_11_1_hem | fold_0 | H12 | hem | 0 | |
UID_H12_11_2_hem | fold_0 | H12 | hem | 0 | |
UID_H12_11_3_hem | fold_0 | H12 | hem | 0 | |
UID_H12_12_1_hem | fold_0 | H12 | hem | 0 | |
UID_H12_12_2_hem | fold_0 | H12 | hem | 0 | |
UID_H12_12_3_hem | fold_0 | H12 | hem | 0 | |
UID_H12_12_4_hem | fold_0 | H12 | hem | 0 | |
UID_H12_12_5_hem | fold_0 | H12 | hem | 0 | |
UID_H12_12_6_hem | fold_0 | H12 | hem | 0 | |
UID_H12_12_7_hem | fold_0 | H12 | hem | 0 | |
UID_H12_13_1_hem | fold_0 | H12 | hem | 0 | |
UID_H12_13_2_hem | fold_0 | H12 | hem | 0 | |
UID_H12_13_3_hem | fold_0 | H12 | hem | 0 | |
UID_H12_13_4_hem | fold_0 | H12 | hem | 0 | |
UID_H12_13_5_hem | fold_0 | H12 | hem | 0 | |
UID_H12_13_6_hem | fold_0 | H12 | hem | 0 | |
UID_H12_13_7_hem | fold_0 | H12 | hem | 0 | |
UID_H12_14_1_hem | fold_0 | H12 | hem | 0 | |
UID_H12_14_2_hem | fold_0 | H12 | hem | 0 | |
UID_H12_14_3_hem | fold_0 | H12 | hem | 0 | |
UID_H12_15_1_hem | fold_0 | H12 | hem | 0 | |
UID_H12_15_2_hem | fold_0 | H12 | hem | 0 | |
UID_H12_15_3_hem | fold_0 | H12 | hem | 0 | |
UID_H12_15_4_hem | fold_0 | H12 | hem | 0 | |
UID_H12_15_5_hem | fold_0 | H12 | hem | 0 | |
UID_H12_15_6_hem | fold_0 | H12 | hem | 0 | |
UID_H12_15_7_hem | fold_0 | H12 | hem | 0 | |
UID_H12_16_1_hem | fold_0 | H12 | hem | 0 | |
UID_H12_16_2_hem | fold_0 | H12 | hem | 0 | |
UID_H12_17_1_hem | fold_0 | H12 | hem | 0 | |
UID_H12_17_2_hem | fold_0 | H12 | hem | 0 | |
UID_H12_18_1_hem | fold_0 | H12 | hem | 0 | |
UID_H12_18_2_hem | fold_0 | H12 | hem | 0 | |
UID_H12_18_3_hem | fold_0 | H12 | hem | 0 | |
UID_H12_18_4_hem | fold_0 | H12 | hem | 0 | |
UID_H12_18_5_hem | fold_0 | H12 | hem | 0 | |
UID_H12_19_1_hem | fold_0 | H12 | hem | 0 | |
UID_H12_19_2_hem | fold_0 | H12 | hem | 0 | |
UID_H12_19_3_hem | fold_0 | H12 | hem | 0 | |
UID_H12_19_4_hem | fold_0 | H12 | hem | 0 | |
UID_H12_19_5_hem | fold_0 | H12 | hem | 0 | |
UID_H12_19_6_hem | fold_0 | H12 | hem | 0 | |
UID_H12_1_1_hem | fold_0 | H12 | hem | 0 | |
UID_H12_1_2_hem | fold_0 | H12 | hem | 0 | |
UID_H12_1_3_hem | fold_0 | H12 | hem | 0 | |
UID_H12_1_4_hem | fold_0 | H12 | hem | 0 | |
UID_H12_1_5_hem | fold_0 | H12 | hem | 0 | |
UID_H12_1_6_hem | fold_0 | H12 | hem | 0 | |
UID_H12_20_1_hem | fold_0 | H12 | hem | 0 | |
UID_H12_20_2_hem | fold_0 | H12 | hem | 0 | |
UID_H12_20_3_hem | fold_0 | H12 | hem | 0 |
C-NMC 2019 β Classification of Normal vs Malignant B-Lymphoblast Cells
This dataset description was generated with the help of generative AI. If you find anything wrong or missing, please report it in the Community discussions.
This dataset is derived from the C-NMC 2019 dataset (Mourya et al., 2019), released for the ISBI 2019 challenge Classification of Normal vs Malignant Cells in B-ALL White Blood Cancer Microscopic Images and hosted on The Cancer Imaging Archive (TCIA). The original images are single B-lymphoblast cells segmented from stain-normalized microscopic images of blood smears, labelled as malignant (acute lymphoblastic leukemia, ALL) or normal (healthy, HEM) by an expert oncologist. Here, we merged the three labelled training folds and the labelled preliminary test set into one table, converted the images from BMP to PNG without loss, and added the patient ID (read from the original filename), the cell type and an integer label. The dataset is designed for leukemic-cell classification with patient-level evaluation.
π¦ Dataset Structure
The dataset has a single train split, with each row corresponding to a single segmented cell:
| Field | Description |
|---|---|
image_id |
Original image filename without extension (e.g., UID_11_10_1_all, UID_H10_43_1_hem) |
split |
Original partition: fold_0, fold_1, fold_2 (training folds) or prelim_test (preliminary test set) |
image |
RGB microscopy image of a single segmented cell on a black background (450 Γ 450 pixels, PNG) |
patient_id |
Subject ID from the filename (e.g., 11); healthy subjects carry an H prefix (e.g., H10) |
cell_type |
all (leukemic) or hem (normal) |
label |
Integer class: 0 = normal (HEM), 1 = leukemia (ALL) |
Class Distribution:
| Partition | ALL (leukemia) | HEM (normal) | Total | Subjects |
|---|---|---|---|---|
Training folds (fold_0βfold_2) |
7,272 | 3,389 | 10,661 | 73 (47 ALL, 26 normal) |
Preliminary test (prelim_test) |
1,219 | 648 | 1,867 | 28 (15 ALL, 13 normal) |
| Total | 8,491 | 4,037 | 12,528 | 101 |
βοΈ Preprocessing
- The C-NMC 2019 release was downloaded from its Kaggle mirror (
andrewmvd/leukemia-classification), which holds the same files as TCIA - Training folds: the class (
all/hem) and the patient ID were read from each filename,UID_<patient>_<image>_<cell>_<class>.bmp - Preliminary test set: the renamed images (
1.bmp,2.bmp, β¦) were matched to their original filenames and labels throughC-NMC_test_prelim_phase_data_labels.csv, and renamed back - Images were converted from BMP to PNG (lossless; no resizing, cropping or color change)
- The final test set was not included, as its labels are not public
- All labelled images were preserved
π Usage
from datasets import load_dataset
import matplotlib.pyplot as plt
ds = load_dataset("chehablab/C-NMC-2019", split="train")
# A few example cells per class
classes = ["hem", "all"]
df = ds.select_columns(["cell_type", "patient_id"]).to_pandas()
fig, axes = plt.subplots(2, 5, figsize=(12, 5))
for row, c in zip(axes, classes):
for ax, i in zip(row, df.index[df.cell_type == c][:5]):
sample = ds[int(i)]
ax.imshow(sample["image"])
ax.set_title(f"{c} Β· patient {sample['patient_id']}", fontsize=9)
ax.axis("off")
plt.tight_layout()
plt.show()
# Use the original challenge partitions
train = ds.filter(lambda x: x["split"] != "prelim_test")
test = ds.filter(lambda x: x["split"] == "prelim_test")
# Or make your own split by patient (never by image)
from sklearn.model_selection import GroupShuffleSplit
gss = GroupShuffleSplit(n_splits=1, test_size=0.2, random_state=0)
train_idx, test_idx = next(gss.split(df, groups=df["patient_id"]))
π·οΈ Feature Descriptions
Cell Classes
Two classes of B-lymphoblast cells:
- HEM, normal (
label=0): 4,037 cells β B-lymphoblast precursors from healthy subjects - ALL, leukemia (
label=1): 8,491 cells β Malignant B-lymphoblasts from patients with B-lineage acute lymphoblastic leukemia
Normal and malignant B-lymphoblasts look very much alike under the microscope, which makes this a hard fine-grained classification task.
Image Specifications
- Modality: Brightfield microscopy of peripheral blood / bone-marrow smears
- Stain: Jenner-Giemsa, stain-normalized before segmentation
- Image size: 450 Γ 450 pixels, RGB, PNG (converted from the original BMP)
- Content: One segmented cell per image, centered, on a black background
- Patient ID: One subject per patient ID; every image is labelled at the subject level (all cells from an ALL patient are
all, all cells from a healthy subject arehem)
Acquisition Protocol
All images were acquired and annotated at:
- Laboratory Oncology, All India Institute of Medical Sciences (AIIMS), New Delhi, India
- Processing: SBILab, Indraprastha Institute of Information Technology (IIIT-Delhi), New Delhi, India
- Annotation: Expert oncologist
- Subjects: Patients with B-ALL and healthy subjects
π§ͺ Use Cases
- Binary classification of leukemic vs normal B-lymphoblast cells
- Computer-aided screening for acute lymphoblastic leukemia
- Patient-level evaluation of cell classifiers (via
patient_id) - Representation learning and feature extraction for hematology microscopy
- Domain-generalization studies across subjects
- Benchmarking against the ISBI 2019 C-NMC challenge
β οΈ Important Notes
- Split by patient, never by image: Each subject contributes many cells, and all cells of a subject share one label. A random image-level split leaks subjects between training and evaluation and gives inflated scores. Use
patient_id(see Usage). - Label = subject diagnosis: A cell's label is the diagnosis of the subject it came from, not a per-cell malignancy assessment.
- Class imbalance: ALL cells are about 2.1Γ more frequent than HEM cells. Use weighted sampling or class balancing as needed.
- Final test set missing: The challenge's final test set (unlabelled) is not included;
prelim_testis the labelled preliminary test set. - Black background: Cells were segmented and placed on a black background; models may pick up on cell size and shape as much as texture.
π Citation
This dataset is derived from data originally published on The Cancer Imaging Archive (TCIA). If you use this dataset, please acknowledge Chehab Lab and cite the original C-NMC 2019 dataset:
@misc{Mourya2019CNMC,
author = {Mourya, Shiv and Kant, Sandeep and Kumar, Pramod and Gupta, Anubha and Gupta, Ritu},
title = {ALL Challenge dataset of ISBI 2019 [Data set]},
year = {2019},
publisher = {The Cancer Imaging Archive},
doi = {10.7937/tcia.2019.dc64i46r}
}
Additionally, cite the research papers requested by the dataset authors:
@article{Gupta2020GCTISN,
author = {Gupta, Anubha and Duggal, Rahul and Gehlot, Shiv and Gupta, Ritu and Mangal, Anvit and Kumar, Lalit and Thakkar, Nisarg and Satpathy, Devprakash},
title = {GCTI-SN: Geometry-inspired chemical and tissue invariant stain normalization of microscopic medical images},
journal = {Medical Image Analysis},
volume = {65},
pages = {101788},
year = {2020},
doi = {10.1016/j.media.2020.101788}
}
@inproceedings{Duggal2017SDLayer,
author = {Duggal, Rahul and Gupta, Anubha and Gupta, Ritu and Mallick, Pramit},
title = {SD-Layer: Stain Deconvolutional Layer for CNNs in Medical Microscopic Imaging},
booktitle = {Medical Image Computing and Computer-Assisted Intervention (MICCAI)},
pages = {435--443},
year = {2017},
doi = {10.1007/978-3-319-66179-7_50}
}
@inproceedings{Duggal2016Overlapping,
author = {Duggal, Rahul and Gupta, Anubha and Gupta, Ritu and Wadhwa, Manya and Ahuja, Chirag},
title = {Overlapping cell nuclei segmentation in microscopic images using deep belief networks},
booktitle = {Indian Conference on Computer Vision, Graphics and Image Processing (ICVGIP)},
year = {2016},
doi = {10.1145/3009977.3010043}
}
And TCIA:
@article{Clark2013TCIA,
author = {Clark, Kenneth and Vendt, Bruce and Smith, Kirk and Freymann, John and Kirby, Justin and Koppel, Paul and Moore, Stephen and Phillips, Stanley and Maffitt, David and Pringle, Michael and Tarbox, Lawrence and Prior, Fred},
title = {The Cancer Imaging Archive (TCIA): Maintaining and Operating a Public Information Repository},
journal = {Journal of Digital Imaging},
volume = {26},
number = {6},
pages = {1045--1057},
year = {2013},
doi = {10.1007/s10278-013-9622-7}
}
βοΈ Original Authors
Shiv Mourya, Sandeep Kant, Pramod Kumar, Anubha Gupta, Ritu Gupta
SBILab, Indraprastha Institute of Information Technology (IIIT-Delhi), and Laboratory Oncology, All India Institute of Medical Sciences (AIIMS), New Delhi, India
TCIA: https://doi.org/10.7937/tcia.2019.dc64i46r (original files)
π License
This dataset is released under the Creative Commons Attribution 3.0 Unported (CC BY 3.0) license, consistent with the original C-NMC 2019 dataset on TCIA, and subject to the TCIA Data Usage Policy.
You may copy, modify, distribute, and use the data for any purpose (commercial or non-commercial), provided that appropriate credit is given to Mourya et al., TCIA, and the original papers.
Chehab Lab @ 2026
- Downloads last month
- 123
