tristan-deep commited on
Commit
dfcd9d9
·
verified ·
1 Parent(s): 1baf560

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

Browse files
Files changed (1) hide show
  1. waterloo-carotid/README.md +49 -106
waterloo-carotid/README.md CHANGED
@@ -1,4 +1,5 @@
1
  ---
 
2
  pretty_name: UW-CarotidRF
3
  license: cc-by-4.0
4
  task_categories:
@@ -23,47 +24,20 @@ size_categories:
23
 
24
  ![Reconstructed cineloop from Acq90.hdf5](assets/Acq90.gif)
25
 
26
- Cine loop of [`Acq90.hdf5`](https://huggingface.co/datasets/nvidia/OpenH-RF/blob/main/waterloo-carotid/data/Acq90.hdf5), reconstructed from the raw
27
- channel data with the `pipeline.yaml` in this folder.
28
-
29
- `zea` renders it straight from the Hub:
30
-
31
- ```bash
32
- zea process \
33
- --dataset hf://nvidia/OpenH-RF/waterloo-carotid/data/Acq90.hdf5 \
34
- --config hf://nvidia/OpenH-RF/waterloo-carotid/pipeline.yaml \
35
- --n-frames 1 \
36
- --save-as png
37
- ```
38
-
39
- Swap `--n-frames 1 --save-as png` for `--save-as gif` to get the cine loop.
40
-
41
-
42
- Dataset consisting of raw RF data and vector velocity measurements of carotid
43
- arteries acquired in in vivo carotid artery studies conducted by LITMUS @
44
- University of Waterloo. The dataset consists of longitudinal and cross-sectional
45
- images of the common and internal carotid arteries respectively.
46
-
47
 
48
  ## Dataset Description
49
 
50
- This is a dataset consisting of raw RF frames (plane wave) and vector flow
51
- profiles of the carotid arteries (Common Carotid Artery and Internal Carotid
52
- Artery) in humans, acquired using a programmable research scanner configured for
53
- high frame rate vector flow imaging. The data was collected as part of studies
54
- conducted by the LITMUS research group at the University of Waterloo, focusing on
55
- carotid artery hemodynamics during baseline and physiological maneuvers (such as
56
- the Valsalva Maneuver, head-down tilt, and supine postures).
57
 
58
  ## Dataset Contributor(s)
59
 
60
- Hassan Nahas, Jason Y. -H. Hsu, Theresa Gu, Adrian J. Y. Chee, Alfred C. H. Yu
61
-
62
- Correspondence emails:
63
- hassan.nahas@uwaterloo.ca
64
- jason.hsu@uwaterloo.ca
65
- theresa.gu@uwaterloo.ca
66
- alfred.yu@uwaterloo.ca
67
 
68
  ## Dataset Creation Date
69
 
@@ -71,28 +45,40 @@ alfred.yu@uwaterloo.ca
71
 
72
  ## License / Terms of Use
73
 
74
- [Creative Commons Attribution 4.0 International (CC BY 4.0)](https://creativecommons.org/licenses/by/4.0/legalcode.en).
75
-
76
- All human studies were approved by the University of Waterloo’s Human Research
77
- Ethics Board (ORE #46278). All included data was acquired from participants who
78
- provided both written and verbal consent prior to participating in the study
79
- regarding public data sharing.
80
 
81
  ## Intended Usage
82
 
83
- Developing, benchmarking, and evaluating methods for ultrasound image
84
- reconstruction, motion estimation, clutter filtering, multi-angle Doppler
85
- processing, and vector flow imaging (VFI) in carotid artery imaging.
86
 
87
  ## Dataset Characterization
88
 
89
  - **Data Collection Method:** In vivo imaging of human carotid arteries (Common Carotid Artery and Internal Carotid Artery).
90
  - **Labeling Method:** Categorized by target artery (Anatomy), view direction (Longitudinal or Cross-sectional), and physiological condition/maneuver (Baseline, Valsalva Maneuver, Valsalva Maneuver – Supine, Valsalva Maneuver – Head Down Tilt, Head Down Tilt).
91
- - **Acquisition system:**
92
- Raw RF data was acquired from programmable research scanners (US4R/US4R-Lite, US4US, Warsaw, Poland) equipped with an L14-5 linear array transducer.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
93
 
94
  ## Dataset Format
95
 
 
 
96
  Submitted in the [`zea` file format](https://zea.readthedocs.io/en/latest/) (one HDF5 file per acquisition).
97
 
98
  Per-sample contents of the converted HDF5:
@@ -118,22 +104,18 @@ Per-sample contents of the converted HDF5:
118
  | `data/color_doppler` | `[n_frames, z, x]` (+ `coordinates` `[z, x, 3]`) | float32 | m/s | Color Doppler map |
119
  | `scan/*` | -- | -- | -- | Probe geometry, sampling/center/demodulation frequency, t0 delays, sound speed, transmit angles, focus distances, transmit origins, apodizations, PRI... |
120
 
121
- All `coordinates` arrays are per-pixel Cartesian positions in meters, last axis
122
- `[x, y, z]` (y = 0 for 2-D maps).
123
 
124
  ## Shipped Example Acquisitions
125
 
126
- Two example acquisitions are included under `hdf5/` as a representative subset of
127
- the full dataset:
128
 
129
  | File | Subject | Anatomy | View | Condition | Frames |
130
  |---|---|---|---|---|---|
131
  | `hdf5/Acq0.hdf5` | 1 | Common Carotid Artery | Longitudinal | Baseline | 500 |
132
  | `hdf5/Acq62.hdf5` | 1 | Internal Carotid Artery | Cross-sectional | Baseline | 500 |
133
 
134
- Each common carotid artery frame comprises 2 steered plane-wave transmits (`n_tx = 2`), 2048 axial
135
- samples, and 128 receive channels. Each internal carotid artery frame comprises 1 steered plane-wave transmits (`n_tx = 1`), 1536 axial
136
- samples, and 128 receive channels.
137
 
138
  The frame count in these examples is truncated for demonstration; full acquisitions contain the frame counts described below.
139
 
@@ -141,11 +123,7 @@ The frame count in these examples is truncated for demonstration; full acquisiti
141
 
142
  **Current OpenH-RF release:** 93 HDF5 files; 6.90 TB (6,902,089,770,179 bytes) stored; root `zea_version` **0.1.4**. 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.
143
 
144
- Data was collected from 8 participants, spanning carotid arteries (Common Carotid
145
- Artery and Internal Carotid Artery) in both longitudinal and cross-sectional
146
- views. In total, the dataset consists of 93 acquisitions, containing
147
- 30,000 or 36,000 frames of raw RF data per acquisition (47 acquisitions of
148
- 30,000 frames and 46 of 36,000 frames).
149
 
150
  ## Subject Metadata
151
 
@@ -166,29 +144,19 @@ views. In total, the dataset consists of 93 acquisitions, containing
166
 
167
  ## Beamforming and Processing
168
 
169
- 1. **Pre-Filtering:**
170
- Channel RF data is pre-filtered using a 5 MHz bandpass filter before beamforming.
171
- 2. **GPU-Accelerated Beamforming (DAS):**
172
- Beamforming is carried out via a GPU-accelerated Delay-and-Sum (DAS) module.
173
  - **Aperture & Apodization:** 64-element Hanning window apodization and an F-number of 1.5.
174
  - **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:
175
  $$HRI = \frac{HRI_{+15^{\circ}} + HRI_{-15^{\circ}}}{2}$$
176
  - **Reconstruction Grid:** Cartesian coordinates mapped by a `PixelMap` representing a lateral range of $[-19, 19]\text{ mm}$ and axial depth of $[0, 30]\text{ mm}$ at $0.1\text{ mm}$ spatial resolution.
177
- 3. **Clutter Filtering:**
178
- Clutter filtering is performed on the beamformed ensemble using a high-pass wall filter (normalized cut-off frequencies of 0.1 and 0.15, filter length of 100).
179
- 4. **Multi-Angle Doppler Frequency Estimation:**
180
- Angle-specific Doppler frequencies are computed using an ensemble size of 64 frames with a step size of 1.
181
- - For acquisitions with 2 tx angles, we used the following Tx-Rx angles:
182
- Tx: [-10, -10, 10, 10]; Rx: [-10, 10, -10, 10]
183
- - For acquisitions with 1 tx angle:
184
- Tx: [-10, -10, -10]; Rx: [-10, 0, 10]
185
- 5. **Vector Doppler Velocity Estimation:**
186
- Lateral ($v_x$) and axial ($v_z$) velocity components are computed from the multi-angle Doppler frequency estimates using least-squares estimation.
187
-
188
- The full LITMUS processing pipeline (GPU DAS beamforming + multi-angle vector
189
- Doppler) is documented by the contributors. That documentation is provided for
190
- provenance and reproducibility; it depends on the LITMUS core Python package and
191
- the raw acquisition frames, so it is not runnable from this folder alone.
192
 
193
  Papers relevant to our pipeline:
194
 
@@ -200,42 +168,17 @@ B. Y. S. Yiu and A. C. H. Yu, "Least-Squares Multi-Angle Doppler Estimators for
200
 
201
  ## Data Validation
202
 
203
- [`reconstruct.py`](reconstruct.py) builds a `zea.Pipeline` of DAS beamforming →
204
- envelope detection → normalization → log-compression **in code** and
205
- reconstructs a B-mode directly from `raw_data`, showing the raw-to-image flow
206
- without any config file. It also saves the pipeline to
207
- [`pipeline.yaml`](pipeline.yaml) as a shareable recipe. Comparing the
208
- reconstruction against the stored (LITMUS) B-mode is a sanity check that the
209
- acquisition parameters and probe geometry are recorded correctly, and serves as
210
- a reproducible reference reconstruction.
211
-
212
- When the vector-flow fields (`vector_velocity_x/z` + `power_doppler`) are present,
213
- a third panel overlays the vector velocity field on the stored B-mode. The
214
- overlay uses `draw_velocity_field`, a single self-contained (numpy + matplotlib)
215
- helper reproduced inside `reconstruct.py` from the LITMUS core Python package
216
- (`litmus.core_py.visualization`), so the script has no dependency on the full
217
- LITMUS GPU stack.
218
 
219
  The result is written to `reconstruct_output.png`:
220
 
221
  ![reference reconstruction](assets/reconstruct_output.png)
222
 
223
- ### Example Usage of reconstruct.py
224
-
225
- ```bash
226
- # Reconstruct the default file (hdf5/Acq0.hdf5) at frame 100
227
- python reconstruct.py
228
-
229
- # Reconstruct a specific file and frame, and adjust the power-Doppler mask
230
- python reconstruct.py --input hdf5/Acq1.hdf5 --frame 250 --power-threshold 55.0
231
- ```
232
-
233
  ## Ethical Considerations
234
 
235
- All human studies were approved by the University of Waterloo’s Human Research
236
- Ethics Board (ORE #46278). All included data was acquired from participants who
237
- provided both written and verbal consent prior to participating in the study
238
- regarding public data sharing.
239
 
240
  ## Citation
241
 
 
1
  ---
2
+ name: waterloo-carotid
3
  pretty_name: UW-CarotidRF
4
  license: cc-by-4.0
5
  task_categories:
 
24
 
25
  ![Reconstructed cineloop from Acq90.hdf5](assets/Acq90.gif)
26
 
27
+ *Cine loop of [`data/Acq90.hdf5`](https://huggingface.co/datasets/nvidia/OpenH-RF/blob/main/waterloo-carotid/data/Acq90.hdf5), reconstructed from the raw channel data with the `pipeline.yaml` in this folder.*
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
 
29
  ## Dataset Description
30
 
31
+ Raw RF frames (plane wave) and vector flow profiles of the human carotid arteries, acquired in vivo by the LITMUS research group at the University of Waterloo with a programmable research scanner configured for high-frame-rate vector flow imaging. The dataset holds longitudinal images of the common carotid artery and cross-sectional images of the internal carotid artery, recorded to study carotid hemodynamics at baseline and during physiological maneuvers (Valsalva maneuver, head-down tilt, and supine postures).
 
 
 
 
 
 
32
 
33
  ## Dataset Contributor(s)
34
 
35
+ - Hassan Nahas <hassan.nahas@uwaterloo.ca>
36
+ - Jason Y. -H. Hsu <jason.hsu@uwaterloo.ca>
37
+ - Theresa Gu <theresa.gu@uwaterloo.ca>
38
+ - Adrian J. Y. Chee
39
+ - Alfred C. H. Yu <alfred.yu@uwaterloo.ca>
40
+ - LITMUS, University of Waterloo
 
41
 
42
  ## Dataset Creation Date
43
 
 
45
 
46
  ## License / Terms of Use
47
 
48
+ [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.
 
 
 
 
 
49
 
50
  ## Intended Usage
51
 
52
+ Developing, benchmarking, and evaluating methods for ultrasound image reconstruction, motion estimation, clutter filtering, multi-angle Doppler processing, and vector flow imaging (VFI) in carotid artery imaging.
 
 
53
 
54
  ## Dataset Characterization
55
 
56
  - **Data Collection Method:** In vivo imaging of human carotid arteries (Common Carotid Artery and Internal Carotid Artery).
57
  - **Labeling Method:** Categorized by target artery (Anatomy), view direction (Longitudinal or Cross-sectional), and physiological condition/maneuver (Baseline, Valsalva Maneuver, Valsalva Maneuver – Supine, Valsalva Maneuver – Head Down Tilt, Head Down Tilt).
58
+ - **Acquisition system:** Raw RF data was acquired from programmable research scanners (US4R/US4R-Lite, US4US, Warsaw, Poland) equipped with an L14-5 linear array transducer.
59
+
60
+ ## Processing the Dataset
61
+
62
+ The acquisitions can be processed with the `pipeline.yaml` definition in this folder and the [zea library](https://github.com/tue-bmd/zea).
63
+
64
+ `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:
65
+
66
+ ```bash
67
+ zea process \
68
+ --dataset hf://nvidia/OpenH-RF/waterloo-carotid/data/Acq90.hdf5 \
69
+ --config hf://nvidia/OpenH-RF/waterloo-carotid/pipeline.yaml \
70
+ --n-frames 1 \
71
+ --save-as png
72
+ ```
73
+
74
+ Alternatively, you can use the `reconstruct.py` [script](https://github.com/open-h/OpenH-RF/blob/main/datasets/waterloo-carotid/reconstruct.py) as provided in the [OpenH-RF GitHub repository](https://github.com/open-h/OpenH-RF).
75
+
76
+ Swap `--n-frames 1 --save-as png` for `--save-as gif` to get the cine loop. In the script, `ZEA_FILE`, `FRAME` and `POWER_THRESHOLD` (the power-Doppler mask threshold, in dB) at the top select what is reconstructed and overlaid.
77
 
78
  ## Dataset Format
79
 
80
+ [zea v0.1.4](https://github.com/tue-bmd/zea)
81
+
82
  Submitted in the [`zea` file format](https://zea.readthedocs.io/en/latest/) (one HDF5 file per acquisition).
83
 
84
  Per-sample contents of the converted HDF5:
 
104
  | `data/color_doppler` | `[n_frames, z, x]` (+ `coordinates` `[z, x, 3]`) | float32 | m/s | Color Doppler map |
105
  | `scan/*` | -- | -- | -- | Probe geometry, sampling/center/demodulation frequency, t0 delays, sound speed, transmit angles, focus distances, transmit origins, apodizations, PRI... |
106
 
107
+ All `coordinates` arrays are per-pixel Cartesian positions in meters, last axis `[x, y, z]` (y = 0 for 2-D maps).
 
108
 
109
  ## Shipped Example Acquisitions
110
 
111
+ Two example acquisitions are included under `hdf5/` as a representative subset of the full dataset:
 
112
 
113
  | File | Subject | Anatomy | View | Condition | Frames |
114
  |---|---|---|---|---|---|
115
  | `hdf5/Acq0.hdf5` | 1 | Common Carotid Artery | Longitudinal | Baseline | 500 |
116
  | `hdf5/Acq62.hdf5` | 1 | Internal Carotid Artery | Cross-sectional | Baseline | 500 |
117
 
118
+ Each common carotid artery frame comprises 2 steered plane-wave transmits (`n_tx = 2`), 2048 axial samples, and 128 receive channels. Each internal carotid artery frame comprises 1 steered plane-wave transmits (`n_tx = 1`), 1536 axial samples, and 128 receive channels.
 
 
119
 
120
  The frame count in these examples is truncated for demonstration; full acquisitions contain the frame counts described below.
121
 
 
123
 
124
  **Current OpenH-RF release:** 93 HDF5 files; 6.90 TB (6,902,089,770,179 bytes) stored; root `zea_version` **0.1.4**. 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.
125
 
126
+ Data was collected from 8 participants, spanning carotid arteries (Common Carotid Artery and Internal Carotid Artery) in both longitudinal and cross-sectional views. In total, the dataset consists of 93 acquisitions, containing 30,000 or 36,000 frames of raw RF data per acquisition (47 acquisitions of 30,000 frames and 46 of 36,000 frames).
 
 
 
 
127
 
128
  ## Subject Metadata
129
 
 
144
 
145
  ## Beamforming and Processing
146
 
147
+ 1. **Pre-Filtering:** Channel RF data is pre-filtered using a 5 MHz bandpass filter before beamforming.
148
+ 2. **GPU-Accelerated Beamforming (DAS):** Beamforming is carried out via a GPU-accelerated Delay-and-Sum (DAS) module.
 
 
149
  - **Aperture & Apodization:** 64-element Hanning window apodization and an F-number of 1.5.
150
  - **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:
151
  $$HRI = \frac{HRI_{+15^{\circ}} + HRI_{-15^{\circ}}}{2}$$
152
  - **Reconstruction Grid:** Cartesian coordinates mapped by a `PixelMap` representing a lateral range of $[-19, 19]\text{ mm}$ and axial depth of $[0, 30]\text{ mm}$ at $0.1\text{ mm}$ spatial resolution.
153
+ 3. **Clutter Filtering:** Clutter filtering is performed on the beamformed ensemble using a high-pass wall filter (normalized cut-off frequencies of 0.1 and 0.15, filter length of 100).
154
+ 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.
155
+ - For acquisitions with 2 tx angles, we used the following Tx-Rx angles: Tx: [-10, -10, 10, 10]; Rx: [-10, 10, -10, 10]
156
+ - For acquisitions with 1 tx angle: Tx: [-10, -10, -10]; Rx: [-10, 0, 10]
157
+ 5. **Vector Doppler Velocity Estimation:** Lateral ($v_x$) and axial ($v_z$) velocity components are computed from the multi-angle Doppler frequency estimates using least-squares estimation.
158
+
159
+ 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.
 
 
 
 
 
 
 
 
160
 
161
  Papers relevant to our pipeline:
162
 
 
168
 
169
  ## Data Validation
170
 
171
+ `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.
172
+
173
+ When the vector-flow fields (`vector_velocity_x/z` + `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.
 
 
 
 
 
 
 
 
 
 
 
 
174
 
175
  The result is written to `reconstruct_output.png`:
176
 
177
  ![reference reconstruction](assets/reconstruct_output.png)
178
 
 
 
 
 
 
 
 
 
 
 
179
  ## Ethical Considerations
180
 
181
+ All human studies were approved by the University of Waterloo’s Human Research Ethics Board (ORE #46278). All included data was acquired from participants who provided both written and verbal consent prior to participating in the study regarding public data sharing.
 
 
 
182
 
183
  ## Citation
184