File size: 2,530 Bytes
8e6c6ef
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
license: cc-by-4.0
pretty_name: ECG age
tags:
- ecg
- electrocardiography
- physiological-signals
size_categories:
- 1K<n<10K
---

# ecg-age

Twelve lead resting electrocardiograms with the age of the person they were recorded from, drawn from
PTB-XL and repackaged one record per file.

Every record is ten seconds at 500 Hz. Each `.npz` holds exactly three arrays and nothing else:

- `signal`, float32 of shape `(12, 5000)`, the lead voltages in millivolts
- `fs`, int64, the sampling rate, always 500
- `lead_names`, the twelve leads in order: I, II, III, aVR, aVL, aVF, V1, V2, V3, V4, V5, V6

No other field of the source database travels with the signals. There is no sex, no diagnostic
statement, no device, no recording date and no PTB-XL identifier in any file.

## Layout

```
data/heldout/rec-0000.npz .. rec-2009.npz   2010 records, ages withheld
data/train/train-0000.npz .. train-5999.npz 6000 records
data/train/ages.csv                         id,age in whole years for data/train only
```

**Ages are withheld for `data/heldout`.** No age file is published for that folder, here or anywhere
else. The 2010 held out records are drawn with a flat age distribution, 134 records in each five year
band from 18 to 89, so the young are as numerous as the old. The 6000 training records keep the
natural age distribution of the source database. One record per person throughout, and no person
appears in both folders.

## Source and licence

Derived from PTB-XL version 1.0.3, a clinical twelve lead ECG database of 21799 records from 18869
patients, released on PhysioNet under Creative Commons Attribution 4.0. This repackaging is released
under the same licence. Records were taken from the 500 Hz `records500` signals, one record per
patient, restricted to ages 18 to 89.

Please cite all three of the following, as PTB-XL asks.

Wagner P, Strodthoff N, Bousseljot RD, Kreiseler D, Lunze FI, Samek W, Schaeffter T. PTB-XL, a large
publicly available electrocardiography dataset. Scientific Data 7:154 (2020).
https://doi.org/10.1038/s41597-020-0495-6

Goldberger AL, Amaral LAN, Glass L, Hausdorff JM, Ivanov PC, Mark RG, Mietus JE, Moody GB, Peng CK,
Stanley HE. PhysioBank, PhysioToolkit, and PhysioNet: Components of a New Research Resource for
Complex Physiologic Signals. Circulation 101(23):e215-e220 (2000).

Wagner P, Strodthoff N, Bousseljot RD, Samek W, Schaeffter T. PTB-XL, a large publicly available
electrocardiography dataset (version 1.0.3). PhysioNet (2022). https://doi.org/10.13026/kfzx-aw45