CODE-II: a large-scale dataset for artificial intelligence in ECG analysis
Open Access
- 26 May 2026
- journal article
- research article
- Published by Springer Nature in npj Digital Medicine
- Vol. 9 (1)
Abstract
Data-driven methods for electrocardiogram (ECG) interpretation are rapidly progressing. Large datasets have enabled advances in artificial intelligence (AI) based ECG analysis, yet limitations in annotation quality, size, and scope remain major challenges. Here we present CODE-II, a large-scale real-world dataset of 2,735,269 12-lead ECGs from 2,093,807 adult patients collected by the Telehealth Network of Minas Gerais (TNMG), Brazil. Each exam was annotated using standardized diagnostic criteria and reviewed by cardiologists. A defining feature of CODE-II is a set of 66 clinically meaningful diagnostic classes, developed with cardiologist input and routinely used in telehealth practice. We additionally provide an openly available subset: CODE-II-open, a public subset of 15,000 patients, and the CODE-II-test, a non-overlapping set of 8,475 exams reviewed by multiple cardiologists for blinded evaluation. A neural network pre-trained on CODE-II achieved superior transfer performance on external benchmarks (PTB-XL and CPSC 2018) and outperformed alternatives trained on larger datasets.Keywords
All Related Versions
Funding Information
- Conselho Nacional de Desenvolvimento Científico e Tecnológico
- Kjell och Märta Beijer Foundation
- Fundação de Amparo à Pesquisa do Estado de Minas Gerais
- Innovation Center on Artificial Intelligence for Health
- Institute for Health Assessment and Translation for Chronic and Neglected Diseases of High Relevance
- eSSENCE strategic collaborative research programme
This publication has 39 references indexed in Scilit:
- Global Burden of Cardiovascular Diseases and Risks, 1990-2022JACC, 2023
- Electrocardiogram report system: the importance of decision-making toolsJournal of Electrocardiology, 2021
- InceptionTime: Finding AlexNet for time series classificationData Mining and Knowledge Discovery, 2020
- Evaluation of mortality in bundle branch block patients from an electronic cohort: Clinical Outcomes in Digital Electrocardiography (CODE) studyJournal of Electrocardiology, 2019
- Tele-electrocardiography and bigdata: The CODE (Clinical Outcomes in Digital Electrocardiography) studyJournal of Electrocardiology, 2019
- Identity Mappings in Deep Residual Networks2016
- Eyewitness to history: Landmarks in the development of computerized electrocardiographyJournal of Electrocardiology, 2016
- Normal values of the electrocardiogram for ages 16–90 yearsJournal of Electrocardiology, 2014
- Electrocardiographic reference ranges derived from 79,743 ambulatory subjectsJournal of Electrocardiology, 2007
- Bidirectional LSTM Networks for Improved Phoneme Classification and Recognition2005