strasbourg-basel: restructure the data card to the common layout
Browse files1234516 unmodified lines2223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351365 unmodified lines14214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622711 unmodified lines2392402412422432442452462472482497 unmodified lines2572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283299 unmodified lines339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368---pretty_name: "OpenH-RF — BoneSRF Robot-Tracked Fractured-Femur Phantom Dataset"license: cc-by-4.0task_categories:- other16 unmodified lines- n<1K---<p align="center"><img src="assets/bonesrf_logo.png" alt="BoneSRF" width="200"></p># BoneSRF**BoneSRF** (Bone Surface Reflection) is an ultrasound channel-data dataset forbone-surface and fracture-reflection research. It contains three 3D-printed,fractured femur phantoms, scanned with a handheld point-of-care probe, inverted backto pre-beamformed RF and packaged in the OpenH-RF `zea` format.Each phantom was swept three times (`distal`, `proximal`, `wholebone`), giving nine`zea` HDF5 files. Every scan is robot-tracked: the probe wasmounted on a robotic arm and its pose recorded separately. Each file also carriesthat phantom's CT scan and multi-label segmentation.## Dataset DescriptionThe channel data here is not a direct per-element sensor recording. A Clariushandheld probe does not expose its raw per-element channel data, only its owninternally beamformed RF output. Every `raw_data` array is therefore a numericalestimate: the per-element channel data consistent with the probe's knownper-scanline focused acquisition geometry (transmit delays, apodization, walkingsub-aperture) that would reproduce the real Clarius output if beamformed the sameway. 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 asthe inversion target.This is phantom data, not simulated, clinical or in-vivo. It is intended forfull-matrix-capture-style beamforming and image-reconstruction research at abone-tissue interface, and as an example of recovering pre-beamformed data frombeamformed-only ultrasound exports.### How the data was generated1. **Acquisition.** Each phantom was scanned with a Clarius L20HD3 linear array,producing the probe's own beamformed RF output. This is the physically acquireddata, not simulated.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'sfocused, walking-sub-aperture transmit sequence (`invert_clarius_beamformed.py`).The result is not sensor-captured, but numerically consistent with the realbeamformed acquisition it was inverted from.3. **Packaging.** The inverted channel data, transmit-sequence metadata, probegeometry, per-frame probe pose, and the phantom's CT + segmentation are writtenout as one `zea` HDF5 file per scan, matching the OpenH-RF format spec.### Probe trackingThe probe was mounted on a robotic arm and its pose recorded separately by atrakSTAR electromagnetic tracking system with a fixed fCal image-to-probecalibration. 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 isnot shipped, only the recovered, aligned pose stream.### The three phantomsEach phantom is a 3D-printed femur, modeled from a CC BY 4.0–licensed femur bonedataset, with a different simulated fracture pattern. Each printed femur is immersedin ultrasound-coupling gel and scanned by a robotic arm, which gives repeatableprobe trajectories rather than a freehand scan. Each phantom is scanned three times,at three positions along the bone:- **`distal`**: a sweep over the distal region of the femur- **`proximal`**: a sweep over the proximal region of the femur- **`wholebone`**: a sweep covering the full length of the femur## Folder structure```BoneSRF/├── README.md ← this file (dataset overview + data card for all nine scans)├── LICENCE (CC BY 4.0)├── pipeline.yaml (saved zea.Pipeline, shared by all nine scans)├── reconstruct.py (runs pipeline.yaml on any scan, and plots its CT)├── assets/│ ├── reference_bmode.png (the B-mode shown below)│ └── ct_<scan>.png (CT slices of the scan's phantom)├── data/│ ├── phantom1_distal.hdf5 (zea channel data + per-frame probe pose + CT)│ ├── phantom1_proximal.hdf5│ ├── phantom1_wholebone.hdf5│ ├── phantom2_*.hdf5 (same three sweeps)│ └── phantom3_*.hdf5 (same three sweeps)└── reference_bmodes/└── <scan>.png (one reference reconstruction per scan)```Every file in `data/` is self-contained: it holds the CGLS-recovered pre-beamformedchannel data, the transmit-sequence and probe metadata needed to beamform it, theper-frame probe pose, and the CT and segmentation of the phantom it shows.## Reconstructing a B-mode`reconstruct.py` loads the saved `zea.Pipeline` from `pipeline.yaml`, runs it on oneframe of one scan, and writes `reference_bmodes/<scan>.png`:```bashpython reconstruct.py```The constants at the top of the script select what is reconstructed:- `SCAN`: the scan to reconstruct, as a local path or an `hf://` URI.- `FRAME`: the frame to beamform. `None` uses that scan's reference frame, the oneits `reference_bmodes/<scan>.png` was rendered from.- `DEVICE`: where to run, e.g. `"cpu"`, `"cuda:0"` or `"auto:1"`.- `CT`: also plot the CT carried in the file, to `assets/ct_<scan>.png`.5 unmodified linesDEVICE = "cpu"```and produce the following B-mode image:<p align="center"><img src="assets/reference_bmode.png" alt="BoneSRF" width="200"></p>The pipeline is `cast` → `apply_window` → `beamform` (delay-and-sum with aper-transmit `pfield` weighting, since this is a per-scanline focusedwalking-sub-aperture acquisition rather than full synthetic aperture) →`keras.ops.abs` → axial-only Gaussian blur → `normalize` → `log_compress`. Displayparameters (dynamic range, p-field settings) also come from `pipeline.yaml`;acquisition geometry comes from each file's own `scan` and `probe` groups.The reconstruction does not use `zea.inverse`. That module is for the CGLS inversionthat produced these files, not for reading them back. Runtime is about 30 s perframe on CPU. Each file is a full sweep of 20 to 25 GB, but only the requested frameis read.## Dataset Contributor(s)Sidaty El Hadramy, Philippe C. Cattin, Juan Verde. IHU Strasbourg and theDepartment of Biomedical Engineering, University of Basel.## Dataset Creation DateClarius 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.## License / Terms of UseCC BY 4.0, see [the licence deed](https://creativecommons.org/licenses/by/4.0/). The CT and segmentation data inside the filesis released under the same terms. The femur geometry behind the 3D-printed phantomscomes from a CC BY 4.0–licensed bone model dataset.## Intended UsageFull-matrix-capture-style beamforming research on recovered (not directly sensed)channel data at a bone-tissue interface: delay-and-sum reconstruction, adaptive andaberration-correction beamforming benchmarks, and robot/EM-tracked probe-pose fusion.It also serves as a reference for recovering pre-beamformed data from otherbeamformed-only scanners.## Dataset Characterization- **Data Collection Method:** phantom (3D-printed, bone-mimicking femur, immersed inultrasound-coupling gel); scanned with a Clarius handheld-probe-class linear arraymounted on and moved by a robotic arm; raw channel data recovered via CGLSinversion of the probe's beamformed RF output (not a direct per-elementrecording); probe pose independently tracked via a trakSTAR EM tracking system,fCal-calibrated.- **Labeling Method:** a CT scan of each 3D-printed phantom and a multi-labelsegmentation of it (authored in 3D Slicer) are stored inside each of thatphantom's three files, under `custom/ct/` and `custom/ct_segmentation/`. See[CT reference imaging](#ct-reference-imaging). There are no annotations on the RFdata itself.- **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/ssound 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 acrossall 192 transmits within a scan), 192 focused transmits per frame (one per lateralscanline, no steering), Hanning-windowed walking sub-aperture per scanline with47 to 97 of 192 elements active per transmit (mean 84, narrowest at the arrayedges).## CT reference imagingEach phantom's CT scan and its multi-label 3D Slicer segmentation are stored insideall three of that phantom's `zea` files, under `custom/ct/` and`custom/ct_segmentation/`. They are not shipped as separate `.nrrd` sidecars, so nofile depends on another.<p align="center"><img src="assets/ct_phantom2_wholebone.png" alt="CT slices of phantom2" width="800"></p>Three slices of phantom2's CT, written by `reconstruct.py` with `CT = True`, withthe `BoneSRF-2_Complete` segment outlined in red. The printed femur is hollow, so itreads dark against the bright coupling gel, and the coronal view shows the fracture:the bone is in separate, displaced pieces.| Dataset | Contents ||---|---|11 unmodified lines| phantom2 | `512 × 512 × 574` | `(574, 512, 512)` | `0.50390625 × 0.50390625 × 0.6` || phantom3 | `512 × 512 × 594` | `(594, 512, 512)` | `0.5625 × 0.5625 × 0.6` |Each segmentation has three segments, one per RF sweep of that phantom. Label valuesrepeat across layers, because 3D Slicer keeps segments on separate internal labelmaplayers, so read a segment's mask as`labelmap[..., segment_layers[s]] == segment_label_values[s]` rather than treatingthe array as one flat labelmap:| Segment | `segment_label_values` | `segment_layers` | Corresponds to ||---|---|---|---|7 unmodified lines| `BoneSRF-3_Distal` | 3 | 0 | `phantom3_distal` || `BoneSRF-3_Complete` | 1 | 1 | `phantom3_wholebone` |The CT is reference imaging of the physical phantom in scanner (LPS) space. It isnot spatially registered to the RF frames or to the tracked probe poses; noCT-to-ultrasound registration is provided.## Dataset FormatSubmitted in the [`zea` file format](https://zea.readthedocs.io/en/openh-rf-latest/)as nine HDF5 files.The channel data was recovered from the probe's real, beamformed RF output byCGLS-inverting a `zea.inverse.DASOperator` built from the known acquisitiongeometry. `t0_delays`, `tx_apodizations`, `focus_distances`, `transmit_origins`,`polar_angles`, and `waveforms_two_way` are copied directly from the values thatinversion'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.Probe pose (`metadata/probe_pose`: translation, rotation, timestamps) was recoveredfrom the trakSTAR tracking capture via a fixed fCal image-to-probe calibration,resampled onto each `raw_data` frame's own acquisition time before conversion, andstored per frame, so `metadata/probe_pose[i]` corresponds to `raw_data[i]`.CT and segmentation were copied verbatim out of the `.nrrd` files that previouslyshipped alongside the RF data, so that every file is self-contained; the source NRRDheaders are preserved with them. Grid geometry is converted from the NRRD'smillimetres to zea's SI metres.Reading these files requires `h5py` built against HDF5 ≥ 2.0 (e.g. `h5py` ≥ 3.16),see [Known Issues](#known-issues).### FieldsEvery file has the same field structure; `n_frames` and `n_ax` vary per scan (see[Dataset Quantification](#dataset-quantification)).| Field | Shape | dtype | Units | Description ||---|---|---|---|---|| `raw_data` | `(n_frames, 192, n_ax, 192, 1)` | float32 | a.u. | RF channel data: frame × transmit × axial sample × element × channel || `scan.sampling_frequency` | scalar | float32 | Hz | 30 MHz || `scan.center_frequency` | scalar | float32 | Hz | 10 MHz (`demodulation_frequency` is identical) || `scan.sound_speed` | scalar | float32 | m/s | 1540 || `scan.t0_delays` | `(192, 192)` | float32 | s | Per-element transmit delay per transmit (focused walking sub-aperture) || `scan.tx_apodizations` | `(192, 192)` | float32 | — | Hanning-windowed walking sub-aperture (47–97 elements active per transmit) || `scan.focus_distances` | `(192,)` | float32 | m | Constant within a scan (single fixed focus) || `scan.polar_angles` | `(192,)` | float32 | rad | Constant, 0.0 (no steering; purely translated scanlines) || `scan.transmit_origins` | `(192, 3)` | float32 | m | Per-transmit origin along the array || `scan.waveforms_two_way` | `(192, 303)` | float32 | a.u. | Two-way pulse waveform per transmit || `scan.initial_times` | `(192,)` | float32 | s | Per-transmit acquisition start time || `scan.time_to_next_transmit` | `(n_frames, 192)` | float32 | s | Inter-transmit interval || `probe.probe_geometry` | `(192, 3)` | float32 | m | Element positions (linear array, y = z = 0); confirms 0.130 mm pitch / 24.8 mm aperture || `metadata.probe_pose.translation` | `(n_frames, 3)` | float32 | m | Tracked probe position, one entry per `raw_data` frame (index-aligned) || `metadata.probe_pose.rotation` | `(n_frames, 4)` | float32 | — | Quaternion (xyzw), tracked probe orientation, index-aligned with `raw_data` || `metadata.probe_pose.timestamps` | `(n_frames,)` | float32 | s | Pose time, relative to the first frame || `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) || `custom.ct.affine` | `(4, 4)` | float64 | m | Voxel index `(i, j, k, 1)` → LPS position in metres || `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` || `custom.ct_segmentation.segment_names` | `(3,)` | str | — | Segment names || `custom.ct_segmentation.segment_label_values` | `(3,)` | uint8 | — | Label value of each segment within its own layer || `custom.ct_segmentation.segment_layers` | `(3,)` | uint8 | — | Index into the last axis of `labelmap` holding each segment |## Dataset Quantification**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.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 trackedprobe pose per frame.| Scan | Frames | `n_ax` | Focus | Reference frame | Size on disk ||---|---|---|---|---|---|9 unmodified lines## Subject Metadata3D-printed, bone-mimicking musculoskeletal phantoms (bone surface reflectiontargets); no human or animal subject. Scanned with a robot-mountedClarius L20HD3 linear array at 10 MHz / ~5.1 cm depth / single transmit focus.## Data ValidationAll 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.## Known Issues- **Fracture patterns are not documented per phantom.** The location, type(transverse / oblique / comminuted / hairline) and displacement of each phantom'sfracture are not recorded. The CT segmentation in each file is ground truth forthe physical phantom geometry.- **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.- **No CT-to-ultrasound registration.** The CT is in scanner LPS space and the probeposes in trakSTAR tracker space. Nothing here relates the two.- **CT intensity units are unverified.** The source NRRD headers record no unit. Thevalue range (−1024 to about 500) is consistent with Hounsfield units, but this hasnot been confirmed.## Ethical Considerations12345616 unmodified lines23242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031045 unmodified lines11011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519611 unmodified lines2082092102112122132147 unmodified lines2222232242252262272282292302312322332349 unmodified lines244245246247248249250251252253254255256257258259260---name: strasbourg-baselpretty_name: "BoneSRF Robot-Tracked Fractured-Femur Phantom Dataset"license: cc-by-4.0task_categories:- other16 unmodified lines- n<1K---# BoneSRF<p align="center"><img src="assets/reference_bmode.png" alt="BoneSRF B-mode of phantom 2, whole-bone sweep" width="200"></p>*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.*## Dataset Description<p align="center"><img src="assets/bonesrf_logo.png" alt="BoneSRF" width="200"></p>**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.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.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.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.### How the data was generated1. **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.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.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.### Probe trackingThe 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.### The three phantomsEach 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:- **`distal`**: a sweep over the distal region of the femur- **`proximal`**: a sweep over the proximal region of the femur- **`wholebone`**: a sweep covering the full length of the femur## Dataset Contributor(s)- Sidaty El Hadramy (IHU Strasbourg; Department of Biomedical Engineering, University of Basel)- Philippe C. Cattin (IHU Strasbourg; Department of Biomedical Engineering, University of Basel)- Juan Verde (IHU Strasbourg; Department of Biomedical Engineering, University of Basel)## Dataset Creation DateClarius 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.## License / Terms of Use[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.## Intended UsageFull-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.## Dataset Characterization- **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.- **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.- **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).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.## Processing the DatasetThe 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.The script loads the saved `zea.Pipeline` from `pipeline.yaml`, runs it on one frame of one scan, and writes `assets/<scan>.png`.The constants at the top of the script select what is reconstructed:- `SCAN`: the scan to reconstruct, as a local path or an `hf://` URI.- `FRAME`: the frame to beamform. `None` uses that scan's reference frame, the one its reference image was rendered from.- `DEVICE`: where to run, e.g. `"cpu"`, `"cuda:0"` or `"auto:1"`.- `CT`: also plot the CT carried in the file, to `assets/ct_<scan>.png`.5 unmodified linesDEVICE = "cpu"```and produce the B-mode image shown at the top of this card.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.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.## Dataset Format[zea v0.1.6](https://github.com/tue-bmd/zea)Submitted in the [`zea` file format](https://zea.readthedocs.io/en/openh-rf-latest/) as nine HDF5 files.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.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]`.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.Reading these files requires `h5py` built against HDF5 ≥ 2.0 (e.g. `h5py` ≥ 3.16), see [Known Issues](#known-issues).### FieldsEvery file has the same field structure; `n_frames` and `n_ax` vary per scan (see [Dataset Quantification](#dataset-quantification)).| Field | Shape | dtype | Units | Description ||---|---|---|---|---|| `raw_data` | `(n_frames, 192, n_ax, 192, 1)` | float32 | a.u. | RF channel data: frame × transmit × axial sample × element × channel || `scan.sampling_frequency` | scalar | float32 | Hz | 30 MHz || `scan.center_frequency` | scalar | float32 | Hz | 10 MHz (`demodulation_frequency` is identical) || `scan.sound_speed` | scalar | float32 | m/s | 1540 || `scan.t0_delays` | `(192, 192)` | float32 | s | Per-element transmit delay per transmit (focused walking sub-aperture) || `scan.tx_apodizations` | `(192, 192)` | float32 | — | Hanning-windowed walking sub-aperture (47–97 elements active per transmit) || `scan.focus_distances` | `(192,)` | float32 | m | Constant within a scan (single fixed focus) || `scan.polar_angles` | `(192,)` | float32 | rad | Constant, 0.0 (no steering; purely translated scanlines) || `scan.transmit_origins` | `(192, 3)` | float32 | m | Per-transmit origin along the array || `scan.waveforms_two_way` | `(192, 303)` | float32 | a.u. | Two-way pulse waveform per transmit || `scan.initial_times` | `(192,)` | float32 | s | Per-transmit acquisition start time || `scan.time_to_next_transmit` | `(n_frames, 192)` | float32 | s | Inter-transmit interval || `probe.probe_geometry` | `(192, 3)` | float32 | m | Element positions (linear array, y = z = 0); confirms 0.130 mm pitch / 24.8 mm aperture || `metadata.probe_pose.translation` | `(n_frames, 3)` | float32 | m | Tracked probe position, one entry per `raw_data` frame (index-aligned) || `metadata.probe_pose.rotation` | `(n_frames, 4)` | float32 | — | Quaternion (xyzw), tracked probe orientation, index-aligned with `raw_data` || `metadata.probe_pose.timestamps` | `(n_frames,)` | float32 | s | Pose time, relative to the first frame || `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) || `custom.ct.affine` | `(4, 4)` | float64 | m | Voxel index `(i, j, k, 1)` → LPS position in metres || `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` || `custom.ct_segmentation.segment_names` | `(3,)` | str | — | Segment names || `custom.ct_segmentation.segment_label_values` | `(3,)` | uint8 | — | Label value of each segment within its own layer || `custom.ct_segmentation.segment_layers` | `(3,)` | uint8 | — | Index into the last axis of `labelmap` holding each segment |## Folder structure```BoneSRF/├── README.md ← this file (dataset overview + data card for all nine scans)├── LICENCE (CC BY 4.0)├── pipeline.yaml (saved zea.Pipeline, shared by all nine scans)├── reconstruct.py (runs pipeline.yaml on any scan, and plots its CT)├── assets/│ ├── reference_bmode.png (the B-mode shown below)│ └── ct_<scan>.png (CT slices of the scan's phantom)├── data/│ ├── phantom1_distal.hdf5 (zea channel data + per-frame probe pose + CT)│ ├── phantom1_proximal.hdf5│ ├── phantom1_wholebone.hdf5│ ├── phantom2_*.hdf5 (same three sweeps)│ └── phantom3_*.hdf5 (same three sweeps)└── reference_bmodes/└── <scan>.png (one reference reconstruction per scan)```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.## CT reference imagingEach 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.<p align="center"><img src="assets/ct_phantom2_wholebone.png" alt="CT slices of phantom2" width="800"></p>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.| Dataset | Contents ||---|---|11 unmodified lines| phantom2 | `512 × 512 × 574` | `(574, 512, 512)` | `0.50390625 × 0.50390625 × 0.6` || phantom3 | `512 × 512 × 594` | `(594, 512, 512)` | `0.5625 × 0.5625 × 0.6` |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:| Segment | `segment_label_values` | `segment_layers` | Corresponds to ||---|---|---|---|7 unmodified lines| `BoneSRF-3_Distal` | 3 | 0 | `phantom3_distal` || `BoneSRF-3_Complete` | 1 | 1 | `phantom3_wholebone` |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.## Dataset Quantification**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.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.| Scan | Frames | `n_ax` | Focus | Reference frame | Size on disk ||---|---|---|---|---|---|9 unmodified lines## Subject Metadata3D-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.## Data ValidationAll 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.## Known Issues- **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.- **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.- **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.- **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.## Ethical Considerations
strasbourg-basel/README.md+117-225