Datasets:
volume_id int32 1 100 | slice_id int32 0 19 | type stringclasses 2
values | age int32 3 55 | sex stringclasses 2
values | weight float32 75 98 | height float32 1.65 1.98 | image imagewidth (px) 256 256 | vent_mask imagewidth (px) 256 256 | nwmh_mask imagewidth (px) 256 256 | abwmh_mask imagewidth (px) 256 256 |
|---|---|---|---|---|---|---|---|---|---|---|
1 | 0 | t1w | 44 | F | 95 | 1.95 | ||||
1 | 1 | t1w | 44 | F | 95 | 1.95 | ||||
1 | 2 | t1w | 44 | F | 95 | 1.95 | ||||
1 | 3 | t1w | 44 | F | 95 | 1.95 | ||||
1 | 4 | t1w | 44 | F | 95 | 1.95 | ||||
1 | 5 | t1w | 44 | F | 95 | 1.95 | ||||
1 | 6 | t1w | 44 | F | 95 | 1.95 | ||||
1 | 7 | t1w | 44 | F | 95 | 1.95 | ||||
1 | 8 | t1w | 44 | F | 95 | 1.95 | ||||
1 | 9 | t1w | 44 | F | 95 | 1.95 | ||||
1 | 10 | t1w | 44 | F | 95 | 1.95 | ||||
1 | 11 | t1w | 44 | F | 95 | 1.95 | ||||
1 | 12 | t1w | 44 | F | 95 | 1.95 | ||||
1 | 13 | t1w | 44 | F | 95 | 1.95 | ||||
1 | 14 | t1w | 44 | F | 95 | 1.95 | ||||
1 | 15 | t1w | 44 | F | 95 | 1.95 | ||||
1 | 16 | t1w | 44 | F | 95 | 1.95 | ||||
1 | 17 | t1w | 44 | F | 95 | 1.95 | ||||
1 | 0 | t2w | 44 | F | 95 | 1.95 | ||||
1 | 1 | t2w | 44 | F | 95 | 1.95 | ||||
1 | 2 | t2w | 44 | F | 95 | 1.95 | ||||
1 | 3 | t2w | 44 | F | 95 | 1.95 | ||||
1 | 4 | t2w | 44 | F | 95 | 1.95 | ||||
1 | 5 | t2w | 44 | F | 95 | 1.95 | ||||
1 | 6 | t2w | 44 | F | 95 | 1.95 | ||||
1 | 7 | t2w | 44 | F | 95 | 1.95 | ||||
1 | 8 | t2w | 44 | F | 95 | 1.95 | ||||
1 | 9 | t2w | 44 | F | 95 | 1.95 | ||||
1 | 10 | t2w | 44 | F | 95 | 1.95 | ||||
1 | 11 | t2w | 44 | F | 95 | 1.95 | ||||
1 | 12 | t2w | 44 | F | 95 | 1.95 | ||||
1 | 13 | t2w | 44 | F | 95 | 1.95 | ||||
1 | 14 | t2w | 44 | F | 95 | 1.95 | ||||
1 | 15 | t2w | 44 | F | 95 | 1.95 | ||||
1 | 16 | t2w | 44 | F | 95 | 1.95 | ||||
1 | 17 | t2w | 44 | F | 95 | 1.95 | ||||
2 | 0 | t1w | 28 | M | 95 | 1.95 | ||||
2 | 1 | t1w | 28 | M | 95 | 1.95 | ||||
2 | 2 | t1w | 28 | M | 95 | 1.95 | ||||
2 | 3 | t1w | 28 | M | 95 | 1.95 | ||||
2 | 4 | t1w | 28 | M | 95 | 1.95 | ||||
2 | 5 | t1w | 28 | M | 95 | 1.95 | ||||
2 | 6 | t1w | 28 | M | 95 | 1.95 | ||||
2 | 7 | t1w | 28 | M | 95 | 1.95 | ||||
2 | 8 | t1w | 28 | M | 95 | 1.95 | ||||
2 | 9 | t1w | 28 | M | 95 | 1.95 | ||||
2 | 10 | t1w | 28 | M | 95 | 1.95 | ||||
2 | 11 | t1w | 28 | M | 95 | 1.95 | ||||
2 | 12 | t1w | 28 | M | 95 | 1.95 | ||||
2 | 13 | t1w | 28 | M | 95 | 1.95 | ||||
2 | 14 | t1w | 28 | M | 95 | 1.95 | ||||
2 | 15 | t1w | 28 | M | 95 | 1.95 | ||||
2 | 16 | t1w | 28 | M | 95 | 1.95 | ||||
2 | 17 | t1w | 28 | M | 95 | 1.95 | ||||
3 | 0 | t1w | 29 | M | 95 | 1.95 | ||||
3 | 1 | t1w | 29 | M | 95 | 1.95 | ||||
3 | 2 | t1w | 29 | M | 95 | 1.95 | ||||
3 | 3 | t1w | 29 | M | 95 | 1.95 | ||||
3 | 4 | t1w | 29 | M | 95 | 1.95 | ||||
3 | 5 | t1w | 29 | M | 95 | 1.95 | ||||
3 | 6 | t1w | 29 | M | 95 | 1.95 | ||||
3 | 7 | t1w | 29 | M | 95 | 1.95 | ||||
3 | 8 | t1w | 29 | M | 95 | 1.95 | ||||
3 | 9 | t1w | 29 | M | 95 | 1.95 | ||||
3 | 10 | t1w | 29 | M | 95 | 1.95 | ||||
3 | 11 | t1w | 29 | M | 95 | 1.95 | ||||
3 | 12 | t1w | 29 | M | 95 | 1.95 | ||||
3 | 13 | t1w | 29 | M | 95 | 1.95 | ||||
3 | 14 | t1w | 29 | M | 95 | 1.95 | ||||
3 | 15 | t1w | 29 | M | 95 | 1.95 | ||||
3 | 16 | t1w | 29 | M | 95 | 1.95 | ||||
3 | 17 | t1w | 29 | M | 95 | 1.95 | ||||
2 | 0 | t2w | 28 | M | 95 | 1.95 | ||||
2 | 1 | t2w | 28 | M | 95 | 1.95 | ||||
2 | 2 | t2w | 28 | M | 95 | 1.95 | ||||
2 | 3 | t2w | 28 | M | 95 | 1.95 | ||||
2 | 4 | t2w | 28 | M | 95 | 1.95 | ||||
2 | 5 | t2w | 28 | M | 95 | 1.95 | ||||
2 | 6 | t2w | 28 | M | 95 | 1.95 | ||||
2 | 7 | t2w | 28 | M | 95 | 1.95 | ||||
2 | 8 | t2w | 28 | M | 95 | 1.95 | ||||
2 | 9 | t2w | 28 | M | 95 | 1.95 | ||||
2 | 10 | t2w | 28 | M | 95 | 1.95 | ||||
2 | 11 | t2w | 28 | M | 95 | 1.95 | ||||
2 | 12 | t2w | 28 | M | 95 | 1.95 | ||||
2 | 13 | t2w | 28 | M | 95 | 1.95 | ||||
2 | 14 | t2w | 28 | M | 95 | 1.95 | ||||
2 | 15 | t2w | 28 | M | 95 | 1.95 | ||||
2 | 16 | t2w | 28 | M | 95 | 1.95 | ||||
2 | 17 | t2w | 28 | M | 95 | 1.95 | ||||
3 | 0 | t2w | 29 | M | 95 | 1.95 | ||||
3 | 1 | t2w | 29 | M | 95 | 1.95 | ||||
3 | 2 | t2w | 29 | M | 95 | 1.95 | ||||
3 | 3 | t2w | 29 | M | 95 | 1.95 | ||||
3 | 4 | t2w | 29 | M | 95 | 1.95 | ||||
3 | 5 | t2w | 29 | M | 95 | 1.95 | ||||
3 | 6 | t2w | 29 | M | 95 | 1.95 | ||||
3 | 7 | t2w | 29 | M | 95 | 1.95 | ||||
3 | 8 | t2w | 29 | M | 95 | 1.95 | ||||
3 | 9 | t2w | 29 | M | 95 | 1.95 |
MS3SEG: Multiple Sclerosis MRI Dataset with Tri-Mask Annotations for Lesion Segmentation
This dataset contains materials from the study "A Multiple Sclerosis MRI Dataset with Tri-Mask Annotations for Lesion Segmentation" by Bashiri Bawil et al. (2026), aimed at developing and benchmarking segmentation algorithms that distinguish true MS demyelinating lesions from normal age-related white matter hyperintensities (WMH) and ventricular CSF artifacts.
π§ Dataset Description
This repository provides a 2D slice-based version of the original MS3SEG dataset, designed for efficient deep learning and segmentation workflows.
Each entry corresponds to a single 2D slice extracted from a volume and includes the normalized MRI image, three corresponding segmentation masks, and participant-level clinical/demographic metadata.
The dataset addresses a critical clinical challenge: not all white matter hyperintensities visible on images represent pathological MS lesions. The tri-mask annotation framework explicitly distinguishes:
Ventricles (
vent_mask) β Fluid-filled cavities in the brain center. Explicitly masking ventricles gives the model anatomical context to avoid misclassifying these boundaries as pathology.Normal WMH (
nwmh_mask) β Diffuse white matter signal changes from natural aging: gradual myelin degradation, axonal loss, and increased extracellular fluid. Not pathological MS activity β must be excluded from lesion burden calculations to avoid inflating disease scores.Abnormal WMH (
abwmh_mask) β Focal MS demyelinating plaques. These are the primary clinical target β the basis for MS diagnosis and treatment response monitoring.
π¦ Dataset Structure
Each dataset entry contains:
volume_idβ Unique identifier for the MRI volume / patientslice_idβ Index of the 2D slice within the volumetypeβ MRI sequence type (e.g.,T1WI,T2WI)ageβ Participant agesexβ Participant sexweightβ Participant weight (kg)heightβ Participant height (m)imageβ 2D preprocessed slice (256Γ256, brain-extracted)vent_maskβ Binary segmentation mask for ventriclesnwmh_maskβ Binary segmentation mask for normal white matter hyperintensitiesabwmh_maskβ Binary segmentation mask for abnormal (MS) white matter hyperintensities
Use
from datasets import load_dataset
import matplotlib.pyplot as plt
import numpy as np
dataset = load_dataset("chehablab/ms3seg_t1w_t2w", split="train")
sample_id = 42
image = dataset[sample_id]["image"]
vent = dataset[sample_id]["vent_mask"]
nwmh = dataset[sample_id]["nwmh_mask"]
abwmh = dataset[sample_id]["abwmh_mask"]
scan_type = dataset[sample_id]["type"]
fig, axes = plt.subplots(1, 4, figsize=(16, 4))
axes[0].imshow(image, cmap="gray"); axes[0].set_title(f"Image ({scan_type})")
axes[1].imshow(vent, cmap="Blues"); axes[1].set_title("Ventricles")
axes[2].imshow(nwmh, cmap="Greens"); axes[2].set_title("Normal WMH")
axes[3].imshow(abwmh, cmap="Reds"); axes[3].set_title("Abnormal WMH")
for ax in axes: ax.axis("off")
plt.tight_layout()
plt.show()
π Citation
If you use this dataset, please acknowledge our lab Chehab Lab and cite the original dataset:
@article{Bawil2026,
author = {Bawil, Mahdi Bashiri and Shamsi, Mousa and Ghalehasadi, Aydin and Jafargholkhanloo, Ali Fahmi and Bavil, Abolhassan Shakeri},
title = {A Multiple Sclerosis MRI Dataset with Tri-Mask Annotations for Lesion Segmentation},
journal = {Scientific Data},
year = {2026},
month = apr,
day = {14},
abstract = {Multiple sclerosis (MS) lesion segmentation from MRI is essential for diagnosis, monitoring, and treatment evaluation, yet existing datasets exhibit limited geographic diversity, scanner vendor bias, and inability to distinguish normal from pathological white matter hyperintensities. We present MS3SEG, a publicly available dataset comprising 100 MS patients from an Iranian cohort acquired on a 1.5 T Toshiba scanner, featuring multi-sequence MRI (T1-weighted, T2-weighted, T2-FLAIR in axial and sagittal planes) with novel tri-mask annotations. Expert annotators systematically delineated three classes on axial T2-FLAIR images: ventricles, normal white matter hyperintensities (age-related or CSF-contaminated regions), and abnormal white matter hyperintensities (MS lesions), incorporating automated quality control to minimize annotation errors. This tri-mask framework addresses a critical clinical challenge where benign periventricular hyperintensities are frequently misclassified as pathological lesions. Data are provided in multiple formats: raw DICOM, preprocessed NIfTI with co-registration and brain extraction, ground-truth masks, and visualization overlays. Baseline validation using U-Net, U-Net++, UNETR, and Swin UNETR across 5-fold cross-validation demonstrated dataset quality, with U-Net achieving Dice coefficients of 0.7469 for binary lesion segmentation and 0.6686 for multi-class abnormal hyperintensity segmentation. MS3SEG enables research on anatomically-aware segmentation, algorithm robustness to real-world clinical acquisition variations, and clinically relevant normal-versus-abnormal hyperintensity distinction, complementing existing 3D volumetric MS datasets.},
issn = {2052-4463},
doi = {10.1038/s41597-026-07184-5},
url = {https://doi.org/10.1038/s41597-026-07184-5}
}
π License
This dataset is released under the Creative Commons CC0 1.0 Universal (CC0 1.0) Public Domain Dedication.
You may copy, modify, distribute, and use the data, even for commercial purposes, without asking permission.

Chehab Lab @ 2026
- Downloads last month
- 64