Dataset

CODE-15%: large annotated 12-lead ECG dataset (Telehealth Network of Minas Gerais)

CODE-15% is a 12-lead ECG dataset drawn by stratified sampling of 15% of the patients in the larger CODE dataset. The exams were collected by the Telehealth Network of Minas Gerais in Brazil between 2010 and 2016. Each exam comes with patient age, sex and a neural-network-predicted ECG age, as used in a study of ECG age as a mortality predictor.

Published
Zenodo, 2021
Source
Telehealth Network of Minas Gerais, 2010 to 2016
Sampling
stratified 15% of patients from the CODE dataset
License
CC BY 4.0

Original description

A dataset of 12-lead ECGs with annotations. The dataset contains 345 779 exams from 233 770 patients. It was obtained through stratified sampling from the CODE dataset ( 15% of the patients). The data was collected by the Telehealth Network of Minas Gerais in the period between 2010 and 2016.

This repository contains the files and the files for i = 0, 1, 2, ... 17.

"exams.csv": is a comma-separated values (csv) file containing the columns

"exam_id": id used for identifying the exam; "age": patient age in years at the moment of the exam; "is_male": true if the patient is male; "nn_predicted_age": age predicted by a neural network to the patient. As described in the paper "Deep neural network estimated electrocardiographic-age as a mortality predictor" bellow. "1dAVb": Whether or not the patient has 1st degree AV block; "RBBB": Whether or not the patient has right bundle branch block; "LBBB": Whether or not the patient has left bundle branch block; "SB": Whether or not the patient has sinus bradycardia; "AF": Whether or not the patient has atrial fibrillation; "ST": Whether or not the patient has sinus tachycardia; "patient_id": id used for identifying the patient; "normal_ecg": True if automatic annotation system say it is a normal ECG; "death": true if the patient dies in the follow-up time. This data is available only in the first exam of the patient. Other exams will have this as an empty field; "timey": if the patient dies it is the time to the death of the patient. If not, it is the follow-up time. This data is available only in the first exam of the patient. Other exams will have this as an empty field; "trace_file": identify in which hdf5 file the file corresponding to this patient is located.

"exams_parti.hdf5": The HDF5 file containing two datasets named and other named . The is a tensor of dimension containing the exam id (the same as in the csv file) and the dataset is a tensor containing the ECG tracings in the same order. The first dimension corresponds to the different exams; the second dimension corresponds to the 4096 signal samples; the third dimension to the 12 different leads of the ECG exams in the following order: . The signals are sampled at 400 Hz. Some signals originally have a duration of 10 seconds (10 * 400 = 4000 samples) and others of 7 seconds (7 * 400 = 2800 samples). In order to make them all have the same size (4096 samples), we fill them with zeros on both sizes. For instance, for a 7 seconds ECG signal with 2800 samples we include 648 samples at the beginning and 648 samples at the end, yielding 4096 samples that are then saved in the hdf5 dataset.  In python, one can read this file using h5py.

The dataset is too large to fit in memory, so don't convert it to a numpy array all at once.

It is possible to access a chunk of it using: x[start:end, :, :].

The CODE dataset was collected by the Telehealth Network of Minas Gerais (TNMG) in the period between 2010 and 2016. TNMG is a public telehealth system assisting 811 out of the 853 municipalities in the state of Minas Gerais, Brazil. The dataset is described

Ribeiro, Antônio H., Manoel Horta Ribeiro, Gabriela M. M. Paixão, Derick M. Oliveira, Paulo R. Gomes, Jéssica A. Canazart, Milton P. S. Ferreira, et al. “Automatic Diagnosis of the 12-Lead ECG Using a Deep Neural Network.” Nature Communications 11, no. 1 (2020): 1760. https://doi.org/10.1038/s41467-020-15432-4

The CODE 15% dataset is obtained from stratified sampling from the CODE dataset. This subset of the code dataset is described in and used for assessing model performance:

"Deep neural network estimated electrocardiographic-age as a mortality predictor"

Emilly M Lima, Antônio H Ribeiro, Gabriela MM Paixão, Manoel Horta Ribeiro, Marcelo M Pinto Filho, Paulo R Gomes, Derick M Oliveira, Ester C Sabino, Bruce B Duncan, Luana Giatti, Sandhi M Barreto, Wagner Meira Jr, Thomas B Schön, Antonio Luiz P Ribeiro. MedRXiv (2021) https://www.doi.org/10.1101/2021.02.19.21251232

