Link paper and improve dataset card

#1
by nielsr HF Staff - opened
Files changed (1) hide show
  1. README.md +127 -147
README.md CHANGED
@@ -1,147 +1,127 @@
1
- ---
2
- license: mit
3
- task_categories:
4
- - image-segmentation
5
- - image-classification
6
- language:
7
- - en
8
- tags:
9
- - medical-imaging
10
- - mri
11
- - 3d
12
- - placenta
13
- - pas
14
- - placenta-accreta-spectrum
15
- - obstetrics
16
- size_categories:
17
- - n<1K
18
- pretty_name: PASD - Placenta Accreta Spectrum MRI Dataset
19
- ---
20
-
21
- # PASD — Placenta Accreta Spectrum MRI Dataset
22
-
23
- A 3D MRI dataset for **Placenta Accreta Spectrum (PAS)** diagnosis with
24
- voxel-level lesion masks and case-level diagnostic labels. This dataset
25
- accompanies the paper:
26
-
27
- > **3D Segment Anything Model with Visual Mamba for Diagnosing Placenta Accreta Spectrum**, IEEE Transactions on Image Processing.
28
-
29
- Source code for the proposed 3DSAMba method:
30
- [https://github.com/Drchip61/PASD](https://github.com/Drchip61/PASD).
31
-
32
- ## Dataset Summary
33
-
34
- | Split | Cases | Negative (label=0) | Positive (label=1) |
35
- | ----- | ----- | ------------------ | ------------------ |
36
- | train | 184 | 61 | 123 |
37
- | test | 60 | 20 | 40 |
38
- | total | 244 | 81 | 163 |
39
-
40
- Each case contains a single transverse-plane T2-weighted MRI volume of the
41
- uterus and the corresponding binary segmentation mask covering the suspected
42
- lesion region. Volumes are saved as NIfTI files (`.nii.gz`) at their native
43
- resolution; typical shape is `(560, 560, ~55-70)` with `float64` intensities
44
- in roughly `[0, 3500]`.
45
-
46
- ## Files & Layout
47
-
48
- ```
49
- PASD/
50
- ── train/
51
- ├── PASD_00001_1/
52
- │ ├── PASD_00001_1_image.nii.gz # MRI volume
53
- │ │ └── mask.nii.gz # binary segmentation mask
54
- │ ├── PASD_00002_1/
55
- │ │ └── ...
56
- │ └── PASD_00184_1/
57
- └── test/
58
- ├── PASD_00185_1/
59
- │ └── ...
60
- └── PASD_00244_0/
61
- ```
62
-
63
- - The directory name encodes the case id and the **case-level class label**
64
- (`PASD_<5-digit-id>_<label>`), where `label ∈ {0, 1}` indicates
65
- PAS-negative or PAS-positive respectively.
66
- - Inside every case directory there is exactly one MRI volume
67
- (`*_image.nii.gz`) and one segmentation mask (`mask.nii.gz`).
68
-
69
- This layout is the one expected by the dataloaders in the reference
70
- implementation. The classifier-stage `dataset_class.py` additionally reads
71
- predicted masks from a sibling directory (`test_other/`) — see the
72
- repository for details.
73
-
74
- ## Privacy / De-identification
75
-
76
- All cases have been **fully de-identified**:
77
-
78
- - Original patient-name pinyin and hospital sequence numbers have been
79
- removed from both directory names and file names.
80
- - NIfTI header fields that *could* contain free text (`descrip`,
81
- `intent_name`, `aux_file`, `db_name`) are emptied. They were already empty
82
- in the source data, but we scrub them defensively.
83
- - No DICOM tags, accession numbers, or acquisition timestamps are
84
- distributed with the dataset.
85
-
86
- The internal mapping between original case identifiers and the released
87
- `PASD_xxxxx` ids is **not** part of this release and is kept only by the
88
- data custodians.
89
-
90
- ## How to Load
91
-
92
- ### Plain PyTorch
93
-
94
- ```python
95
- import os
96
- import nibabel as nib
97
-
98
- CASE_DIR = "PASD/train/PASD_00001_1"
99
-
100
- mri = nib.load(os.path.join(CASE_DIR, "PASD_00001_1_image.nii.gz")).get_fdata()
101
- msk = nib.load(os.path.join(CASE_DIR, "mask.nii.gz")).get_fdata()
102
-
103
- label = int(CASE_DIR[-1]) # 0 = PAS-negative, 1 = PAS-positive
104
- print(mri.shape, msk.shape, label)
105
- ```
106
-
107
- ### Hugging Face Datasets
108
-
109
- ```python
110
- from huggingface_hub import snapshot_download
111
-
112
- local_dir = snapshot_download(
113
- repo_id="ChipYTY/PASD",
114
- repo_type="dataset",
115
- )
116
- ```
117
-
118
- After the snapshot is available locally, the `train/` and `test/` folders
119
- can be plugged directly into the reference implementation's `dataset.py`.
120
-
121
- ## Intended Use
122
-
123
- - Lesion segmentation on placenta-region MRI.
124
- - PAS positive vs. negative classification.
125
- - Multi-task learning that couples segmentation and diagnosis.
126
-
127
- The dataset is intended for research purposes only. It is **not** a
128
- substitute for clinical judgement and should not be used to make individual
129
- diagnoses.
130
-
131
- ## Citation
132
-
133
- ```bibtex
134
- @article{zhang2025pasd,
135
- title = {3D Segment Anything Model with Visual Mamba for Diagnosing Placenta Accreta Spectrum},
136
- author = {Zhang, Yuliang and He, Fang and Peng, Lulu and Guo, Qing and Yu, Lin and
137
- Wang, Zhijian and Shun, Wei and Liu, Jue and Chen, Yonglu and Huang, Jianwei and
138
- Bao, Zeye and Cai, Zhishan and Chen, Yanhong and Hu, Miao and Gu, Zhongjia and
139
- Shi, Yiyu and Yan, Tianyu and Zhang, Pingping and Ting, Song and Du, Lili and Chen, Dunjin},
140
- journal = {IEEE Transactions on Image Processing},
141
- year = {2025}
142
- }
143
- ```
144
-
145
- ## License
146
-
147
- Released under the [MIT License](https://opensource.org/license/mit/).
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: mit
5
+ size_categories:
6
+ - n<1K
7
+ task_categories:
8
+ - image-segmentation
9
+ - image-classification
10
+ pretty_name: PASD - Placenta Accreta Spectrum MRI Dataset
11
+ tags:
12
+ - medical-imaging
13
+ - mri
14
+ - 3d
15
+ - placenta
16
+ - pas
17
+ - placenta-accreta-spectrum
18
+ - obstetrics
19
+ ---
20
+
21
+ # PASD — Placenta Accreta Spectrum MRI Dataset
22
+
23
+ A 3D MRI dataset for **Placenta Accreta Spectrum (PAS)** diagnosis with voxel-level lesion masks and case-level diagnostic labels. This dataset accompanies the paper:
24
+
25
+ > **[3D Segment Anything Model with Visual Mamba for Diagnosing Placenta Accreta Spectrum](https://huggingface.co/papers/2606.00489)**, IEEE Transactions on Image Processing.
26
+
27
+ Source code for the proposed 3DSAMba method: [https://github.com/Drchip61/PASD](https://github.com/Drchip61/PASD).
28
+
29
+ ## Dataset Summary
30
+
31
+ | Split | Cases | Negative (label=0) | Positive (label=1) |
32
+ | ----- | ----- | ------------------ | ------------------ |
33
+ | train | 184 | 61 | 123 |
34
+ | test | 60 | 20 | 40 |
35
+ | total | 244 | 81 | 163 |
36
+
37
+ Each case contains a single transverse-plane T2-weighted MRI volume of the uterus and the corresponding binary segmentation mask covering the suspected lesion region. Volumes are saved as NIfTI files (`.nii.gz`) at their native resolution; typical shape is `(560, 560, ~55-70)` with `float64` intensities in roughly `[0, 3500]`.
38
+
39
+ ## Files & Layout
40
+
41
+ ```
42
+ PASD/
43
+ ├── train/
44
+ │ ├── PASD_00001_1/
45
+ │ │ ├── PASD_00001_1_image.nii.gz # MRI volume
46
+ │ │ └── mask.nii.gz # binary segmentation mask
47
+ │ ├── PASD_00002_1/
48
+ │ │ └── ...
49
+ │ └── PASD_00184_1/
50
+ ── test/
51
+ ├── PASD_00185_1/
52
+ ── ...
53
+ └── PASD_00244_0/
54
+ ```
55
+
56
+ - The directory name encodes the case id and the **case-level class label** (`PASD_<5-digit-id>_<label>`), where `label ∈ {0, 1}` indicates PAS-negative or PAS-positive respectively.
57
+ - Inside every case directory there is exactly one MRI volume (`*_image.nii.gz`) and one segmentation mask (`mask.nii.gz`).
58
+
59
+ This layout is the one expected by the dataloaders in the reference implementation. The classifier-stage `dataset_class.py` additionally reads predicted masks from a sibling directory (`test_other/`) — see the repository for details.
60
+
61
+ ## Privacy / De-identification
62
+
63
+ All cases have been **fully de-identified**:
64
+
65
+ - Original patient-name pinyin and hospital sequence numbers have been removed from both directory names and file names.
66
+ - NIfTI header fields that *could* contain free text (`descrip`, `intent_name`, `aux_file`, `db_name`) are emptied. They were already empty in the source data, but we scrub them defensively.
67
+ - No DICOM tags, accession numbers, or acquisition timestamps are distributed with the dataset.
68
+
69
+ The internal mapping between original case identifiers and the released `PASD_xxxxx` ids is **not** part of this release and is kept only by the data custodians.
70
+
71
+ ## How to Load
72
+
73
+ ### Downloading via Hugging Face Hub
74
+
75
+ You can download the dataset using the `huggingface_hub` library:
76
+
77
+ ```python
78
+ from huggingface_hub import snapshot_download
79
+
80
+ snapshot_download(
81
+ repo_id="ChipYTY/PASD",
82
+ repo_type="dataset",
83
+ local_dir=".",
84
+ allow_patterns=["train/**", "test/**"],
85
+ )
86
+ ```
87
+
88
+ ### Loading MRI Data
89
+
90
+ ```python
91
+ import os
92
+ import nibabel as nib
93
+
94
+ CASE_DIR = "PASD/train/PASD_00001_1"
95
+
96
+ mri = nib.load(os.path.join(CASE_DIR, "PASD_00001_1_image.nii.gz")).get_fdata()
97
+ msk = nib.load(os.path.join(CASE_DIR, "mask.nii.gz")).get_fdata()
98
+
99
+ label = int(CASE_DIR[-1]) # 0 = PAS-negative, 1 = PAS-positive
100
+ print(mri.shape, msk.shape, label)
101
+ ```
102
+
103
+ ## Intended Use
104
+
105
+ - Lesion segmentation on placenta-region MRI.
106
+ - PAS positive vs. negative classification.
107
+ - Multi-task learning that couples segmentation and diagnosis.
108
+
109
+ The dataset is intended for research purposes only. It is **not** a substitute for clinical judgement and should not be used to make individual diagnoses.
110
+
111
+ ## Citation
112
+
113
+ ```bibtex
114
+ @article{zhang2025pasd,
115
+ title = {3D Segment Anything Model with Visual Mamba for Diagnosing Placenta Accreta Spectrum},
116
+ author = {Zhang, Yuliang and He, Fang and Peng, Lulu and Guo, Qing and Yu, Lin and
117
+ Wang, Zhijian and Shun, Wei and Liu, Jue and Chen, Yonglu and Huang, Jianwei and
118
+ Bao, Zeye and Cai, Zhishan and Chen, Yanhong and Hu, Miao and Gu, Zhongjia and
119
+ Shi, Yiyu and Yan, Tianyu and Zhang, Pingping and Ting, Song and Du, Lili and Chen, Dunjin},
120
+ journal = {IEEE Transactions on Image Processing},
121
+ year = {2025}
122
+ }
123
+ ```
124
+
125
+ ## License
126
+
127
+ Released under the [MIT License](https://opensource.org/license/mit/).