Dataset Viewer
Auto-converted to Parquet Duplicate
subject
stringclasses
15 values
chunk
int32
0
5.32k
start_s
float64
0
10.6k
activity
listlengths
4
8
activity_name
stringclasses
9 values
label_hr_bpm
float64
41.7
187
⌀
label_window
int32
0
5.32k
⌀
chest_ecg
listlengths
700
1.4k
chest_resp
listlengths
700
1.4k
chest_acc
listlengths
3
3
wrist_bvp
listlengths
64
128
wrist_acc
listlengths
3
3
wrist_eda
listlengths
4
8
wrist_temp
listlengths
4
8
rpeaks
listlengths
1
7
S1
0
0
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
transient
49.611369
0
[ 0.015609741210937498, 0.01812744140625, 0.0175323486328125, 0.0134124755859375, 0.0119476318359375, 0.01336669921875, 0.0130462646484375, 0.0131378173828125, 0.0214691162109375, 0.0314483642578125, 0.0368499755859375, 0.0358428955078125, 0.0355682373046875, 0.0321807861328125, 0.02632141...
[ 4.44183349609375, 4.45098876953125, 4.473876953125, 4.47845458984375, 4.510498046875, 4.45709228515625, 4.49066162109375, 4.48760986328125, 4.47845458984375, 4.52880859375, 4.49676513671875, 4.51507568359375, 4.510498046875, 4.522705078125, 4.41436767578125, 4.5501708984375, 4.548645...
[ [ 0.8564000129699707, 0.8555999994277954, 0.8519999980926514, 0.8525999784469604, 0.8525999784469604, 0.8525999784469604, 0.8519999980926514, 0.8514000177383423, 0.8533999919891357, 0.854200005531311, 0.8552000522613525, 0.8538000583648682, 0.8552000522613525, ...
[ 7.28, 6.33, 5.46, 4.6, 3.74, 2.86, 2.03, 1.27, 0.57, -0.2, -1.17, -2.48, -4.14, -6.07, -8.03, -9.84, -11.36, -12.61, -13.73, -14.94, -16.46, -18.4, -20.81, -23.6, -26.58, -29.54, -32.28, -34.73, -37.02, -39.43, -42.4, -46.31, -51.27, -56.96, -62.6,...
[ [ -0.765625, -0.765625, -0.765625, -0.765625, -0.75, -0.765625, -0.765625, -0.765625, -0.765625, -0.765625, -0.765625, -0.765625, -0.765625, -0.765625, -0.765625, -0.75, -0.765625, -0.75, -0.765625, -0.765625, -0.765625, -0.75, ...
[ 4.722437, 4.728843, 4.718594, 4.717312, 4.713469, 4.712188, 4.716032, 4.704501 ]
[ 32.13, 32.16, 32.16, 32.16, 32.16, 32.15, 32.15, 32.15 ]
[ 240, 1174 ]
S1
1
2
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
transient
50.323992
1
[0.1597137451171875,0.126251220703125,0.0975494384765625,0.0690765380859375,0.0414276123046875,0.016(...TRUNCATED)
[2.91595458984375,2.8472900390625,2.91900634765625,2.935791015625,2.28118896484375,2.90985107421875,(...TRUNCATED)
[[0.8519999980926514,0.850600004196167,0.8489999771118164,0.8489999771118164,0.8483999967575073,0.84(...TRUNCATED)
[6.34,9.78,12.97,15.82,18.17,19.99,21.33,22.39,23.37,24.46,25.75,27.18,28.65,30.05,31.3,32.37,33.27,(...TRUNCATED)
[[-0.75,-0.75,-0.75,-0.765625,-0.75,-0.75,-0.75,-0.75,-0.75,-0.765625,-0.765625,-0.75,-0.75,-0.75,-0(...TRUNCATED)
[ 4.698095, 4.700657, 4.695532, 4.691689, 4.701939, 4.687846, 4.684002, 4.682721 ]
[ 32.15, 32.15, 32.15, 32.15, 32.15, 32.15, 32.15, 32.15 ]
[ 2128 ]
S1
2
4
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
transient
52.708336
2
[0.0146026611328125,0.0146942138671875,0.0112152099609375,0.0047149658203125,0.00531005859375,0.0063(...TRUNCATED)
[-1.62353515625,-1.63116455078125,-1.629638671875,-1.59759521484375,-1.62200927734375,-1.60064697265(...TRUNCATED)
[[0.8300000429153442,0.8322000503540039,0.8289999961853027,0.8315999507904053,0.8322000503540039,0.8(...TRUNCATED)
[7.7,6.02,4.23,2.46,0.74,-0.93,-2.62,-4.36,-6.16,-7.96,-9.64,-11.1,-12.33,-13.38,-14.38,-15.44,-16.6(...TRUNCATED)
[[-1.046875,-1.171875,-0.828125,-0.734375,-0.921875,-0.828125,-0.53125,-0.625,-0.78125,-0.75,-0.7656(...TRUNCATED)
[ 4.681439, 4.687846, 4.727562, 4.700657, 4.728843, 4.732687, 4.721156, 4.695532 ]
[ 32.15, 32.15, 32.15, 32.15, 32.15, 32.15, 32.15, 32.15 ]
[ 3099, 3907 ]
S1
3
6
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
transient
55.640794
3
[-0.3076171875,-0.3113250732421875,-0.312652587890625,-0.3059234619140625,-0.2967681884765625,-0.289(...TRUNCATED)
[0.41656494140625,0.4119873046875,0.38604736328125,0.38604736328125,0.38909912109375,0.408935546875,(...TRUNCATED)
[[0.7630000114440918,0.7148000001907349,0.7037999629974365,0.7502000331878662,0.8090000152587891,0.8(...TRUNCATED)
[-120.35,-108.51,-98.97,-91.45,-84.97,-78.29,-70.36,-60.68,-49.41,-37.29,-25.29,-14.33,-4.94,2.8,9.3(...TRUNCATED)
[[-0.859375,-0.890625,-0.859375,-0.796875,-0.796875,-0.71875,-0.890625,-0.859375,-0.953125,-1.03125,(...TRUNCATED)
[ 4.740374, 4.750623, 4.746779, 4.749342, 4.751904, 4.746779, 4.745499, 4.757029 ]
[ 32.15, 32.13, 32.13, 32.13, 32.13, 32.15, 32.15, 32.15 ]
[ 4733, 5404 ]
S1
4
8
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
transient
57.658406
4
[0.6041107177734375,0.6086883544921875,0.6115264892578125,0.6160125732421875,0.62054443359375,0.6187(...TRUNCATED)
[0.1983642578125,0.1617431640625,0.152587890625,0.15716552734375,0.177001953125,0.14801025390625,0.1(...TRUNCATED)
[[0.8894000053405762,0.8888000249862671,0.889799952507019,0.8874000310897827,0.8894000053405762,0.88(...TRUNCATED)
[-7.06,-10.67,-14.96,-19.6,-24.25,-28.65,-32.73,-36.59,-40.43,-44.53,-49.2,-54.63,-60.72,-66.94,-72.(...TRUNCATED)
[[-1.015625,-1.015625,-1.0,-1.0,-1.015625,-1.015625,-1.015625,-1.0,-1.0,-1.015625,-1.015625,-1.0,-1.(...TRUNCATED)
[ 4.755748, 4.763435, 4.764716, 4.765997, 4.753185, 4.75831, 4.774965, 4.783934 ]
[ 32.15, 32.16, 32.16, 32.16, 32.16, 32.15, 32.15, 32.15 ]
[ 6382 ]
S1
5
10
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
transient
58.91155
5
[0.0076446533203125,0.0090179443359375,0.0084228515625,0.01116943359375,0.016754150390625,0.01698303(...TRUNCATED)
[-1.165771484375,-1.15509033203125,-1.17034912109375,-1.15814208984375,-1.17645263671875,-1.13983154(...TRUNCATED)
[[0.8885999917984009,0.8877999782562256,0.8877999782562256,0.8896000385284424,0.8855999708175659,0.8(...TRUNCATED)
[39.96,38.96,37.78,36.37,34.7,32.84,30.87,28.9,27.01,25.13,23.2,21.09,18.71,16.03,13.06,9.84,6.4,2.8(...TRUNCATED)
[[-1.03125,-0.90625,-0.9375,-1.0,-0.953125,-0.96875,-0.953125,-1.0,-1.015625,-0.984375,-1.0,-0.98437(...TRUNCATED)
[ 4.792902, 4.753185, 4.739092, 4.717312, 4.746779, 4.735249, 4.71475, 4.722437 ]
[ 32.15, 32.15, 32.15, 32.15, 32.15, 32.13, 32.13, 32.13 ]
[ 7231, 7950 ]
S1
6
12
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
transient
57.976459
6
[-0.0762176513671875,-0.082122802734375,-0.0940704345703125,-0.0927886962890625,-0.0832672119140625,(...TRUNCATED)
[-1.470947265625,-1.495361328125,-1.470947265625,-1.4923095703125,-1.50604248046875,-1.4877319335937(...TRUNCATED)
[[0.8314000368118286,0.829800009727478,0.8300000429153442,0.8286000490188599,0.8270000219345093,0.82(...TRUNCATED)
[87.64,86.6,84.92,82.27,78.56,73.88,68.48,62.64,56.62,50.6,44.74,39.22,34.2,29.84,26.13,22.86,19.64,(...TRUNCATED)
[[-0.953125,-0.859375,-0.859375,-0.984375,-0.984375,-1.09375,-1.234375,-1.15625,-1.109375,-1.1875,-1(...TRUNCATED)
[ 4.781372, 4.824932, 4.927425, 4.97611, 4.963298, 4.944081, 4.950487, 4.93255 ]
[ 32.13, 32.15, 32.15, 32.15, 32.15, 32.13, 32.13, 32.13 ]
[ 8696, 9351 ]
S1
7
14
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
transient
58.676292
7
[-0.0919647216796875,-0.0942535400390625,-0.0850982666015625,-0.0714111328125,-0.0703582763671875,-0(...TRUNCATED)
[-1.78070068359375,-1.79443359375,-1.81121826171875,-1.83258056640625,-1.8524169921875,-1.8478393554(...TRUNCATED)
[[0.8336000442504883,0.8314000368118286,0.8312000036239624,0.8314000368118286,0.829800009727478,0.82(...TRUNCATED)
[-101.46,-85.68,-69.78,-53.39,-36.17,-18.03,0.67,19.17,36.49,51.74,64.37,74.4,82.41,89.24,95.72,102.(...TRUNCATED)
[[-0.25,-0.25,-0.28125,-0.265625,-0.28125,-0.3125,-0.296875,-0.1875,-0.1875,-0.125,-0.109375,-0.0625(...TRUNCATED)
[ 4.967142, 4.927425, 4.926144, 4.937675, 4.881303, 4.894115, 4.900521, 4.864648 ]
[ 32.13, 32.13, 32.13, 32.13, 32.13, 32.15, 32.15, 32.15 ]
[ 10047, 10780 ]
S1
8
16
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
transient
62.3508
8
[-0.1058807373046875,-0.10089111328125,-0.0938873291015625,-0.0916900634765625,-0.0908203125,-0.0864(...TRUNCATED)
[4.72412109375,4.742431640625,4.754638671875,4.78668212890625,4.73175048828125,4.57611083984375,4.76(...TRUNCATED)
[[0.8744000196456909,0.8752000331878662,0.875,0.8766000270843506,0.878600001335144,0.875399947166442(...TRUNCATED)
[83.63,46.2,11.78,-18.33,-43.42,-63.41,-78.67,-89.85,-97.59,-102.31,-104.06,-102.8,-98.7,-92.51,-85.(...TRUNCATED)
[[-0.71875,-0.703125,-0.671875,-0.734375,-0.875,-0.859375,-0.8125,-1.1875,-1.234375,-0.90625,-0.8593(...TRUNCATED)
[ 4.865929, 4.863367, 4.897958, 4.941518, 4.915895, 4.913332, 4.891552, 4.885147 ]
[ 32.15, 32.13, 32.13, 32.13, 32.13, 32.15, 32.15, 32.15 ]
[ 11476, 12232 ]
S1
9
18
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
transient
69.113975
9
[-0.1490936279296875,-0.15216064453125,-0.151702880859375,-0.1452484130859375,-0.13861083984375,-0.1(...TRUNCATED)
[-3.40423583984375,-3.39813232421875,-3.38287353515625,-3.39508056640625,-3.38592529296875,-3.395080(...TRUNCATED)
[[0.8522000312805176,0.8509999513626099,0.8522000312805176,0.850600004196167,0.8503999710083008,0.85(...TRUNCATED)
[-7.41,3.89,14.59,24.58,33.77,42.02,49.33,55.77,61.46,66.46,70.64,73.81,75.87,77.1,78.22,80.07,83.26(...TRUNCATED)
[[-0.859375,-0.84375,-0.859375,-0.859375,-0.84375,-0.859375,-0.875,-0.859375,-0.859375,-0.875,-0.859(...TRUNCATED)
[ 4.897958, 4.900521, 4.89924, 4.897958, 4.896677, 4.901802, 4.914614, 4.892834 ]
[ 32.15, 32.15, 32.15, 32.15, 32.15, 32.15, 32.15, 32.15 ]
[ 13086, 13798 ]
End of preview. Expand in Data Studio

PPG-DaLiA

Task Dataset Format Subjects Hours License

Unofficial mirror of PPG-DaLiA (UCI Machine Learning Repository): wrist PPG, acceleration, EDA and temperature (Empatica E4) and chest ECG, respiration and acceleration (RespiBAN) from 15 people during about 2.5 hours of daily-life activities each, with ECG-based heart-rate labels on 8 s windows, in a viewer-ready Parquet layout with exact values.

Disclaimer

This repository is not an official release of PPG-DaLiA.

The dataset was created by Attila Reiss (Robert Bosch GmbH), Ina Indlekofer (Bosch Sensortec GmbH) and Philip Schmidt (Robert Bosch GmbH and University of Siegen); Kristof Van Laerhoven (University of Siegen) co-authored the accompanying paper. It is published in the UCI Machine Learning Repository. This repository does not claim ownership of the data. If you are an author or rights holder and want this repository changed or removed, please open a discussion and it will be addressed promptly.

These are recordings from real people. Do not attempt to identify anyone in them. This dataset is for research and is not a medical device or a basis for clinical decisions.

Source and verification: built from the official UCI package ppg+dalia.zip (SHA-256 in stats.json). The synchronised data come from each subject's SX.pkl, read with a restricted unpickler that can only rebuild numpy arrays. Every wrist stream in SX.pkl was traced back to the raw E4 files sample by sample. The questionnaire matches SX_quest.csv, and every row was read back from Parquet and compared with SX.pkl.


Dataset Overview

Each subject wore a RespiBAN Professional on the chest and an Empatica E4 on the non-dominant wrist while following a protocol of eight activities, carried out as naturally as possible, with transient periods between them:

ID Activity
1 sitting reading, as a motion-free baseline
2 stairs climbing six floors up and down, twice (once down for S1 and S2)
3 table soccer 1 vs 1 with the supervisor
4 cycling about 2 km outdoors
5 driving about 15 minutes on a set route
6 lunch queuing, fetching food, eating, talking in the canteen
7 walking back from the canteen to the office
8 working at the desk, mainly on a computer
0 transient moving between activities

The heart-rate ground truth comes from the chest ECG. The authors detected R-peaks, corrected them by hand, computed the instantaneous heart rate and averaged it over 8 s windows shifted by 2 s, the usual setup for PPG-based heart-rate estimation. The task is to estimate that heart rate from the wrist PPG and acceleration.

Device Signal Rate
RespiBAN (chest) ECG, respiration, 3-axis acceleration 700 Hz
E4 (wrist) BVP (PPG) 64 Hz
E4 (wrist) 3-axis acceleration (g) 32 Hz
E4 (wrist) EDA (µS), skin temperature (°C) 4 Hz

Changes from the Official Release

  • Packed into Parquet so the Dataset Viewer and datasets work directly. The default config splits each subject's synchronised data (SX.pkl) into 2 s chunks, the step of the label windows. The subjects config has one row per subject.
  • Each chunk carries the label of the 8 s window that starts with it, so the input for label i is chunks i to i + 3.
  • The chest EDA, EMG and Temp channels, which the readme calls dummy data, are constant in every file. They are kept as one value per subject in subjects.chest_dummy.
  • The official zip is included unchanged in original/, with the raw RespiBAN and E4 files and the readme.
  • No values were changed.

Dataset Structure

default: one row per 2 s chunk (64,747 rows)

Chunk k covers [2k, 2k + 2) seconds of a subject's synchronised recording. When the recording lasts an odd number of seconds, the last chunk is 1 s. A subject's rows concatenate to the arrays in SX.pkl.

Column Content
subject, chunk, start_s S1 to S15, chunk index, start time in seconds
activity, activity_name the 8 activity codes in the chunk (4 Hz), and the most common one by name
label_hr_bpm, label_window the heart-rate label of the 8 s window starting at start_s (window index); null for the last chunks
chest_ecg, chest_resp, chest_acc 1,400 samples (700 Hz); acceleration as 3 x 1,400
wrist_bvp 128 samples (64 Hz)
wrist_acc 3 x 64 samples (32 Hz), in g
wrist_eda, wrist_temp 8 samples each (4 Hz)
rpeaks R-peaks in the chunk, as sample indices into the subject's whole chest ECG

subjects: one row per subject (15 rows)

Age, gender, height, weight, Fitzpatrick skin type and how often the subject does sport (1 to 6), the duration, all labels and R-peaks, the activity times from SX_activity.csv and as segments in SX.pkl, how each wrist stream aligns to the E4 files, the dummy chest values, and a preview of the heart rate over the activities.

Read before using the data

  • Windows of 8 s with a 2 s shift. To pair an input with label i, concatenate chunks i to i + 3 of that subject. Consecutive windows overlap, so keep each subject on one side of a split (the paper uses leave-one-subject-out).
  • S6 is shorter. A hardware issue left only about the first 1.5 h valid (5,250 s), so S6 has no lunch, walking or working.
  • Activity times differ from SX_activity.csv. In SX.pkl each activity starts a fixed 0 to 2.75 s earlier than the time in SX_activity.csv (per subject, in subjects.activity_shift_s) and ends 1 s before the next time in the csv. So there is 1 s of transient between lunch and walking, which follow each other directly in the csv. The final CLEAN_BASELINE in every csv is never labelled in SX.pkl (it is transient, 0, where the recording covers it).
  • Drift correction. The readme says the two devices were synchronised with a double tap on the chest, and samples of the faster device were deleted evenly to correct drift. The E4 files show this: for S3, S5, S9, S10 and S14, single samples are missing from each E4 stream at even intervals (43 to 75 BVP samples, at most about 1.2 s for S9 and S10, as the readme says), and for the other ten subjects none are. Each stream in SX.pkl starts at an offset into the E4 file and ends a little before it. subjects.e4_alignment gives the offset and the deleted samples for each stream.
  • R-peaks. SX.pkl lists 192,229 R-peaks. They do not increase at 3 places in S6 and 1 in S14, and 37 intervals are shorter than 250 ms (over 240 bpm). The labels are kept as given; they were not recomputed.
  • Only the wrist data were traced to the raw files. The chest signals in SX.pkl are float values whose conversion from the raw RespiBAN ADC counts is not documented; the raw files are in original/.
  • Values. Wrist acceleration is in g (the E4 files store 1/64 g). The chest signals are as in SX.pkl; the readme does not give their units.

Usage

# pip install datasets numpy
import numpy as np
from datasets import load_dataset

ds = load_dataset("dronefreak/PPG-DaLiA", split="train").filter(lambda r: r["subject"] == "S1")
i = 100                                                     # label window i = chunks i..i+3
win = ds.select(range(i, i + 4))
ppg = np.concatenate(win["wrist_bvp"])                      # 512 samples = 8 s at 64 Hz
acc = np.concatenate([np.asarray(a) for a in win["wrist_acc"]], axis=1)   # 3 x 256
print(ds[i]["label_hr_bpm"], ds[i]["activity_name"], ppg.shape, acc.shape)

Dataset Sources

Citation

Please cite the paper and the dataset:

@article{reiss2019deep,
  author  = {Reiss, Attila and Indlekofer, Ina and Schmidt, Philip and Van Laerhoven, Kristof},
  title   = {Deep {PPG}: Large-Scale Heart Rate Estimation with Convolutional Neural Networks},
  journal = {Sensors},
  volume  = {19},
  number  = {14},
  pages   = {3079},
  year    = {2019},
  doi     = {10.3390/s19143079}
}

@misc{reiss2019ppgdalia,
  author       = {Reiss, Attila and Indlekofer, Ina and Schmidt, Philip},
  title        = {{PPG-DaLiA}},
  year         = {2019},
  howpublished = {UCI Machine Learning Repository},
  doi          = {10.24432/C53890}
}

License

PPG-DaLiA is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license: https://creativecommons.org/licenses/by/4.0/legalcode, as stated on https://archive.ics.uci.edu/dataset/495/ppg+dalia. This mirror repackages the data (see Changes from the Official Release) and credits the authors as above.

Downloads last month
82