waterloo-carotid: sync data card, pipeline grid and figures with GitHub

#46
waterloo-carotid/README.md CHANGED
@@ -1,4 +1,5 @@
1
  ---
 
2
  pretty_name: UW-CarotidRF
3
  license: cc-by-4.0
4
  task_categories:
@@ -21,31 +22,22 @@ size_categories:
21
 
22
  # UW-Carotid RF
23
 
24
- Dataset consisting of raw RF data and vector velocity measurements of carotid
25
- arteries acquired in in vivo carotid artery studies conducted by LITMUS @
26
- University of Waterloo. The dataset consists of longitudinal and cross-sectional
27
- images of the common and internal carotid arteries respectively.
28
 
 
29
 
30
  ## Dataset Description
31
 
32
- This is a dataset consisting of raw RF frames (plane wave) and vector flow
33
- profiles of the carotid arteries (Common Carotid Artery and Internal Carotid
34
- Artery) in humans, acquired using a programmable research scanner configured for
35
- high frame rate vector flow imaging. The data was collected as part of studies
36
- conducted by the LITMUS research group at the University of Waterloo, focusing on
37
- carotid artery hemodynamics during baseline and physiological maneuvers (such as
38
- the Valsalva Maneuver, head-down tilt, and supine postures).
39
 
40
  ## Dataset Contributor(s)
41
 
42
- Hassan Nahas, Jason Y. -H. Hsu, Theresa Gu, Adrian J. Y. Chee, Alfred C. H. Yu
43
-
44
- Correspondence emails:
45
- hassan.nahas@uwaterloo.ca
46
- jason.hsu@uwaterloo.ca
47
- theresa.gu@uwaterloo.ca
48
- alfred.yu@uwaterloo.ca
49
 
50
  ## Dataset Creation Date
51
 
@@ -53,28 +45,40 @@ alfred.yu@uwaterloo.ca
53
 
54
  ## License / Terms of Use
55
 
