Parth1503 commited on
Commit
3035e21
·
verified ·
1 Parent(s): 296bbbc

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +301 -0
README.md ADDED
@@ -0,0 +1,301 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-sa-4.0
3
+ task_categories:
4
+ - image-segmentation
5
+ tags:
6
+ - medical
7
+ - ct
8
+ - pelvis
9
+ - fracture
10
+ - bone
11
+ - instance-segmentation
12
+ - orthopedics
13
+ - trauma
14
+ - pengwin
15
+ - miccai-2024
16
+ pretty_name: PENGWIN Task 1 - Pelvic Fracture Segmentation on CT
17
+ size_categories:
18
+ - n<1K
19
+ ---
20
+
21
+ # PENGWIN Task 1 — Pelvic Fracture Segmentation on CT
22
+
23
+ The **CT task** of the PENGWIN 2024 challenge (*PElvic bone fraGment (WIN)dow*,
24
+ MICCAI 2024): segment the **sacrum, left hipbone and right hipbone, and the
25
+ individual fracture fragments of each**, in preoperative pelvic trauma CT.
26
+
27
+ This is an **instance** segmentation task, not a 3-class semantic one — the
28
+ label value identifies *which fragment of which bone*, and the fragment count
29
+ varies per case.
30
+
31
+ ## What this mirror contains — read first
32
+
33
+ > **This is the 100-case public training split, not the full 150-case cohort.**
34
+ > PENGWIN 2024 used 100 train / 20 validation / 30 test. Only the training split
35
+ > was ever released; validation and test were withheld for the leaderboard and
36
+ > have not appeared on Zenodo. Any "PENGWIN CT" number quoted as *n=150* refers
37
+ > to the paper's cohort, not to available data.
38
+
39
+ > **Name collision — pin to the 2024 challenge.** A separate **PENGWIN 2026**
40
+ > challenge ("Peripelvic Fracture Segmentation and Reduction Planning") exists
41
+ > with its own Task 1/2/3 and different Zenodo records. This mirror is
42
+ > **Zenodo 10927452, MICCAI 2024**.
43
+
44
+ > **Not raw scans.** The volumes are de-identified DICOM→MHA conversions, and
45
+ > 36 of 100 were cropped to the pelvic region — which is why the geometry varies
46
+ > per case (see *Two processing batches* below).
47
+
48
+ ## Dataset Details
49
+
50
+ | Field | Value |
51
+ |---|---|
52
+ | Modality | CT (preoperative, before fracture reduction surgery) |
53
+ | Body part | Pelvis — sacrum, left hipbone, right hipbone + fracture fragments |
54
+ | Task | 3D instance segmentation of bone fragments |
55
+ | Cases | **100** (public training split of a 150-case cohort) |
56
+ | Cohort | 6 Chinese hospitals, 2017–2023 |
57
+ | Format | `.mha` (MetaImage), flat `NNN.mha`, `001`–`100` contiguous |
58
+ | Size | 8.08 GB (losslessly compressed; 33.77 GB uncompressed) |
59
+ | Slices per case | 193–414 |
60
+ | In-plane | 322×154 to 512×512 (71 distinct shapes) |
61
+ | Spacing | 0.658–1.22 mm in-plane, 0.625–1.25 mm slice (75 distinct) |
62
+ | License | CC BY-NC-SA 4.0 — **see the discrepancy note below** |
63
+ | DOI | `10.5281/zenodo.10927452` |
64
+
65
+ There is **no official validation or test split** in the release, and no
66
+ patient/center metadata of any kind. Splitting is left to the consumer; see
67
+ *Two processing batches* for the one grouping variable that is recoverable.
68
+
69
+ ## Label encoding
70
+
71
+ `0` = background. Foreground encodes anatomy **and** fragment index:
72
+
73
+ | Range | Anatomy |
74
+ |---|---|
75
+ | `1–10` | Sacrum fragments |
76
+ | `11–20` | Left hipbone fragments |
77
+ | `21–30` | Right hipbone fragments |
78
+
79
+ ```python
80
+ anatomy = (label - 1) // 10 # 0 sacrum, 1 left hipbone, 2 right hipbone
81
+ fragment_idx = (label - 1) % 10 # 0 = main fragment
82
+ ```
83
+
84
+ ### Verified properties (checked on all 100 label volumes)
85
+
86
+ These were measured, not taken from the documentation, and several are easy to
87
+ get wrong:
88
+
89
+ - **Observed maximum label is `24`, not `30`.** Values actually present across
90
+ the release: `1–4`, `11–16`, `21–24`. Do not size a one-hot buffer at 30 and
91
+ assume the tail is populated.
92
+ - **All three anatomies are present in all 100 cases** — labels `1`, `11` and
93
+ `21` never missing.
94
+ - **Groups are contiguous and always start at their base** (`1`/`11`/`21`); no
95
+ gaps in any of the 300 anatomy-groups.
96
+ - **The base label is always the largest fragment** in its group (300/300).
97
+ However, the *remaining* fragments are **not** reliably size-ordered —
98
+ 45 of 300 groups violate descending order (e.g. `006.mha` sacrum:
99
+ `1`→76023, `2`→52875, `3`→33603, **`4`→68271**). Do not infer size rank from
100
+ the fragment index beyond the main fragment.
101
+ - **Fragments per case: 3–9, mean 5.75.**
102
+ - **Label dtype is inconsistent: 98 `int16`, 2 `uint8`** (`022.mha`, `072.mha`).
103
+ Do not assume `uint8`.
104
+
105
+ ## ⚠️ Mixed orientation — 34 cases are RAS, 66 are LPS
106
+
107
+ **This is the single easiest thing to get wrong with this dataset.**
108
+
109
+ | Direction cosines | n | Orientation |
110
+ |---|---|---|
111
+ | `diag(+1, +1, +1)` | 66 | LPS |
112
+ | `diag(−1, −1, +1)` | **34** | **RAS** |
113
+
114
+ No case is genuinely oblique — it is a clean ±1 flip on x and y.
115
+
116
+ Image and label share identical direction in **every** case, so per-case overlap
117
+ metrics stay correct even if you ignore this. But a loader that calls
118
+ `GetArrayFromImage()` without consulting the direction cosines will get **34
119
+ cases left–right and anterior–posterior flipped relative to the other 66**. The
120
+ consequence is semantic: labels `11–20` are the *left* hipbone anatomically, but
121
+ land on **opposite sides of the array** depending on the case. Any model with a
122
+ left/right prior, and any evaluation that treats `11���20` as a consistent class,
123
+ is silently corrupted.
124
+
125
+ **Canonicalize before use:**
126
+
127
+ ```python
128
+ import SimpleITK as sitk
129
+ img = sitk.DICOMOrient(sitk.ReadImage("images/001.mha"), "LPS")
130
+ msk = sitk.DICOMOrient(sitk.ReadImage("labels/001.mha"), "LPS")
131
+ ```
132
+
133
+ The per-case `orientation` column in `train.jsonl` records which is which.
134
+
135
+ ## Two processing batches
136
+
137
+ Orientation is a near-perfect proxy for whether a volume was cropped:
138
+
139
+ | | 512×512 in-plane | Cropped in-plane |
140
+ |---|---|---|
141
+ | **LPS** (66) | 64 | 2 |
142
+ | **RAS** (34) | **0** | **34** |
143
+
144
+ Every RAS case is cropped (each to a distinct matrix size); 64 of 66 LPS cases
145
+ are untouched 512×512. Image dtype correlates too — 79% of RAS cases are `int32`
146
+ versus 39% of LPS. This matches the Zenodo note that volumes containing extra
147
+ anatomy "were cropped to contain the pelvic region": that second pass evidently
148
+ also rewrote orientation.
149
+
150
+ So the 100 cases are **two sub-populations produced by different pipelines**.
151
+ This is the only grouping variable the release exposes and is worth stratifying
152
+ on. It is **not** a recovery of the 6-hospital split — PENGWIN publishes no
153
+ center labels, and this correlation identifies *processing batch*, nothing more.
154
+
155
+ ## Image properties
156
+
157
+ - **Image dtype is inconsistent: 53 `int32`, 47 `int16`.** HU values fit
158
+ comfortably in `int16`; the `int32` cases are simply stored wider. This mirror
159
+ **preserves the original dtype** rather than downcasting.
160
+ - Intensity ranges are wide (down to −6152, up to +24970 HU in some cases),
161
+ consistent with trauma cohorts containing implants and metal.
162
+ - **Image and label share an identical grid** (size, spacing, origin, direction)
163
+ in all 100 cases — verified — so no resampling is needed to pair them.
164
+
165
+ ## Ground truth — single gold tier
166
+
167
+ Two independent annotators (5+ years' experience) segmented each case in 3D
168
+ Slicer, **seeded by an nnU-Net pretrained on CTPelvic1K**, after which a senior
169
+ expert (15+ years) **selected the better of the two annotations** — they were not
170
+ merged, and no STAPLE was applied. Fragments below 500 mm³ were omitted.
171
+ Reported inter-annotator agreement: IoU 0.984, ARI 0.993.
172
+
173
+ Only one mask per case ships, so there is **no multi-rater tier** in this
174
+ release and no rater ambiguity to resolve.
175
+
176
+ ## ⚠️ Cross-dataset overlap — CTPelvic1K
177
+
178
+ **Treat PENGWIN Task 1 and CTPelvic1K as potentially patient-overlapping.**
179
+
180
+ CTPelvic1K's `CLINIC` subset is **n=103** pelvic-fracture CT "collected from
181
+ preoperative images without metal artifact" at a collaborating orthopedic
182
+ hospital. PENGWIN's Beijing Jishuitan center contributed **n=103** scans
183
+ "acquired in high quality before fracture reduction surgery". **Chunpeng Zhao and
184
+ Xinbao Wu co-author both papers.** Identical count, identical hospital,
185
+ identical inclusion criteria.
186
+
187
+ Against exact identity: the scanner mix differs (CTPelvic1K's CLINIC is roughly
188
+ 86 Toshiba + ~17 other; PENGWIN's JST is 58 Toshiba + 45 United Imaging), and
189
+ PENGWIN spans 2017–2023, past CTPelvic1K's 2020 curation. Neither paper
190
+ acknowledges any overlap.
191
+
192
+ **Conclusion: not identical, but drawn from the same archive over an overlapping
193
+ window. Partial patient overlap is likely and cannot be excluded from published
194
+ metadata.** There is **no cross-reference ID** — both releases use anonymized
195
+ sequential IDs (`001.mha`–`100.mha` vs `dataset6_CLINIC_0001`–`0103`) and PENGWIN
196
+ ships no patient, center or scanner fields. Deduplication would have to be
197
+ content-based (match on spacing and slice count, then cross-correlate mid-axial
198
+ slices within the overlapping FOV).
199
+
200
+ Two further leakage notes:
201
+
202
+ 1. **The ground truth is partly a function of CTPelvic1K.** PENGWIN's annotations
203
+ were seeded by an nnU-Net trained on CTPelvic1K, so the two label sets are not
204
+ statistically independent even where the patients differ.
205
+ 2. **PENGWIN Task 2 X-rays are DeepDRR renderings of these same CT volumes.**
206
+ Using both tasks together creates internal patient overlap by construction.
207
+
208
+ **No overlap** with TotalSegmentator (Basel, routine whole-body CT) or VerSe
209
+ (European multi-center spine CT). PENGWIN CT is newly collected Chinese hospital
210
+ trauma data and shares nothing with CTPelvic1K's *public-archive* lineage
211
+ (COLONOG / KITS19 / MSD-T10 / ABDOMEN / CERVIX).
212
+
213
+ ## ⚠️ License discrepancy
214
+
215
+ | Source | States |
216
+ |---|---|
217
+ | Zenodo record 10927452 metadata | **CC BY 4.0** (`cc-by-4.0`, open access) |
218
+ | PENGWIN challenge report text | **CC BY-NC-SA** |
219
+
220
+ These contradict. The same team has the mirror-image discrepancy on CTPelvic1K
221
+ (paper says CC BY-NC-SA 4.0, Zenodo 4588403 says CC BY 4.0), so it appears
222
+ systematic rather than a typo.
223
+
224
+ This mirror declares the **more restrictive, author-stated CC BY-NC-SA 4.0** so
225
+ that use is safe under either reading. Both licenses permit redistribution. If
226
+ you need commercial or non-ShareAlike terms, consult the Zenodo record and
227
+ contact the organizers rather than relying on this choice.
228
+
229
+ ## Structure
230
+
231
+ ```
232
+ images/NNN.mha # 100 CT volumes (001-100)
233
+ labels/NNN.mha # 100 instance masks, same grid as the image
234
+ train.jsonl # per-case metadata, one JSON object per line
235
+ README.md
236
+ LICENSE.txt
237
+ ```
238
+
239
+ `train.jsonl` columns:
240
+
241
+ | Column | Meaning |
242
+ |---|---|
243
+ | `case_id` | `"001"` … `"100"` |
244
+ | `image`, `mask` | repo-relative paths |
245
+ | `split` | always `"train"` (no official val/test released) |
246
+ | `shape_zyx`, `spacing_xyz`, `origin_xyz` | geometry |
247
+ | `orientation` | `"LPS"` or `"RAS"` — **see the orientation warning** |
248
+ | `is_cropped` | `true` if in-plane is not 512×512 |
249
+ | `image_dtype`, `label_dtype` | original dtypes (both are mixed) |
250
+ | `hu_min`, `hu_max` | intensity range |
251
+ | `label_values` | sorted foreground labels present |
252
+ | `n_fragments` | total fragments |
253
+ | `n_sacrum_fragments`, `n_left_hip_fragments`, `n_right_hip_fragments` | per-anatomy counts |
254
+ | `fragment_voxels` | `{label: voxel_count}` |
255
+
256
+ ## Storage note
257
+
258
+ The `.mha` files are rewritten with lossless zlib compression (33.77 GB → 8.08
259
+ GB, 4.18×). Voxel arrays, dtype, spacing, origin and direction were verified
260
+ **bit-identical to the Zenodo originals on all 200 files** (`np.array_equal`,
261
+ exact, after a fresh re-read from disk). `.mha` compression is transparent to
262
+ ITK/SimpleITK — no change to how you read the files.
263
+
264
+ ## Source & Citation
265
+
266
+ - Zenodo: https://doi.org/10.5281/zenodo.10927452 (open, no registration, no DUA)
267
+ - Challenge: https://pengwin.grand-challenge.org/ (an account is needed only for
268
+ leaderboard submission, not for the data)
269
+
270
+ ```bibtex
271
+ @article{sang2026pengwin,
272
+ author = {Sang, Yudi and Liu, Yanzhen and Yibulayimu, Sutuke and others},
273
+ title = {Benchmark of Segmentation Techniques for Pelvic Fracture in CT and
274
+ X-Ray: Summary of the PENGWIN 2024 Challenge},
275
+ journal = {IEEE Transactions on Medical Imaging},
276
+ year = {2026},
277
+ doi = {10.1109/TMI.2025.3650126}
278
+ }
279
+
280
+ @inproceedings{liu2023pelvic,
281
+ author = {Liu, Yanzhen and Yibulayimu, Sutuke and Sang, Yudi and Zhu, Gang
282
+ and Wang, Yu and Zhao, Chunpeng and Wu, Xinbao},
283
+ title = {Pelvic Fracture Segmentation Using a Multi-scale Distance-Weighted
284
+ Neural Network},
285
+ booktitle = {MICCAI 2023},
286
+ pages = {312--321},
287
+ year = {2023},
288
+ doi = {10.1007/978-3-031-43996-4_30}
289
+ }
290
+
291
+ @article{liu2025automatic,
292
+ author = {Liu, Yanzhen and Yibulayimu, Sutuke and Zhu, Gang and others},
293
+ title = {Automatic pelvic fracture segmentation: a deep learning approach
294
+ and benchmark dataset},
295
+ journal = {Frontiers in Medicine},
296
+ volume = {12},
297
+ pages = {1511487},
298
+ year = {2025},
299
+ doi = {10.3389/fmed.2025.1511487}
300
+ }
301
+ ```