File size: 6,543 Bytes
e36d767 82c39f7 e36d767 82c39f7 e36d767 82c39f7 e36d767 82c39f7 e36d767 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 | ---
license: cc-by-nc-4.0
task_categories:
- time-series-forecasting
- other
language:
- en
tags:
- ppg
- photoplethysmography
- heart-rate
- ecg
- physiological-signals
- biosignals
- wearable
- multisite
- earring
- ring
- smartwatch
pretty_name: Multisite PPG Dataset
size_categories:
- 10G<n<100G
---
# Multisite PPG Dataset
A multisite photoplethysmography (PPG) dataset: long-duration recordings from four body locations, synchronized activity logs, and ECG-derived heart-rate ground truth. It supports PPG-based HR estimation, signal-quality assessment, motion-artifact handling, and cross-site generalization research.
For data preprocessing and baseline training code, see our GitHub repository: [anonymous-ppg/wearable-ppg-dataset](https://github.com/anonymous-ppg/wearable-ppg-dataset).
---
## At a glance
| | |
| --- | --- |
| **Approx. size** | ~18.6 GB |
| **Participants** | 20 (`P1`–`P20`) |
| **Setting** | Multi-day, free-living |
| **Wearable sites** | Earring, Necklace, Ring, Watch |
| **Wearable modalities** | Green PPG, IR PPG, 3-axis accelerometer, skin temperature |
| **References** | Polar H10 ECG + 3-axis accelerometer |
| **HR ground truth** | From synchronized Polar ECG (Pan–Tompkins + additional cleaning) |
### Sampling rates
| Source | Signals | Rate |
| --- | --- | ---: |
| Wearable | PPG, accelerometer, temperature | **100 Hz** |
| Polar | ECG | **130 Hz** |
| Polar | Accelerometer | **25 Hz** |
---
## Repository layout
Three main components ship in this repo:
| Path | Role |
| --- | --- |
| `raw_data/` | Raw wearable streams, Polar references, activity logs |
| `ppg_windowed_data/` | 8 s windows aligned with ECG-derived HR labels |
| `sample_data/` | Tiny subset for format checks / tutorials |
Top-level tree:
```text
Multisite-PPG/
├── raw_data/
├── ppg_windowed_data/
├── sample_data/
├── .gitattributes
└── croissant.json # ML Croissant metadata
```
---
## raw_data/
One folder per participant: wearable files at four sites, Polar references, and an activity log.
### Wearable: `P<N>_<Site>_raw.npz`
`<Site>` ∈ {`Earring`, `Necklace`, `Ring`, `Watch`}.
Each file holds timestamped green + IR PPG, 3-axis accelerometer, skin temperature, and alignment metadata for Polar.
### Polar references
| File | Content |
| --- | --- |
| `P<N>_polar_ecg_raw.npz` | Polar H10 ECG |
| `P<N>_polar_accl_raw.npz` | Polar H10 3-axis accelerometer |
### Activity log
`P<N>_activity_log.txt` — timestamped labels as `start <label>` / `end <label>` pairs.
---
## ppg_windowed_data/
Pre-windowed segments per participant and site, aligned with ECG-derived HR.
```text
ppg_windowed_data/
├── P1/
│ ├── alignment_windows_P1_Earring.npz
│ ├── alignment_windows_P1_Necklace.npz
│ ├── alignment_windows_P1_Ring.npz
│ └── alignment_windows_P1_Watch.npz
├── P2/
│ └── ...
└── P<N>/
└── ...
```
Each `alignment_windows_*.npz` includes: 8 s wearable PPG windows, motion channels, aligned ECG reference, ECG valid length, and HR labels.
| Parameter | Value |
| --- | ---: |
| Window length | 8 s |
| Stride | 1 s |
---
## sample_data/
Same layout as `ppg_windowed_data/`, but small enough for quick inspection without pulling the full release.
Details in its own readme.
---
## Quick start
### Install
```bash
pip install huggingface_hub numpy
```
### Download dataset
**Sample only** (~1.4 GB):
```python
from huggingface_hub import snapshot_download
snapshot_download(
repo_id="anonymous-ppg-dataset/Multisite-PPG",
repo_type="dataset",
local_dir="multisite-ppg-submission",
allow_patterns="sample_data/*",
)
```
**Full dataset** (~18.6 GB):
```python
from huggingface_hub import snapshot_download
snapshot_download(
repo_id="anonymous-ppg-dataset/Multisite-PPG",
repo_type="dataset",
local_dir="multisite-ppg-submission",
)
```
---
## Loading in Python
```python
from pathlib import Path
import numpy as np
# Example file:
# Multisite-PPG/ppg_windowed_data/P1/alignment_windows_P1_Earring.npz
npz_path = Path("Multisite-PPG/ppg_windowed_data/P1/alignment_windows_P1_Earring.npz")
with np.load(npz_path) as z: # allow_pickle=False by default
ppg_green = z["ppg_green"] # (N, T)
ppg_ir = z["ppg_ir"] # (N, T)
hr_gt = z["hr_gt"] # (N,)
t0_ms = z["t0_ms"] # (N,)
t1_ms = z["t1_ms"] # (N,)
ppg_fs = float(z["ppg_fs"]) # scalar, typically 100.0
ecg = z["ecg"] # (N, Lmax), zero-padded
ecg_valid_len = z["ecg_valid_len"] # (N,), valid ECG samples per window
accel_x = z["accel_x"] # (N, T)
accel_y = z["accel_y"] # (N, T)
accel_z = z["accel_z"] # (N, T)
print("ppg_green:", ppg_green.shape, "hr_gt:", hr_gt.shape, "ppg_fs:", ppg_fs)
# Example: recover valid (unpadded) ECG for one window
i = 0
ecg_i = ecg[i, : int(ecg_valid_len[i])]
```
- Use `ppg_green` or `ppg_ir` as model input windows.
- Use `hr_gt` as the heart-rate label aligned to each window.
- Use `ecg_valid_len` to remove right-side zero padding from `ecg`.
---
## Intended uses
- PPG-based heart-rate estimation under motion
- Signal-quality assessment and artifact detection
- Cross-site generalization and multisite wearable modeling
- Benchmarking preprocessing and representation learning on biosignals
---
## Limitations
- Free-living recordings: not strictly gap-free continuous sessions.
- Motion artifacts and low-quality segments occur naturally.
- Activity labels are user-logged and sparse, not exhaustive.
- **Not** validated for clinical decision support.
---
## Ethics and anonymization
Participant IDs are replaced with codes (`P1` … `P20`). This release does not include personally identifying information.
---
## License
Released under [**CC BY-NC 4.0**](https://creativecommons.org/licenses/by-nc/4.0/) (Attribution–NonCommercial).
**Allowed:** non-commercial research and education; derivative preprocessing with attribution.
**Not allowed without separate permission:** commercial use; re-identification attempts; clinical deployment without independent validation.
Full legal text: [Creative Commons BY-NC 4.0](https://creativecommons.org/licenses/by-nc/4.0/legalcode).
---
## Extra metadata
Machine-readable dataset description: see [`croissant.json`](https://mlcommons.org/croissant/) at the repository root.
---
|