Dataset Viewer
Auto-converted to Parquet Duplicate
record
stringlengths
6
6
label
stringclasses
4 values
label_name
stringclasses
4 values
label_v0
stringclasses
4 values
label_v1
stringclasses
4 values
label_v2
stringclasses
4 values
label_v3
stringclasses
4 values
label_changed
bool
2 classes
validation_subset
bool
2 classes
sampling_rate
int32
300
300
n_samples
int32
2.71k
18.3k
duration_s
float64
9.05
61
adc_gain
float64
1k
1k
adc_baseline
int32
0
0
signal
listlengths
2.71k
18.3k
header
stringlengths
81
86
preview
imagewidth (px)
700
700
A00001
N
Normal
N
N
N
N
false
true
300
9,000
30
1,000
0
[ -127, -162, -197, -229, -245, -254, -261, -265, -268, -268, -267, -265, -263, -260, -256, -253, -249, -247, -245, -243, -241, -238, -236, -234, -232, -231, -230, -229, -229, -229, -229, -230, -230, -230, -229, -229, -227, -225, -221, -218...
A00001 1 300 9000 05:05:15 1/05/2000 A00001.mat 16+24 1000/mV 16 0 -127 0 0 ECG
A00002
N
Normal
N
N
N
N
false
true
300
9,000
30
1,000
0
[ 128, 157, 189, 226, 250, 257, 262, 265, 268, 269, 268, 266, 263, 260, 258, 257, 255, 252, 249, 246, 244, 241, 238, 235, 231, 227, 223, 219, 217, 213, 209, 205, 200, 196, 192, 190, 188, 188, 189, 191, 194, 198, 202, 206, 209, 2...
A00002 1 300 9000 11:05:25 1/05/2000 A00002.mat 16+24 1000/mV 16 0 128 0 0 ECG
A00003
N
Normal
N
N
N
N
false
true
300
18,000
60
1,000
0
[ 56, 73, 85, 93, 100, 107, 113, 117, 118, 117, 115, 113, 111, 109, 104, 101, 107, 121, 134, 147, 153, 156, 159, 162, 165, 167, 169, 171, 173, 176, 178, 181, 183, 186, 190, 194, 195, 191, 182, 165, 114, 38, -55, -158, -244, -283...
A00003 1 300 18000 12:04:05 1/04/2000 A00003.mat 16+24 1000/mV 16 0 56 0 0 ECG
A00004
A
AF
A
A
A
A
false
true
300
9,000
30
1,000
0
[ 519, 619, 723, 827, 914, 956, 955, 934, 920, 900, 889, 883, 877, 873, 870, 866, 863, 860, 858, 856, 854, 852, 851, 849, 847, 845, 842, 840, 837, 834, 832, 830, 829, 829, 829, 830, 831, 833, 835, 837, 839, 842, 845, 849, 853, 8...
A00004 1 300 9000 11:05:48 1/05/2000 A00004.mat 16+24 1000/mV 16 0 519 0 0 ECG
A00005
A
AF
O
O
A
A
true
true
300
18,000
60
1,000
0
[-188,-239,-274,-316,-356,-374,-380,-384,-387,-389,-390,-391,-392,-393,-393,-394,-394,-395,-397,-398(...TRUNCATED)
A00005 1 300 18000 08:12:08 1/12/2000 A00005.mat 16+24 1000/mV 16 0 -188 0 0 ECG
A00006
N
Normal
N
N
N
N
false
true
300
9,000
30
1,000
0
[-266,-316,-367,-407,-423,-423,-401,-367,-329,-305,-289,-288,-300,-334,-385,-447,-515,-579,-602,-614(...TRUNCATED)
A00006 1 300 9000 04:03:20 1/03/2000 A00006.mat 16+24 1000/mV 16 0 -266 0 0 ECG
A00007
N
Normal
N
N
N
N
false
true
300
9,000
30
1,000
0
[21,22,24,26,28,31,32,34,34,35,35,34,34,34,35,35,34,33,33,32,32,33,32,31,29,27,26,26,26,27,27,26,25,(...TRUNCATED)
A00007 1 300 9000 09:06:11 1/06/2000 A00007.mat 16+24 1000/mV 16 0 21 0 0 ECG
A00008
O
Other rhythm
O
O
O
O
false
true
300
18,000
60
1,000
0
[-187,-236,-286,-340,-375,-396,-405,-411,-416,-422,-427,-432,-439,-448,-470,-500,-521,-543,-567,-595(...TRUNCATED)
A00008 1 300 18000 06:11:36 1/11/2000 A00008.mat 16+24 1000/mV 16 0 -187 0 0 ECG
A00009
A
AF
A
A
A
A
false
true
300
9,000
30
1,000
0
[51,56,59,63,65,62,52,38,18,-10,-24,-42,-65,-88,-111,-135,-163,-194,-225,-251,-270,-284,-296,-305,-3(...TRUNCATED)
A00009 1 300 9000 09:05:52 1/05/2000 A00009.mat 16+24 1000/mV 16 0 51 0 0 ECG
A00010
N
Normal
N
N
N
N
false
true
300
18,000
60
1,000
0
[-1028,-1225,-1418,-1599,-1747,-1808,-1797,-1728,-1687,-1643,-1596,-1577,-1564,-1531,-1489,-1444,-14(...TRUNCATED)
A00010 1 300 18000 08:02:58 1/02/2000 A00010.mat 16+24 1000/mV 16 0 -1028 0 0 ECG
End of preview. Expand in Data Studio

PhysioNet/CinC Challenge 2017: AF Classification from a Short Single-Lead ECG

Task Dataset Format Recordings Device License

Unofficial mirror of the PhysioNet/Computing in Cardiology Challenge 2017 training set: 8,528 single-lead AliveCor ECGs (9 to 61 s, 300 Hz) labelled Normal, AF, Other rhythm or Noisy, with all four published label versions, in a viewer-ready Parquet layout with exact samples.

Disclaimer

This repository is not an official release of the Challenge data.

The PhysioNet/Computing in Cardiology Challenge 2017 was organised by Gari D. Clifford, Chengyu Liu, Benjamin Moody, Li-wei H. Lehman, Ikaro Silva, Qiao Li, Alistair E. W. Johnson and Roger G. Mark, and its data are published by PhysioNet. The recordings were donated by AliveCor. 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 PhysioNet file training2017.zip. Every record in it matched the published training/SHA256SUMS, and so did every label file and record list used here. Signals were decoded by a separate MATLAB v4 reader and by wfdb, which agree exactly. The class counts and the recording-length statistics (mean, SD, maximum, median and minimum per class) of the launch labels were checked against Table 2 of the challenge page. Every row was read back from Parquet and compared with the source.


Dataset Overview

The 2017 Challenge asked for algorithms that classify a short single-lead ECG as normal sinus rhythm, atrial fibrillation (AF), another rhythm, or too noisy to classify. The recordings were made with AliveCor's handheld single-lead device, which band-pass filters the signal. They are stored at 300 Hz.

Label Meaning Recordings (v3, final)
N Normal sinus rhythm 5,076
A Atrial fibrillation 758
O Other rhythm (any non-AF abnormal rhythm) 2,415
~ Too noisy to classify 279

This is the public training set. The hidden test set of 3,658 recordings was never released.


Changes from the Official Release

  • Packed into Parquet so the Dataset Viewer and datasets work directly, one row per recording.
  • Each row has the final label and the label in every published version (REFERENCE-v0.csv to REFERENCE-v3.csv), plus validation_subset and preview, a plot of the whole recording.
  • The official training2017.zip is included unchanged in original/, and the four label files and the validation record list are in labels/. The participants' code (sources/) and papers (papers/) on PhysioNet are not mirrored.
  • No samples or labels were changed, added or removed.

Dataset Structure

One train split with 8,528 rows. The organisers define no split of the training set. They ranked entries on the hidden test set and recommended cross-validation on the training set.

Column Content
record A00001 to A08528
label, label_name the final label (v3): N, A, O or ~, and its name
label_v0 ... label_v3 the label in each published version (see below)
label_changed true if the versions disagree for this recording
validation_subset true for the 300 recordings of the official validation subset (see notes)
sampling_rate, n_samples, duration_s 300 Hz, length in samples and seconds
signal the samples, int16, as stored in the .mat file
adc_gain, adc_baseline 1000 and 0 for every recording. Value in mV = signal / 1000
header the .hea file verbatim
preview PNG of the whole recording

Read before using the labels

  • Use label (v3), the final labels. The organisers published four label versions. All records were first labelled by a single expert, and the organisers re-scored the recordings they trusted least. 424 recordings have more than one label across the versions (label_changed):

    Version N A O ~ Change from the previous version
    v0 (at launch) 5,154 771 2,557 46
    v1 5,040 736 2,469 283 237 recordings moved to Noisy (114 N, 88 O, 35 A)
    v2 5,050 738 2,456 284 57 changes, mostly between A and O
    v3 (final) 5,076 758 2,415 279 148 changes in every direction
  • The official training2017.zip doesn't have the final labels. Its REFERENCE.csv is v2, and its REFERENCE-original.csv is v0. The final v3 labels are in PhysioNet's training/REFERENCE.csv and in REFERENCE-v3.csv. Results computed from the zip's labels use v2. All four versions are in labels/ here.

  • The validation subset is not a held-out set. The 300 recordings in sample2017.zip were used only to check that an entry ran correctly. They are part of the training set, and their labels are the v3 labels. Don't report results on them as test results.

  • No subject identifiers. The data don't say which recordings come from the same person, so a random split can't be guaranteed to be subject-independent.

  • The classes are imbalanced. Normal is 60 % of the recordings and Noisy 3 %. The official score was an average of per-class F1 scores (see the challenge page for the exact definition).

  • Recording length varies. Recordings last 9.0 to 61.0 s (2,714 to 18,286 samples). Most last 30 s, which is the median.

  • Header fields. The checksum field is 0 in every header. In 565 headers the initial-value field isn't the first sample (it differs by up to 2,797 units). The sample data itself agrees between the two readers.

Usage

# pip install datasets pillow numpy scikit-learn
import numpy as np
from datasets import load_dataset

ds = load_dataset("dronefreak/PhysioNet-Challenge-2017", split="train")
row = ds[0]
ecg_mv = np.asarray(row["signal"], dtype=np.int16) / row["adc_gain"]
t = np.arange(len(ecg_mv)) / row["sampling_rate"]
print(row["record"], row["label_name"], row["duration_s"])

# stratified 5-fold cross-validation on the final labels
from sklearn.model_selection import StratifiedKFold
folds = StratifiedKFold(5, shuffle=True, random_state=0).split(np.zeros(len(ds)), ds["label"])

Dataset Sources

Citation

Please cite the Challenge paper and PhysioNet:

@inproceedings{clifford2017af,
  author    = {Clifford, Gari D. and Liu, Chengyu and Moody, Benjamin and Lehman, Li-wei H. and Silva, Ikaro and Li, Qiao and Johnson, Alistair E. W. and Mark, Roger G.},
  title     = {{AF} Classification from a Short Single Lead {ECG} Recording: The {PhysioNet}/Computing in Cardiology Challenge 2017},
  booktitle = {2017 Computing in Cardiology (CinC)},
  pages     = {1--4},
  year      = {2017},
  doi       = {10.22489/CinC.2017.065-469}
}

Pollard, T., Moody, B. E., Lehman, L., Gow, B., Fernandes, C., Xie, C., Johnson, A., Mark, R. G., & Heldt, T. (2026). PhysioNet as a global platform for biomedical research. Nature Health. https://doi.org/10.1038/s44360-026-00096-z


License

The Challenge 2017 data are made available under the Open Data Commons Attribution License v1.0 (ODC-By): https://physionet.org/content/challenge-2017/view-license/1.0.0/. (The page's mention of the Creative Commons Attribution License 3.0 covers the participants' papers, which are not included here.) This repository contains information from the PhysioNet/Computing in Cardiology Challenge 2017, published on PhysioNet. If you publicly use or redistribute this data or a work produced from it, keep this attribution and the license notice.

Downloads last month
102