Datasets:

ArXiv:
License:
tristan-deep commited on
Commit
99861c4
·
verified ·
1 Parent(s): 44a911f

strasbourg-basel: restructure the data card to the common layout

Browse files
Files changed (1) hide show
  1. strasbourg-basel/README.md +117 -225
strasbourg-basel/README.md CHANGED
@@ -1,5 +1,6 @@
1
  ---
2
- pretty_name: "OpenH-RF — BoneSRF Robot-Tracked Fractured-Femur Phantom Dataset"
 
3
  license: cc-by-4.0
4
  task_categories:
5
  - other
@@ -22,115 +23,82 @@ size_categories:
22
  - n<1K
23
  ---
24
 
 
 
25
  <p align="center">
26
- <img src="assets/bonesrf_logo.png" alt="BoneSRF" width="200">
27
  </p>
28
 
29
- # BoneSRF
30
 
31
- **BoneSRF** (Bone Surface Reflection) is an ultrasound channel-data dataset for
32
- bone-surface and fracture-reflection research. It contains three 3D-printed,
33
- fractured femur phantoms, scanned with a handheld point-of-care probe, inverted back
34
- to pre-beamformed RF and packaged in the OpenH-RF `zea` format.
35
 
36
- Each phantom was swept three times (`distal`, `proximal`, `wholebone`), giving nine
37
- `zea` HDF5 files. Every scan is robot-tracked: the probe was
38
- mounted on a robotic arm and its pose recorded separately. Each file also carries
39
- that phantom's CT scan and multi-label segmentation.
40
 
41
- ## Dataset Description
42
 
43
- The channel data here is not a direct per-element sensor recording. A Clarius
44
- handheld probe does not expose its raw per-element channel data, only its own
45
- internally beamformed RF output. Every `raw_data` array is therefore a numerical
46
- estimate: the per-element channel data consistent with the probe's known
47
- per-scanline focused acquisition geometry (transmit delays, apodization, walking
48
- sub-aperture) that would reproduce the real Clarius output if beamformed the same
49
- way. It is recovered by a conjugate-gradient least-squares (CGLS) inversion of a zea
50
- `DASOperator` built from that geometry, using the real beamformed phantom scans as
51
- the inversion target.
52
-
53
- This is phantom data, not simulated, clinical or in-vivo. It is intended for
54
- full-matrix-capture-style beamforming and image-reconstruction research at a
55
- bone-tissue interface, and as an example of recovering pre-beamformed data from
56
- beamformed-only ultrasound exports.
57
 
58
  ### How the data was generated
59
 
