--- language: - en license: odc-by size_categories: - 1KPhysioNet/CinC Challenge 2017: AF Classification from a Short Single-Lead ECG

![Task](https://img.shields.io/badge/Task-AF%20Classification-blue?style=flat-square) ![Dataset](https://img.shields.io/badge/Dataset-Challenge%202017-0aa1a7?style=flat-square) ![Format](https://img.shields.io/badge/Format-Parquet-orange?style=flat-square) ![Recordings](https://img.shields.io/badge/Recordings-8%2C528-success?style=flat-square) ![Device](https://img.shields.io/badge/Device-AliveCor-blueviolet?style=flat-square) ![License](https://img.shields.io/badge/License-ODC--By%201.0-lightgrey?style=flat-square) > **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.** ## Dataset Description - **Homepage:** https://physionet.org/content/challenge-2017/1.0.0/ - **Paper:** https://doi.org/10.22489/CinC.2017.065-469 - **Dataset DOI:** https://doi.org/10.13026/d3hm-sf11 - **License:** ODC-By 1.0 ## 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 ```python # 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: ```bibtex @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.