tristan-deep commited on
Commit
72bb2ee
·
verified ·
1 Parent(s): 0c07c4f

waterloo-largeartery: restructure the data card to the common layout

Browse files
Files changed (1) hide show
  1. waterloo-largeartery/README.md +49 -97
waterloo-largeartery/README.md CHANGED
@@ -1,4 +1,5 @@
1
  ---
 
2
  pretty_name: UW-FemVeinRF
3
  license: cc-by-4.0
4
  task_categories:
@@ -24,41 +25,21 @@ size_categories:
24
 
25
  ![Reconstructed cineloop from Acq5.hdf5](assets/Acq5.gif)
26
 
27
- Cine loop of [`Acq5.hdf5`](https://huggingface.co/datasets/nvidia/OpenH-RF/blob/main/waterloo-largeartery/data/Acq5.hdf5), reconstructed from the raw
28
- channel data with the `pipeline.yaml` in this folder.
29
-
30
- `zea` renders it straight from the Hub:
31
-
32
- ```bash
33
- zea process \
34
- --dataset hf://nvidia/OpenH-RF/waterloo-largeartery/data/Acq5.hdf5 \
35
- --config hf://nvidia/OpenH-RF/waterloo-largeartery/pipeline.yaml \
36
- --n-frames 1 \
37
- --save-as png
38
- ```
39
-
40
- Swap `--n-frames 1 --save-as png` for `--save-as gif` to get the cine loop.
41
-
42
-
43
- Dataset consisting of raw RF data and vector velocity measurements of femoral vein acquired in studies conducted by VORTEX @
44
- University of Waterloo.
45
 
46
  ## Dataset Description
47
 
48
- This is a dataset consisting of raw RF frames (plane wave) and vector flow
49
- profiles of the femoral vein in humans, acquired using a programmable research scanner configured for
50
- high frame rate vector flow imaging. The data was collected as part of studies
51
- conducted by the VORTEX research group at the University of Waterloo, focusing on
52
- venous hemodynamics under muscular contraction and head up tilt.
53
 
54
  ## Dataset Contributor(s)
55
 
56
- Hassan Nahas, Jeremy N. Cohen, Eudoxia Zafiris, Skye H.T. Ling, Alfred C.H. Yu, Jason S. Au
57
-
58
- Correspondence emails:
59
- hassan.nahas@uwaterloo.ca
60
- jason.au@uwaterloo.ca
61
-
 
62
 
63
  ## Dataset Creation Date
64
 
@@ -66,28 +47,40 @@ jason.au@uwaterloo.ca
66
 
67
  ## License / Terms of Use
68
 
69
- [Creative Commons Attribution 4.0 International (CC BY 4.0)](https://creativecommons.org/licenses/by/4.0/legalcode.en).
70
-
71
- All human studies were approved by the University of Waterloo’s Human Research
72
- Ethics Board (ORE #46018). All included data was acquired from participants who
73
- provided both written and verbal consent prior to participating in the study
74
- regarding public data sharing.
75
 
76
  ## Intended Usage
77
 
78
- Developing, benchmarking, and evaluating methods for ultrasound image
79
- reconstruction, motion estimation, clutter filtering, multi-angle Doppler
80
- processing, and vector flow imaging (VFI) in venous imaging.
81
 
82
  ## Dataset Characterization
83
 
84
  - **Data Collection Method:** In vivo imaging of human femoral veins.
85
  - **Labeling Method:** Label contains target vessel (Anatomy), view direction (Longitudinal), and physiological condition (Contraction + head up tilt).
86
- - **Acquisition system:**
87
- Raw RF data was acquired from programmable research scanners (US4R, US4US, Warsaw, Poland) equipped with an AL2442 linear array transducer.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
88
 
89
  ## Dataset Format
90
 
 
 
91
  Submitted in the [`zea` file format](https://zea.readthedocs.io/en/latest/) (one HDF5 file per acquisition).
92
 
93
  Per-sample contents of the converted HDF5:
@@ -115,20 +108,17 @@ Per-sample contents of the converted HDF5:
115
  | `data/color_doppler` | `[n_frames, z, x]` (+ `coordinates` `[z, x, 3]`) | float32 | m/s | Color Doppler map |
116
  | `scan/*` | -- | -- | -- | Probe geometry, sampling/center/demodulation frequency, t0 delays, sound speed, transmit angles, focus distances, transmit origins, apodizations, PRI... |
117
 
118
- All `coordinates` arrays are per-pixel Cartesian positions in meters, last axis
119
- `[x, y, z]` (y = 0 for 2-D maps).
120
 
121
  ## Shipped Example Acquisitions
122
 
123
- One example acquisition is included under `hdf5/` as a representative subset of
124
- the full dataset:
125
 
126
  | File | Subject | Anatomy | View | Condition | Frames |
127
  |---|---|---|---|---|---|
128
  | `hdf5/Acq0.hdf5` | 1 | Femoral Vein | Longitudinal | Contraction 8Kg HUT 40 | 9000-12000 |
129
 
130
- Each femoral vein acquisition comprises 2 steered plane-wave transmits (`n_tx = 2`), 2048/3072 axial
131
- samples, and 192 receive channels. Note that example provided was convrted with start-frame=9000 to get to the interesting part.
132
 
133
  The frame count in these examples is truncated for demonstration; full acquisitions contain the frame counts described below.
134
 
@@ -136,9 +126,7 @@ The frame count in these examples is truncated for demonstration; full acquisiti
136
 
137
  **Current OpenH-RF release:** 15 HDF5 files; 941.96 GB (941,958,804,227 bytes) stored; root `zea_version` **0.1.5**. 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.
138
 
139
- Data was collected from 15 participants and consists of 15 acquisitions (one per participant), containing
140
- 12,000 frames of raw RF data per acquisition. Each participant performed isometric plantarflexion
141
- contractions at 8 Kg under head up tilt of 40 degrees.
142
 
143
  ## Subject Metadata
144
 
@@ -158,31 +146,20 @@ contractions at 8 Kg under head up tilt of 40 degrees.
158
 
159
  ## Beamforming and Processing
160
 
161
- 1. **Pre-Filtering:**
162
- Channel RF data is pre-filtered to remove hardware artifacts and out-of-band noise using a 5 MHz bandpass filter before beamforming.
163
- 2. **GPU-Accelerated Beamforming (DAS):**
164
- Beamforming is carried out via a GPU-accelerated Delay-and-Sum (DAS) module.
165
  - **Aperture & Apodization:** 128-element Hanning window apodization and an F-number of 1.5.
166
  - **Dual Angle-Compounding:** Beamforming for B-mode and power Doppler is performed twice with opposite receive angles ($+15^{\circ}$ and $-15^{\circ}$). The final high-resolution beamformed image (HRI) is the average of these two acquisitions:
167
  $$HRI = \frac{HRI_{+15^{\circ}} + HRI_{-15^{\circ}}}{2}$$
168
  - **Reconstruction Grid:** Cartesian coordinates mapped by a `PixelMap` representing a lateral range of $[-19, 19]\text{ mm}$ and axial depth of $[10, 60]\text{ mm}$ at $0.1\text{ mm}$ spatial resolution.
169
- 3. **Clutter Filtering:**
170
- Clutter filtering is performed on the beamformed ensemble using a high-pass wall filter (normalized cut-off frequencies of 0.05 and 0.1, attenuation of 100 dB).
171
- 4. **Multi-Angle Doppler Frequency Estimation:**
172
- Angle-specific Doppler frequencies are computed using an ensemble size of 64 frames with a step size of 1.
173
- - For conventional vector velocity estimation, we used the following Tx-Rx angles:
174
- Tx: [-10, -10, 10, 10]; Rx: [-10, 10, -10, 10]
175
- - For dealiased vector velocity estimation, we used the following Tx-Rx angles:
176
- Tx: [-10, -10, -10,-10, 10, 10]; Rx: [-10, -3, 6, 10, -6, 3,10]
177
  - Color Doppler map is selected as the first of these (Tx: -10, Rx = -10)
178
- 5. **Vector Doppler Velocity Estimation:**
179
- Lateral ($v_x$) and axial ($v_z$) velocity components are computed from the multi-angle Doppler frequency estimates using GPU-accelerated least-squares estimation.
180
- Lateral ($v_x$) and axial ($v_z$) dealiased velocity components are computed from the multi-angle Doppler frequency estimates using GPU-accelerated extended least-squares estimation.
181
 
182
- The full LITMUS processing pipeline (GPU DAS beamforming + multi-angle vector
183
- Doppler) is documented by the contributors. That documentation is provided for
184
- provenance and reproducibility; it depends on the LITMUS core Python package and
185
- the raw acquisition frames, so it is not runnable from this folder alone.
186
 
187
  Papers relevant to our pipeline:
188
 
@@ -194,42 +171,17 @@ B. Y. S. Yiu and A. C. H. Yu, "Least-Squares Multi-Angle Doppler Estimators for
194
 
195
  ## Data Validation
196
 
197
- [`reconstruct.py`](reconstruct.py) builds a `zea.Pipeline` of DAS beamforming →
198
- envelope detection → normalization → log-compression **in code** and
199
- reconstructs a B-mode directly from `raw_data`, showing the raw-to-image flow
200
- without any config file. It also saves the pipeline to
201
- [`pipeline.yaml`](pipeline.yaml) as a shareable recipe. Comparing the
202
- reconstruction against the stored (LITMUS) B-mode is a sanity check that the
203
- acquisition parameters and probe geometry are recorded correctly, and serves as
204
- a reproducible reference reconstruction.
205
-
206
- When the vector-flow fields (`vector_velocity_x/z`/`vector_velocity_x/z_deal` + `power_doppler`) are present,
207
- a third panel overlays the vector velocity field on the stored B-mode. The
208
- overlay uses `draw_velocity_field`, a single self-contained (numpy + matplotlib)
209
- helper reproduced inside `reconstruct.py` from the LITMUS core Python package
210
- (`litmus.core_py.visualization`), so the script has no dependency on the full
211
- LITMUS GPU stack.
212
 
213
  The result is written to `reconstruct_output.png`:
214
 
215
  ![reference reconstruction](assets/reconstruct_output.png)
216
 
217
- ### Example Usage of reconstruct.py
218
-
219
- ```bash
220
- # Reconstruct the default file (hdf5/Acq0.hdf5) at frame 100
221
- python reconstruct.py
222
-
223
- # Reconstruct a specific file and frame, and adjust the power-Doppler mask
224
- python reconstruct.py --input "hdf5/Acq0.hdf5" --frame 700 --power-threshold 58 --vmax 1
225
- ```
226
-
227
  ## Ethical Considerations
228
 
229
- All human studies were approved by the University of Waterloo’s Human Research
230
- Ethics Board (ORE #46018). All included data was acquired from participants who
231
- provided both written and verbal consent prior to participating in the study
232
- regarding public data sharing.
233
 
234
  ## Citation
235
 
 
1
  ---
2
+ name: waterloo-largeartery
3
  pretty_name: UW-FemVeinRF
4
  license: cc-by-4.0
5
  task_categories:
 
25
 
26
  ![Reconstructed cineloop from Acq5.hdf5](assets/Acq5.gif)
27
 
28
+ *Cine loop of [`data/Acq5.hdf5`](https://huggingface.co/datasets/nvidia/OpenH-RF/blob/main/waterloo-largeartery/data/Acq5.hdf5), reconstructed from the raw channel data with the `pipeline.yaml` in this folder.*
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
 
30
  ## Dataset Description
31
 
32
+ Raw RF frames (plane wave) and vector flow profiles of the human femoral vein, acquired by the VORTEX research group at the University of Waterloo with a programmable research scanner configured for high-frame-rate vector flow imaging. The data was collected to study venous hemodynamics under muscular contraction and head-up tilt.
 
 
 
 
33
 
34
  ## Dataset Contributor(s)
35
 
36
+ - Hassan Nahas <hassan.nahas@uwaterloo.ca>
37
+ - Jeremy N. Cohen
38
+ - Eudoxia Zafiris
39
+ - Skye H.T. Ling
40
+ - Alfred C.H. Yu
41
+ - Jason S. Au <jason.au@uwaterloo.ca>
42
+ - VORTEX, University of Waterloo
43
 
44
  ## Dataset Creation Date
45
 
 
47
 
48
  ## License / Terms of Use
49
 
50
+ [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.
 
 
 
 
 
51
 
52
  ## Intended Usage
53
 
54
+ Developing, benchmarking, and evaluating methods for ultrasound image reconstruction, motion estimation, clutter filtering, multi-angle Doppler processing, and vector flow imaging (VFI) in venous imaging.
 
 
55
 
56
  ## Dataset Characterization
57
 
58
  - **Data Collection Method:** In vivo imaging of human femoral veins.
59
  - **Labeling Method:** Label contains target vessel (Anatomy), view direction (Longitudinal), and physiological condition (Contraction + head up tilt).
60
+ - **Acquisition system:** Raw RF data was acquired from programmable research scanners (US4R, US4US, Warsaw, Poland) equipped with an AL2442 linear array transducer.
61
+
62
+ ## Processing the Dataset
63
+
64
+ The acquisitions can be processed with the `pipeline.yaml` definition in this folder and the [zea library](https://github.com/tue-bmd/zea).
65
+
66
+ `zea` streams the data from the Hugging Face Hub and processes it according to the pipeline. You can try it out with the following command:
67
+
68
+ ```bash
69
+ zea process \
70
+ --dataset hf://nvidia/OpenH-RF/waterloo-largeartery/data/Acq5.hdf5 \
71
+ --config hf://nvidia/OpenH-RF/waterloo-largeartery/pipeline.yaml \
72
+ --n-frames 1 \
73
+ --save-as png
74
+ ```
75
+
76
+ Alternatively, you can use the `reconstruct.py` [script](https://github.com/open-h/OpenH-RF/blob/main/datasets/waterloo-largeartery/reconstruct.py) as provided in the [OpenH-RF GitHub repository](https://github.com/open-h/OpenH-RF).
77
+
78
+ Swap `--n-frames 1 --save-as png` for `--save-as gif` to get the cine loop. In the script, `ZEA_FILE`, `FRAME`, `POWER_THRESHOLD` (the power-Doppler mask threshold, in dB), `VMAX` (velocity colour-scale maximum) and `NO_DEALIAS` at the top select what is reconstructed and overlaid.
79
 
80
  ## Dataset Format
81
 
82
+ [zea v0.1.5](https://github.com/tue-bmd/zea)
83
+
84
  Submitted in the [`zea` file format](https://zea.readthedocs.io/en/latest/) (one HDF5 file per acquisition).
85
 
86
  Per-sample contents of the converted HDF5:
 
108
  | `data/color_doppler` | `[n_frames, z, x]` (+ `coordinates` `[z, x, 3]`) | float32 | m/s | Color Doppler map |
109
  | `scan/*` | -- | -- | -- | Probe geometry, sampling/center/demodulation frequency, t0 delays, sound speed, transmit angles, focus distances, transmit origins, apodizations, PRI... |
110
 
111
+ All `coordinates` arrays are per-pixel Cartesian positions in meters, last axis `[x, y, z]` (y = 0 for 2-D maps).
 
112
 
113
  ## Shipped Example Acquisitions
114
 
115
+ One example acquisition is included under `hdf5/` as a representative subset of the full dataset:
 
116
 
117
  | File | Subject | Anatomy | View | Condition | Frames |
118
  |---|---|---|---|---|---|
119
  | `hdf5/Acq0.hdf5` | 1 | Femoral Vein | Longitudinal | Contraction 8Kg HUT 40 | 9000-12000 |
120
 
121
+ Each femoral vein acquisition comprises 2 steered plane-wave transmits (`n_tx = 2`), 2048/3072 axial samples, and 192 receive channels. Note that example provided was convrted with start-frame=9000 to get to the interesting part.
 
122
 
123
  The frame count in these examples is truncated for demonstration; full acquisitions contain the frame counts described below.
124
 
 
126
 
127
  **Current OpenH-RF release:** 15 HDF5 files; 941.96 GB (941,958,804,227 bytes) stored; root `zea_version` **0.1.5**. 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.
128
 
129
+ Data was collected from 15 participants and consists of 15 acquisitions (one per participant), containing 12,000 frames of raw RF data per acquisition. Each participant performed isometric plantarflexion contractions at 8 Kg under head up tilt of 40 degrees.
 
 
130
 
131
  ## Subject Metadata
132
 
 
146
 
147
  ## Beamforming and Processing
148
 
149
+ 1. **Pre-Filtering:** Channel RF data is pre-filtered to remove hardware artifacts and out-of-band noise using a 5 MHz bandpass filter before beamforming.
150
+ 2. **GPU-Accelerated Beamforming (DAS):** Beamforming is carried out via a GPU-accelerated Delay-and-Sum (DAS) module.
 
 
151
  - **Aperture & Apodization:** 128-element Hanning window apodization and an F-number of 1.5.
152
  - **Dual Angle-Compounding:** Beamforming for B-mode and power Doppler is performed twice with opposite receive angles ($+15^{\circ}$ and $-15^{\circ}$). The final high-resolution beamformed image (HRI) is the average of these two acquisitions:
153
  $$HRI = \frac{HRI_{+15^{\circ}} + HRI_{-15^{\circ}}}{2}$$
154
  - **Reconstruction Grid:** Cartesian coordinates mapped by a `PixelMap` representing a lateral range of $[-19, 19]\text{ mm}$ and axial depth of $[10, 60]\text{ mm}$ at $0.1\text{ mm}$ spatial resolution.
155
+ 3. **Clutter Filtering:** Clutter filtering is performed on the beamformed ensemble using a high-pass wall filter (normalized cut-off frequencies of 0.05 and 0.1, attenuation of 100 dB).
156
+ 4. **Multi-Angle Doppler Frequency Estimation:** Angle-specific Doppler frequencies are computed using an ensemble size of 64 frames with a step size of 1.
157
+ - For conventional vector velocity estimation, we used the following Tx-Rx angles: Tx: [-10, -10, 10, 10]; Rx: [-10, 10, -10, 10]
158
+ - For dealiased vector velocity estimation, we used the following Tx-Rx angles: Tx: [-10, -10, -10,-10, 10, 10]; Rx: [-10, -3, 6, 10, -6, 3,10]
 
 
 
 
159
  - Color Doppler map is selected as the first of these (Tx: -10, Rx = -10)
160
+ 5. **Vector Doppler Velocity Estimation:** Lateral ($v_x$) and axial ($v_z$) velocity components are computed from the multi-angle Doppler frequency estimates using GPU-accelerated least-squares estimation. Lateral ($v_x$) and axial ($v_z$) dealiased velocity components are computed from the multi-angle Doppler frequency estimates using GPU-accelerated extended least-squares estimation.
 
 
161
 
162
+ The full LITMUS processing pipeline (GPU DAS beamforming + multi-angle vector Doppler) is documented by the contributors. That documentation is provided for provenance and reproducibility; it depends on the LITMUS core Python package and the raw acquisition frames, so it is not runnable from this folder alone.
 
 
 
163
 
164
  Papers relevant to our pipeline:
165
 
 
171
 
172
  ## Data Validation
173
 
174
+ `reconstruct.py` builds a `zea.Pipeline` of DAS beamforming → envelope detection → normalization → log-compression **in code** and reconstructs a B-mode directly from `raw_data`, showing the raw-to-image flow without any config file. It also saves the pipeline to `pipeline.yaml` as a shareable recipe. Comparing the reconstruction against the stored (LITMUS) B-mode is a sanity check that the acquisition parameters and probe geometry are recorded correctly, and serves as a reproducible reference reconstruction.
175
+
176
+ When the vector-flow fields (`vector_velocity_x/z`/`vector_velocity_x/z_deal` + `power_doppler`) are present, a third panel overlays the vector velocity field on the stored B-mode. The overlay uses `draw_velocity_field`, a single self-contained (numpy + matplotlib) helper reproduced inside `reconstruct.py` from the LITMUS core Python package (`litmus.core_py.visualization`), so the script has no dependency on the full LITMUS GPU stack.
 
 
 
 
 
 
 
 
 
 
 
 
177
 
178
  The result is written to `reconstruct_output.png`:
179
 
180
  ![reference reconstruction](assets/reconstruct_output.png)
181
 
 
 
 
 
 
 
 
 
 
 
182
  ## Ethical Considerations
183
 
184
+ All human studies were approved by the University of Waterloo’s Human Research Ethics Board (ORE #46018). All included data was acquired from participants who provided both written and verbal consent prior to participating in the study regarding public data sharing.
 
 
 
185
 
186
  ## Citation
187