60
- 1. **Acquisition.** Each phantom was scanned with a Clarius L20HD3 linear array,
61
- producing the probe's own beamformed RF output. This is the physically acquired
62
- data, not simulated.
63
- 2. **Inversion.** The beamformed RF is inverted back into pre-beamformed,
64
- per-element channel data with
65
- [`das-inverse` (`clarius` branch)](https://github.com/sankethvedula/das-inverse/tree/clarius),
66
- a CGLS solver over a `zea.inverse.DASOperator` forward model of the probe's
67
- focused, walking-sub-aperture transmit sequence (`invert_clarius_beamformed.py`).
68
- The result is not sensor-captured, but numerically consistent with the real
69
- beamformed acquisition it was inverted from.
70
- 3. **Packaging.** The inverted channel data, transmit-sequence metadata, probe
71
- geometry, per-frame probe pose, and the phantom's CT + segmentation are written
72
- out as one `zea` HDF5 file per scan, matching the OpenH-RF format spec.
73
 
74
  ### Probe tracking
75
 
76
- The probe was mounted on a robotic arm and its pose recorded separately by a
77
- trakSTAR electromagnetic tracking system with a fixed fCal image-to-probe
78
- calibration. The pose stream is stored per frame in each file's metadata
79
- (`metadata/probe_pose`: translation, rotation, timestamps), so
80
- `metadata/probe_pose[i]` corresponds to `raw_data[i]`. The raw tracking capture is
81
- not shipped, only the recovered, aligned pose stream.
82
 
83
  ### The three phantoms
84
 
85
- Each phantom is a 3D-printed femur, modeled from a CC BY 4.0–licensed femur bone
86
- dataset, with a different simulated fracture pattern. Each printed femur is immersed
87
- in ultrasound-coupling gel and scanned by a robotic arm, which gives repeatable
88
- probe trajectories rather than a freehand scan. Each phantom is scanned three times,
89
- at three positions along the bone:
90
 
91
  - **`distal`**: a sweep over the distal region of the femur
92
  - **`proximal`**: a sweep over the proximal region of the femur
93
  - **`wholebone`**: a sweep covering the full length of the femur
94
 
95
- ## Folder structure
96
 
97
- ```
98
- BoneSRF/
99
- ├── README.md ← this file (dataset overview + data card for all nine scans)
100
- ├── LICENCE (CC BY 4.0)
101
- ├── pipeline.yaml (saved zea.Pipeline, shared by all nine scans)
102
- ├── reconstruct.py (runs pipeline.yaml on any scan, and plots its CT)
103
- ├── assets/
104
- │ ├── reference_bmode.png (the B-mode shown below)
105
- │ └── ct_<scan>.png (CT slices of the scan's phantom)
106
- ├── data/
107
- │ ├── phantom1_distal.hdf5 (zea channel data + per-frame probe pose + CT)
108
- │ ├── phantom1_proximal.hdf5
109
- │ ├── phantom1_wholebone.hdf5
110
- │ ├── phantom2_*.hdf5 (same three sweeps)
111
- │ └── phantom3_*.hdf5 (same three sweeps)
112
- └── reference_bmodes/
113
- └── <scan>.png (one reference reconstruction per scan)
114
- ```
115
 
116
- Every file in `data/` is self-contained: it holds the CGLS-recovered pre-beamformed
117
- channel data, the transmit-sequence and probe metadata needed to beamform it, the
118
- per-frame probe pose, and the CT and segmentation of the phantom it shows.
119
 
120
- ## Reconstructing a B-mode
121
 
122
- `reconstruct.py` loads the saved `zea.Pipeline` from `pipeline.yaml`, runs it on one
123
- frame of one scan, and writes `reference_bmodes/<scan>.png`:
124
 
125
- ```bash
126
- python reconstruct.py
127
- ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
128
 
129
  The constants at the top of the script select what is reconstructed:
130
 
131
  - `SCAN`: the scan to reconstruct, as a local path or an `hf://` URI.
132
- - `FRAME`: the frame to beamform. `None` uses that scan's reference frame, the one
133
- its `reference_bmodes/<scan>.png` was rendered from.
134
  - `DEVICE`: where to run, e.g. `"cpu"`, `"cuda:0"` or `"auto:1"`.
135
  - `CT`: also plot the CT carried in the file, to `assets/ct_<scan>.png`.
136
 
@@ -142,86 +110,87 @@ FRAME = None
142
  DEVICE = "cpu"
143
  ```
144
 
145
- and produce the following B-mode image:
146
 
147
- <p align="center">
148
- <img src="assets/reference_bmode.png" alt="BoneSRF" width="200">
149
- </p>
150
 
151
- The pipeline is `cast` → `apply_window` → `beamform` (delay-and-sum with a
152
- per-transmit `pfield` weighting, since this is a per-scanline focused
153
- walking-sub-aperture acquisition rather than full synthetic aperture) →
154
- `keras.ops.abs` → axial-only Gaussian blur → `normalize` → `log_compress`. Display
155
- parameters (dynamic range, p-field settings) also come from `pipeline.yaml`;
156
- acquisition geometry comes from each file's own `scan` and `probe` groups.
157
 
158
- The reconstruction does not use `zea.inverse`. That module is for the CGLS inversion
159
- that produced these files, not for reading them back. Runtime is about 30 s per
160
- frame on CPU. Each file is a full sweep of 20 to 25 GB, but only the requested frame
161
- is read.
162
 
163
- ## Dataset Contributor(s)
164
 
165
- Sidaty El Hadramy, Philippe C. Cattin, Juan Verde. IHU Strasbourg and the
166
- Department of Biomedical Engineering, University of Basel.
167
 
168
- ## Dataset Creation Date
169
 
170
- Clarius acquisitions: 19/06/2026 (`phantom1_distal`) and 25/06/2026
171
- (`phantom1_proximal`). The other seven sweeps carry no recorded acquisition date,
172
- see [Known Issues](#known-issues). Converted to the `zea` format in 2026.
173
 
174
- ## License / Terms of Use
175
 
176
- CC BY 4.0, see [the licence deed](https://creativecommons.org/licenses/by/4.0/). The CT and segmentation data inside the files
177
- is released under the same terms. The femur geometry behind the 3D-printed phantoms
178
- comes from a CC BY 4.0–licensed bone model dataset.
179
 
180
- ## Intended Usage
181
 
182
- Full-matrix-capture-style beamforming research on recovered (not directly sensed)
183
- channel data at a bone-tissue interface: delay-and-sum reconstruction, adaptive and
184
- aberration-correction beamforming benchmarks, and robot/EM-tracked probe-pose fusion.
185
- It also serves as a reference for recovering pre-beamformed data from other
186
- beamformed-only scanners.
187
 
188
- ## Dataset Characterization
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
189
 
190
- - **Data Collection Method:** phantom (3D-printed, bone-mimicking femur, immersed in
191
- ultrasound-coupling gel); scanned with a Clarius handheld-probe-class linear array
192
- mounted on and moved by a robotic arm; raw channel data recovered via CGLS
193
- inversion of the probe's beamformed RF output (not a direct per-element
194
- recording); probe pose independently tracked via a trakSTAR EM tracking system,
195
- fCal-calibrated.
196
- - **Labeling Method:** a CT scan of each 3D-printed phantom and a multi-label
197
- segmentation of it (authored in 3D Slicer) are stored inside each of that
198
- phantom's three files, under `custom/ct/` and `custom/ct_segmentation/`. See
199
- [CT reference imaging](#ct-reference-imaging). There are no annotations on the RF
200
- data itself.
201
- - **Acquisition system:** Clarius L20HD3, 192-element linear array, 0.130 mm pitch
202
- (24.8 mm aperture), 10 MHz center frequency, 30 MHz sampling frequency, 1540 m/s
203
- sound speed, ~5.1 cm imaging depth (1984–2016 axial samples depending on scan),
204
- single fixed transmit focus at 25.3–25.8 mm (`focus_distances` is constant across
205
- all 192 transmits within a scan), 192 focused transmits per frame (one per lateral
206
- scanline, no steering), Hanning-windowed walking sub-aperture per scanline with
207
- 47 to 97 of 192 elements active per transmit (mean 84, narrowest at the array
208
- edges).
 
 
 
209
 
210
  ## CT reference imaging
211
 
212
- Each phantom's CT scan and its multi-label 3D Slicer segmentation are stored inside
213
- all three of that phantom's `zea` files, under `custom/ct/` and
214
- `custom/ct_segmentation/`. They are not shipped as separate `.nrrd` sidecars, so no
215
- file depends on another.
216
 
217
  <p align="center">
218
  <img src="assets/ct_phantom2_wholebone.png" alt="CT slices of phantom2" width="800">
219
  </p>
220
 
221
- Three slices of phantom2's CT, written by `reconstruct.py` with `CT = True`, with
222
- the `BoneSRF-2_Complete` segment outlined in red. The printed femur is hollow, so it
223
- reads dark against the bright coupling gel, and the coronal view shows the fracture:
224
- the bone is in separate, displaced pieces.
225
 
226
  | Dataset | Contents |
227
  |---|---|
@@ -239,11 +208,7 @@ Grid geometry differs per phantom:
239
  | phantom2 | `512 × 512 × 574` | `(574, 512, 512)` | `0.50390625 × 0.50390625 × 0.6` |
240
  | phantom3 | `512 × 512 × 594` | `(594, 512, 512)` | `0.5625 × 0.5625 × 0.6` |
241
 
242
- Each segmentation has three segments, one per RF sweep of that phantom. Label values
243
- repeat across layers, because 3D Slicer keeps segments on separate internal labelmap
244
- layers, so read a segment's mask as
245
- `labelmap[..., segment_layers[s]] == segment_label_values[s]` rather than treating
246
- the array as one flat labelmap:
247
 
248
  | Segment | `segment_label_values` | `segment_layers` | Corresponds to |
249
  |---|---|---|---|
@@ -257,73 +222,13 @@ the array as one flat labelmap:
257
  | `BoneSRF-3_Distal` | 3 | 0 | `phantom3_distal` |
258
  | `BoneSRF-3_Complete` | 1 | 1 | `phantom3_wholebone` |
259
 
260
- The CT is reference imaging of the physical phantom in scanner (LPS) space. It is
261
- not spatially registered to the RF frames or to the tracked probe poses; no
262
- CT-to-ultrasound registration is provided.
263
-
264
- ## Dataset Format
265
-
266
- Submitted in the [`zea` file format](https://zea.readthedocs.io/en/openh-rf-latest/)
267
- as nine HDF5 files.
268
-
269
- The channel data was recovered from the probe's real, beamformed RF output by
270
- CGLS-inverting a `zea.inverse.DASOperator` built from the known acquisition
271
- geometry. `t0_delays`, `tx_apodizations`, `focus_distances`, `transmit_origins`,
272
- `polar_angles`, and `waveforms_two_way` are copied directly from the values that
273
- inversion's DAS operator was built with, not re-derived. The source
274
- `.npz` had no explicit `demodulation_frequency`; it was substituted with
275
- `center_frequency` per the standard convention for RF (non-IQ) sources.
276
-
277
- Probe pose (`metadata/probe_pose`: translation, rotation, timestamps) was recovered
278
- from the trakSTAR tracking capture via a fixed fCal image-to-probe calibration,
279
- resampled onto each `raw_data` frame's own acquisition time before conversion, and
280
- stored per frame, so `metadata/probe_pose[i]` corresponds to `raw_data[i]`.
281
-
282
- CT and segmentation were copied verbatim out of the `.nrrd` files that previously
283
- shipped alongside the RF data, so that every file is self-contained; the source NRRD
284
- headers are preserved with them. Grid geometry is converted from the NRRD's
285
- millimetres to zea's SI metres.
286
-
287
- Reading these files requires `h5py` built against HDF5 ≥ 2.0 (e.g. `h5py` ≥ 3.16),
288
- see [Known Issues](#known-issues).
289
-
290
- ### Fields
291
-
292
- Every file has the same field structure; `n_frames` and `n_ax` vary per scan (see
293
- [Dataset Quantification](#dataset-quantification)).
294
-
295
- | Field | Shape | dtype | Units | Description |
296
- |---|---|---|---|---|
297
- | `raw_data` | `(n_frames, 192, n_ax, 192, 1)` | float32 | a.u. | RF channel data: frame × transmit × axial sample × element × channel |
298
- | `scan.sampling_frequency` | scalar | float32 | Hz | 30 MHz |
299
- | `scan.center_frequency` | scalar | float32 | Hz | 10 MHz (`demodulation_frequency` is identical) |
300
- | `scan.sound_speed` | scalar | float32 | m/s | 1540 |
301
- | `scan.t0_delays` | `(192, 192)` | float32 | s | Per-element transmit delay per transmit (focused walking sub-aperture) |
302
- | `scan.tx_apodizations` | `(192, 192)` | float32 | — | Hanning-windowed walking sub-aperture (47–97 elements active per transmit) |
303
- | `scan.focus_distances` | `(192,)` | float32 | m | Constant within a scan (single fixed focus) |
304
- | `scan.polar_angles` | `(192,)` | float32 | rad | Constant, 0.0 (no steering; purely translated scanlines) |
305
- | `scan.transmit_origins` | `(192, 3)` | float32 | m | Per-transmit origin along the array |
306
- | `scan.waveforms_two_way` | `(192, 303)` | float32 | a.u. | Two-way pulse waveform per transmit |
307
- | `scan.initial_times` | `(192,)` | float32 | s | Per-transmit acquisition start time |
308
- | `scan.time_to_next_transmit` | `(n_frames, 192)` | float32 | s | Inter-transmit interval |
309
- | `probe.probe_geometry` | `(192, 3)` | float32 | m | Element positions (linear array, y = z = 0); confirms 0.130 mm pitch / 24.8 mm aperture |
310
- | `metadata.probe_pose.translation` | `(n_frames, 3)` | float32 | m | Tracked probe position, one entry per `raw_data` frame (index-aligned) |
311
- | `metadata.probe_pose.rotation` | `(n_frames, 4)` | float32 | — | Quaternion (xyzw), tracked probe orientation, index-aligned with `raw_data` |
312
- | `metadata.probe_pose.timestamps` | `(n_frames,)` | float32 | s | Pose time, relative to the first frame |
313
- | `custom.ct.volume` | `(n_k, n_j, n_i)` | int16 | a.u. | CT volume, `(k, j, i)`; nominally Hounsfield units (source header records no unit) |
314
- | `custom.ct.affine` | `(4, 4)` | float64 | m | Voxel index `(i, j, k, 1)` → LPS position in metres |
315
- | `custom.ct_segmentation.labelmap` | `(n_k, n_j, n_i, 2)` | uint8 | — | Layered 3D Slicer labelmap on the CT grid; mask = `labelmap[..., layer] == label_value` |
316
- | `custom.ct_segmentation.segment_names` | `(3,)` | str | — | Segment names |
317
- | `custom.ct_segmentation.segment_label_values` | `(3,)` | uint8 | — | Label value of each segment within its own layer |
318
- | `custom.ct_segmentation.segment_layers` | `(3,)` | uint8 | — | Index into the last axis of `labelmap` holding each segment |
319
 
320
  ## Dataset Quantification
321
 
322
  **Current OpenH-RF release:** 9 HDF5 files; 200.75 GB (200,745,025,536 bytes) stored; root `zea_version` **0.1.6**. Sizes include all HDF5 contents and use decimal units (MB = 10^6 bytes, GB = 10^9 bytes, TB = 10^12 bytes), not decoded-array memory or original-source download sizes.
323
 
324
- Nine acquisitions, one continuous sweep each; 1,427 frames in total. No train / val /
325
- test split (each file is a single reference acquisition). Every scan has one tracked
326
- probe pose per frame.
327
 
328
  | Scan | Frames | `n_ax` | Focus | Reference frame | Size on disk |
329
  |---|---|---|---|---|---|
@@ -339,30 +244,17 @@ probe pose per frame.
339
 
340
  ## Subject Metadata
341
 
342
- 3D-printed, bone-mimicking musculoskeletal phantoms (bone surface reflection
343
- targets); no human or animal subject. Scanned with a robot-mounted
344
- Clarius L20HD3 linear array at 10 MHz / ~5.1 cm depth / single transmit focus.
345
 
346
  ## Data Validation
347
 
348
- All nine files pass the `zea` data spec, both `File.validate()` (structural) and
349
- `File.validate_spec()` (dtype, shape and dimension consistency). `reconstruct.py`
350
- runs end-to-end on every scan; the images in
351
- `reference_bmodes/` are its output.
352
 
353
  ## Known Issues
354
- - **Fracture patterns are not documented per phantom.** The location, type
355
- (transverse / oblique / comminuted / hairline) and displacement of each phantom's
356
- fracture are not recorded. The CT segmentation in each file is ground truth for
357
- the physical phantom geometry.
358
- - **Acquisition dates are incomplete.** Only `phantom1_distal` (19/06/2026) and
359
- `phantom1_proximal` (25/06/2026) have a recorded original Clarius acquisition date;
360
- the other seven sweeps do not carry one in the file or in the source capture.
361
- - **No CT-to-ultrasound registration.** The CT is in scanner LPS space and the probe
362
- poses in trakSTAR tracker space. Nothing here relates the two.
363
- - **CT intensity units are unverified.** The source NRRD headers record no unit. The
364
- value range (−1024 to about 500) is consistent with Hounsfield units, but this has
365
- not been confirmed.
366
 
367
  ## Ethical Considerations
368
 
 
1
  ---
2
+ name: strasbourg-basel
3
+ pretty_name: "BoneSRF Robot-Tracked Fractured-Femur Phantom Dataset"
4
  license: cc-by-4.0
5
  task_categories:
6
  - other
 
23
  - n<1K
24
  ---
25
 
26
+ # BoneSRF
27
+
28
  <p align="center">
29
+ <img src="assets/reference_bmode.png" alt="BoneSRF B-mode of phantom 2, whole-bone sweep" width="200">
30
  </p>
31
 
32
+ *B-mode of a fractured-femur phantom, frame 45 of [`data/phantom2_wholebone.hdf5`](https://huggingface.co/datasets/nvidia/OpenH-RF/blob/main/strasbourg-basel/BoneSRF/data/phantom2_wholebone.hdf5), beamformed from the recovered channel data.*
33
 
34
+ ## Dataset Description
 
 
 
35
 
36
+ <p align="center">
37
+ <img src="assets/bonesrf_logo.png" alt="BoneSRF" width="200">
38
+ </p>
 
39
 
40
+ **BoneSRF** (Bone Surface Reflection) is an ultrasound channel-data dataset for bone-surface and fracture-reflection research. It contains three 3D-printed, fractured femur phantoms, scanned with a handheld point-of-care probe, inverted back to pre-beamformed RF and packaged in the OpenH-RF `zea` format.
41
 
42
+ Each phantom was swept three times (`distal`, `proximal`, `wholebone`), giving nine `zea` HDF5 files. Every scan is robot-tracked: the probe was mounted on a robotic arm and its pose recorded separately. Each file also carries that phantom's CT scan and multi-label segmentation.
43
+
44
+ The channel data here is not a direct per-element sensor recording. A Clarius handheld probe does not expose its raw per-element channel data, only its own internally beamformed RF output. Every `raw_data` array is therefore a numerical estimate: the per-element channel data consistent with the probe's known per-scanline focused acquisition geometry (transmit delays, apodization, walking sub-aperture) that would reproduce the real Clarius output if beamformed the same way. It is recovered by a conjugate-gradient least-squares (CGLS) inversion of a zea `DASOperator` built from that geometry, using the real beamformed phantom scans as the inversion target.
45
+
46
+ This is phantom data, not simulated, clinical or in-vivo. It is intended for full-matrix-capture-style beamforming and image-reconstruction research at a bone-tissue interface, and as an example of recovering pre-beamformed data from beamformed-only ultrasound exports.
 
 
 
 
 
 
 
 
 
47
 
48
  ### How the data was generated
49
 
50
+ 1. **Acquisition.** Each phantom was scanned with a Clarius L20HD3 linear array, producing the probe's own beamformed RF output. This is the physically acquired data, not simulated.
51
+ 2. **Inversion.** The beamformed RF is inverted back into pre-beamformed, per-element channel data with [`das-inverse` (`clarius` branch)](https://github.com/sankethvedula/das-inverse/tree/clarius), a CGLS solver over a `zea.inverse.DASOperator` forward model of the probe's focused, walking-sub-aperture transmit sequence (`invert_clarius_beamformed.py`). The result is not sensor-captured, but numerically consistent with the real beamformed acquisition it was inverted from.
52
+ 3. **Packaging.** The inverted channel data, transmit-sequence metadata, probe geometry, per-frame probe pose, and the phantom's CT + segmentation are written out as one `zea` HDF5 file per scan, matching the OpenH-RF format spec.
 
 
 
 
 
 
 
 
 
 
53
 
54
  ### Probe tracking
55
 
56
+ The probe was mounted on a robotic arm and its pose recorded separately by a trakSTAR electromagnetic tracking system with a fixed fCal image-to-probe calibration. The pose stream is stored per frame in each file's metadata (`metadata/probe_pose`: translation, rotation, timestamps), so `metadata/probe_pose[i]` corresponds to `raw_data[i]`. The raw tracking capture is not shipped, only the recovered, aligned pose stream.
 
 
 
 
 
57
 
58
  ### The three phantoms
59
 
60
+ Each phantom is a 3D-printed femur, modeled from a CC BY 4.0–licensed femur bone dataset, with a different simulated fracture pattern. Each printed femur is immersed in ultrasound-coupling gel and scanned by a robotic arm, which gives repeatable probe trajectories rather than a freehand scan. Each phantom is scanned three times, at three positions along the bone:
 
 
 
 
61
 
62
  - **`distal`**: a sweep over the distal region of the femur
63
  - **`proximal`**: a sweep over the proximal region of the femur
64
  - **`wholebone`**: a sweep covering the full length of the femur
65
 
66
+ ## Dataset Contributor(s)
67
 
68
+ - Sidaty El Hadramy (IHU Strasbourg; Department of Biomedical Engineering, University of Basel)
69
+ - Philippe C. Cattin (IHU Strasbourg; Department of Biomedical Engineering, University of Basel)
70
+ - Juan Verde (IHU Strasbourg; Department of Biomedical Engineering, University of Basel)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
71
 
72
+ ## Dataset Creation Date
 
 
73
 
74
+ Clarius acquisitions: 19/06/2026 (`phantom1_distal`) and 25/06/2026 (`phantom1_proximal`). The other seven sweeps carry no recorded acquisition date, see [Known Issues](#known-issues). Converted to the `zea` format in 2026.
75
 
76
+ ## License / Terms of Use
 
77
 
78
+ [Creative Commons Attribution 4.0 International (CC BY 4.0)](https://creativecommons.org/licenses/by/4.0/legalcode.en). Retain attribution and identify modifications when reusing the data.
79
+
80
+ ## Intended Usage
81
+
82
+ Full-matrix-capture-style beamforming research on recovered (not directly sensed) channel data at a bone-tissue interface: delay-and-sum reconstruction, adaptive and aberration-correction beamforming benchmarks, and robot/EM-tracked probe-pose fusion. It also serves as a reference for recovering pre-beamformed data from other beamformed-only scanners.
83
+
84
+ ## Dataset Characterization
85
+
86
+ - **Data Collection Method:** phantom (3D-printed, bone-mimicking femur, immersed in ultrasound-coupling gel); scanned with a Clarius handheld-probe-class linear array mounted on and moved by a robotic arm; raw channel data recovered via CGLS inversion of the probe's beamformed RF output (not a direct per-element recording); probe pose independently tracked via a trakSTAR EM tracking system, fCal-calibrated.
87
+ - **Labeling Method:** a CT scan of each 3D-printed phantom and a multi-label segmentation of it (authored in 3D Slicer) are stored inside each of that phantom's three files, under `custom/ct/` and `custom/ct_segmentation/`. See [CT reference imaging](#ct-reference-imaging). There are no annotations on the RF data itself.
88
+ - **Acquisition system:** Clarius L20HD3, 192-element linear array, 0.130 mm pitch (24.8 mm aperture), 10 MHz center frequency, 30 MHz sampling frequency, 1540 m/s sound speed, ~5.1 cm imaging depth (1984–2016 axial samples depending on scan), single fixed transmit focus at 25.3–25.8 mm (`focus_distances` is constant across all 192 transmits within a scan), 192 focused transmits per frame (one per lateral scanline, no steering), Hanning-windowed walking sub-aperture per scanline with 47 to 97 of 192 elements active per transmit (mean 84, narrowest at the array edges).
89
+
90
+ The CT and segmentation data inside the files are released under the same CC BY 4.0 terms as the channel data. The femur geometry behind the 3D-printed phantoms comes from a CC BY 4.0–licensed bone model dataset.
91
+
92
+ ## Processing the Dataset
93
+
94
+ The acquisitions can be processed with the `reconstruct.py` [script](https://github.com/open-h/OpenH-RF/blob/main/datasets/strasbourg-basel/reconstruct.py) as provided in the [OpenH-RF GitHub repository](https://github.com/open-h/OpenH-RF), together with the `pipeline.yaml` definition in this folder and the [zea library](https://github.com/tue-bmd/zea). The script streams the data from the Hugging Face Hub.
95
+
96
+ The script loads the saved `zea.Pipeline` from `pipeline.yaml`, runs it on one frame of one scan, and writes `assets/<scan>.png`.
97
 
98
  The constants at the top of the script select what is reconstructed:
99
 
100
  - `SCAN`: the scan to reconstruct, as a local path or an `hf://` URI.
101
+ - `FRAME`: the frame to beamform. `None` uses that scan's reference frame, the one its reference image was rendered from.
 
102
  - `DEVICE`: where to run, e.g. `"cpu"`, `"cuda:0"` or `"auto:1"`.
103
  - `CT`: also plot the CT carried in the file, to `assets/ct_<scan>.png`.
104
 
 
110
  DEVICE = "cpu"
111
  ```
112
 
113
+ and produce the B-mode image shown at the top of this card.
114
 
115
+ The pipeline is `cast` → `apply_window` → `beamform` (delay-and-sum with a per-transmit `pfield` weighting, since this is a per-scanline focused walking-sub-aperture acquisition rather than full synthetic aperture) → `keras.ops.abs` → axial-only Gaussian blur → `normalize` → `log_compress`. Display parameters (dynamic range, p-field settings) also come from `pipeline.yaml`; acquisition geometry comes from each file's own `scan` and `probe` groups.
 
 
116
 
117
+ The reconstruction does not use `zea.inverse`. That module is for the CGLS inversion that produced these files, not for reading them back. Runtime is about 30 s per frame on CPU. Each file is a full sweep of 20 to 25 GB, but only the requested frame is read.
 
 
 
 
 
118
 
119
+ ## Dataset Format
 
 
 
120
 
121
+ [zea v0.1.6](https://github.com/tue-bmd/zea)
122
 
123
+ Submitted in the [`zea` file format](https://zea.readthedocs.io/en/openh-rf-latest/) as nine HDF5 files.
 
124
 
125
+ The channel data was recovered from the probe's real, beamformed RF output by CGLS-inverting a `zea.inverse.DASOperator` built from the known acquisition geometry. `t0_delays`, `tx_apodizations`, `focus_distances`, `transmit_origins`, `polar_angles`, and `waveforms_two_way` are copied directly from the values that inversion's DAS operator was built with, not re-derived. The source `.npz` had no explicit `demodulation_frequency`; it was substituted with `center_frequency` per the standard convention for RF (non-IQ) sources.
126
 
127
+ Probe pose (`metadata/probe_pose`: translation, rotation, timestamps) was recovered from the trakSTAR tracking capture via a fixed fCal image-to-probe calibration, resampled onto each `raw_data` frame's own acquisition time before conversion, and stored per frame, so `metadata/probe_pose[i]` corresponds to `raw_data[i]`.
 
 
128
 
129
+ CT and segmentation were copied verbatim out of the `.nrrd` files that previously shipped alongside the RF data, so that every file is self-contained; the source NRRD headers are preserved with them. Grid geometry is converted from the NRRD's millimetres to zea's SI metres.
130
 
131
+ Reading these files requires `h5py` built against HDF5 ≥ 2.0 (e.g. `h5py` ≥ 3.16), see [Known Issues](#known-issues).
 
 
132
 
133
+ ### Fields
134
 
135
+ Every file has the same field structure; `n_frames` and `n_ax` vary per scan (see [Dataset Quantification](#dataset-quantification)).
 
 
 
 
136
 
137
+ | Field | Shape | dtype | Units | Description |
138
+ |---|---|---|---|---|
139
+ | `raw_data` | `(n_frames, 192, n_ax, 192, 1)` | float32 | a.u. | RF channel data: frame × transmit × axial sample × element × channel |
140
+ | `scan.sampling_frequency` | scalar | float32 | Hz | 30 MHz |
141
+ | `scan.center_frequency` | scalar | float32 | Hz | 10 MHz (`demodulation_frequency` is identical) |
142
+ | `scan.sound_speed` | scalar | float32 | m/s | 1540 |
143
+ | `scan.t0_delays` | `(192, 192)` | float32 | s | Per-element transmit delay per transmit (focused walking sub-aperture) |
144
+ | `scan.tx_apodizations` | `(192, 192)` | float32 | — | Hanning-windowed walking sub-aperture (47–97 elements active per transmit) |
145
+ | `scan.focus_distances` | `(192,)` | float32 | m | Constant within a scan (single fixed focus) |
146
+ | `scan.polar_angles` | `(192,)` | float32 | rad | Constant, 0.0 (no steering; purely translated scanlines) |
147
+ | `scan.transmit_origins` | `(192, 3)` | float32 | m | Per-transmit origin along the array |
148
+ | `scan.waveforms_two_way` | `(192, 303)` | float32 | a.u. | Two-way pulse waveform per transmit |
149
+ | `scan.initial_times` | `(192,)` | float32 | s | Per-transmit acquisition start time |
150
+ | `scan.time_to_next_transmit` | `(n_frames, 192)` | float32 | s | Inter-transmit interval |
151
+ | `probe.probe_geometry` | `(192, 3)` | float32 | m | Element positions (linear array, y = z = 0); confirms 0.130 mm pitch / 24.8 mm aperture |
152
+ | `metadata.probe_pose.translation` | `(n_frames, 3)` | float32 | m | Tracked probe position, one entry per `raw_data` frame (index-aligned) |
153
+ | `metadata.probe_pose.rotation` | `(n_frames, 4)` | float32 | — | Quaternion (xyzw), tracked probe orientation, index-aligned with `raw_data` |
154
+ | `metadata.probe_pose.timestamps` | `(n_frames,)` | float32 | s | Pose time, relative to the first frame |
155
+ | `custom.ct.volume` | `(n_k, n_j, n_i)` | int16 | a.u. | CT volume, `(k, j, i)`; nominally Hounsfield units (source header records no unit) |
156
+ | `custom.ct.affine` | `(4, 4)` | float64 | m | Voxel index `(i, j, k, 1)` → LPS position in metres |
157
+ | `custom.ct_segmentation.labelmap` | `(n_k, n_j, n_i, 2)` | uint8 | — | Layered 3D Slicer labelmap on the CT grid; mask = `labelmap[..., layer] == label_value` |
158
+ | `custom.ct_segmentation.segment_names` | `(3,)` | str | — | Segment names |
159
+ | `custom.ct_segmentation.segment_label_values` | `(3,)` | uint8 | — | Label value of each segment within its own layer |
160
+ | `custom.ct_segmentation.segment_layers` | `(3,)` | uint8 | — | Index into the last axis of `labelmap` holding each segment |
161
 
162
+ ## Folder structure
163
+
164
+ ```
165
+ BoneSRF/
166
+ ├── README.md ← this file (dataset overview + data card for all nine scans)
167
+ ├── LICENCE (CC BY 4.0)
168
+ ├── pipeline.yaml (saved zea.Pipeline, shared by all nine scans)
169
+ ├── reconstruct.py (runs pipeline.yaml on any scan, and plots its CT)
170
+ ├── assets/
171
+ │ ├── reference_bmode.png (the B-mode shown below)
172
+ │ └── ct_<scan>.png (CT slices of the scan's phantom)
173
+ ├── data/
174
+ │ ├── phantom1_distal.hdf5 (zea channel data + per-frame probe pose + CT)
175
+ │ ├── phantom1_proximal.hdf5
176
+ │ ├── phantom1_wholebone.hdf5
177
+ │ ├── phantom2_*.hdf5 (same three sweeps)
178
+ │ └── phantom3_*.hdf5 (same three sweeps)
179
+ └── reference_bmodes/
180
+ └── <scan>.png (one reference reconstruction per scan)
181
+ ```
182
+
183
+ Every file in `data/` is self-contained: it holds the CGLS-recovered pre-beamformed channel data, the transmit-sequence and probe metadata needed to beamform it, the per-frame probe pose, and the CT and segmentation of the phantom it shows.
184
 
185
  ## CT reference imaging
186
 
187
+ Each phantom's CT scan and its multi-label 3D Slicer segmentation are stored inside all three of that phantom's `zea` files, under `custom/ct/` and `custom/ct_segmentation/`. They are not shipped as separate `.nrrd` sidecars, so no file depends on another.
 
 
 
188
 
189
  <p align="center">
190
  <img src="assets/ct_phantom2_wholebone.png" alt="CT slices of phantom2" width="800">
191
  </p>
192
 
193
+ Three slices of phantom2's CT, written by `reconstruct.py` with `CT = True`, with the `BoneSRF-2_Complete` segment outlined in red. The printed femur is hollow, so it reads dark against the bright coupling gel, and the coronal view shows the fracture: the bone is in separate, displaced pieces.
 
 
 
194
 
195
  | Dataset | Contents |
196
  |---|---|
 
208
  | phantom2 | `512 × 512 × 574` | `(574, 512, 512)` | `0.50390625 × 0.50390625 × 0.6` |
209
  | phantom3 | `512 × 512 × 594` | `(594, 512, 512)` | `0.5625 × 0.5625 × 0.6` |
210
 
211
+ Each segmentation has three segments, one per RF sweep of that phantom. Label values repeat across layers, because 3D Slicer keeps segments on separate internal labelmap layers, so read a segment's mask as `labelmap[..., segment_layers[s]] == segment_label_values[s]` rather than treating the array as one flat labelmap:
 
 
 
 
212
 
213
  | Segment | `segment_label_values` | `segment_layers` | Corresponds to |
214
  |---|---|---|---|
 
222
  | `BoneSRF-3_Distal` | 3 | 0 | `phantom3_distal` |
223
  | `BoneSRF-3_Complete` | 1 | 1 | `phantom3_wholebone` |
224
 
225
+ The CT is reference imaging of the physical phantom in scanner (LPS) space. It is not spatially registered to the RF frames or to the tracked probe poses; no CT-to-ultrasound registration is provided.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
226
 
227
  ## Dataset Quantification
228
 
229
  **Current OpenH-RF release:** 9 HDF5 files; 200.75 GB (200,745,025,536 bytes) stored; root `zea_version` **0.1.6**. Sizes include all HDF5 contents and use decimal units (MB = 10^6 bytes, GB = 10^9 bytes, TB = 10^12 bytes), not decoded-array memory or original-source download sizes.
230
 
231
+ Nine acquisitions, one continuous sweep each; 1,427 frames in total. No train / val / test split (each file is a single reference acquisition). Every scan has one tracked probe pose per frame.
 
 
232
 
233
  | Scan | Frames | `n_ax` | Focus | Reference frame | Size on disk |
234
  |---|---|---|---|---|---|
 
244
 
245
  ## Subject Metadata
246
 
247
+ 3D-printed, bone-mimicking musculoskeletal phantoms (bone surface reflection targets); no human or animal subject. Scanned with a robot-mounted Clarius L20HD3 linear array at 10 MHz / ~5.1 cm depth / single transmit focus.
 
 
248
 
249
  ## Data Validation
250
 
251
+ All nine files pass the `zea` data spec, both `File.validate()` (structural) and `File.validate_spec()` (dtype, shape and dimension consistency). `reconstruct.py` runs end-to-end on every scan; the images in `reference_bmodes/` are its output.
 
 
 
252
 
253
  ## Known Issues
254
+ - **Fracture patterns are not documented per phantom.** The location, type (transverse / oblique / comminuted / hairline) and displacement of each phantom's fracture are not recorded. The CT segmentation in each file is ground truth for the physical phantom geometry.
255
+ - **Acquisition dates are incomplete.** Only `phantom1_distal` (19/06/2026) and `phantom1_proximal` (25/06/2026) have a recorded original Clarius acquisition date; the other seven sweeps do not carry one in the file or in the source capture.
256
+ - **No CT-to-ultrasound registration.** The CT is in scanner LPS space and the probe poses in trakSTAR tracker space. Nothing here relates the two.
257
+ - **CT intensity units are unverified.** The source NRRD headers record no unit. The value range (−1024 to about 500) is consistent with Hounsfield units, but this has not been confirmed.
 
 
 
 
 
 
 
 
258
 
259
  ## Ethical Considerations
260