{"success":true,"data":{"author":"Shiv Mourya, Sandeep Kant, Pramod Kumar, Anubha Gupta, Ritu Gupta; repackaged by Chehab Lab","bucketAccessType":"public","bucketName":"chehablab/C-NMC-2019","bucketPrefix":"","category":"Health & Biomedical","cloudProvider":"huggingface","createdAt":"2026-11-21T22:16:41.694Z","description":"C-NMC 2019 (Classification of Normal versus Malignant Cells) is the dataset of the ISBI 2019 challenge on B-cell acute lymphoblastic leukemia (B-ALL), a blood cancer of white blood cells. It contains single B-lymphoblast cells segmented from stain-normalized microscopy images of blood smears and labeled by an expert oncologist, each a 450x450 RGB image on a black background, labeled as leukemic blast (ALL) or normal B-lymphoid precursor (HEM). This copy merges the three labeled training folds (10,661 cells from 73 subjects: 47 ALL, 26 normal) and the labeled preliminary test set (1,867 cells from 28 subjects), 12,528 images from 101 subjects in all; the final test set had no public labels. Columns give the original filename, partition, patient ID and class; images were converted losslessly from BMP to PNG. Leukemic and normal cells look very alike, so split by patient. One Parquet file under data/, about 500 MB (measured 2026-11-21); read with Hugging Face datasets. Use for leukemia cell classification and hematopathology models. Original data on The Cancer Imaging Archive (DOI 10.7937/tcia.2019.dc64i46r), released under CC BY 3.0. Cite Mourya et al., ALL Challenge dataset of ISBI 2019, The Cancer Imaging Archive (2019).","displayTitle":"C-NMC 2019: 12,528 segmented B-lymphoblast cell images, leukemic (B-ALL) versus normal, from 101 subjects (ISBI 2019, TCIA)","doi":"10.7937/tcia.2019.dc64i46r","huggingFaceUrl":"https://huggingface.co/datasets/chehablab/C-NMC-2019","id":"47d58599-a75b-5a81-9338-49f3250e20fe","license":"CC-BY-3.0","licenseEvidenceUrl":"https://www.cancerimagingarchive.net/collection/c-nmc-2019/","objectCountEstimate":3,"probeStatus":"ok","referenceUrl":"https://doi.org/10.7937/tcia.2019.dc64i46r","region":"us","schemaCard":{"accessHints":[{"language":"python-datasets","snippet":"from datasets import load_dataset\nds = load_dataset(\"chehablab/C-NMC-2019\")"},{"language":"python-hub","snippet":"from huggingface_hub import snapshot_download\nsnapshot_download(repo_id=\"chehablab/C-NMC-2019\", repo_type=\"dataset\")"}],"caveats":["HuggingFace metadata: author=chehablab, license:cc-by-3.0, size_categories:10K<n<100K, format:parquet, downloads=48"],"format":"mixed","generatedAt":"2026-11-21T22:32:17.088Z","layout":{"example":"data/train-00000-of-00001.parquet","pattern":"{repoId}/{filename}"},"mountPath":"/mnt/archive","sampleHeaders":[{"bytes":"5041523115041582bb0715bceb014c15fa311500120000c1dd034c100000005549445f4831315f31305f315f68656d3a140000324a1400003342140000314a3c0000314a3c0000324a2800003252280046640008325f3442780000334a500000334a500000334a50000033525000003542640000344a640000344a640000344a640000344a640000354a500000354a500000354a500000354a500000364a500000364a500000374a280000374a280000384a280000384a280000394a2800003952280046cc01003909c8000f2e8002464f0000324a930204323046630000324e3c004d7f2e63004d2e2e13002ddd2e13002da02e13002d63361300651a2e13002d612e13002d4c3613004239002d4a2e260042490100324aa1030514054e79b504325f468d0305144e28003a990104325f01033601030514463c000032523c003aa103053c3a5103051400364a640000374214002daf32dc0042dd0304325f46dd030514468c0000334a8c0000334a8c0000334a8c004d28328c0042050404325f46050404325f46f103051446540142f103052846c80000354ac80000354ac80000354ac8004dca32c800422d0404325f462d04051446b4004de1325000422d040c325f31384a300200384adc0000384adc006d1f3264004e200300394a64008d693a3c00469402003929407983c1aa650b3613002502361300654536130025","encoding":"hex","key":"data/train-00000-of-00001.parquet","truncatedAt":512}],"sampleObjects":["data/train-00000-of-00001.parquet"],"sidecars":[{"bytes":"---\ndataset_info:\n  features:\n  - name: image_id\n    dtype: string\n  - name: split\n    dtype: string\n  - name: image\n    dtype: image\n  - name: patient_id\n    dtype: string\n  - name: cell_type\n    dtype: string\n  - name: label\n    dtype: int32\n  splits:\n  - name: train\n    num_bytes: 391853324\n    num_examples: 12528\n  download_size: 501835417\n  dataset_size: 391853324\nconfigs:\n- config_name: default\n  data_files:\n  - split: train\n    path: data/train-*\nlicense: cc-by-3.0\ntask_categories:\n- image-classification\nlanguage:\n- en\ntags:\n- microscopy\n- blood\n- hematology\n- leukemia\n- acute-lymphoblastic-leukemia\n- cancer\n- medical\n- classification\npretty_name: C-NMC 2019 (Leukemia vs Normal B-Lymphoblast Cells)\nsize_categories:\n- 10K<n<100K\n---\n# C-NMC 2019 — Classification of Normal vs Malignant B-Lymphoblast Cells\n\n> [!NOTE]\n> 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](https://huggingface.co/datasets/chehablab/C-NMC-2019/discussions).\n\nThis 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.\nHere, 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.\nThe dataset is designed for leukemic-cell classification with **patient-level** evaluation.\n\n\n## 📦 Dataset Structure\n\nThe dataset has a single `train` split, with each row corresponding to a single segmented cell:\n\n| Field | Description |\n|---|---|\n| `image_id` | Original image filename without extension (e.g., `UID_11_10_1_all`, `UID_H10_43_1_hem`) |\n| `split` | Original partition: `fold_0`, `fold_1`, `fold_2` (training folds) or `prelim_test` (preliminary test set) |\n| `image` | RGB microscopy image of a single segmented cell on a black background (450 × 450 pixels, PNG) |\n| `patient_id` | Subject ID from the filename (e.g., `11`); healthy subjects carry an `H` prefix (e.g., `H10`) |\n| `cell_type` | `all` (leukemic) or `hem` (normal) |\n| `label` | Integer class: `0` = normal (HEM), `1` = leukemia (ALL) |\n\n**Class Distribution:**\n\n| Partition | ALL (leukemia) | HEM (normal) | Total | Subjects |\n|---|---|---|---|---|\n| Training folds (`fold_0`–`fold_2`) | 7,272 | 3,389 | 10,661 | 73 (47 ALL, 26 normal) |\n| Preliminary test (`prelim_test`) | 1,219 | 648 | 1,867 | 28 (15 ALL, 13 normal) |\n| **Total** | **8,491** | **4,037** | **12,528** | **101** |\n\n\n## ⚙️ Preprocessing\n\n- The C-NMC 2019 release was downloaded from its Kaggle mirror (`andrewmvd/leukemia-classification`), which holds the same files as TCIA\n- Training folds: the class (`all` / `hem`) and the patient ID were read from each filename, `UID_<patient>_<image>_<cell>_<class>.bmp`\n- Preliminary test set: the renamed images (`1.bmp`, `2.bmp`, …) were matched to their original filenames and labels through `C-NMC_test_prelim_phase_data_labels.csv`, and renamed back\n- Images were converted from BMP to PNG (lossless; no resizing, cropping or color change)\n- The final test set was **not** included, as its labels are not public\n- All labelled images were preserved\n\n\n## 🚀 Usage\n\n```python\nfrom datasets import load_dataset\nimport matplotlib.pyplot as plt\n\nds = load_dataset(\"chehablab/C-NMC-2019\", split=\"train\")\n\n# A few example cells per class\nclasses = [\"hem\", \"all\"]\ndf = ds.select_columns([\"cell_type\", \"patient_id\"]).to_pandas()\nfig, axes = plt.subplots(2, 5, figsize=(12, 5))\nfor row, c in zip(axes, classes):\n    for ax, i in zip(row, df.index[df.cell_type == c][:5]):\n        sample = ds[i","encoding":"utf8","key":"README.md","name":"README.md","size":10619,"truncated":true}],"sourceObjectKey":"data/train-00000-of-00001.parquet","starterCell":"from datasets import load_dataset\nds = load_dataset(\"chehablab/C-NMC-2019\")\nprint(ds)","starterSamplePath":"data/train-00000-of-00001.parquet","totalObjects":3},"summary":"C-NMC 2019 (Classification of Normal versus Malignant Cells) is the dataset of the ISBI 2019 challenge on B-cell acute lymphoblastic leukemia (B-ALL), a blood cancer of white…","title":"C-NMC 2019: 12,528 segmented B-lymphoblast cell images, leukemic (B-ALL) versus normal, from 101 subjects (ISBI 2019, TCIA)","updatedAt":"2026-11-22T01:04:30.215Z","visibility":"public","websiteUrl":"https://www.cancerimagingarchive.net/collection/c-nmc-2019/"}}