56
- [Creative Commons Attribution 4.0 International (CC BY 4.0)](https://creativecommons.org/licenses/by/4.0/legalcode.en).
57
-
58
- All human studies were approved by the University of Waterloo’s Human Research
59
- Ethics Board (ORE #46278). All included data was acquired from participants who
60
- provided both written and verbal consent prior to participating in the study
61
- regarding public data sharing.
62
 
63
  ## Intended Usage
64
 
65
- Developing, benchmarking, and evaluating methods for ultrasound image
66
- reconstruction, motion estimation, clutter filtering, multi-angle Doppler
67
- processing, and vector flow imaging (VFI) in carotid artery imaging.
68
 
69
  ## Dataset Characterization
70
 
71
  - **Data Collection Method:** In vivo imaging of human carotid arteries (Common Carotid Artery and Internal Carotid Artery).
72
  - **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).
73
- - **Acquisition system:**
74
- Raw RF data was acquired from programmable research scanners (US4R/US4R-Lite, US4US, Warsaw, Poland) equipped with an L14-5 linear array transducer.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
75
 
76
  ## Dataset Format
77
 
 
 
78
  Submitted in the [`zea` file format](https://zea.readthedocs.io/en/latest/) (one HDF5 file per acquisition).
79
 
80
  Per-sample contents of the converted HDF5:
@@ -100,33 +104,15 @@ Per-sample contents of the converted HDF5:
100
  | `data/color_doppler` | `[n_frames, z, x]` (+ `coordinates` `[z, x, 3]`) | float32 | m/s | Color Doppler map |
101
  | `scan/*` | -- | -- | -- | Probe geometry, sampling/center/demodulation frequency, t0 delays, sound speed, transmit angles, focus distances, transmit origins, apodizations, PRI... |
102
 
103
- All `coordinates` arrays are per-pixel Cartesian positions in meters, last axis
104
- `[x, y, z]` (y = 0 for 2-D maps).
105
-
106
- ## Shipped Example Acquisitions
107
-
108
- Two example acquisitions are included under `hdf5/` as a representative subset of
109
- the full dataset:
110
-
111
- | File | Subject | Anatomy | View | Condition | Frames |
112
- |---|---|---|---|---|---|
113
- | `hdf5/Acq0.hdf5` | 1 | Common Carotid Artery | Longitudinal | Baseline | 500 |
114
- | `hdf5/Acq62.hdf5` | 1 | Internal Carotid Artery | Cross-sectional | Baseline | 500 |
115
-
116
- Each common carotid artery frame comprises 2 steered plane-wave transmits (`n_tx = 2`), 2048 axial
117
- samples, and 128 receive channels. Each internal carotid artery frame comprises 1 steered plane-wave transmits (`n_tx = 1`), 1536 axial
118
- 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
 
122
  ## Dataset Quantification
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
127
- Artery and Internal Carotid Artery) in both longitudinal and cross-sectional
128
- views. In total, the dataset consists of 93 acquisitions, containing
129
- 36,000/60,000 frames of raw RF data per acquisition.
130
 
131
  ## Subject Metadata
132
 
@@ -135,7 +121,7 @@ views. In total, the dataset consists of 93 acquisitions, containing
135
  | **Total Number of Subjects** | 8 |
136
  | **Total Number of Files (Acquisitions)** | 93 |
137
  | **Sex Composition** | M: 6 (75.0%), F: 2 (25.0%) |
138
- | **Total RF Frames** | 4,476,000 |
139
 
140
  ## Known Issues
141
 
@@ -147,29 +133,19 @@ views. In total, the dataset consists of 93 acquisitions, containing
147
 
148
  ## Beamforming and Processing
149
 
150
- 1. **Pre-Filtering:**
151
- Channel RF data is pre-filtered using a 5 MHz bandpass filter before beamforming.
152
- 2. **GPU-Accelerated Beamforming (DAS):**
153
- Beamforming is carried out via a GPU-accelerated Delay-and-Sum (DAS) module.
154
  - **Aperture & Apodization:** 64-element Hanning window apodization and an F-number of 1.5.
155
  - **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:
156
  $$HRI = \frac{HRI_{+15^{\circ}} + HRI_{-15^{\circ}}}{2}$$
157
  - **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.
158
- 3. **Clutter Filtering:**
159
- 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).
160
- 4. **Multi-Angle Doppler Frequency Estimation:**
161
- Angle-specific Doppler frequencies are computed using an ensemble size of 64 frames with a step size of 1.
162
- - For acquisitions with 2 tx angles, we used the following Tx-Rx angles:
163
- Tx: [-10, -10, 10, 10]; Rx: [-10, 10, -10, 10]
164
- - For acquisitions with 1 tx angle:
165
- Tx: [-10, -10, -10]; Rx: [-10, 0, 10]
166
- 5. **Vector Doppler Velocity Estimation:**
167
- Lateral ($v_x$) and axial ($v_z$) velocity components are computed from the multi-angle Doppler frequency estimates using least-squares estimation.
168
-
169
- The full LITMUS processing pipeline (GPU DAS beamforming + multi-angle vector
170
- Doppler) is documented in [`convert.py`](convert.py). That script is included for
171
- provenance and reproducibility; it depends on the LITMUS core Python package and
172
- the raw acquisition frames, so it is not runnable from this folder alone.
173
 
174
  Papers relevant to our pipeline:
175
 
@@ -181,42 +157,17 @@ B. Y. S. Yiu and A. C. H. Yu, "Least-Squares Multi-Angle Doppler Estimators for
181
 
182
  ## Data Validation
183
 
184
- [`reconstruct.py`](reconstruct.py) builds a `zea.Pipeline` of DAS beamforming →
185
- envelope detection → normalization → log-compression **in code** and
186
- reconstructs a B-mode directly from `raw_data`, showing the raw-to-image flow
187
- without any config file. It also saves the pipeline to
188
- [`pipeline.yaml`](pipeline.yaml) as a shareable recipe. Comparing the
189
- reconstruction against the stored (LITMUS) B-mode is a sanity check that the
190
- acquisition parameters and probe geometry are recorded correctly, and serves as
191
- a reproducible reference reconstruction.
192
-
193
- When the vector-flow fields (`vector_velocity_x/z` + `power_doppler`) are present,
194
- a third panel overlays the vector velocity field on the stored B-mode. The
195
- overlay uses `draw_velocity_field`, a single self-contained (numpy + matplotlib)
196
- helper reproduced inside `reconstruct.py` from the LITMUS core Python package
197
- (`litmus.core_py.visualization`), so the script has no dependency on the full
198
- LITMUS GPU stack.
199
 
200
- The result is written to `reconstruct_output.png`:
201
-
202
- ![reference reconstruction](reconstruct_output.png)
203
-
204
- ### Example Usage of reconstruct.py
205
 
206
- ```bash
207
- # Reconstruct the default file (hdf5/Acq0.hdf5) at frame 100
208
- python reconstruct.py
209
 
210
- # Reconstruct a specific file and frame, and adjust the power-Doppler mask
211
- python reconstruct.py --input hdf5/Acq1.hdf5 --frame 250 --power-threshold 55.0
212
- ```
213
 
