Dataset Viewer
Auto-converted to Parquet Duplicate
Search is not available for this dataset
signal
array 2D
active_start
int32
0
2.53k
active_end
int32
1.99k
4.1k
is_empty
bool
1 class
exam_id
int64
3.63k
874k
age
int32
26
98
is_male
bool
2 classes
normal_ecg
bool
2 classes
death
bool
2 classes
timey
float64
0.07
3.39
nn_predicted_age
float64
22.6
95.9
preview
imagewidth (px)
840
840
[[-2.621980667114258,-2.6143863201141357,-2.609952688217163,-2.6136460304260254,-2.61435866355896,-2(...TRUNCATED)
0
4,095
false
294,669
67
true
false
false
2.11602
51.09311
[[4.146388053894043,4.144881248474121,4.137546062469482,4.135089874267578,4.138765811920166,4.135761(...TRUNCATED)
0
4,095
false
291,318
65
true
false
false
3.077345
76.923935
[[-0.22866110503673553,-0.2172079086303711,-0.2111915498971939,-0.21273009479045868,-0.1981729567050(...TRUNCATED)
0
4,095
false
247,007
67
false
false
false
2.37845
61.212074
[[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.(...TRUNCATED)
581
3,514
false
181,629
34
false
false
false
2.676793
56.73649
[[0.08384239673614502,0.08182810246944427,0.09018318355083466,0.10354918986558914,0.1143305525183677(...TRUNCATED)
0
4,095
false
250,434
52
false
false
false
2.118782
71.822754
[[0.15244072675704956,0.1305091232061386,0.1045982763171196,0.08758297562599182,0.08384239673614502,(...TRUNCATED)
0
4,095
false
253,698
67
false
false
false
2.071821
74.28201
[[0.07622036337852478,0.07783443480730057,0.07146551460027695,0.06877566874027252,0.0762203633785247(...TRUNCATED)
0
4,095
false
253,958
76
false
true
false
2.071821
87.86625
[[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.(...TRUNCATED)
581
3,514
false
406,936
75
false
false
false
2.080108
83.03197
[[1.562517523765564,1.561139702796936,1.563573956489563,1.5709435939788818,1.5701395273208618,1.5616(...TRUNCATED)
0
4,095
false
250,492
69
false
false
false
2.080108
54.03106
[[1.0823291540145874,1.069410800933838,1.0627202987670898,1.0550482273101807,1.0442190170288086,1.03(...TRUNCATED)
0
4,095
false
253,803
53
false
true
false
2.071821
58.985962
End of preview. Expand in Data Studio

SaMi-Trop: 12-Lead ECGs with Age and Mortality Annotations

Task Dataset Format Exams Leads License

Unofficial mirror of the open SaMi-Trop subset: the first ECG exam of 1,631 patients with chronic Chagas cardiomyopathy, with age and mortality follow-up, in a viewer-ready Parquet layout with exact signal values.

Disclaimer

This repository is not an official release of SaMi-Trop.

The dataset was published by Antonio Luiz P. Ribeiro, Antônio H. Ribeiro, Gabriela M. M. Paixão, Emilly M. Lima, Manoel Horta Ribeiro, Marcelo M. Pinto Filho, Paulo R. Gomes, Derick M. Oliveira, Wagner Meira Jr, Thomas B. Schön and Ester C. Sabino. 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 records from real patients and include mortality follow-up. 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 Zenodo record 4905618 (v1.0.0), with both downloads checked against their MD5. Every stored signal was read back from Parquet and compared with the source HDF5 for exact equality.


Dataset Overview

SaMi-Trop is an NIH-funded prospective cohort of 1,959 patients with chronic Chagas cardiomyopathy. This open subset holds the first ECG exam of 1,631 patients, with age, sex, ECG normality and mortality follow-up.


Changes from the Official Release

  • Packed into Parquet, one row per exam, joining exams.csv and exams.hdf5 by row position.
  • Signals are stored as float32. The source file declares float64, but every value converts to float32 and back exactly.
  • Added active_start, active_end, is_empty and a rendered 12-lead preview.
  • The official files are included unchanged in original/.
  • No signal values or labels were changed.

Dataset Structure

Column Content
exam_id official exam id
age, is_male patient age at the exam, and sex
normal_ecg true if the ECG is normal
death true if the patient died during follow-up
timey years to death, or follow-up time if the patient did not die
nn_predicted_age age predicted by the authors' neural network
signal float32, shape (12, 4096) as (lead, sample), 400 Hz
active_start, active_end first and last sample where any lead is non-zero
is_empty true if every sample is zero (no exam here)
preview PNG plot of the recorded portion

Lead order: DI, DII, DIII, AVR, AVL, AVF, V1, V2, V3, V4, V5, V6, confirmed against the standard limb-lead equations. There is one train split because the authors define no official split.

Read before using the signals

  • Many signals are zero-padded, but not all. The official description says 7 s and 10 s recordings are centered in 4096 samples with zeros. In this file, 807 of 1,631 exams are non-zero across all 4096 samples, so read active_start and active_end instead of assuming a duration.
  • Rows are aligned by position. The HDF5 file has no id column, so each signal is matched to its exams.csv row by order, as published.
  • The amplitude unit is not stated in this record. Values are kept as published.

Usage

# pip install datasets pillow numpy
import numpy as np
from datasets import load_dataset

ds = load_dataset("dronefreak/SaMi-Trop", split="train")
row = ds[0]

signal = np.asarray(row["signal"], dtype=np.float32)   # (12, 4096)
recorded = signal[:, row["active_start"]:row["active_end"] + 1]

Dataset Sources

Citation

Please cite the cohort paper, the ECG-age paper and the dataset (DOI 10.5281/zenodo.4905618):

Cardoso, C. S., Sabino, E. C., Oliveira, C. D. L., de Oliveira, L. C., Ferreira, A. M., Cunha-Neto, E., Bierrenbach, A. L., Ferreira, J. E., Haikal, D. S., Reingold, A. L., Ribeiro, A. L. P. Longitudinal study of patients with chronic Chagas cardiomyopathy in Brazil (SaMi-Trop project): a cohort profile. BMJ Open, 6:e011181, 2016. doi: 10.1136/bmjopen-2016-011181

Lima, E. M., Ribeiro, A. H., Paixão, G. M. M., Ribeiro, M. H., Pinto Filho, M. M., Gomes, P. R., Oliveira, D. M., Sabino, E. C., Duncan, B. B., Giatti, L., Barreto, S. M., Meira Jr, W., Schön, T. B., Ribeiro, A. L. P. Deep neural network estimated electrocardiographic-age as a mortality predictor. medRxiv, 2021. doi: 10.1101/2021.02.19.21251232


License

This subset is released by its authors under Creative Commons Attribution 4.0 International (CC BY 4.0). This mirror reformats the data as described above. Please credit the authors and cite the papers.

Downloads last month
15