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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-4.0
|
| 3 |
+
pretty_name: OpenH-RF Thyroid In-Vivo L11-5v Scan (D1)
|
| 4 |
+
task_categories:
|
| 5 |
+
- other
|
| 6 |
+
tags:
|
| 7 |
+
- ultrasound
|
| 8 |
+
- channel-data
|
| 9 |
+
- beamforming
|
| 10 |
+
- thyroid
|
| 11 |
+
- clinical
|
| 12 |
+
- zea
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# OpenH-RF Thyroid Clinical Scans
|
| 16 |
+
|
| 17 |
+
## Dataset Description
|
| 18 |
+
|
| 19 |
+
The data set consists of clinical ultrasound channel data acquired
|
| 20 |
+
with a Verasonics Vantage 128 system and an L11-5v linear array probe, imaging
|
| 21 |
+
the thyroid gland of 30 adult healthy volunteers. The scans were carried out by a senior radiologist
|
| 22 |
+
who specializes in ultrasound thyroid imaging. The purpose of the scans is to provide a complete set of channel data of a thyroid gland scan of the full anatomy.
|
| 23 |
+
|
| 24 |
+
## Dataset Contributor(s)
|
| 25 |
+
|
| 26 |
+
Prof. Yonina Eldar's SAMPLLAB Group, Faculty of Mathematics and Computer Science, Weizmann Institute of Science, Rehovot, Israel.
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
## Dataset Creation Date
|
| 30 |
+
|
| 31 |
+
07/07/2026
|
| 32 |
+
|
| 33 |
+
## License / Terms of Use
|
| 34 |
+
|
| 35 |
+
CC-BY-4.0. Acquired under a Weizmann Institute IRB-approved research protocol, with informed
|
| 36 |
+
consent obtained from each subject prior to scanning.
|
| 37 |
+
|
| 38 |
+
## Intended Usage
|
| 39 |
+
|
| 40 |
+
General-purpose ultrasound channel-data foundation model pretraining and
|
| 41 |
+
evaluation — in particular DAS beamforming/reconstruction, inverse speed of sound imaging.
|
| 42 |
+
Suitable as a base for future downstream tasks (e.g. thyroid
|
| 43 |
+
segmentation, nodule detection) if paired with additional annotations from the B-mode images.
|
| 44 |
+
|
| 45 |
+
## Dataset Characterization
|
| 46 |
+
|
| 47 |
+
- **Data Collection Method:** clinical
|
| 48 |
+
- **Labeling Method:** N/A — no annotations included
|
| 49 |
+
- **Acquisition system:** Verasonics Vantage 128 system, L11-5v linear array
|
| 50 |
+
probe, center frequency 7.6 MHz (76.8% fractional
|
| 51 |
+
bandwidth), element width 0.27 mm, aperture width 38.1 mm; RF sampling
|
| 52 |
+
frequency 31.25 MHz, demodulation frequency 7.8125 MHz, assumed sound
|
| 53 |
+
speed 1540 m/s.
|
| 54 |
+
|
| 55 |
+
## Dataset Format
|
| 56 |
+
|
| 57 |
+
zea file format, one acquisition HDF5 file per subject. Before packaging,
|
| 58 |
+
the frames prior to workspace parameter freezing were removed from the raw channel data frames.
|
| 59 |
+
|
| 60 |
+
## Dataset Quantification
|
| 61 |
+
- Number of samples / acquisitions / channels: ~1600 / 128 / 128
|
| 62 |
+
- Number of frames: average 250 (dependent on subject)
|
| 63 |
+
- No train/validation/test split
|
| 64 |
+
- Total size on disk: 374 GB
|
| 65 |
+
- Per-sample feature table:
|
| 66 |
+
|
| 67 |
+
| Field | Shape | Dtype | Units | Description |
|
| 68 |
+
|---|------------------------------|---|---|---|
|
| 69 |
+
| `tracks/track_0/data/raw_data` | (nframes, 128, 4096, 128, 1) | int16 | ADC counts | Raw per-element RF channel data: (frames, transmits, axial samples, elements, 1) |
|
| 70 |
+
| `tracks/track_0/scan/t0_delays` | (128, 128) | float32 | s | Per-transmit, per-element transmit delay |
|
| 71 |
+
| `tracks/track_0/scan/tx_apodizations` | (128, 128) | float32 | unitless (0-1) | Per-transmit, per-element transmit apodization weight |
|
| 72 |
+
| `tracks/track_0/scan/polar_angles` | (128,) | float32 | rad | Per-transmit polar steering angle |
|
| 73 |
+
| `tracks/track_0/scan/azimuth_angles` | (128,) | float32 | rad | Per-transmit azimuth steering angle (0 for this 1D linear array) |
|
| 74 |
+
| `tracks/track_0/scan/focus_distances` | (128,) | float32 | m | Per-transmit focal distance |
|
| 75 |
+
| `tracks/track_0/scan/transmit_origins` | (128, 3) | float32 | m | Per-transmit virtual source origin (x, y, z) |
|
| 76 |
+
| `tracks/track_0/scan/initial_times` | (128,) | float32 | s | Per-transmit acquisition start time offset |
|
| 77 |
+
| `tracks/track_0/scan/time_to_next_transmit` | (nframes, 128) | float32 | s | Per-frame, per-transmit inter-transmit timing |
|
| 78 |
+
| `tracks/track_0/scan/center_frequency` | scalar | float32 | Hz | Transmit center frequency (7.6 MHz) |
|
| 79 |
+
| `tracks/track_0/scan/sampling_frequency` | scalar | float32 | Hz | RF sampling frequency (31.25 MHz) |
|
| 80 |
+
| `tracks/track_0/scan/demodulation_frequency` | scalar | float32 | Hz | Demodulation frequency used downstream (7.8125 MHz) |
|
| 81 |
+
| `tracks/track_0/scan/sound_speed` | scalar | float32 | m/s | Assumed speed of sound (1540 m/s) |
|
| 82 |
+
| `tracks/track_0/scan/tgc_gain_curve` | (2048,) | float32 | Verasonics TGC units | Time-gain-compensation curve applied during acquisition |
|
| 83 |
+
| `probe/probe_geometry` | (128, 3) | float32 | m | Element (x, y, z) positions, L11-5v linear array, ±19.05 mm aperture |
|
| 84 |
+
| `probe/element_width` | scalar | float32 | m | Element width (0.27 mm) |
|
| 85 |
+
| `probe/probe_center_frequency` | scalar | float32 | Hz | Probe nominal center frequency (7.6 MHz) |
|
| 86 |
+
| `probe/probe_bandwidth_percent` | scalar | float32 | % | Probe fractional bandwidth (76.8%) |
|
| 87 |
+
| `probe/lens_thickness` | scalar | float32 | m | Acoustic lens thickness (0.390 mm), derived from the Verasonics lens correction scalar; consumed automatically by zea's per-element/per-pixel lens correction during reconstruction (`apply_lens_correction: true` in `pipeline.yaml`) |
|
| 88 |
+
| `probe/lens_sound_speed` | scalar | float32 | m/s | Assumed speed of sound in the lens material (1000 m/s) used to derive `lens_thickness` above |
|
| 89 |
+
| `custom/lens_correction` | scalar | float64 | wavelengths | Raw Verasonics one-way lens correction delay (2.961 wl), kept for provenance |
|
| 90 |
+
| `metadata/subject/id` | scalar | str | - | De-identified subject code |
|
| 91 |
+
| `metadata/subject/type` | scalar | str | - | `human` |
|
| 92 |
+
|
| 93 |
+
|
| 94 |
+
## Subject Metadata
|
| 95 |
+
- number of subjects: 30,
|
| 96 |
+
- age range: 18-65,
|
| 97 |
+
- 20 Female , 10 Male
|
| 98 |
+
- Thyroid gland
|
| 99 |
+
- healthy volunteers with incidental pathology (e.g. cysts, nodules) in some cases
|
| 100 |
+
- Verasonics vantage 128 system, L11-5v linear array probe
|
| 101 |
+
|
| 102 |
+
## Data Validation
|
| 103 |
+
|
| 104 |
+
`reconstruct.py` runs the following `zea.Pipeline` (saved as `pipeline.yaml`,
|
| 105 |
+
alongside this README) to reconstruct a B-mode image from the raw channel
|
| 106 |
+
data: cast → demodulate → DAS beamform (with native, per-element/per-pixel
|
| 107 |
+
lens correction) → envelope detect → normalize → log compress.
|
| 108 |
+
|
| 109 |
+
```yaml
|
| 110 |
+
# Beamforming config for the L11-5v thyroid scans (focused ray-line imaging).
|
| 111 |
+
# RF data is real (not IQ/baseband, sampleMode=NS200BW) so it is demodulated
|
| 112 |
+
# before beamforming. grid_size_x/z fix the output resolution; the actual
|
| 113 |
+
# depth mapped onto it comes from this file's own N_AX (D1: 2048 samples,
|
| 114 |
+
# ~50mm one-way in 1540 m/s tissue).
|
| 115 |
+
|
| 116 |
+
parameters:
|
| 117 |
+
grid_size_x: 300
|
| 118 |
+
grid_size_z: 400
|
| 119 |
+
dynamic_range: [-60, 0]
|
| 120 |
+
|
| 121 |
+
pipeline:
|
| 122 |
+
operations:
|
| 123 |
+
- name: keras.ops.cast
|
| 124 |
+
params:
|
| 125 |
+
dtype: float32
|
| 126 |
+
- demodulate
|
| 127 |
+
- name: beamform
|
| 128 |
+
params:
|
| 129 |
+
beamformer: delay_and_sum
|
| 130 |
+
num_patches: 200
|
| 131 |
+
- envelope_detect
|
| 132 |
+
- normalize
|
| 133 |
+
- log_compress
|
| 134 |
+
```
|
| 135 |
+
|
| 136 |
+
Example reconstruction, run via `python reconstruct.py --data-dir subjects
|
| 137 |
+
--n-scans 3 --n-frames 3 --seed 0 --output three_patients_grid.png`
|
| 138 |
+
(3 subjects, 3 randomly sampled frames each):
|
| 139 |
+
|
| 140 |
+

