Dataset Viewer
Auto-converted to Parquet Duplicate
volume_id
stringclasses
501 values
slice_id
int32
0
154
t1
imagewidth (px)
240
240
t1c
imagewidth (px)
240
240
t2
imagewidth (px)
240
240
tumor_mask
imagewidth (px)
240
240
is_tumorous
bool
2 classes
tumor_type
stringclasses
4 values
who_grade
stringclasses
3 values
sex
stringclasses
2 values
age
float32
17
94
UCSF-PDGM-0152
0
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
1
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
2
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
3
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
4
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
5
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
6
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
7
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
8
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
9
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
10
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
11
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
12
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
13
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
14
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
15
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
16
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
17
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
18
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
19
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
20
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
21
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
22
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
23
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
24
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
25
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
26
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
27
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
28
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
29
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
30
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
31
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
32
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
33
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
34
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
35
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
36
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
37
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
38
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
39
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
40
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
41
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
42
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
43
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
44
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
45
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
46
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
47
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
48
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
49
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
50
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
51
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
52
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
53
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
54
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
55
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
56
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
57
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
58
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
59
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
60
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
61
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
62
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
63
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
64
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
65
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
66
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
67
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
68
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
69
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
70
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
71
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
72
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
73
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
74
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
75
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
76
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
77
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
78
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
79
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
80
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
81
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
82
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
83
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
84
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
85
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
86
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
87
false
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
88
true
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
89
true
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
90
true
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
91
true
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
92
true
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
93
true
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
94
true
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
95
true
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
96
true
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
97
true
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
98
true
Glioblastoma, IDH-wildtype
4
F
58
UCSF-PDGM-0152
99
true
Glioblastoma, IDH-wildtype
4
F
58
End of preview. Expand in Data Studio

UCSF_PDGM — 2D Slice-Based Multi-Sequence Brain MRI Dataset with Tumor Segmentation

This dataset is derived from the UCSF Preoperative Diffuse Glioma MRI (UCSF-PDGM) collection, a large-scale, preoperative brain MRI dataset of patients with histopathologically confirmed diffuse gliomas, hosted on The Cancer Imaging Archive (TCIA). The original collection provides skull-stripped, co-registered, multi-sequence 3D MRI volumes along with expert-corrected multicompartment tumor segmentations and detailed clinical/molecular metadata.

Here, we provide a 2D slice-based version, extracted from three of the available MRI sequences per patient — T1-weighted (T1), post-contrast T1-weighted (T1c), and T2-weighted (T2) — paired slice-for-slice with the corresponding tumor segmentation mask and patient-level clinical metadata. The dataset is designed for multimodal tumor segmentation, classification, and representation learning on brain MRI.


📦 Dataset Structure

The dataset has a single train split, with each row corresponding to a single 2D axial slice from a patient's coregistered T1 / T1c / T2 volumes:

Field Description
volume_id Unique patient/case identifier (e.g., UCSF-PDGM-0152)
slice_id Index of the axial slice within the volume
t1 2D pre-contrast T1-weighted MRI slice
t1c 2D post-contrast (gadolinium-enhanced) T1-weighted MRI slice
t2 2D T2-weighted MRI slice
tumor_mask 2D multicompartment tumor segmentation mask (see Tumor Mask Labels below)
is_tumorous Boolean — whether any tumor label is present on this slice
tumor_type Final pathologic diagnosis (WHO 2021 classification)
who_grade WHO CNS tumor grade: 2, 3, or 4
sex Patient sex: M or F
age Patient age at MRI, in years

tumor_type, who_grade, sex, and age are patient-level attributes and are therefore identical across all slices belonging to the same volume_id.

tumor_type takes one of four values, per the integrated WHO CNS 2021 diagnostic categories used by UCSF-PDGM:

  • Glioblastoma, IDH-wildtype
  • Astrocytoma, IDH-mutant
  • Astrocytoma, IDH-wildtype
  • Oligodendroglioma, IDH-mutant, 1p/19q-codeleted

