Datasets:

ArXiv:
License:
wsimson commited on
Commit
b5c3b99
·
verified ·
1 Parent(s): 346e58b

Add waterloo-largeartery README + pipeline(s) from accepted_submissions

Browse files
waterloo-largeartery/README.md ADDED
@@ -0,0 +1,226 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: UW-FemVeinRF
3
+ license: cc-by-4.0
4
+ task_categories:
5
+ - other
6
+ tags:
7
+ - ultrasound
8
+ - rf
9
+ - openh-rf
10
+ - medical-imaging
11
+ - in-vivo
12
+ - femoral-vein
13
+ - beamforming
14
+ - vector-doppler
15
+ - dealiasing
16
+ - vector-flow-imaging
17
+ language:
18
+ - en
19
+ size_categories:
20
+ - n<500K
21
+ ---
22
+
23
+ # UW-FemVein RF
24
+
25
+ Dataset consisting of raw RF data and vector velocity measurements of femoral vein acquired in studies conducted by VORTEX @
26
+ University of Waterloo.
27
+
28
+ ## Dataset Description
29
+
30
+ This is a dataset consisting of raw RF frames (plane wave) and vector flow
31
+ profiles of the femoral vein in humans, acquired using a programmable research scanner configured for
32
+ high frame rate vector flow imaging. The data was collected as part of studies
33
+ conducted by the VORTEX research group at the University of Waterloo, focusing on
34
+ venous hemodynamics under muscular contraction and head up tilt.
35
+
36
+ ## Dataset Contributor(s)
37
+
38
+ Hassan Nahas, Jeremy N. Cohen, Eudoxia Zafiris, Skye H.T. Ling, Alfred C.H. Yu, Jason S. Au
39
+
40
+ Correspondence emails:
41
+ hassan.nahas@uwaterloo.ca
42
+ jason.au@uwaterloo.ca
43
+
44
+
45
+ ## Dataset Creation Date
46
+
47
+ 08/20/2026
48
+
49
+ ## License / Terms of Use
50
+
51
+ [Creative Commons Attribution 4.0 International (CC BY 4.0)](https://creativecommons.org/licenses/by/4.0/legalcode.en).
52
+
53
+ All human studies were approved by the University of Waterloo’s Human Research
54
+ Ethics Board (ORE #46018). All included data was acquired from participants who
55
+ provided both written and verbal consent prior to participating in the study
56
+ regarding public data sharing.
57
+
58
+ ## Intended Usage
59
+
60
+ Developing, benchmarking, and evaluating methods for ultrasound image
61
+ reconstruction, motion estimation, clutter filtering, multi-angle Doppler
62
+ processing, and vector flow imaging (VFI) in venous imaging.
63
+
64
+ ## Dataset Characterization
65
+
66
+ - **Data Collection Method:** In vivo imaging of human femoral veins.
67
+ - **Labeling Method:** Label contains target vessel (Anatomy), view direction (Longitudinal), and physiological condition (Contraction + head up tilt).
68
+ - **Acquisition system:**
69
+ Raw RF data was acquired from programmable research scanners (US4R, US4US, Warsaw, Poland) equipped with an AL2442 linear array transducer.
70
+
71
+ ## Dataset Format
72
+
73
+ Submitted in the [`zea` file format](https://zea.readthedocs.io/en/v0.1.0a3/data-acquisition.html) (one HDF5 file per acquisition).
74
+
75
+ Per-sample contents of the converted HDF5:
76
+
77
+ | Group / field | Shape | Dtype | Units | Description |
78
+ |---|---|---|---|---|
79
+ | `metadata/credit` | `[]` | str | -- | Dataset attribution (LITMUS @ University of Waterloo) |
80
+ | `metadata/subject/id` | `[]` | str | -- | Participant ID (needed for subject-wise splits) |
81
+ | `metadata/subject/type` | `[]` | str | -- | Subject type (`human`) |
82
+ | `metadata/subject/age` | `[]` | uint8 | years | Subject age (`0` if not available) |
83
+ | `metadata/subject/sex` | `[]` | str | -- | Subject sex (`M` or `F`) |
84
+ | `metadata/annotations/anatomy` | `[]` | str | -- | Target artery (`Femoral Vein`) |
85
+ | `metadata/annotations/view` | `[]` | str | -- | View orientation (`Longitudinal`) |
86
+ | `metadata/annotations/label` | `[]` | str | -- | Physiological condition ('Contraction 8Kg HUT 40') |
87
+ | `probe/name` | `[]` | str | -- | Probe identifier (`AL2442`) |
88
+ | `probe/type` | `[]` | str | -- | Probe structure type (`linear`) |
89
+ | `probe/probe_geometry` | `[192, 3]` | float32 | m | Transducer element Cartesian positions (x, y, z) |
90
+ | `data/raw_data` | `[n_frames, n_tx, n_ax, n_el, 1]` | float32 | -- | Raw RF channel data |
91
+ | `data/image` | `[n_frames, z, x]` (+ `coordinates` `[z, x, 3]`) | float32 | dB | Stored log-compressed B-mode intensity (relative to peak) |
92
+ | `data/vector_velocity_x` | `[n_frames, z, x]` (+ `coordinates` `[z, x, 3]`) | float32 | m/s | Lateral component of vector velocity ($v_x$) |
93
+ | `data/vector_velocity_z` | `[n_frames, z, x]` (+ `coordinates` `[z, x, 3]`) | float32 | m/s | Axial component of vector velocity ($v_z$) |
94
+ | `data/vector_velocity_x_deal` | `[n_frames, z, x]` (+ `coordinates` `[z, x, 3]`) | float32 | m/s | Lateral component of dealiased vector velocity ($v_x$) |
95
+ | `data/vector_velocity_z_deal` | `[n_frames, z, x]` (+ `coordinates` `[z, x, 3]`) | float32 | m/s | Axial component of dealiased vector velocity ($v_z$) |
96
+ | `data/power_doppler` | `[n_frames, z, x]` (+ `coordinates` `[z, x, 3]`) | float32 | dB | Power Doppler intensity |
97
+ | `data/color_doppler` | `[n_frames, z, x]` (+ `coordinates` `[z, x, 3]`) | float32 | m/s | Color Doppler map |
98
+ | `scan/*` | -- | -- | -- | Probe geometry, sampling/center/demodulation frequency, t0 delays, sound speed, transmit angles, focus distances, transmit origins, apodizations, PRI... |
99
+
100
+ All `coordinates` arrays are per-pixel Cartesian positions in meters, last axis
101
+ `[x, y, z]` (y = 0 for 2-D maps).
102
+
103
+ ## Shipped Example Acquisitions
104
+
105
+ One example acquisition is included under `hdf5/` as a representative subset of
106
+ the full dataset:
107
+
108
+ | File | Subject | Anatomy | View | Condition | Frames |
109
+ |---|---|---|---|---|---|
110
+ | `hdf5/Acq0.hdf5` | 1 | Femoral Vein | Longitudinal | Contraction 8Kg HUT 40 | 9000-12000 |
111
+
112
+ Each femoral vein acquisition comprises 2 steered plane-wave transmits (`n_tx = 2`), 2048/3072 axial
113
+ samples, and 192 receive channels. Note that example provided was convrted with start-frame=9000 to get to the interesting part.
114
+
115
+ The frame count in these examples is truncated for demonstration; full acquisitions contain the frame counts described below.
116
+
117
+ ## Dataset Quantification
118
+
119
+ Data was collected from 15 participants and consists of 15 acquisitions (one per participant), containing
120
+ 24,000 frames of raw RF data per acquisition. Each participant performed isometric plantarflexion
121
+ contractions at 8 Kg under head up tilt of 40 degrees.
122
+
123
+ ## Subject Metadata
124
+
125
+ | Metric | Value |
126
+ | :--- | :--- |
127
+ | **Total Number of Subjects** | 15 |
128
+ | **Total Number of Files (Acquisitions)** | 15 |
129
+ | **Sex Composition** | M: 8, F: 7 |
130
+ | **Total RF Frames** | 360,000 |
131
+
132
+ ## Known Issues
133
+
134
+ - Participants may overlap with other UWaterloo submissions.
135
+ - Due to hardware, some acquisitions may have elevated or spikey Doppler noise on the left side of the image.
136
+ - Some acquisitions may have not hit the target view optimally, leading to poor flow detection.
137
+ - Dealiased velocity vector fields rely on speckle tracking which may be more sensitive to noise in low Doppler power conditions.
138
+
139
+ ## Beamforming and Processing
140
+
141
+ 1. **Pre-Filtering:**
142
+ Channel RF data is pre-filtered to remove hardware artifacts and out-of-band noise using a 5 MHz bandpass filter before beamforming.
143
+ 2. **GPU-Accelerated Beamforming (DAS):**
144
+ Beamforming is carried out via a GPU-accelerated Delay-and-Sum (DAS) module.
145
+ - **Aperture & Apodization:** 128-element Hanning window apodization and an F-number of 1.5.
146
+ - **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:
147
+ $$HRI = \frac{HRI_{+15^{\circ}} + HRI_{-15^{\circ}}}{2}$$
148
+ - **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.
149
+ 3. **Clutter Filtering:**
150
+ 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).
151
+ 4. **Multi-Angle Doppler Frequency Estimation:**
152
+ Angle-specific Doppler frequencies are computed using an ensemble size of 64 frames with a step size of 1.
153
+ - For conventional vector velocity estimation, we used the following Tx-Rx angles:
154
+ Tx: [-10, -10, 10, 10]; Rx: [-10, 10, -10, 10]
155
+ - For dealiased vector velocity estimation, we used the following Tx-Rx angles:
156
+ Tx: [-10, -10, -10,-10, 10, 10]; Rx: [-10, -3, 6, 10, -6, 3,10]
157
+ - Color Doppler map is selected as the first of these (Tx: -10, Rx = -10)
158
+ 5. **Vector Doppler Velocity Estimation:**
159
+ Lateral ($v_x$) and axial ($v_z$) velocity components are computed from the multi-angle Doppler frequency estimates using GPU-accelerated least-squares estimation.
160
+ 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
163
+ Doppler) is documented in [`convert.py`](convert.py). That script is included for
164
+ provenance and reproducibility; it depends on the LITMUS core Python package and
165
+ the raw acquisition frames, so it is not runnable from this folder alone.
166
+
167
+ Papers relevant to our pipeline:
168
+
169
+ J. N. Cohen, E. Zafiris, J. N. Jasiak, S. H. T. Ling, O. M. Decyk, H. Nahas, A. C. H. Yu, and J. S. Au, "The influence of aging on graded peripheral venous return and complex blood flow features through human veins." GeroScience (2026). https://doi.org/10.1007/s11357-026-02378-6
170
+
171
+ H. Nahas, B. Y. S. Yiu, A. J. Y. Chee, T. Ishii and A. C. H. Yu, "Bedside Ultrasound Vector Doppler Imaging System With GPU Processing and Deep Learning," in IEEE Transactions on Ultrasonics, Ferroelectrics, and Frequency Control, vol. 72, no. 8, pp. 1079-1094, Aug. 2025, doi: 10.1109/TUFFC.2025.3582773
172
+
173
+ B. Y. S. Yiu and A. C. H. Yu, "Least-Squares Multi-Angle Doppler Estimators for Plane-Wave Vector Flow Imaging," in IEEE Transactions on Ultrasonics, Ferroelectrics, and Frequency Control, vol. 63, no. 11, pp. 1733-1744, Nov. 2016, doi: 10.1109/TUFFC.2016.2582514
174
+
175
+ ## Data Validation
176
+
177
+ [`reconstruct.py`](reconstruct.py) builds a `zea.Pipeline` of DAS beamforming →
178
+ envelope detection → normalization → log-compression **in code** and
179
+ reconstructs a B-mode directly from `raw_data`, showing the raw-to-image flow
180
+ without any config file. It also saves the pipeline to
181
+ [`pipeline.yaml`](pipeline.yaml) as a shareable recipe. Comparing the
182
+ reconstruction against the stored (LITMUS) B-mode is a sanity check that the
183
+ acquisition parameters and probe geometry are recorded correctly, and serves as
184
+ a reproducible reference reconstruction.
185
+
186
+ When the vector-flow fields (`vector_velocity_x/z`/`vector_velocity_x/z_deal` + `power_doppler`) are present,
187
+ a third panel overlays the vector velocity field on the stored B-mode. The
188
+ overlay uses `draw_velocity_field`, a single self-contained (numpy + matplotlib)
189
+ helper reproduced inside `reconstruct.py` from the LITMUS core Python package
190
+ (`litmus.core_py.visualization`), so the script has no dependency on the full
191
+ LITMUS GPU stack.
192
+
193
+ The result is written to `reconstruct_output.png`:
194
+
195
+ ![reference reconstruction](reconstruct_output.png)
196
+
197
+ ### Example Usage of reconstruct.py
198
+
199
+ ```bash
200
+ # Reconstruct the default file (hdf5/Acq0.hdf5) at frame 100
201
+ python reconstruct.py
202
+
203
+ # Reconstruct a specific file and frame, and adjust the power-Doppler mask
204
+ python reconstruct.py --input "hdf5/Acq0.hdf5" --frame 700 --power-threshold 58 --vmax 1
205
+ ```
206
+
207
+ ## Ethical Considerations
208
+
209
+ All human studies were approved by the University of Waterloo’s Human Research
210
+ Ethics Board (ORE #46018). All included data was acquired from participants who
211
+ provided both written and verbal consent prior to participating in the study
212
+ regarding public data sharing.
213
+
214
+ ## Citation
215
+
216
+ ```bibtex
217
+ @article{Cohen2026,
218
+ author = {Cohen, Jeremy N. and Zafiris, Eudoxia and Jasiak, Jessica N. and Ling, Skye H. T. and Decyk, Olena M. and Nahas, Hassan and Yu, Alfred C. H. and Au, Jason S.},
219
+ title = {The influence of aging on graded peripheral venous return and complex blood flow features through human veins},
220
+ journal = {GeroScience},
221
+ year = {2026},
222
+ issn = {2509-2723},
223
+ doi = {10.1007/s11357-026-02378-6},
224
+ url = {https://doi.org/10.1007/s11357-026-02378-6}
225
+ }
226
+ ```
waterloo-largeartery/pipeline.yaml ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ pipeline:
2
+ operations:
3
+ - name: keras.ops.cast
4
+ params:
5
+ dtype: float32
6
+ - name: band_pass_filter
7
+ params:
8
+ passband:
9
+ - 3000000.0
10
+ - 7000000.0
11
+ - demodulate
12
+ - name: beamform
13
+ params:
14
+ num_patches: 1000
15
+ - envelope_detect
16
+ - name: normalize
17
+ params:
18
+ output_range:
19
+ - 0.0
20
+ - 1.0
21
+ - log_compress