The companion code for reproducing the experiments in the two papers described above can be found, respectively, in:

- https://github.com/antonior92/automatic-ecg-diagnosis; and in,

- https://github.com/antonior92/ecg-age-prediction.

Note about authorship: Antônio H. Ribeiro, Emilly M. Lima and Gabriela M.M. Paixão contributed equally to this work.

Verbatim fromZenodo· Licence: cc-by-4.0

CODE-15%: large annotated 12-lead ECG dataset (Telehealth Network of Minas Gerais): ChatPPG research summary card

How it works

How CODE-15%: large annotated 12-lead ECG dataset (Telehealth Network of Minas Gerais) works: Devices & body sites → Signals recorded → TasksDevices & body sites: None (PPG site). Signals recorded: CODE-15%: large annotated 12-lead ECG dataset (Telehealth Network of Minas Gerais), signals ECG. Tasks: AF / rhythm.Devices & body sitesNone: PPG siteNonePPG siteSignals recordedCODE-15%: large annotated…ECGTasksAF / rhythmAF / rhythm
Device roles
Clinical reference (ECG)

Papers and models using this dataset· 7

#40 of 190 most-used datasets by published papers and models · #21 of 80 ECG

Browse these 4 papers in the research explorer (filtered to CODE-15%: large annotated 12-lead ECG dataset (Telehealth Network of Minas Gerais))

FAQ

What signals does CODE-15%: large annotated 12-lead ECG dataset include?

CODE-15%: large annotated 12-lead ECG dataset includes ECG data.

What can CODE-15%: large annotated 12-lead ECG dataset be used for?

Research tasks it supports: atrial fibrillation detection.

How do I get CODE-15%: large annotated 12-lead ECG dataset, and what is its licence?

It is available from https://zenodo.org/records/4916206. Licence: CC BY 4.0.

Which models and papers in the ChatPPG research hub use CODE-15%: large annotated 12-lead ECG dataset?

The hub links it to models: ECG-JEPA (Samsung Medical Center; 12-lead ECG JEPA); 1 paper, including "ECG-JEPA: Learning General Representation of 12-Lead ECG with a Joint-Embedding Predictive Architecture". They are listed under Related on this page.

Cite this dataset

Cite this dataset with the fields recorded here. Check it against the publisher before submitting.

CODE-15%: large annotated 12-lead ECG dataset (Telehealth Network of Minas Gerais) [Data set]. (n.d.). https://doi.org/10.5281/zenodo.4916206
@misc{code15code15,
  title         = {{CODE-15\%: large annotated 12-lead ECG dataset (Telehealth Network of Minas Gerais)}},
  doi           = {10.5281/zenodo.4916206}
}

Cite the ChatPPG record

Cite the dated snapshot 2026-10 for a fixed, reproducible version. Please also cite the original publications listed above.

APA

ChatPPG. (2026). CODE-15%: large annotated 12-lead ECG dataset (Telehealth Network of Minas Gerais): dataset record (Version 2026-10) [Data set]. ChatPPG Research Hub. https://chatppg.com/research/datasets/code-15

BibTeX
@misc{chatppg_dataset_code_15,
  author       = {{ChatPPG}},
  title        = {{CODE-15%: large annotated 12-lead ECG dataset (Telehealth Network of Minas Gerais): dataset record}},
  year         = {2026},
  month        = nov,
  version      = {2026-10},
  howpublished = {\url{https://chatppg.com/research/datasets/code-15}},
  note         = {ChatPPG Research Hub, Snapshot 2026-10, https://chatppg.com/research/snapshots/2026-10}
}
CITATION.cff
cff-version: 1.2.0
message: "If you use this resource, please cite it as below."
type: dataset
title: "CODE-15%: large annotated 12-lead ECG dataset (Telehealth Network of Minas Gerais): dataset record"
authors:
  - name: "ChatPPG"
url: "https://chatppg.com/research/datasets/code-15"
repository-artifact: "https://chatppg.com/research/snapshots/2026-10"
version: "2026-10"
date-released: "2026-11-30"

History

  1. Record updated