Chris Oswald commited on
Commit
7ba6ca7
·
2 Parent(s): 7c0072d fbdb199

Merge branch 'main' of https://huggingface.co/datasets/cdoswald/SPIDER

Browse files
Files changed (1) hide show
  1. README.md +42 -27
README.md CHANGED
@@ -54,26 +54,27 @@ In addition to the information in this README, several detailed tutorials are pr
54
 
55
  2. [Dataset Summary](https://huggingface.co/datasets/cdoswald/SPIDER#dataset-summary)
56
 
57
- 3. [Data Modifications](https://huggingface.co/datasets/cdoswald/SPIDER#dataset-summary)
58
 
59
- 4. [Dataset Structure](https://huggingface.co/datasets/cdoswald/SPIDER#dataset-summary)
60
 
61
- - [Data Instances](https://huggingface.co/datasets/cdoswald/SPIDER#dataset-summary)
62
 
63
- - [Data Format/Fields](https://huggingface.co/datasets/cdoswald/SPIDER#dataset-summary)
64
 
65
- - [Data Splits](https://huggingface.co/datasets/cdoswald/SPIDER#dataset-summary)
66
 
67
- 5. [Image Resolution](https://huggingface.co/datasets/cdoswald/SPIDER#dataset-summary)
68
 
69
- 6. [Additional Information](https://huggingface.co/datasets/cdoswald/SPIDER#dataset-summary)
70
 
71
- - [License](https://huggingface.co/datasets/cdoswald/SPIDER#dataset-summary)
72
 
73
- - [Citation](https://huggingface.co/datasets/cdoswald/SPIDER#dataset-summary)
74
 
75
- - [Disclaimer](https://huggingface.co/datasets/cdoswald/SPIDER#dataset-summary)
76
-
 
77
 
78
  <br>
79
 
@@ -130,7 +131,7 @@ for each study (i.e., training or validation set) is recorded in the `OrigSubset
130
 
131
  There are 447 images and corresponding segmentation masks for 218 unique patients.
132
 
133
- ### Data Format/Fields
134
 
135
  The format for each generated data instance is as follows:
136
 
@@ -140,13 +141,21 @@ The format for each generated data instance is as follows:
140
 
141
  3. **image**: a 3-dimensional volumetric array (height, width, depth) of values indicating pixel intensities of MRI scan
142
 
143
- 4. **mask**: a 3-dimensional volumetric array (height, width, depth) of values indicating manually segmented feature of interest
 
 
 
 
 
 
 
 
144
 
145
- 5. **image_path**: path to the local cache containing the original (non-rescaled and non-resized) MRI image
146
 
147
- 6. **mask_path**: path to the local cache containing the original (non-rescaled and non-resized) segementation mask
148
 
149
- 7. **metadata**: a dictionary of metadata of image, patient, and scanner characteristics:
150
 
151
  - number of vertebrae
152
  - number of discs
@@ -197,21 +206,21 @@ The dataset is split as follows:
197
  - Training set:
198
  - 149 unique patients
199
  - 304 total images
200
- - T1: 133 images
201
- - T2: 145 images
202
- - T2-SPACE: 26 images
203
  - Validation set:
204
  - 37 unique patients
205
  - 75 total images
206
- - T1: 34 images
207
- - T2: 34 images
208
- - T2-SPACE: 7 images
209
  - Test set:
210
  - 32 unique patients
211
  - 68 total images
212
- - T1: 29 images
213
- - T2: 31 images
214
- - T2-SPACE: 8 images
215
 
216
  An additional hidden test set provided by the paper authors
217
  (i.e., not available via HuggingFace) is available on the
@@ -226,7 +235,7 @@ An additional hidden test set provided by the paper authors
226
  Note that all images are rescaled to have pixel intensities in the range `[0, 255]` (i.e., unsigned 8-bit integers)
227
  for compatibility with the HuggingFace `datasets` library. If you want to use the original resolution, you can
228
  load the original images from the local cache indicated in each example's `image_path` and `mask_path` features.
229
- See the data loading [tutorial](tutorials/load_data.ipynb) for more information.
230
 
231
  # Additional Information
232
 
@@ -241,4 +250,10 @@ The dataset is published under a CC-BY 4.0 license: https://creativecommons.org/
241
  ### Disclaimer
242
 
243
  I am not affiliated in any way with the aforementioned paper, researchers, or organizations. Please validate any findings using this curated dataset
244
- against the original data provided by the researchers on [Zenodo](https://zenodo.org/records/8009680).)
 
 
 
 
 
 
 
54
 
55
  2. [Dataset Summary](https://huggingface.co/datasets/cdoswald/SPIDER#dataset-summary)
56
 
57
+ 3. [Data Modifications](https://huggingface.co/datasets/cdoswald/SPIDER#data-modifications)
58
 
59
+ 4. [Dataset Structure](https://huggingface.co/datasets/cdoswald/SPIDER#dataset-structure)
60
 
61
+ - [Data Instances](https://huggingface.co/datasets/cdoswald/SPIDER#data-instances)
62
 
63
+ - [Data Schema](https://huggingface.co/datasets/cdoswald/SPIDER#data-schema)
64
 
65
+ - [Data Splits](https://huggingface.co/datasets/cdoswald/SPIDER#data-splits)
66
 
67
+ 5. [Image Resolution](https://huggingface.co/datasets/cdoswald/SPIDER#image-resolution)
68
 
69
+ 6. [Additional Information](https://huggingface.co/datasets/cdoswald/SPIDER#additional-information)
70
 
71
+ - [License](https://huggingface.co/datasets/cdoswald/SPIDER#license)
72
 
73
+ - [Citation](https://huggingface.co/datasets/cdoswald/SPIDER#citation)
74
 
75
+ - [Disclaimer](https://huggingface.co/datasets/cdoswald/SPIDER#disclaimer)
76
+
77
+ - [Known Issues/Bugs](https://huggingface.co/datasets/cdoswald/SPIDER#known-issuesbugs)
78
 
79
  <br>
80
 
 
131
 
132
  There are 447 images and corresponding segmentation masks for 218 unique patients.
133
 
134
+ ### Data Schema
135
 
136
  The format for each generated data instance is as follows:
137
 
 
141
 
142
  3. **image**: a 3-dimensional volumetric array (height, width, depth) of values indicating pixel intensities of MRI scan
143
 
144
+ 4. **mask**: a 3-dimensional volumetric array (height, width, depth) of values indicating the following segmented anatomical feature(s):
145
+
146
+ - 0 = background
147
+ - 1-25 = vertebrae (numbered from the bottom, i.e., L5 = 1)
148
+ - 100 = spinal canal
149
+ - 101-125 = partially visible vertebrae
150
+ - 201-225 = intervertebral discs (numbered from the bottom, i.e., L5/S1 = 201)
151
+
152
+ See the [SPIDER Grand Challenge](https://grand-challenge.org/algorithms/spider-baseline-iis/) documentation for more details.
153
 
154
+ 6. **image_path**: path to the local cache containing the original (non-rescaled and non-resized) MRI image
155
 
156
+ 7. **mask_path**: path to the local cache containing the original (non-rescaled and non-resized) segementation mask
157
 
158
+ 8. **metadata**: a dictionary of metadata of image, patient, and scanner characteristics:
159
 
160
  - number of vertebrae
161
  - number of discs
 
206
  - Training set:
207
  - 149 unique patients
208
  - 304 total images
209
+ - Sagittal T1: 133 images
210
+ - Sagittal T2: 145 images
211
+ - Sagittal T2-SPACE: 26 images
212
  - Validation set:
213
  - 37 unique patients
214
  - 75 total images
215
+ - Sagittal T1: 34 images
216
+ - Sagittal T2: 34 images
217
+ - Sagittal T2-SPACE: 7 images
218
  - Test set:
219
  - 32 unique patients
220
  - 68 total images
221
+ - Sagittal T1: 29 images
222
+ - Sagittal T2: 31 images
223
+ - Sagittal T2-SPACE: 8 images
224
 
225
  An additional hidden test set provided by the paper authors
226
  (i.e., not available via HuggingFace) is available on the
 
235
  Note that all images are rescaled to have pixel intensities in the range `[0, 255]` (i.e., unsigned 8-bit integers)
236
  for compatibility with the HuggingFace `datasets` library. If you want to use the original resolution, you can
237
  load the original images from the local cache indicated in each example's `image_path` and `mask_path` features.
238
+ See the [tutorial](tutorials/load_data.ipynb) for more information.
239
 
240
  # Additional Information
241
 
 
250
  ### Disclaimer
251
 
252
  I am not affiliated in any way with the aforementioned paper, researchers, or organizations. Please validate any findings using this curated dataset
253
+ against the original data provided by the researchers on [Zenodo](https://zenodo.org/records/8009680).)
254
+
255
+ ### Known Issues/Bugs
256
+
257
+ 1. Serializing data into Apache Arrow format is required to make the dataset available via HuggingFace's `datasets` library. However, it introduces some segmentation
258
+ mask integer values that do not map exactly to a defined [anatomical feature category](https://grand-challenge.org/algorithms/spider-baseline-iis/).
259
+ See the data loading [tutorial](tutorials/load_data.ipynb) for more information and temporary work-arounds.