Skip to content

PTB-XL

PTB-XL ECG Database

Clinical & physiological

A large publicly available electrocardiography dataset of 21,799 clinical 12-lead ECG records from 18,869 patients, each annotated with diagnostic statements following the SCP-ECG standard.

PTB / PhysioNetOfficial source

Record metadata fields

Each PTB-XL record is a 12-lead clinical ECG described by the following metadata fields, grouped by category.

FieldGroupDescription
ecg_idIdentifiersUnique identifier for the ECG record.
patient_idIdentifiersDe-identified patient identifier (recurs across a patient’s ECGs).
ageDemographicsPatient age in years (values of 300 denote anonymized ages > 89).
sexDemographicsPatient sex (0 = male, 1 = female).
heightDemographicsHeight in cm (often unrecorded).
weightDemographicsWeight in kg (often unrecorded).
recording_dateRecordingTimestamp the ECG was recorded.
deviceRecordingRecording device / cart model (e.g. CS-12, AT-6 C).
sampling_rate_hr / _lrRecordingHigh- (500 Hz) and low- (100 Hz) resolution sampling rates.
filename_hr / _lrRecordingPaths to the high- and low-resolution WFDB signal files.
reportDiagnosisFree-text cardiologist report (original language).
scp_codesDiagnosisSCP-ECG statement codes mapped to likelihoods (0–100).
scp_descriptionsDiagnosisHuman-readable description of each SCP-ECG code.
heart_axisDiagnosisCardiac electrical axis (e.g. LAD, RAD, MID).
infarction_stadium1 / 2DiagnosisStaging of any myocardial infarction findings.
validated_by_humanValidationWhether a human cardiologist validated the record.
validated_byValidationIdentifier of the validating cardiologist (nullable).
second_opinionValidationWhether a second opinion was obtained.
qualitySignal qualityNoise flags: baseline drift, static/burst noise, electrode problems, extra beats, pacemaker.
strat_foldSplitsRecommended stratified fold (1–10) for train/test splitting.
nurse / siteProvenanceRecording nurse and collection site identifiers.

Example record

#1

A worked example showing the values for one PTB-XL clinical ECG record.

ECG ID

#1

Patient ID

15709

Sampling (HR / LR)

500 / 100 Hz

Device

CS-12 E

Strat fold

3

Patient

Age56
SexFemale
HeightNot recorded
Weight63 kg
Recording date1984-11-09 09:17:34
ValidationHuman-validated

Cardiologist report

“sinusrhythmus periphere niederspannung”

SCP-ECG diagnostic statements

CodeDescriptionLikelihood
NORMnormal ECG100%
LVOLTlow QRS voltages in the frontal and horizontal leads—
SRsinus rhythm—

Signal quality

Baseline DriftClean
Static Noise, I-V1,
Burst NoiseClean
Electrodes ProblemsClean
Extra BeatsClean
PacemakerClean

Sample records

A handful of records illustrating the variety of diagnoses across the database.

ECG IDPatientAgeSexDiagnosis (SCP)AxisFoldDevice
#11570956FemaleNORM · LVOLT · SR—3CS-12 E
#21324319MaleNORM · SBRAD—2CS-12 E
#71619354MaleNORM · SRLAD7CS-12 E
#81127548MaleIMI · ABQRS · SRLAD9CS-12 E
#171361956MaleAFLT · ABQRS · AFIBALAD9CS-12 E
#1441691481MalePACE—9AT-6 C

Sex is encoded 0 = male, 1 = female. Diagnosis codes follow the SCP-ECG standard.