Dataset Viewer
Auto-converted to Parquet Duplicate
ecg_id
int32
1
21.8k
patient_id
int32
302
21.8k
age
int16
2
300
sex
stringclasses
2 values
height
float32
6
209
⌀
weight
float32
5
210
⌀
strat_fold
int8
1
8
validated_by_human
bool
2 classes
report
stringlengths
1
397
scp_codes
stringlengths
11
128
statements
listlengths
0
9
superclasses
listlengths
0
4
subclasses
listlengths
0
6
fs
int16
500
500
leads
listlengths
12
12
signal
array 2D
1
15,709
56
F
null
63
3
true
sinusrhythmus periphere niederspannung
{"LVOLT": 0.0, "NORM": 100.0, "SR": 0.0}
[ "LVOLT", "NORM", "SR" ]
[ "NORM" ]
[ "NORM" ]
500
[ "I", "II", "III", "AVR", "AVL", "AVF", "V1", "V2", "V3", "V4", "V5", "V6" ]
[[-0.11500000208616257,-0.11500000208616257,-0.11500000208616257,-0.11500000208616257,-0.11500000208(...TRUNCATED)
2
13,243
19
M
null
70
2
true
sinusbradykardie sonst normales ekg
{"NORM": 80.0, "SBRAD": 0.0}
[ "NORM", "SBRAD" ]
[ "NORM" ]
[ "NORM" ]
500
[ "I", "II", "III", "AVR", "AVL", "AVF", "V1", "V2", "V3", "V4", "V5", "V6" ]
[[-0.014999999664723873,-0.014999999664723873,-0.014999999664723873,-0.014999999664723873,-0.0149999(...TRUNCATED)
3
20,372
37
F
null
69
5
true
sinusrhythmus normales ekg
{"NORM": 100.0, "SR": 0.0}
[ "NORM", "SR" ]
[ "NORM" ]
[ "NORM" ]
500
[ "I", "II", "III", "AVR", "AVL", "AVF", "V1", "V2", "V3", "V4", "V5", "V6" ]
[[-0.03500000014901161,-0.03500000014901161,-0.03500000014901161,-0.03500000014901161,-0.03500000014(...TRUNCATED)
4
17,014
24
M
null
82
3
true
sinusrhythmus normales ekg
{"NORM": 100.0, "SR": 0.0}
[ "NORM", "SR" ]
[ "NORM" ]
[ "NORM" ]
500
[ "I", "II", "III", "AVR", "AVL", "AVF", "V1", "V2", "V3", "V4", "V5", "V6" ]
[[-0.054999999701976776,-0.054999999701976776,-0.054999999701976776,-0.054999999701976776,-0.0549999(...TRUNCATED)
5
17,448
19
F
null
70
4
true
sinusrhythmus normales ekg
{"NORM": 100.0, "SR": 0.0}
[ "NORM", "SR" ]
[ "NORM" ]
[ "NORM" ]
500
[ "I", "II", "III", "AVR", "AVL", "AVF", "V1", "V2", "V3", "V4", "V5", "V6" ]
[[-0.03999999910593033,-0.03999999910593033,-0.03999999910593033,-0.03999999910593033,-0.03999999910(...TRUNCATED)
6
19,005
18
F
null
58
4
true
sinusrhythmus normales ekg
{"NORM": 100.0, "SR": 0.0}
[ "NORM", "SR" ]
[ "NORM" ]
[ "NORM" ]
500
[ "I", "II", "III", "AVR", "AVL", "AVF", "V1", "V2", "V3", "V4", "V5", "V6" ]
[[-0.029999999329447746,-0.029999999329447746,-0.029999999329447746,-0.029999999329447746,-0.0299999(...TRUNCATED)
7
16,193
54
M
null
83
7
true
sinusrhythmus linkstyp t abnormal, wahrscheinlich inferiorer myokardschaden qt-verlÄngerung
{"NORM": 100.0, "SR": 0.0}
[ "NORM", "SR" ]
[ "NORM" ]
[ "NORM" ]
500
[ "I", "II", "III", "AVR", "AVL", "AVF", "V1", "V2", "V3", "V4", "V5", "V6" ]
[[-0.09000000357627869,-0.09000000357627869,-0.09000000357627869,-0.09000000357627869,-0.09000000357(...TRUNCATED)
11
11,243
20
F
null
57
5
true
sinus arrhythmie sonst normales ekg
{"NORM": 80.0, "SARRH": 0.0}
[ "NORM", "SARRH" ]
[ "NORM" ]
[ "NORM" ]
500
[ "I", "II", "III", "AVR", "AVL", "AVF", "V1", "V2", "V3", "V4", "V5", "V6" ]
[[0.25,0.25,0.25,0.25,0.25,0.25,0.2460000067949295,0.24500000476837158,0.24500000476837158,0.2450000(...TRUNCATED)
12
11,031
43
F
null
44
8
true
sinusbradykardie sonst normales ekg
{"NORM": 80.0, "SBRAD": 0.0}
[ "NORM", "SBRAD" ]
[ "NORM" ]
[ "NORM" ]
500
[ "I", "II", "III", "AVR", "AVL", "AVF", "V1", "V2", "V3", "V4", "V5", "V6" ]
[[0.26499998569488525,0.26499998569488525,0.2639999985694885,0.2669999897480011,0.2619999945163727,0(...TRUNCATED)
13
19,953
58
F
null
54
2
true
sinusrhythmus normales ekg
{"NORM": 100.0, "SR": 0.0}
[ "NORM", "SR" ]
[ "NORM" ]
[ "NORM" ]
500
[ "I", "II", "III", "AVR", "AVL", "AVF", "V1", "V2", "V3", "V4", "V5", "V6" ]
[[-0.03500000014901161,-0.03500000014901161,-0.03500000014901161,-0.03400000184774399,-0.03700000047(...TRUNCATED)
End of preview. Expand in Data Studio

PTB-XL 12-lead ECGs with SCP-ECG statements

The 21,799 clinical 10-second 12-lead ECGs of PTB-XL 1.0.3 at 500 Hz, one row per record, with the cardiologists' SCP-ECG statements. No new annotation was made.

Split PTB-XL folds Records Patients Records without a reference statement
train 1-8 17418 15023 4
validation 9 2183 1942 3
test 10 2198 1904 0

Splits follow the source's recommendation (strat_fold 1-8 train, 9 validation, 10 test). The source made the folds per patient, so no patient spans two splits; the records of folds 9 and 10 were checked by at least one cardiologist.

Fields

  • ecg_id, patient_id: the source identifiers.
  • age: years at the recording; 300 means over 89 years (the source's HIPAA convention). Null when unknown.
  • sex: M or F (the source's 0 and 1).
  • height, weight: cm and kg when known.
  • strat_fold: the source's fold, 1-10.
  • validated_by_human: whether a cardiologist checked the statements.
  • report: the source's free-text report (German, some English).
  • scp_codes: JSON object of SCP-ECG statement code to likelihood (0, 15, 35, 50, 80 or 100). The source sets 0 when no likelihood was recorded, which is the case for nearly every rhythm and form statement.
  • statements: the reference statement set of the ecg-read environment, sorted: every code of scp_codes with likelihood at least 50 or exactly 0 (not recorded). Codes with a low recorded likelihood (15 or 35) are left out. Empty for a record whose statements all have a low likelihood.
  • superclasses, subclasses: the diagnostic_class and diagnostic_subclass of the diagnostic codes in statements, from scp_statements.csv, sorted.
  • fs: 500. leads: the 12 lead names in the row order of signal: I, II, III, AVR, AVL, AVF, V1-V6.
  • signal: float32 array of shape (12, 5000) in millivolts, read from the records500 WFDB files with wfdb.

scp_statements.csv is the source's codebook, unchanged: the 71 statements with their kind (diagnostic, form, rhythm), diagnostic class and subclass, and description.

Changes from the source

  • Source: PTB-XL, a large publicly available electrocardiography dataset, version 1.0.3 on PhysioNet, CC BY 4.0. Only the 500 Hz records are used; the 100 Hz copies are not.
  • WFDB signals converted to float32 millivolt arrays, leads as rows. Metadata columns kept with the names above; sex written as letters, scp_codes as JSON. The source's nurse, site, device, recording_date, heart_axis, infarction stadium, signal-quality and file-name columns are not copied.
  • statements, superclasses and subclasses are derived from scp_codes and scp_statements.csv as described.

Citation

@article{wagner2020ptbxl,
  title={PTB-XL, a large publicly available electrocardiography dataset},
  author={Wagner, Patrick and Strodthoff, Nils and Bousseljot, Ralf-Dieter and Kreiseler, Dieter and Lunze, Fatima I. and Samek, Wojciech and Schaeffter, Tobias},
  journal={Scientific Data},
  volume={7},
  number={1},
  pages={154},
  year={2020},
  doi={10.1038/s41597-020-0495-6}
}
@article{PhysioNet-ptb-xl-1.0.3,
  author={Wagner, Patrick and Strodthoff, Nils and Bousseljot, Ralf-Dieter and Samek, Wojciech and Schaeffter, Tobias},
  title={PTB-XL, a large publicly available electrocardiography dataset (version 1.0.3)},
  journal={PhysioNet},
  year={2022},
  doi={10.13026/kfzx-aw45}
}
@article{goldberger2000physiobank,
  title={PhysioBank, PhysioToolkit, and PhysioNet: Components of a New Research Resource for Complex Physiologic Signals},
  author={Goldberger, Ary L. and Amaral, Luis A. N. and Glass, Leon and Hausdorff, Jeffrey M. and Ivanov, Plamen Ch. and Mark, Roger G. and Mietus, Joseph E. and Moody, George B. and Peng, Chung-Kang and Stanley, H. Eugene},
  journal={Circulation},
  volume={101},
  number={23},
  pages={e215--e220},
  year={2000},
  doi={10.1161/01.CIR.101.23.e215}
}
Downloads last month
5,239