CoolFace
Datasetpublic

MedOtter/isles2022

ISLES 2022 Dataset Dataset Description The ISLES 2022 dataset for ischemic stroke lesion segmentation. This dataset contains MRI (ADC, DWI) scans with dense segmentation annotations. Dataset Details Modality: MRI (ADC, DWI) Target: stroke lesion Format: NIfTI (.nii.gz) Dataset Structure Each sample in the JSONL file contains: { "image": "path/to/image.nii.gz", "mask": "path/to/mask.nii.gz", "label": ["organ1", "organ2", ...]… See the full description on the dataset page: https://huggingface.co/datasets/MedOtter/isles2022.

sourceHugging Facecc-by-4.0updated 11mo agoView on Hugging Face
0likes647downloads
Dataset Card

ISLES 2022 Dataset

Dataset Description

The ISLES 2022 dataset for ischemic stroke lesion segmentation. This dataset contains MRI (ADC, DWI) scans with dense segmentation annotations.

Dataset Details

  • Modality: MRI (ADC, DWI)
  • Target: stroke lesion
  • Format: NIfTI (.nii.gz)

Dataset Structure

Each sample in the JSONL file contains:

json
{
  "image": "path/to/image.nii.gz",
  "mask": "path/to/mask.nii.gz",
  "label": ["organ1", "organ2", ...],
  "modality": "MRI",
  "dataset": "ISLES2022",
  "official_split": "train",
  "patient_id": "patient_id"
}

Usage

Load Metadata

python
from datasets import load_dataset

# Load the dataset
ds = load_dataset("Angelou0516/isles2022")

# Access a sample
sample = ds['train'][0]
print(f"Patient ID: {sample['patient_id']}")
print(f"Image: {sample['image']}")
print(f"Mask: {sample['mask']}")
print(f"Labels: {sample['label']}")

Load Images

python
from huggingface_hub import snapshot_download
import nibabel as nib
import os

# Download the full dataset
local_path = snapshot_download(
    repo_id="Angelou0516/isles2022",
    repo_type="dataset"
)

# Load a sample
sample = ds['train'][0]
image = nib.load(os.path.join(local_path, sample['image']))
mask = nib.load(os.path.join(local_path, sample['mask']))

# Get numpy arrays
image_data = image.get_fdata()
mask_data = mask.get_fdata()

print(f"Image shape: {image_data.shape}")
print(f"Mask shape: {mask_data.shape}")

Citation

bibtex
@article{isles2022,
  title={ISLES 2022: Ischemic Stroke Lesion Segmentation Challenge},
  year={2023}
}

License

CC-BY-4.0

Dataset Homepage

https://isles22.grand-challenge.org/