214
  ## Ethical Considerations
215
 
216
- All human studies were approved by the University of Waterloo’s Human Research
217
- Ethics Board (ORE #46278). All included data was acquired from participants who
218
- provided both written and verbal consent prior to participating in the study
219
- regarding public data sharing.
220
 
221
  ## Citation
222
 
 
1
  ---
2
+ name: waterloo-carotid
3
  pretty_name: UW-CarotidRF
4
  license: cc-by-4.0
5
  task_categories:
 
22
 
23
  # UW-Carotid RF
24
 
25
+ ![Reconstructed cineloop from Acq1.hdf5](assets/Acq1.gif)
 
 
 
26
 
27
+ *Cine loop of [`data/Acq1.hdf5`](https://huggingface.co/datasets/nvidia/OpenH-RF/blob/main/waterloo-carotid/data/Acq1.hdf5), rendered using provided velocity fields.*
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 <adrian.chee@uwaterloo.ca>
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/Acq1.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
  ## Dataset Quantification
110
 
111
  **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.
112
 
113
+ 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).
114
+ 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.
115
+
 
116
 
117
  ## Subject Metadata
118
 
 
121
  | **Total Number of Subjects** | 8 |
122
  | **Total Number of Files (Acquisitions)** | 93 |
123
  | **Sex Composition** | M: 6 (75.0%), F: 2 (25.0%) |
124
+ | **Total RF Frames** | 3,066,000 |
125
 
126
  ## Known Issues
127
 
 
133
 
134
  ## Beamforming and Processing
135
 
136
+ 1. **Pre-Filtering:** Channel RF data is pre-filtered using a 5 MHz bandpass filter before beamforming.
137
+ 2. **GPU-Accelerated Beamforming (DAS):** Beamforming is carried out via a GPU-accelerated Delay-and-Sum (DAS) module.
 
 
138
  - **Aperture & Apodization:** 64-element Hanning window apodization and an F-number of 1.5.
139
  - **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:
140
  $$HRI = \frac{HRI_{+15^{\circ}} + HRI_{-15^{\circ}}}{2}$$
141
  - **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.
142
+ 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, attenuation of 100 db).
143
+ 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.
144
+ - For acquisitions with 2 tx angles, we used the following Tx-Rx angles: Tx: [-10°, -10°, 10°, 10°]; Rx: [-10°, 10°, -10°, 10°]
145
+ - For acquisitions with 1 tx angle: Tx: [-10°, -10°, -10°]; Rx: [-10°, 0°, 10°]
146
+ 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.
147
+
148
+ 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.
 
 
 
 
 
 
 
 
149
 
150
  Papers relevant to our pipeline:
151
 
 
157
 
158
  ## Data Validation
159
 
160
+ `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.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
161
 
162
+ 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.
 
 
 
 
163
 
164
+ The result is written to `reconstruct_output.png`:
 
 
165
 
166
+ ![reference reconstruction](assets/reconstruct_output.png)
 
 
167
 
168
  ## Ethical Considerations
169
 
170
+ 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.
 
 
 
171
 
172
  ## Citation
173
 
waterloo-carotid/assets/Acq1.gif ADDED

Git LFS Details

  • SHA256: a7ddc9c3b02950531dc1cfbd1279383d71a886a5c7fb6dd4397a6805620a49a7
  • Pointer size: 132 Bytes
  • Size of remote file: 3.72 MB
waterloo-carotid/assets/main.png ADDED

Git LFS Details

  • SHA256: 16bcc813572089e65af87e72c41c70c2d4ce307eb8b065ce185b8342e45e9d77
  • Pointer size: 131 Bytes
  • Size of remote file: 255 kB
waterloo-carotid/assets/reconstruct_output.png ADDED

Git LFS Details

  • SHA256: 928d8153e200aa935c32166a8d09235928a74d0531d0924b58d48e53567022ce
  • Pointer size: 131 Bytes
  • Size of remote file: 429 kB
waterloo-carotid/pipeline.yaml CHANGED
@@ -18,6 +18,14 @@ pipeline:
18
  - 1.0
19
  - log_compress
20
  parameters:
 
 
 
 
 
 
 
 
21
  dynamic_range:
22
  - -50
23
  - 0
 
18
  - 1.0
19
  - log_compress
20
  parameters:
21
+ xlims:
22
+ - -0.019
23
+ - 0.019
24
+ zlims:
25
+ - 0.0
26
+ - 0.03
27
+ grid_size_x: 381
28
+ grid_size_z: 301
29
  dynamic_range:
30
  - -50
31
  - 0