RESUMEN
BACKGROUND: Left ventricular (LV) systolic dysfunction is associated with a >8-fold increased risk of heart failure and a 2-fold risk of premature death. The use of ECG signals in screening for LV systolic dysfunction is limited by their availability to clinicians. We developed a novel deep learning-based approach that can use ECG images for the screening of LV systolic dysfunction. METHODS: Using 12-lead ECGs plotted in multiple different formats, and corresponding echocardiographic data recorded within 15 days from the Yale New Haven Hospital between 2015 and 2021, we developed a convolutional neural network algorithm to detect an LV ejection fraction <40%. The model was validated within clinical settings at Yale New Haven Hospital and externally on ECG images from Cedars Sinai Medical Center in Los Angeles, CA; Lake Regional Hospital in Osage Beach, MO; Memorial Hermann Southeast Hospital in Houston, TX; and Methodist Cardiology Clinic of San Antonio, TX. In addition, it was validated in the prospective Brazilian Longitudinal Study of Adult Health. Gradient-weighted class activation mapping was used to localize class-discriminating signals on ECG images. RESULTS: Overall, 385 601 ECGs with paired echocardiograms were used for model development. The model demonstrated high discrimination across various ECG image formats and calibrations in internal validation (area under receiving operation characteristics [AUROCs], 0.91; area under precision-recall curve [AUPRC], 0.55); and external sets of ECG images from Cedars Sinai (AUROC, 0.90 and AUPRC, 0.53), outpatient Yale New Haven Hospital clinics (AUROC, 0.94 and AUPRC, 0.77), Lake Regional Hospital (AUROC, 0.90 and AUPRC, 0.88), Memorial Hermann Southeast Hospital (AUROC, 0.91 and AUPRC 0.88), Methodist Cardiology Clinic (AUROC, 0.90 and AUPRC, 0.74), and Brazilian Longitudinal Study of Adult Health cohort (AUROC, 0.95 and AUPRC, 0.45). An ECG suggestive of LV systolic dysfunction portended >27-fold higher odds of LV systolic dysfunction on transthoracic echocardiogram (odds ratio, 27.5 [95% CI, 22.3-33.9] in the held-out set). Class-discriminative patterns localized to the anterior and anteroseptal leads (V2 and V3), corresponding to the left ventricle regardless of the ECG layout. A positive ECG screen in individuals with an LV ejection fraction ≥40% at the time of initial assessment was associated with a 3.9-fold increased risk of developing incident LV systolic dysfunction in the future (hazard ratio, 3.9 [95% CI, 3.3-4.7]; median follow-up, 3.2 years). CONCLUSIONS: We developed and externally validated a deep learning model that identifies LV systolic dysfunction from ECG images. This approach represents an automated and accessible screening strategy for LV systolic dysfunction, particularly in low-resource settings.
Asunto(s)
Electrocardiografía , Disfunción Ventricular Izquierda , Adulto , Humanos , Estudios Prospectivos , Estudios Longitudinales , Disfunción Ventricular Izquierda/diagnóstico por imagen , Función Ventricular Izquierda/fisiologíaRESUMEN
SciPy is an open-source scientific computing library for the Python programming language. Since its initial release in 2001, SciPy has become a de facto standard for leveraging scientific algorithms in Python, with over 600 unique code contributors, thousands of dependent packages, over 100,000 dependent repositories and millions of downloads per year. In this work, we provide an overview of the capabilities and development practices of SciPy 1.0 and highlight some recent technical developments.
Asunto(s)
Algoritmos , Biología Computacional/métodos , Lenguajes de Programación , Programas Informáticos , Biología Computacional/historia , Simulación por Computador , Historia del Siglo XX , Historia del Siglo XXI , Modelos Lineales , Modelos Biológicos , Dinámicas no Lineales , Procesamiento de Señales Asistido por ComputadorRESUMEN
An amendment to this paper has been published and can be accessed via a link at the top of the paper.
RESUMEN
BACKGROUND: Atrial fibrillation (AF) is one of the most common cardiac arrhythmias that affects millions of people each year worldwide and it is closely linked to increased risk of cardiovas- cular diseases such as stroke and heart failure. Machine learning methods have shown promising results in evaluating the risk of developing atrial fibrillation from the electrocardiogram. We aim to develop and evaluate one such algorithm on a large CODE dataset collected in Brazil. METHODS: We used the CODE cohort to develop and test a model for AF risk prediction for individual patients from the raw ECG recordings without the use of additional digital biomarkers. The cohort is a collection of ECG recordings and annotations by the Telehealth Network of Minas Gerais, in Brazil. A convolutional neural network based on a residual network architecture was implemented to produce class probabilities for the classification of AF. The probabilities were used to develop a Cox proportional hazards model and a Kaplan-Meier model to carry out survival analysis. Hence, our model is able to perform risk prediction for the development of AF in patients without the condition. RESULTS: The deep neural network model identified patients without indication of AF in the presented ECG but who will develop AF in the future with an AUC score of 0.845. From our survival model, we obtain that patients in the high-risk group (i.e. with the probability of a future AF case being >0.7) are 50% more likely to develop AF within 40 weeks, while patients belonging to the minimal-risk group (i.e. with the probability of a future AF case being less than or equal to 0.1) have >85% chance of remaining AF free up until after seven years. CONCLUSION: We developed and validated a model for AF risk prediction. If applied in clinical practice, the model possesses the potential of providing valuable and useful information in decision- making and patient management processes.
Asunto(s)
Fibrilación Atrial , Humanos , Fibrilación Atrial/diagnóstico , Electrocardiografía/métodos , Redes Neurales de la Computación , Algoritmos , Aprendizaje AutomáticoRESUMEN
Digital electrocardiographs are now widely available and a large number of digital electrocardiograms (ECGs) have been recorded and stored. The present study describes the development and clinical applications of a large database of such digital ECGs, namely the CODE (Clinical Outcomes in Digital Electrocardiology) study. ECGs obtained by the Telehealth Network of Minas Gerais, Brazil, from 2010 to 17, were organized in a structured database. A hierarchical free-text machine learning algorithm recognized specific ECG diagnoses from cardiologist reports. The Glasgow ECG Analysis Program provided Minnesota Codes and automatic diagnostic statements. The presence of a specific ECG abnormality was considered when both automatic and medical diagnosis were concordant; cases of discordance were decided using heuristisc rules and manual review. The ECG database was linked to the national mortality information system using probabilistic linkage methods. From 2,470,424 ECGs, 1,773,689 patients were identified. After excluding the ECGs with technical problems and patients <16â¯years-old, 1,558,415 patients were studied. High performance measures were obtained using an end-to-end deep neural network trained to detect 6 types of ECG abnormalities, with F1 scores >80% and specificity >99% in an independent test dataset. We also evaluated the risk of mortality associated with the presence of atrial fibrillation (AF), which showed that AF was a strong predictor of cardiovascular mortality and mortality for all causes, with increased risk in women. In conclusion, a large database that comprises all ECGs performed by a large telehealth network can be useful for further developments in the field of digital electrocardiography, clinical cardiology and cardiovascular epidemiology.
Asunto(s)
Fibrilación Atrial , Electrocardiografía , Adolescente , Brasil , Femenino , Humanos , Minnesota , Redes Neurales de la Computación , Adulto JovenRESUMEN
BACKGROUND: Left bundle branch block is recognized as a marker of higher risk of death, but the prognostic value of the right bundle branch block in the general population is still controversial. Our aim is to evaluate the risk of overall and cardiovascular mortality in patients with right (RBBB) and left bundle branch block (LBBB) in a large electronic cohort of Brazilian patients. METHODS: This observational retrospective study was developed with the database of digital ECGs from Telehealth Network of Minas Gerais, Brazil (TNMG). All ECGs performed from 2010 to 2017 in primary care patients over 16â¯years old were assessed. The electronic cohort was obtained by linking data from ECG exams (name, sex, date of birth, city of residence) and those from national mortality information system, using standard probabilistic linkage methods (FRIL: Fine-grained record linkage software, v.2.1.5, Atlanta, GA). Only the first ECG of each patient was considered. Clinical data were self-reported, and ECGs were interpreted manually by cardiologists and automatically by the Glasgow University Interpreter software. Hazard ratio (HR) for mortality was estimated using Cox regression. RESULTS: From a dataset of 1,773,689 patients, 1,558,421 primary care patients over 16â¯years old underwent a valid ECG recording during 2010 to 2017. We excluded 17,359 patients that didn't have a valid QRS measure from the Glasgow program and 11,091 patients from the control group that had QRS equal or above 120â¯ms and were not RBBB or LBBB. Therefore, 1,529,971 were included (median age 52 [Q1:38; Q3:65] years; 40.2% were male). In a mean follow-up of 3.7â¯years, the overall mortality rate was 3.34%. RBBB was more frequent (2.42%) than LBBB (1.32%). In multivariate analysis, adjusting for sex, age and comorbidities, both patients with RBBB (HR 1.32; CI 95% 1.27-1.37) and LBBB (HR 1.69; CI 95% 1.62-1.76) had higher risk of overall mortality. Women with RBBB had an increased risk of all-cause death compared to men (pâ¯<â¯0.001). Cardiovascular mortality was higher in patients with LBBB (HR 1.77; CI 95% 1.55-2.01), but not for RBBB. CONCLUSIONS: Patients with RBBB and LBBB had higher risk of overall mortality. Women with RBBB had more risk of all-cause death than men. LBBB was associated with higher risk of cardiovascular mortality.
Asunto(s)
Bloqueo de Rama , Electrocardiografía , Adolescente , Brasil/epidemiología , Electrónica , Femenino , Humanos , Masculino , Persona de Mediana Edad , Estudios RetrospectivosRESUMEN
Imbalances in electrolyte concentrations can have severe consequences, but accurate and accessible measurements could improve patient outcomes. The current measurement method based on blood tests is accurate but invasive and time-consuming and is often unavailable for example in remote locations or an ambulance setting. In this paper, we explore the use of deep neural networks (DNNs) for regression tasks to accurately predict continuous electrolyte concentrations from electrocardiograms (ECGs), a quick and widely adopted tool. We analyze our DNN models on a novel dataset of over 290,000 ECGs across four major electrolytes and compare their performance with traditional machine learning models. For improved understanding, we also study the full spectrum from continuous predictions to a binary classification of extreme concentration levels. Finally, we investigate probabilistic regression approaches and explore uncertainty estimates for enhanced clinical usefulness. Our results show that DNNs outperform traditional models but model performance varies significantly across different electrolytes. While discretization leads to good classification performance, it does not address the original problem of continuous concentration level prediction. Probabilistic regression has practical potential, but our uncertainty estimates are not perfectly calibrated. Our study is therefore a first step towards developing an accurate and reliable ECG-based method for electrolyte concentration level prediction-a method with high potential impact within multiple clinical scenarios.
Asunto(s)
Electrocardiografía , Electrólitos , Electrocardiografía/métodos , Humanos , Electrólitos/sangre , Redes Neurales de la Computación , Análisis de Regresión , Aprendizaje AutomáticoRESUMEN
Aims: Electrocardiogram (ECG) is widely considered the primary test for evaluating cardiovascular diseases. However, the use of artificial intelligence (AI) to advance these medical practices and learn new clinical insights from ECGs remains largely unexplored. We hypothesize that AI models with a specific design can provide fine-grained interpretation of ECGs to advance cardiovascular diagnosis, stratify mortality risks, and identify new clinically useful information. Methods and results: Utilizing a data set of 2 322 513 ECGs collected from 1 558 772 patients with 7 years follow-up, we developed a deep-learning model with state-of-the-art granularity for the interpretable diagnosis of cardiac abnormalities, gender identification, and hypertension screening solely from ECGs, which are then used to stratify the risk of mortality. The model achieved the area under the receiver operating characteristic curve (AUC) scores of 0.998 (95% confidence interval (CI), 0.995-0.999), 0.964 (95% CI, 0.963-0.965), and 0.839 (95% CI, 0.837-0.841) for the three diagnostic tasks separately. Using ECG-predicted results, we find high risks of mortality for subjects with sinus tachycardia (adjusted hazard ratio (HR) of 2.24, 1.96-2.57), and atrial fibrillation (adjusted HR of 2.22, 1.99-2.48). We further use salient morphologies produced by the deep-learning model to identify key ECG leads that achieved similar performance for the three diagnoses, and we find that the V1 ECG lead is important for hypertension screening and mortality risk stratification of hypertensive cohorts, with an AUC of 0.816 (0.814-0.818) and a univariate HR of 1.70 (1.61-1.79) for the two tasks separately. Conclusion: Using ECGs alone, our developed model showed cardiologist-level accuracy in interpretable cardiac diagnosis and the advancement in mortality risk stratification. In addition, it demonstrated the potential to facilitate clinical knowledge discovery for gender and hypertension detection which are not readily available.
RESUMEN
The electrocardiogram (ECG) can capture obesity-related cardiac changes. Artificial intelligence-enhanced ECG (AI-ECG) can identify subclinical disease. We trained an AI-ECG model to predict body mass index (BMI) from the ECG alone. Developed from 512,950 12-lead ECGs from the Beth Israel Deaconess Medical Center (BIDMC), a secondary care cohort, and validated on UK Biobank (UKB) (n = 42,386), the model achieved a Pearson correlation coefficient (r) of 0.65 and 0.62, and an R2 of 0.43 and 0.39 in the BIDMC cohort and UK Biobank, respectively for AI-ECG BMI vs. measured BMI. We found delta-BMI, the difference between measured BMI and AI-ECG-predicted BMI (AI-ECG-BMI), to be a biomarker of cardiometabolic health. The top tertile of delta-BMI showed increased risk of future cardiometabolic disease (BIDMC: HR 1.15, p < 0.001; UKB: HR 1.58, p < 0.001) and diabetes mellitus (BIDMC: HR 1.25, p < 0.001; UKB: HR 2.28, p < 0.001) after adjusting for covariates including measured BMI. Significant enhancements in model fit, reclassification and improvements in discriminatory power were observed with the inclusion of delta-BMI in both cohorts. Phenotypic profiling highlighted associations between delta-BMI and cardiometabolic diseases, anthropometric measures of truncal obesity, and pericardial fat mass. Metabolic and proteomic profiling associates delta-BMI positively with valine, lipids in small HDL, syntaxin-3, and carnosine dipeptidase 1, and inversely with glutamine, glycine, colipase, and adiponectin. A genome-wide association study revealed associations with regulators of cardiovascular/metabolic traits, including SCN10A, SCN5A, EXOG and RXRG. In summary, our AI-ECG-BMI model accurately predicts BMI and introduces delta-BMI as a non-invasive biomarker for cardiometabolic risk stratification.
RESUMEN
OBJECTIVE: Over the past few years, deep learning (DL) has been used extensively in research for 12-lead electrocardiogram (ECG) analysis. However, it is unclear whether the explicit or implicit claims made on DL superiority to the more classical feature engineering (FE) approaches, based on domain knowledge, hold. In addition, it remains unclear whether combining DL with FE may improve performance over a single modality. METHODS: To address these research gaps and in-line with recent major experiments, we revisited three tasks: cardiac arrhythmia diagnosis (multiclass-multilabel classification), atrial fibrillation risk prediction (binary classification), and age estimation (regression). We used an overall dataset of 2.3M 12-lead ECG recordings to train the following models for each task: i) a random forest taking FE as input; ii) an end-to-end DL model; and iii) a merged model of FE+DL. RESULTS: FE yielded comparable results to DL while necessitating significantly less data for the two classification tasks. DL outperformed FE for the regression task. For all tasks, merging FE with DL did not improve performance over DL alone. These findings were confirmed on the additional PTB-XL dataset. CONCLUSION: We found that for traditional 12-lead ECG based diagnosis tasks, DL did not yield a meaningful improvement over FE, while it improved significantly the nontraditional regression task. We also found that combining FE with DL did not improve over DL alone, which suggests that the FE was redundant with the features learned by DL. SIGNIFICANCE: Our findings provides important recommendations on 12-lead ECG based machine learning strategy and data regime to choose for a given task. When looking at maximizing performance as the end goal, if the task is nontraditional and a large dataset is available then DL is preferable. If the task is a classical one and/or a small dataset is available then a FE approach may be the better choice.
Asunto(s)
Fibrilación Atrial , Aprendizaje Profundo , Humanos , Aprendizaje Automático , Electrocardiografía/métodosRESUMEN
Background: People age at different rates. Biological age is a risk factor for many chronic diseases independent of chronological age. A good lifestyle is known to improve overall health, but its association with biological age is unclear. Methods: This study included participants from the UK Biobank who had undergone 12-lead resting electrocardiography (ECG). Biological age was estimated by a deep learning model (defined as ECG-age), and the difference between ECG-age and chronological age was defined as Δage. Participants were further categorized into an ideal (score 4), intermediate (scores 2 and 3) or unfavorable lifestyle (score 0 or 1). Four lifestyle factors were investigated, including diet, alcohol consumption, physical activity, and smoking. Linear regression models were used to examine the association between lifestyle factors and Δage, and the models were adjusted for sex and chronological age. Results: This study included 44,094 individuals (mean age 64 ± 8, 51.4% females). A significant correlation was observed between predicted biological age and chronological age (correlation coefficient = 0.54, P < 0.001) and the mean Δage (absolute error of biological age and chronological age) was 9.8 ± 7.4 years. Δage was significantly associated with all of the four lifestyle factors, with the effect size ranging from 0.41 ± 0.11 for the healthy diet to 2.37 ± 0.30 for non-smoking. Compared with an ideal lifestyle, an unfavorable lifestyle was associated with an average of 2.50 ± 0.29 years of older predicted ECG-age. Conclusion: In this large contemporary population, a strong association was observed between all four studied healthy lifestyle factors and deaccelerated aging. Our study underscores the importance of a healthy lifestyle to reduce the burden of aging-related diseases.
RESUMEN
Aims: Deep neural network artificial intelligence (DNN-AI)-based Heart Age estimations have been presented and used to show that the difference between an electrocardiogram (ECG)-estimated Heart Age and chronological age is associated with prognosis. An accurate ECG Heart Age, without DNNs, has been developed using explainable advanced ECG (A-ECG) methods. We aimed to evaluate the prognostic value of the explainable A-ECG Heart Age and compare its performance to a DNN-AI Heart Age. Methods and results: Both A-ECG and DNN-AI Heart Age were applied to patients who had undergone clinical cardiovascular magnetic resonance imaging. The association between A-ECG or DNN-AI Heart Age Gap and cardiovascular risk factors was evaluated using logistic regression. The association between Heart Age Gaps and death or heart failure (HF) hospitalization was evaluated using Cox regression adjusted for clinical covariates/comorbidities. Among patients [n = 731, 103 (14.1%) deaths, 52 (7.1%) HF hospitalizations, median (interquartile range) follow-up 5.7 (4.7-6.7) years], A-ECG Heart Age Gap was associated with risk factors and outcomes [unadjusted hazard ratio (HR) (95% confidence interval) (5 year increments): 1.23 (1.13-1.34) and adjusted HR 1.11 (1.01-1.22)]. DNN-AI Heart Age Gap was associated with risk factors and outcomes after adjustments [HR (5 year increments): 1.11 (1.01-1.21)], but not in unadjusted analyses [HR 1.00 (0.93-1.08)], making it less easily applicable in clinical practice. Conclusion: A-ECG Heart Age Gap is associated with cardiovascular risk factors and HF hospitalization or death. Explainable A-ECG Heart Age Gap has the potential for improving clinical adoption and prognostic performance compared with existing DNN-AI-type methods.
RESUMEN
BACKGROUND: Worldwide, it is estimated that over 6 million people are infected with Chagas disease (ChD). It is a neglected disease that can lead to severe heart conditions in its chronic phase. While early treatment can avoid complications, the early-stage detection rate is low. We explore the use of deep neural networks to detect ChD from electrocardiograms (ECGs) to aid in the early detection of the disease. METHODS: We employ a convolutional neural network model that uses 12-lead ECG data to compute the probability of a ChD diagnosis. Our model is developed using two datasets which jointly comprise over two million entries from Brazilian patients: The SaMi-Trop study focusing on ChD patients, enriched with data from the CODE study from the general population. The model's performance is evaluated on two external datasets: the REDS-II, a study focused on ChD with 631 patients, and the ELSA-Brasil study, with 13,739 civil servant patients. FINDINGS: Evaluating our model, we obtain an AUC-ROC of 0.80 (CI 95% 0.79-0.82) for the validation set (samples from CODE and SaMi-Trop), and in external validation datasets: 0.68 (CI 95% 0.63-0.71) for REDS-II and 0.59 (CI 95% 0.56-0.63) for ELSA-Brasil. In the latter, we report a sensitivity of 0.52 (CI 95% 0.47-0.57) and 0.36 (CI 95% 0.30-0.42) and a specificity of 0.77 (CI 95% 0.72-0.81) and 0.76 (CI 95% 0.75-0.77), respectively. Additionally, when considering only patients with Chagas cardiomyopathy as positive, the model achieved an AUC-ROC of 0.82 (CI 95% 0.77-0.86) for REDS-II and 0.77 (CI 95% 0.68-0.85) for ELSA-Brasil. INTERPRETATION: The neural network detects chronic Chagas cardiomyopathy (CCC) from ECG-with weaker performance for early-stage cases. Future work should focus on curating large higher-quality datasets. The CODE dataset, our largest development dataset includes self-reported and therefore less reliable labels, limiting performance for non-CCC patients. Our findings can improve ChD detection and treatment, particularly in high-prevalence areas.
Asunto(s)
Cardiomiopatía Chagásica , Enfermedad de Chagas , Humanos , Cardiomiopatía Chagásica/diagnóstico , Estudios Retrospectivos , Redes Neurales de la Computación , Enfermedad de Chagas/diagnóstico , ElectrocardiografíaRESUMEN
BACKGROUND: Deep neural networks have been used to estimate age from ECGs, the electrocardiographic age (ECG-age), which predicts adverse outcomes. However, this prediction ability has been restricted to clinical settings or relatively short periods. We hypothesized that ECG-age is associated with death and cardiovascular outcomes in the long-standing community-based FHS (Framingham Heart Study). METHODS: We tested the association of ECG-age with chronological age in the FHS cohorts in ECGs from 1986 to 2021. We calculated the gap between chronological and ECG-age (Δage) and classified individuals as having normal, accelerated, or decelerated aging, if Δage was within, higher, or lower than the mean absolute error of the model, respectively. We assessed the associations of Δage, accelerated and decelerated aging with death or cardiovascular outcomes (atrial fibrillation, myocardial infarction, and heart failure) using Cox proportional hazards models adjusted for age, sex, and clinical factors. RESULTS: The study population included 9877 FHS participants (mean age, 55±13 years; 54.9% women) with 34 948 ECGs. ECG-age was correlated to chronological age (r=0.81; mean absolute error, 9±7 years). After 17±8 years of follow-up, every 10-year increase of Δage was associated with 18% increase in all-cause mortality (hazard ratio [HR], 1.18 [95% CI, 1.12-1.23]), 23% increase in atrial fibrillation risk (HR, 1.23 [95% CI, 1.17-1.29]), 14% increase in myocardial infarction risk (HR, 1.14 [95% CI, 1.05-1.23]), and 40% increase in heart failure risk (HR, 1.40 [95% CI, 1.30-1.52]), in multivariable models. In addition, accelerated aging was associated with a 28% increase in all-cause mortality (HR, 1.28 [95% CI, 1.14-1.45]), whereas decelerated aging was associated with a 16% decrease (HR, 0.84 [95% CI, 0.74-0.95]). CONCLUSIONS: ECG-age was highly correlated with chronological age in FHS. The difference between ECG-age and chronological age was associated with death, myocardial infarction, atrial fibrillation, and heart failure. Given the wide availability and low cost of ECG, ECG-age could be a scalable biomarker of cardiovascular risk.
Asunto(s)
Fibrilación Atrial , Insuficiencia Cardíaca , Infarto del Miocardio , Humanos , Femenino , Adulto , Persona de Mediana Edad , Anciano , Masculino , Fibrilación Atrial/epidemiología , Insuficiencia Cardíaca/epidemiología , Estudios Longitudinales , Infarto del Miocardio/epidemiología , Electrocardiografía , Factores de RiesgoRESUMEN
Myocardial infarction diagnosis is a common challenge in the emergency department. In managed settings, deep learning-based models and especially convolutional deep models have shown promise in electrocardiogram (ECG) classification, but there is a lack of high-performing models for the diagnosis of myocardial infarction in real-world scenarios. We aimed to train and validate a deep learning model using ECGs to predict myocardial infarction in real-world emergency department patients. We studied emergency department patients in the Stockholm region between 2007 and 2016 that had an ECG obtained because of their presenting complaint. We developed a deep neural network based on convolutional layers similar to a residual network. Inputs to the model were ECG tracing, age, and sex; and outputs were the probabilities of three mutually exclusive classes: non-ST-elevation myocardial infarction (NSTEMI), ST-elevation myocardial infarction (STEMI), and control status, as registered in the SWEDEHEART and other registries. We used an ensemble of five models. Among 492,226 ECGs in 214,250 patients, 5,416 were recorded with an NSTEMI, 1,818 a STEMI, and 485,207 without a myocardial infarction. In a random test set, our model could discriminate STEMIs/NSTEMIs from controls with a C-statistic of 0.991/0.832 and had a Brier score of 0.001/0.008. The model obtained a similar performance in a temporally separated test set of the study sample, and achieved a C-statistic of 0.985 and a Brier score of 0.002 in discriminating STEMIs from controls in an external test set. We developed and validated a deep learning model with excellent performance in discriminating between control, STEMI, and NSTEMI on the presenting ECG of a real-world sample of the important population of all-comers to the emergency department. Hence, deep learning models for ECG decision support could be valuable in the emergency department.
Asunto(s)
Aprendizaje Profundo , Infarto del Miocardio , Infarto del Miocardio sin Elevación del ST , Infarto del Miocardio con Elevación del ST , Humanos , Infarto del Miocardio con Elevación del ST/diagnóstico , Infarto del Miocardio con Elevación del ST/epidemiología , Estudios Retrospectivos , Electrocardiografía , Infarto del Miocardio/diagnóstico , Servicio de Urgencia en HospitalRESUMEN
The application of artificial intelligence (AI) for automated diagnosis of electrocardiograms (ECGs) can improve care in remote settings but is limited by the reliance on infrequently available signal-based data. We report the development of a multilabel automated diagnosis model for electrocardiographic images, more suitable for broader use. A total of 2,228,236 12-lead ECGs signals from 811 municipalities in Brazil are transformed to ECG images in varying lead conformations to train a convolutional neural network (CNN) identifying 6 physician-defined clinical labels spanning rhythm and conduction disorders, and a hidden label for gender. The image-based model performs well on a distinct test set validated by at least two cardiologists (average AUROC 0.99, AUPRC 0.86), an external validation set of 21,785 ECGs from Germany (average AUROC 0.97, AUPRC 0.73), and printed ECGs, with performance superior to signal-based models, and learning clinically relevant cues based on Grad-CAM. The model allows the application of AI to ECGs across broad settings.
Asunto(s)
Inteligencia Artificial , Electrocardiografía , Brasil , Electrocardiografía/métodos , Alemania , Redes Neurales de la ComputaciónRESUMEN
Aims: This study aims to assess whether information derived from the raw 12-lead electrocardiogram (ECG) combined with clinical information is predictive of atrial fibrillation (AF) development. Methods and results: We use a subset of the Telehealth Network of Minas Gerais (TNMG) database consisting of patients that had repeated 12-lead ECG measurements between 2010 and 2017 that is 1 130 404 recordings from 415 389 unique patients. Median and interquartile of age for the recordings were 58 (46-69) and 38% of the patients were males. Recordings were assigned to train-validation and test sets in an 80:20% split which was stratified by class, age and gender. A random forest classifier was trained to predict, for a given recording, the risk of AF development within 5 years. We use features obtained from different modalities, namely demographics, clinical information, engineered features, and features from deep representation learning. The best model performance on the test set was obtained for the model combining features from all modalities with an area under the receiver operating characteristic curve (AUROC) = 0.909 against the best single modality model which had an AUROC = 0.839. Conclusion: Our study has important clinical implications for AF management. It is the first study integrating feature engineering, deep learning, and Electronic medical record system (EMR) metadata to create a risk prediction tool for the management of patients at risk of AF. The best model that includes features from all modalities demonstrates that human knowledge in electrophysiology combined with deep learning outperforms any single modality approach. The high performance obtained suggest that structural changes in the 12-lead ECG are associated with existing or impending AF.
RESUMEN
The electrocardiogram (ECG) is the most commonly used exam for the evaluation of cardiovascular diseases. Here we propose that the age predicted by artificial intelligence (AI) from the raw ECG (ECG-age) can be a measure of cardiovascular health. A deep neural network is trained to predict a patient's age from the 12-lead ECG in the CODE study cohort (n = 1,558,415 patients). On a 15% hold-out split, patients with ECG-age more than 8 years greater than the chronological age have a higher mortality rate (hazard ratio (HR) 1.79, p < 0.001), whereas those with ECG-age more than 8 years smaller, have a lower mortality rate (HR 0.78, p < 0.001). Similar results are obtained in the external cohorts ELSA-Brasil (n = 14,236) and SaMi-Trop (n = 1,631). Moreover, even for apparent normal ECGs, the predicted ECG-age gap from the chronological age remains a statistically significant risk predictor. These results show that the AI-enabled analysis of the ECG can add prognostic information.
Asunto(s)
Enfermedades Cardiovasculares/mortalidad , Redes Neurales de la Computación , Adolescente , Adulto , Factores de Edad , Anciano , Enfermedades Cardiovasculares/diagnóstico , Niño , Estudios de Cohortes , Electrocardiografía , Femenino , Humanos , Masculino , Persona de Mediana Edad , Adulto JovenRESUMEN
The role of automatic electrocardiogram (ECG) analysis in clinical practice is limited by the accuracy of existing models. Deep Neural Networks (DNNs) are models composed of stacked transformations that learn tasks by examples. This technology has recently achieved striking success in a variety of task and there are great expectations on how it might improve clinical practice. Here we present a DNN model trained in a dataset with more than 2 million labeled exams analyzed by the Telehealth Network of Minas Gerais and collected under the scope of the CODE (Clinical Outcomes in Digital Electrocardiology) study. The DNN outperform cardiology resident medical doctors in recognizing 6 types of abnormalities in 12-lead ECG recordings, with F1 scores above 80% and specificity over 99%. These results indicate ECG analysis based on DNNs, previously studied in a single-lead setup, generalizes well to 12-lead exams, taking the technology closer to the standard clinical practice.
Asunto(s)
Fibrilación Atrial/diagnóstico , Cardiología/métodos , Aprendizaje Profundo , Electrocardiografía , Redes Neurales de la Computación , Adolescente , Adulto , Anciano , Anciano de 80 o más Años , Fibrilación Atrial/fisiopatología , Humanos , Persona de Mediana Edad , Reproducibilidad de los Resultados , Sensibilidad y Especificidad , Adulto JovenRESUMEN
An amendment to this paper has been published and can be accessed via a link at the top of the paper.