|
| 141 |
+
|
| 142 |
+
All 9 sampled frames, across 3 different subjects, show consistent diffuse
|
| 143 |
+
in-vivo tissue speckle with no reconstruction artifacts, confirming the
|
| 144 |
+
acquisition geometry, timing metadata, and native lens correction are
|
| 145 |
+
correctly recorded/applied across the released dataset, not just a single
|
| 146 |
+
acquisition.
|
| 147 |
+
|
| 148 |
+
## Known Issues
|
| 149 |
+
|
| 150 |
+
- `decimSampleRate`, `quadDecim`, and `demodFrequency` are absent from the
|
| 151 |
+
raw Verasonics workspace (`BaselineWorkspace.mat`) and were instead
|
| 152 |
+
sourced from this session's recalibration checkpoint files,
|
| 153 |
+
where they were confirmed constant.
|
| 154 |
+
- The default beamforming grid in `pipeline.yaml` (`grid_size_x=300`,
|
| 155 |
+
`grid_size_z=400`) is coarser than the half-wavelength Nyquist rate for
|
| 156 |
+
this probe/frequency; this only affects the resolution of the example
|
| 157 |
+
reconstruction images, not the released raw channel data.
|
| 158 |
+
- The number of frames for each subject is variable, depending on the subject's
|
| 159 |
+
anatomy and the radiologist's scanning protocol. It may also be affected by
|
| 160 |
+
bottlenecks in the Verasonics system's data transfer rate,
|
| 161 |
+
which can cause "dropped frames" when the system cannot keep up with the
|
| 162 |
+
acquisition speed.
|
| 163 |
+
|
| 164 |
+
## Ethical Considerations
|
| 165 |
+
|
| 166 |
+
This acquisition was performed under an IRB-approved research protocol,
|
| 167 |
+
with informed consent obtained from the subject prior to scanning. The
|
| 168 |
+
subjects are identified only by a de-identified code with no directly
|
| 169 |
+
identifying information (name, exact date of birth, medical record number)
|
| 170 |
+
stored in the released file. No `acquisition_time` timestamp is embedded in
|
| 171 |
+
the zea file, consistent with HIPAA Safe Harbor de-identification guidance
|
| 172 |
+
for human-subject data.
|
| 173 |
+
|
weizmann-sampl/pipeline.yaml
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Beamforming config for the L11-5v thyroid scans (focused ray-line imaging).
|
| 2 |
+
# Copied unchanged from phantom_test/pipeline.yaml -- same probe.
|
| 3 |
+
#
|
| 4 |
+
# RF data is real (not IQ/baseband, sampleMode=NS200BW) so it is demodulated
|
| 5 |
+
# before beamforming. grid_size_x/z fix the *output* resolution; the actual
|
| 6 |
+
# depth mapped onto it comes from each file's own N_AX and can differ by
|
| 7 |
+
# patient -- convert.py picks N_AX from whichever checkpoint's settings are
|
| 8 |
+
# active for the frames it kept (e.g. D1: N_AX=2048, ~50mm one-way; A3:
|
| 9 |
+
# N_AX=2176, ~53mm one-way, both in 1540 m/s tissue).
|
| 10 |
+
|
| 11 |
+
parameters:
|
| 12 |
+
grid_size_x: 377
|
| 13 |
+
grid_size_z: 525
|
| 14 |
+
dynamic_range: [-60, 0]
|
| 15 |
+
apply_lens_correction: true
|
| 16 |
+
focal_region_length: 0.02
|
| 17 |
+
# lens_thickness and lens_sound_speed are read from the probe spec in the file
|
| 18 |
+
# (convert.py derives them from the Verasonics lens_correction custom element
|
| 19 |
+
# via estimate_lens_probe_params) -- no manual initial_times shift needed here.
|
| 20 |
+
|
| 21 |
+
pipeline:
|
| 22 |
+
operations:
|
| 23 |
+
- name: keras.ops.cast
|
| 24 |
+
params:
|
| 25 |
+
dtype: float32
|
| 26 |
+
- apply_window
|
| 27 |
+
- demodulate
|
| 28 |
+
- name: beamform
|
| 29 |
+
params:
|
| 30 |
+
beamformer: delay_and_sum
|
| 31 |
+
num_patches: 200
|
| 32 |
+
- envelope_detect
|
| 33 |
+
- normalize
|
| 34 |
+
- log_compress
|