Upload APIS dataset (lesion cases only, 54 cases) - clean structure
Browse files
README.md
CHANGED
|
@@ -4,135 +4,80 @@ task_categories:
|
|
| 4 |
- image-segmentation
|
| 5 |
- image-to-image
|
| 6 |
tags:
|
| 7 |
-
- medical
|
|
|
|
| 8 |
- stroke
|
| 9 |
-
- mri
|
| 10 |
-
- ct
|
| 11 |
- image-fusion
|
| 12 |
-
|
| 13 |
size_categories:
|
| 14 |
-
- n<
|
| 15 |
---
|
| 16 |
|
| 17 |
# APIS Stroke Dataset - Preprocessed (Lesion Cases Only)
|
| 18 |
|
| 19 |
-
|
| 20 |
|
| 21 |
-
|
| 22 |
-
**This version contains only cases with lesions (54/60 cases).**
|
| 23 |
-
|
| 24 |
-
### Key Features
|
| 25 |
-
|
| 26 |
-
- **54 cases** of acute ischemic stroke patients (6 no-lesion cases excluded)
|
| 27 |
-
- **Paired CT-MRI scans** with expert lesion annotations
|
| 28 |
-
- **ROI masks** generated with TotalSegmentator (brain + bone)
|
| 29 |
-
- **Normalized** for deep learning (clinical windowing for CT, Z-score for MRI)
|
| 30 |
-
- **Pre-registered** MRI to CT space using ANTs SyN
|
| 31 |
-
|
| 32 |
-
### Files per Case
|
| 33 |
|
| 34 |
```
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
```
|
| 42 |
|
| 43 |
-
##
|
| 44 |
-
|
| 45 |
-
- **Total cases:** 54
|
| 46 |
-
- **Excluded cases:** 6 (no lesions)
|
| 47 |
-
- **Cases with lesions:** 54
|
| 48 |
-
|
| 49 |
-
### Data Splits
|
| 50 |
-
|
| 51 |
-
| Split | Count | Percentage |
|
| 52 |
-
|-------|-------|------------|
|
| 53 |
-
| Train | 37 | 68.5% |
|
| 54 |
-
| Val | 8 | 14.8% |
|
| 55 |
-
| Test | 9 | 16.7% |
|
| 56 |
-
|
| 57 |
-
### Lesion Size Distribution
|
| 58 |
|
| 59 |
-
|
| 60 |
-
- **Medium (5-20 mL):** 16.7%
|
| 61 |
-
- **Large (≥20 mL):** 22.2%
|
| 62 |
-
- **Median volume:** 2.24 mL
|
| 63 |
-
|
| 64 |
-
### Excluded Cases
|
| 65 |
-
|
| 66 |
-
The following 6 cases were excluded (no lesion present):
|
| 67 |
- train_027, train_038, train_048, train_051, train_058, train_059
|
| 68 |
|
| 69 |
-
## Preprocessing Pipeline
|
| 70 |
-
|
| 71 |
-
1. **TotalSegmentator**: Generate brain and bone ROI masks from CT
|
| 72 |
-
2. **ANTs Registration**: Align MRI to CT space (SyN transformation)
|
| 73 |
-
3. **CT Normalization**: Clinical windowing (Center=40 HU, Width=400 HU) → [-2, 2]
|
| 74 |
-
4. **MRI Normalization**: Z-score normalization → typically [-2, 5]
|
| 75 |
-
|
| 76 |
## Usage
|
| 77 |
|
| 78 |
```python
|
| 79 |
-
from
|
| 80 |
-
|
| 81 |
-
# Load dataset
|
| 82 |
-
dataset = load_dataset("SuperAI/apis-stroke-preprocessed-lesion-only")
|
| 83 |
-
|
| 84 |
-
# Access a case
|
| 85 |
-
train_sample = dataset['train'][0]
|
| 86 |
|
| 87 |
-
#
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
brain_mask_path = train_sample['brain_mask']
|
| 91 |
-
bone_mask_path = train_sample['bone_mask']
|
| 92 |
-
lesion_mask_path = train_sample['lesion_mask']
|
| 93 |
|
| 94 |
-
# Load
|
| 95 |
-
|
| 96 |
-
ct = nib.load(
|
|
|
|
|
|
|
| 97 |
```
|
| 98 |
|
| 99 |
## Citation
|
| 100 |
|
| 101 |
-
If you use this dataset, please cite:
|
| 102 |
-
|
| 103 |
```bibtex
|
| 104 |
-
@
|
| 105 |
-
title={APIS
|
| 106 |
-
author={
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
howpublished={\url{https://huggingface.co/datasets/SuperAI/apis-stroke-preprocessed-lesion-only}}
|
| 110 |
}
|
| 111 |
```
|
| 112 |
|
| 113 |
-
|
| 114 |
-
- **APIS Challenge**: https://www.api.sv/
|
| 115 |
-
- **Paper**: To be announced by challenge organizers
|
| 116 |
-
|
| 117 |
-
## License
|
| 118 |
-
|
| 119 |
-
CC-BY-4.0 (following original APIS dataset license)
|
| 120 |
|
| 121 |
-
|
|
|
|
|
|
|
|
|
|
| 122 |
|
| 123 |
-
|
| 124 |
-
- Medical image fusion research
|
| 125 |
-
- Multimodal learning
|
| 126 |
-
- Stroke lesion segmentation
|
| 127 |
-
- ROI-aware image synthesis
|
| 128 |
-
|
| 129 |
-
**Not for clinical use.** This is a research dataset only.
|
| 130 |
-
|
| 131 |
-
## Contact
|
| 132 |
-
|
| 133 |
-
For questions or issues, please open an issue on the dataset repository.
|
| 134 |
-
|
| 135 |
-
---
|
| 136 |
|
| 137 |
-
|
| 138 |
-
**Last updated:** 2025-10-23
|
|
|
|
| 4 |
- image-segmentation
|
| 5 |
- image-to-image
|
| 6 |
tags:
|
| 7 |
+
- medical
|
| 8 |
+
- neuroimaging
|
| 9 |
- stroke
|
|
|
|
|
|
|
| 10 |
- image-fusion
|
| 11 |
+
pretty_name: APIS Stroke Dataset (Lesion Cases Only)
|
| 12 |
size_categories:
|
| 13 |
+
- n<1K
|
| 14 |
---
|
| 15 |
|
| 16 |
# APIS Stroke Dataset - Preprocessed (Lesion Cases Only)
|
| 17 |
|
| 18 |
+
This dataset contains **54 acute ischemic stroke cases** with expert lesion annotations from the APIS dataset.
|
| 19 |
|
| 20 |
+
## Dataset Structure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
|
| 22 |
```
|
| 23 |
+
preproc/
|
| 24 |
+
train_000/
|
| 25 |
+
ct.nii.gz # CT scan
|
| 26 |
+
mri.nii.gz # Registered MRI (ADC)
|
| 27 |
+
brain_mask.nii.gz # Brain ROI mask (TotalSegmentator)
|
| 28 |
+
bone_mask.nii.gz # Bone/skull ROI mask (TotalSegmentator)
|
| 29 |
+
lesion_mask.nii.gz # Expert-annotated lesion segmentation
|
| 30 |
+
train_001/
|
| 31 |
+
...
|
| 32 |
+
(54 cases total)
|
| 33 |
+
|
| 34 |
+
splits/
|
| 35 |
+
train.txt # 37 cases (68.5%)
|
| 36 |
+
val.txt # 8 cases (14.8%)
|
| 37 |
+
test.txt # 9 cases (16.7%)
|
| 38 |
+
split_metadata.json # Split statistics
|
| 39 |
```
|
| 40 |
|
| 41 |
+
## Excluded Cases
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
|
| 43 |
+
6 cases without lesions were excluded:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
- train_027, train_038, train_048, train_051, train_058, train_059
|
| 45 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
## Usage
|
| 47 |
|
| 48 |
```python
|
| 49 |
+
from pathlib import Path
|
| 50 |
+
import nibabel as nib
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
|
| 52 |
+
# Download dataset
|
| 53 |
+
from huggingface_hub import snapshot_download
|
| 54 |
+
data_dir = snapshot_download(repo_id="Pakawat-Phasook/ClinFuseDiff-APIS-Data", repo_type="dataset")
|
|
|
|
|
|
|
|
|
|
| 55 |
|
| 56 |
+
# Load a case
|
| 57 |
+
case_dir = Path(data_dir) / "preproc" / "train_000"
|
| 58 |
+
ct = nib.load(case_dir / "ct.nii.gz")
|
| 59 |
+
mri = nib.load(case_dir / "mri.nii.gz")
|
| 60 |
+
lesion_mask = nib.load(case_dir / "lesion_mask.nii.gz")
|
| 61 |
```
|
| 62 |
|
| 63 |
## Citation
|
| 64 |
|
|
|
|
|
|
|
| 65 |
```bibtex
|
| 66 |
+
@article{li2023apis,
|
| 67 |
+
title={APIS: A paired CT-MRI dataset with lesion labels for acute ischemic stroke},
|
| 68 |
+
author={Li, Zongwei and others},
|
| 69 |
+
journal={Scientific Data},
|
| 70 |
+
year={2023}
|
|
|
|
| 71 |
}
|
| 72 |
```
|
| 73 |
|
| 74 |
+
## Preprocessing
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 75 |
|
| 76 |
+
- **Registration**: MRI (ADC) registered to CT using ANTs SyN
|
| 77 |
+
- **ROI Masks**: Generated using TotalSegmentator v2
|
| 78 |
+
- **Normalization**: CT windowed to brain (C=40, W=400 HU)
|
| 79 |
+
- **Format**: NIfTI (.nii.gz), isotropic 1mm spacing
|
| 80 |
|
| 81 |
+
## License
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 82 |
|
| 83 |
+
CC-BY-4.0 (original APIS dataset license)
|
|
|