⚙️ Preprocessing

  • For each patient, the preprocessed, skull-stripped, and co-registered T1, T1c, and T2 NIfTI volumes were used (all UCSF-PDGM volumes are resampled to a shared 1mm isotropic space defined by the T2/FLAIR image)
  • Volumes were sliced into 2D axial slices; the tumor segmentation volume was sliced identically and aligned per-slice with its source volume
  • Patient-level clinical metadata (tumor_type, who_grade, sex, age) was broadcast from the UCSF-PDGM clinical data table to every slice belonging to that patient
  • All slices (tumorous and non-tumorous) were exported; use is_tumorous to filter or balance

🚀 Usage

from datasets import load_dataset
import matplotlib.pyplot as plt
import numpy as np

ds = load_dataset("chehablab/UCSF_PDGM", split="train")

# Grab a tumorous slice and view all three sequences plus the mask overlay
sample = next(s for s in ds if s["is_tumorous"])

fig, axes = plt.subplots(1, 4, figsize=(16, 4))
for ax, key in zip(axes[:3], ["t1", "t1c", "t2"]):
    ax.imshow(sample[key], cmap="gray")
    ax.set_title(key.upper())
    ax.axis("off")

axes[3].imshow(sample["t1c"], cmap="gray")
axes[3].imshow(np.array(sample["tumor_mask"]), cmap="jet", alpha=0.4, vmin=0, vmax=4)
axes[3].set_title("Tumor Mask Overlay")
axes[3].axis("off")

fig.suptitle(
    f"{sample['volume_id']} | Slice {sample['slice_id']} | "
    f"{sample['tumor_type']} (WHO grade {sample['who_grade']})"
)
plt.tight_layout()
plt.show()

🏷️ Tumor Mask Labels

Tumor segmentation in UCSF-PDGM was generated as part of the 2021 BraTS challenge pipeline (automated ensemble segmentation, manually corrected by trained radiologists and approved by expert reviewers), and follows the standard BraTS multicompartment labeling convention:

Value Label Description
0 Background No tumor
1 NCR/NET Necrotic and non-enhancing tumor core
2 ED Peritumoral edema / surrounding FLAIR abnormality
4 ET GD-enhancing tumor

Note label 3 is unused (a holdover from the original BraTS labeling scheme). Common derived regions of interest: Whole Tumor = {1, 2, 4}, Tumor Core = {1, 4}, Enhancing Tumor = {4}.


🧪 Use Cases

  • Multimodal (T1 / T1c / T2) brain tumor segmentation
  • WHO grade or tumor subtype classification from imaging
  • Multi-task learning combining segmentation with clinical metadata prediction
  • Slice-level pretraining and representation learning for glioma MRI
  • Studying enhancing vs. non-enhancing tumor compartments across sequences

⚠️ Important Notes

  • Class imbalance: most slices, particularly toward the superior/inferior extremes of a volume, contain no tumor. Use is_tumorous to filter or apply weighted sampling.
  • Volume-level splits: always split train/val/test at the volume_id level, never at the slice level, to avoid leakage between sets.
  • Patient duplicates: per TCIA's documentation, a small number of UCSF-PDGM case IDs are short-interval follow-up imaging of another case in the collection rather than fully independent patients. Be mindful of this when constructing splits across the full dataset.
  • Mask-image alignment: tumor_mask is in the same 2D slice space as t1, t1c, and t2 for a given row, so no additional registration is needed to overlay it.

📚 Citation

This dataset is derived from data made available on The Cancer Imaging Archive (TCIA) under a CC BY 4.0 license. If you use this dataset, please acknowledge Chehab Lab and cite the original UCSF-PDGM dataset:

@misc{Calabrese2022,
  author = {Calabrese, E. and Villanueva-Meyer, J. and Rudie, J. and Rauschecker, A. and Baid, U. and Bakas, S. and Cha, S. and Mongan, J. and Hess, C.},
  title  = {The University of California San Francisco Preoperative Diffuse Glioma MRI (UCSF-PDGM) (Version 5) [dataset]},
  year   = {2022},
  publisher = {The Cancer Imaging Archive},
  doi    = {10.7937/tcia.bdgf-8v37}
}

📜 License

This dataset is released under the Creative Commons Attribution 4.0 International (CC BY 4.0) license, consistent with the source data on TCIA. You may copy, modify, distribute, and use the data, even for commercial purposes, provided that appropriate credit is given to the original authors and TCIA.

CC BY 4.0

Chehab Lab @ 2026

Downloads last month
90