1
|
von Bachmann P, Gedon D, Gustafsson FK, Ribeiro AH, Lampa E, Gustafsson S, Sundström J, Schön TB. Evaluating regression and probabilistic methods for ECG-based electrolyte prediction. Sci Rep 2024; 14:15273. [PMID: 38961109 PMCID: PMC11222546 DOI: 10.1038/s41598-024-65223-w] [Citation(s) in RCA: 0] [Impact Index Per Article: 0] [Reference Citation Analysis] [Abstract] [Key Words] [MESH Headings] [Grants] [Track Full Text] [Journal Information] [Subscribe] [Scholar Register] [Received: 02/02/2024] [Accepted: 06/18/2024] [Indexed: 07/05/2024] Open
Abstract
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.
Collapse
Affiliation(s)
| | - Daniel Gedon
- Department of Information Technology, Uppsala University, Uppsala, Sweden.
| | - Fredrik K Gustafsson
- Department of Medical Epidemiology and Biostatistics, Karolinska Institutet, Stockholm, Sweden
| | - Antônio H Ribeiro
- Department of Information Technology, Uppsala University, Uppsala, Sweden
| | - Erik Lampa
- Clinical Epidemiology Unit, Department of Medical Sciences, Uppsala University, Uppsala, Sweden
| | - Stefan Gustafsson
- Clinical Epidemiology Unit, Department of Medical Sciences, Uppsala University, Uppsala, Sweden
| | - Johan Sundström
- Clinical Epidemiology Unit, Department of Medical Sciences, Uppsala University, Uppsala, Sweden
- George Institute for Global Health, University of New South Wales, Sydney, Australia
| | - Thomas B Schön
- Department of Information Technology, Uppsala University, Uppsala, Sweden
| |
Collapse
|
2
|
Kim D, Jeong J, Kim J, Cho Y, Park I, Lee SM, Oh YT, Baek S, Kang D, Lee E, Jeong B. Hyperkalemia Detection in Emergency Departments Using Initial ECGs: A Smartphone AI ECG Analyzer vs. Board-Certified Physicians. J Korean Med Sci 2023; 38:e322. [PMID: 37987103 PMCID: PMC10659922 DOI: 10.3346/jkms.2023.38.e322] [Citation(s) in RCA: 0] [Impact Index Per Article: 0] [Reference Citation Analysis] [Abstract] [Key Words] [MESH Headings] [Grants] [Track Full Text] [Journal Information] [Submit a Manuscript] [Subscribe] [Scholar Register] [Received: 06/01/2023] [Accepted: 08/22/2023] [Indexed: 11/22/2023] Open
Abstract
BACKGROUND Hyperkalemia is a potentially fatal condition that mandates rapid identification in emergency departments (EDs). Although a 12-lead electrocardiogram (ECG) can indicate hyperkalemia, subtle changes in the ECG often pose detection challenges. An artificial intelligence application that accurately assesses hyperkalemia risk from ECGs could revolutionize patient screening and treatment. We aimed to evaluate the efficacy and reliability of a smartphone application, which utilizes camera-captured ECG images, in quantifying hyperkalemia risk compared to human experts. METHODS We performed a retrospective analysis of ED hyperkalemic patients (serum potassium ≥ 6 mmol/L) and their age- and sex-matched non-hyperkalemic controls. The application was tested by five users and its performance was compared to five board-certified emergency physicians (EPs). RESULTS Our study included 125 patients. The area under the curve (AUC)-receiver operating characteristic of the application's output was nearly identical among the users, ranging from 0.898 to 0.904 (median: 0.902), indicating almost perfect interrater agreement (Fleiss' kappa 0.948). The application demonstrated high sensitivity (0.797), specificity (0.934), negative predictive value (NPV) (0.815), and positive predictive value (PPV) (0.927). In contrast, the EPs showed moderate interrater agreement (Fleiss' kappa 0.551), and their consensus score had a significantly lower AUC of 0.662. The physicians' consensus demonstrated a sensitivity of 0.203, specificity of 0.934, NPV of 0.527, and PPV of 0.765. Notably, this performance difference remained significant regardless of patients' sex and age (P < 0.001 for both). CONCLUSION Our findings suggest that a smartphone application can accurately and reliably quantify hyperkalemia risk using initial ECGs in the ED.
Collapse
Affiliation(s)
- Donghoon Kim
- Department of Emergency Medicine, Seoul National University Bundang Hospital, Seongnam, Korea
| | - Joo Jeong
- Department of Emergency Medicine, Seoul National University Bundang Hospital, Seongnam, Korea.
| | - Joonghee Kim
- Department of Emergency Medicine, Seoul National University Bundang Hospital, Seongnam, Korea
- Division of Data Science, Department of Emergency Medicine, Seoul National University College of Medicine, Seoul, Korea
- ARPI Inc., Seongnam, Korea.
| | - Youngjin Cho
- Division of Cardiology, Department of Internal Medicine, Seoul National University Bundang Hospital, Seongnam, Korea
- ARPI Inc., Seongnam, Korea
| | - Inwon Park
- Department of Emergency Medicine, Seoul National University Bundang Hospital, Seongnam, Korea
| | - Sang-Min Lee
- Department of Emergency Medicine, Seoul National University Bundang Hospital, Seongnam, Korea
| | - Young Taeck Oh
- Department of Emergency Medicine, Hallym University Dongtan Sacred Heart Hospital, Hwaseong, Korea
| | - Sumin Baek
- Department of Emergency Medicine, Seoul National University Bundang Hospital, Seongnam, Korea
- Division of Data Science, Department of Emergency Medicine, Seoul National University College of Medicine, Seoul, Korea
| | - Dongin Kang
- Department of Emergency Medicine, Seoul National University Bundang Hospital, Seongnam, Korea
| | | | | |
Collapse
|
3
|
Tsai C, Patel H, Horbal P, Dickey S, Peng Y, Nwankwo E, Hicks H, Chen G, Hussein A, Gopinathannair R, Mar PL. Comparison of quantifiable electrocardiographic changes associated with severe hyperkalemia. Int J Cardiol 2023; 391:131257. [PMID: 37574026 DOI: 10.1016/j.ijcard.2023.131257] [Citation(s) in RCA: 0] [Impact Index Per Article: 0] [Reference Citation Analysis] [Abstract] [Key Words] [Track Full Text] [Journal Information] [Submit a Manuscript] [Subscribe] [Scholar Register] [Received: 04/19/2023] [Revised: 06/29/2023] [Accepted: 08/10/2023] [Indexed: 08/15/2023]
Abstract
BACKGROUND Hyperkalemia (HK) is a life-threatening condition that is frequently evaluated by electrocardiogram (ECG). ECG changes in severe HK (≥ 6.3 mEq/L) are not well-characterized. This study sought to compare and correlate ECG metrics in severe HK to baseline normokalemic ECGs and serum potassium. METHODS A retrospective analysis of 340 severe HK encounters with corresponding normokalemic ECGs was performed. RESULTS Various ECG metrics were analyzed. P wave amplitude in lead II, QRS duration, T wave slope, ratio of T wave amplitude: duration, and ratios of T wave: QRS amplitudes were significantly different between normokalemic and HK ECGs. P wave amplitude attenuation in lead II correlated better with serum potassium than in V1. T wave metrics that incorporated both T wave and QRS amplitudes correlated better than metrics utilizing T wave metrics alone. CONCLUSION Multiple statistically significant and quantifiable differences among ECG metrics were observed between normokalemic and HK ECGs and correlated with increasing degrees of serum potassium and along the continuum of serum potassium. When incorporated into a logistic regression model, the ability to distinguish HK versus normokalemia on ECG improved significantly. These findings could be integrated into an ECG acquisition system that can more accurately identify severe HK.
Collapse
Affiliation(s)
- Christina Tsai
- Department of Medicine, Saint Louis University, Saint Louis, MO, 1008 S. Spring Avenue, Suite 2113, Saint Louis, MO 63110, USA
| | - Hiren Patel
- Division of Cardiovascular Medicine, Saint Louis University, 1008 S. Spring Avenue, Suite 2113, Saint Louis, MO 63110, USA
| | - Piotr Horbal
- Department of Medicine, Saint Louis University, Saint Louis, MO, 1008 S. Spring Avenue, Suite 2113, Saint Louis, MO 63110, USA
| | - Sierra Dickey
- Department of Medicine, Saint Louis University, Saint Louis, MO, 1008 S. Spring Avenue, Suite 2113, Saint Louis, MO 63110, USA
| | - Yuanzun Peng
- Saint Louis University School of Medicine, 1008 S. Spring Avenue, Suite 2113, Saint Louis, MO 63110, USA
| | - Eugene Nwankwo
- Department of Medicine, Saint Louis University, Saint Louis, MO, 1008 S. Spring Avenue, Suite 2113, Saint Louis, MO 63110, USA
| | - Hunter Hicks
- Saint Louis University School of Medicine, 1008 S. Spring Avenue, Suite 2113, Saint Louis, MO 63110, USA
| | - Guanhua Chen
- Department of Biostatistics and Medical Informatics, University of Wisconsin, 610 Walnut Street, Room 207D, Madison, WI 53726, USA
| | - Ahmed Hussein
- Division of Cardiovascular Medicine, Saint Louis University, 1008 S. Spring Avenue, Suite 2113, Saint Louis, MO 63110, USA
| | - Rakesh Gopinathannair
- Kansas City Heart Rhythm Institute, Missouri, 2330 East Meyer Blvd, Suite 509, Kansas City, MO 64132, USA
| | - Philip L Mar
- Division of Cardiovascular Medicine, Saint Louis University, 1008 S. Spring Avenue, Suite 2113, Saint Louis, MO 63110, USA.
| |
Collapse
|
4
|
Bukhari HA, Sánchez C, Ruiz JE, Potse M, Laguna P, Pueyo E. Monitoring of Serum Potassium and Calcium Levels in End-Stage Renal Disease Patients by ECG Depolarization Morphology Analysis. SENSORS 2022; 22:s22082951. [PMID: 35458934 PMCID: PMC9027214 DOI: 10.3390/s22082951] [Citation(s) in RCA: 0] [Impact Index Per Article: 0] [Reference Citation Analysis] [Abstract] [MESH Headings] [Grants] [Track Full Text] [Download PDF] [Figures] [Subscribe] [Scholar Register] [Received: 03/02/2022] [Revised: 04/05/2022] [Accepted: 04/07/2022] [Indexed: 11/16/2022]
Abstract
Objective: Non-invasive estimation of serum potassium, [K+], and calcium, [Ca2+], can help to prevent life-threatening ventricular arrhythmias in patients with advanced renal disease, but current methods for estimation of electrolyte levels have limitations. We aimed to develop new markers based on the morphology of the QRS complex of the electrocardiogram (ECG). Methods: ECG recordings from 29 patients undergoing hemodialysis (HD) were processed. Mean warped QRS complexes were computed in two-minute windows at the start of an HD session, at the end of each HD hour and 48 h after it. We quantified QRS width, amplitude and the proposed QRS morphology-based markers that were computed by warping techniques. Reference [K+] and [Ca2+] were determined from blood samples acquired at the time points where the markers were estimated. Linear regression models were used to estimate electrolyte levels from the QRS markers individually and in combination with T wave morphology markers. Leave-one-out cross-validation was used to assess the performance of the estimators. Results: All markers, except for QRS width, strongly correlated with [K+] (median Pearson correlation coefficients, r, ranging from 0.81 to 0.87) and with [Ca2+] (r ranging from 0.61 to 0.76). QRS morphology markers showed very low sensitivity to heart rate (HR). Actual and estimated serum electrolyte levels differed, on average, by less than 0.035 mM (relative error of 0.018) for [K+] and 0.010 mM (relative error of 0.004) for [Ca2+] when patient-specific multivariable estimators combining QRS and T wave markers were used. Conclusion: QRS morphological markers allow non-invasive estimation of [K+] and [Ca2+] with low sensitivity to HR. The estimation performance is improved when multivariable models, including T wave markers, are considered. Significance: Markers based on the QRS complex of the ECG could contribute to non-invasive monitoring of serum electrolyte levels and arrhythmia risk prediction in patients with renal disease.
Collapse
Affiliation(s)
- Hassaan A. Bukhari
- BSICoS Group, I3A Institute, IIS Aragón, University of Zaragoza, 50018 Zaragoza, Spain; (C.S.); (P.L.); (E.P.)
- CIBER en Bioingeniería, Biomateriales y Nanomedicina (CIBER-BBN), 50018 Zaragoza, Spain
- Carmen Team, Inria Bordeaux—Sud-Ouest, 33405 Talence, France;
- Université de Bordeaux, IMB, UMR 5251, 33400 Talence, France
- Correspondence:
| | - Carlos Sánchez
- BSICoS Group, I3A Institute, IIS Aragón, University of Zaragoza, 50018 Zaragoza, Spain; (C.S.); (P.L.); (E.P.)
- CIBER en Bioingeniería, Biomateriales y Nanomedicina (CIBER-BBN), 50018 Zaragoza, Spain
| | - José Esteban Ruiz
- Nephrology Department, Hospital Clínico Universitario Lozano Blesa, 50009 Zaragoza, Spain;
| | - Mark Potse
- Carmen Team, Inria Bordeaux—Sud-Ouest, 33405 Talence, France;
- Université de Bordeaux, IMB, UMR 5251, 33400 Talence, France
| | - Pablo Laguna
- BSICoS Group, I3A Institute, IIS Aragón, University of Zaragoza, 50018 Zaragoza, Spain; (C.S.); (P.L.); (E.P.)
- CIBER en Bioingeniería, Biomateriales y Nanomedicina (CIBER-BBN), 50018 Zaragoza, Spain
| | - Esther Pueyo
- BSICoS Group, I3A Institute, IIS Aragón, University of Zaragoza, 50018 Zaragoza, Spain; (C.S.); (P.L.); (E.P.)
- CIBER en Bioingeniería, Biomateriales y Nanomedicina (CIBER-BBN), 50018 Zaragoza, Spain
| |
Collapse
|
5
|
Development and validation of a deep learning model to screen hypokalemia from electrocardiogram in emergency patients. Chin Med J (Engl) 2021; 134:2333-2339. [PMID: 34483253 PMCID: PMC8509898 DOI: 10.1097/cm9.0000000000001650] [Citation(s) in RCA: 3] [Impact Index Per Article: 1.0] [Reference Citation Analysis] [Abstract] [Track Full Text] [Download PDF] [Figures] [Journal Information] [Subscribe] [Scholar Register] [Indexed: 12/05/2022] Open
Abstract
Background: A deep learning model (DLM) that enables non-invasive hypokalemia screening from an electrocardiogram (ECG) may improve the detection of this life-threatening condition. This study aimed to develop and evaluate the performance of a DLM for the detection of hypokalemia from the ECGs of emergency patients. Methods: We used a total of 9908 ECG data from emergency patients who were admitted at the Second Affiliated Hospital of Nanchang University, Jiangxi, China, from September 2017 to October 2020. The DLM was trained using 12 ECG leads (lead I, II, III, aVR, aVL, aVF, and V1–6) to detect patients with serum potassium concentrations <3.5 mmol/L and was validated using retrospective data from the Jiangling branch of the Second Affiliated Hospital of Nanchang University. The blood draw was completed within 10 min before and after the ECG examination, and there was no new or ongoing infusion during this period. Results: We used 6904 ECGs and 1726 ECGs as development and internal validation data sets, respectively. In addition, 1278 ECGs from the Jiangling branch of the Second Affiliated Hospital of Nanchang University were used as external validation data sets. Using 12 ECG leads (leads I, II, III, aVR, aVL, aVF, and V1–6), the area under the receiver operating characteristic curve (AUC) of the DLM was 0.80 (95% confidence interval [CI]: 0.77–0.82) for the internal validation data set. Using an optimal operating point yielded a sensitivity of 71.4% and a specificity of 77.1%. Using the same 12 ECG leads, the external validation data set resulted in an AUC for the DLM of 0.77 (95% CI: 0.75–0.79). Using an optimal operating point yielded a sensitivity of 70.0% and a specificity of 69.1%. Conclusions: In this study, using 12 ECG leads, a DLM detected hypokalemia in emergency patients with an AUC of 0.77 to 0.80. Artificial intelligence could be used to analyze an ECG to quickly screen for hypokalemia.
Collapse
|
6
|
Pilia N, Severi S, Raimann JG, Genovesi S, Dössel O, Kotanko P, Corsi C, Loewe A. Quantification and classification of potassium and calcium disorders with the electrocardiogram: What do clinical studies, modeling, and reconstruction tell us? APL Bioeng 2020; 4:041501. [PMID: 33062908 PMCID: PMC7532940 DOI: 10.1063/5.0018504] [Citation(s) in RCA: 5] [Impact Index Per Article: 1.3] [Reference Citation Analysis] [Abstract] [Track Full Text] [Download PDF] [Figures] [Journal Information] [Subscribe] [Scholar Register] [Received: 06/15/2020] [Accepted: 09/13/2020] [Indexed: 11/14/2022] Open
Abstract
Diseases caused by alterations of ionic concentrations are frequently observed challenges and play an important role in clinical practice. The clinically established method for the diagnosis of electrolyte concentration imbalance is blood tests. A rapid and non-invasive point-of-care method is yet needed. The electrocardiogram (ECG) could meet this need and becomes an established diagnostic tool allowing home monitoring of the electrolyte concentration also by wearable devices. In this review, we present the current state of potassium and calcium concentration monitoring using the ECG and summarize results from previous work. Selected clinical studies are presented, supporting or questioning the use of the ECG for the monitoring of electrolyte concentration imbalances. Differences in the findings from automatic monitoring studies are discussed, and current studies utilizing machine learning are presented demonstrating the potential of the deep learning approach. Furthermore, we demonstrate the potential of computational modeling approaches to gain insight into the mechanisms of relevant clinical findings and as a tool to obtain synthetic data for methodical improvements in monitoring approaches.
Collapse
Affiliation(s)
- N Pilia
- Institute of Biomedical Engineering, Karlsruhe Institute of Technology (KIT), 76131 Karlsruhe, Germany
| | - S Severi
- Department of Electrical, Electronic, and Information Engineering "Guglielmo Marconi," University of Bologna, 47522 Cesena, Italy
| | - J G Raimann
- Renal Research Institute, New York, New York 10065, USA
| | - S Genovesi
- Department of Medicine and Surgery, University of Milan-Bicocca, 20100 Milan, Italy
| | - O Dössel
- Institute of Biomedical Engineering, Karlsruhe Institute of Technology (KIT), 76131 Karlsruhe, Germany
| | | | - C Corsi
- Department of Electrical, Electronic, and Information Engineering "Guglielmo Marconi," University of Bologna, 47522 Cesena, Italy
| | - A Loewe
- Institute of Biomedical Engineering, Karlsruhe Institute of Technology (KIT), 76131 Karlsruhe, Germany
| |
Collapse
|
7
|
Lindner G, Burdmann EA, Clase CM, Hemmelgarn BR, Herzog CA, Małyszko J, Nagahama M, Pecoits-Filho R, Rafique Z, Rossignol P, Singer AJ. Acute hyperkalemia in the emergency department: a summary from a Kidney Disease: Improving Global Outcomes conference. Eur J Emerg Med 2020; 27:329-337. [PMID: 32852924 PMCID: PMC7448835 DOI: 10.1097/mej.0000000000000691] [Citation(s) in RCA: 33] [Impact Index Per Article: 8.3] [Reference Citation Analysis] [Abstract] [Key Words] [MESH Headings] [Track Full Text] [Download PDF] [Figures] [Journal Information] [Subscribe] [Scholar Register] [Received: 12/16/2019] [Accepted: 02/17/2020] [Indexed: 11/30/2022]
Abstract
Hyperkalemia is a common electrolyte disorder observed in the emergency department. It is often associated with underlying predisposing conditions, such as moderate or severe kidney disease, heart failure, diabetes mellitus, or significant tissue trauma. Additionally, medications, such as inhibitors of the renin-angiotensin-aldosterone system, potassium-sparing diuretics, nonsteroidal anti-inflammatory drugs, succinylcholine, and digitalis, are associated with hyperkalemia. To this end, Kidney Disease: Improving Global Outcomes (KDIGO) convened a conference in 2018 to identify evidence and address controversies on potassium management in kidney disease. This review summarizes the deliberations and clinical guidance for the evaluation and management of acute hyperkalemia in this setting. The toxic effects of hyperkalemia on the cardiac conduction system are potentially lethal. The ECG is a mainstay in managing hyperkalemia. Membrane stabilization by calcium salts and potassium-shifting agents, such as insulin and salbutamol, is the cornerstone in the acute management of hyperkalemia. However, only dialysis, potassium-binding agents, and loop diuretics remove potassium from the body. Frequent reevaluation of potassium concentrations is recommended to assess treatment success and to monitor for recurrence of hyperkalemia.
Collapse
Affiliation(s)
- Gregor Lindner
- Department of Internal and Emergency Medicine, Bürgerspital Solothurn, Solothurn, Switzerland
| | - Emmanuel A. Burdmann
- LIM 12, Division of Nephrology, University of Sao Paulo Medical School, Sao Paulo, SP, Brazil
| | | | - Brenda R. Hemmelgarn
- Departments of Community Health Sciences and Medicine, University of Calgary, Calgary, Alberta, Canada
| | - Charles A. Herzog
- Division of Cardiology, Department of Medicine, Hennepin Healthcare/University of Minnesota, Minneapolis, Minnesota, USA
| | - Jolanta Małyszko
- Department of Nephrology, Dialysis and Internal Medicine, Warsaw Medical University, Poland
| | - Masahiko Nagahama
- Division of Nephrology, Department of Internal Medicine, St. Luke’s International Hospital, Tokyo, Japan
| | - Roberto Pecoits-Filho
- Pontificia Universidade Catolica do Paraná, Curitiba, Brazil and Arbor Research Collaborative for Health, Ann Arbor, Michigan
| | - Zubaid Rafique
- Department of Emergency Medicine, Baylor College of Medicine, Houston, Texas, USA
| | - Patrick Rossignol
- Université de Lorraine, Inserm, Centre d’Investigations Cliniques-Plurithématique 14-33 and Inserm U1116, CHRU, F-CRIN INI-CRCT (Cardiovascular and Renal Clinical Trialists), Nancy, France
| | - Adam J. Singer
- Department of Emergency Medicine, Stony Brook University, Stony Brook, New York, USA
| |
Collapse
|
8
|
Galloway CD, Valys AV, Shreibati JB, Treiman DL, Petterson FL, Gundotra VP, Albert DE, Attia ZI, Carter RE, Asirvatham SJ, Ackerman MJ, Noseworthy PA, Dillon JJ, Friedman PA. Development and Validation of a Deep-Learning Model to Screen for Hyperkalemia From the Electrocardiogram. JAMA Cardiol 2020; 4:428-436. [PMID: 30942845 DOI: 10.1001/jamacardio.2019.0640] [Citation(s) in RCA: 172] [Impact Index Per Article: 43.0] [Reference Citation Analysis] [Abstract] [Track Full Text] [Journal Information] [Submit a Manuscript] [Subscribe] [Scholar Register] [Indexed: 01/17/2023]
Abstract
Importance For patients with chronic kidney disease (CKD), hyperkalemia is common, associated with fatal arrhythmias, and often asymptomatic, while guideline-directed monitoring of serum potassium is underused. A deep-learning model that enables noninvasive hyperkalemia screening from the electrocardiogram (ECG) may improve detection of this life-threatening condition. Objective To evaluate the performance of a deep-learning model in detection of hyperkalemia from the ECG in patients with CKD. Design, Setting, and Participants A deep convolutional neural network (DNN) was trained using 1 576 581 ECGs from 449 380 patients seen at Mayo Clinic, Rochester, Minnesota, from 1994 to 2017. The DNN was trained using 2 (leads I and II) or 4 (leads I, II, V3, and V5) ECG leads to detect serum potassium levels of 5.5 mEq/L or less (to convert to millimoles per liter, multiply by 1) and was validated using retrospective data from the Mayo Clinic in Minnesota, Florida, and Arizona. The validation included 61 965 patients with stage 3 or greater CKD. Each patient had a serum potassium count drawn within 4 hours after their ECG was recorded. Data were analyzed between April 12, 2018, and June 25, 2018. Exposures Use of a deep-learning model. Main Outcomes and Measures Area under the receiver operating characteristic curve (AUC) and sensitivity and specificity, with serum potassium level as the reference standard. The model was evaluated at 2 operating points, 1 for equal specificity and sensitivity and another for high (90%) sensitivity. Results Of the total 1 638 546 ECGs, 908 000 (55%) were from men. The prevalence of hyperkalemia in the 3 validation data sets ranged from 2.6% (n = 1282 of 50 099; Minnesota) to 4.8% (n = 287 of 6011; Florida). Using ECG leads I and II, the AUC of the deep-learning model was 0.883 (95% CI, 0.873-0.893) for Minnesota, 0.860 (95% CI, 0.837-0.883) for Florida, and 0.853 (95% CI, 0.830-0.877) for Arizona. Using a 90% sensitivity operating point, the sensitivity was 90.2% (95% CI, 88.4%-91.7%) and specificity was 63.2% (95% CI, 62.7%-63.6%) for Minnesota; the sensitivity was 91.3% (95% CI, 87.4%-94.3%) and specificity was 54.7% (95% CI, 53.4%-56.0%) for Florida; and the sensitivity was 88.9% (95% CI, 84.5%-92.4%) and specificity was 55.0% (95% CI, 53.7%-56.3%) for Arizona. Conclusions and Relevance In this study, using only 2 ECG leads, a deep-learning model detected hyperkalemia in patients with renal disease with an AUC of 0.853 to 0.883. The application of artificial intelligence to the ECG may enable screening for hyperkalemia. Prospective studies are warranted.
Collapse
Affiliation(s)
| | | | | | | | | | | | | | - Zachi I Attia
- Department of Cardiovascular Medicine, Mayo Clinic, Rochester, Minnesota
| | - Rickey E Carter
- Department of Cardiovascular Medicine, Mayo Clinic, Rochester, Minnesota.,Department of Health Sciences Research, Mayo Clinic, Jacksonville, Florida
| | | | - Michael J Ackerman
- Department of Cardiovascular Medicine, Mayo Clinic, Rochester, Minnesota
| | - Peter A Noseworthy
- Department of Cardiovascular Medicine, Mayo Clinic, Rochester, Minnesota
| | - John J Dillon
- Division of Nephrology and Hypertension, Mayo Clinic, Rochester, Minnesota
| | - Paul A Friedman
- Department of Cardiovascular Medicine, Mayo Clinic, Rochester, Minnesota
| |
Collapse
|
9
|
Lin CS, Lin C, Fang WH, Hsu CJ, Chen SJ, Huang KH, Lin WS, Tsai CS, Kuo CC, Chau T, Yang SJ, Lin SH. A Deep-Learning Algorithm (ECG12Net) for Detecting Hypokalemia and Hyperkalemia by Electrocardiography: Algorithm Development. JMIR Med Inform 2020; 8:e15931. [PMID: 32134388 PMCID: PMC7082733 DOI: 10.2196/15931] [Citation(s) in RCA: 48] [Impact Index Per Article: 12.0] [Reference Citation Analysis] [Abstract] [Key Words] [Track Full Text] [Figures] [Journal Information] [Subscribe] [Scholar Register] [Received: 08/20/2019] [Revised: 11/28/2019] [Accepted: 12/15/2019] [Indexed: 01/17/2023] Open
Abstract
Background The detection of dyskalemias—hypokalemia and hyperkalemia—currently depends on laboratory tests. Since cardiac tissue is very sensitive to dyskalemia, electrocardiography (ECG) may be able to uncover clinically important dyskalemias before laboratory results. Objective Our study aimed to develop a deep-learning model, ECG12Net, to detect dyskalemias based on ECG presentations and to evaluate the logic and performance of this model. Methods Spanning from May 2011 to December 2016, 66,321 ECG records with corresponding serum potassium (K+) concentrations were obtained from 40,180 patients admitted to the emergency department. ECG12Net is an 82-layer convolutional neural network that estimates serum K+ concentration. Six clinicians—three emergency physicians and three cardiologists—participated in human-machine competition. Sensitivity, specificity, and balance accuracy were used to evaluate the performance of ECG12Net with that of these physicians. Results In a human-machine competition including 300 ECGs of different serum K+ concentrations, the area under the curve for detecting hypokalemia and hyperkalemia with ECG12Net was 0.926 and 0.958, respectively, which was significantly better than that of our best clinicians. Moreover, in detecting hypokalemia and hyperkalemia, the sensitivities were 96.7% and 83.3%, respectively, and the specificities were 93.3% and 97.8%, respectively. In a test set including 13,222 ECGs, ECG12Net had a similar performance in terms of sensitivity for severe hypokalemia (95.6%) and severe hyperkalemia (84.5%), with a mean absolute error of 0.531. The specificities for detecting hypokalemia and hyperkalemia were 81.6% and 96.0%, respectively. Conclusions A deep-learning model based on a 12-lead ECG may help physicians promptly recognize severe dyskalemias and thereby potentially reduce cardiac events.
Collapse
Affiliation(s)
- Chin-Sheng Lin
- Division of Cardiology, Department of Medicine, Tri-Service General Hospital, National Defense Medical Center, Taipei, Taiwan
| | - Chin Lin
- Graduate Institute of Life Sciences, National Defense Medical Center, Taipei, Taiwan.,School of Public Health, National Defense Medical Center, Taipei, Taiwan.,Department of Research and Development, National Defense Medical Center, Taipei, Taiwan
| | - Wen-Hui Fang
- Department of Family and Community Medicine, Tri-Service General Hospital, National Defense Medical Center, Taipei, Taiwan
| | - Chia-Jung Hsu
- Planning and Management Office, Tri-Service General Hospital, National Defense Medical Center, Taipei, Taiwan
| | - Sy-Jou Chen
- Department of Emergency Medicine, Tri-Service General Hospital, National Defense Medical Center, Taipei, Taiwan.,Graduate Institute of Injury Prevention and Control, College of Public Health and Nutrition, Taipei Medical University, Taipei, Taiwan
| | - Kuo-Hua Huang
- Planning and Management Office, Tri-Service General Hospital, National Defense Medical Center, Taipei, Taiwan
| | - Wei-Shiang Lin
- Division of Cardiology, Department of Medicine, Tri-Service General Hospital, National Defense Medical Center, Taipei, Taiwan
| | - Chien-Sung Tsai
- Division of Cardiovascular Surgery, Department of Surgery, Tri-Service General Hospital, National Defense Medical Center, Taipei, Taiwan
| | - Chih-Chun Kuo
- Department of Electrical Engineering, National Taiwan University, Taipei, Taiwan
| | - Tom Chau
- Department of Medicine, Providence St Vincent Medical Center, Portland, OR, United States
| | - Stephen Jh Yang
- Department of Computer Science and Information Engineering, National Central University, Taoyuan, Taiwan
| | - Shih-Hua Lin
- Graduate Institute of Life Sciences, National Defense Medical Center, Taipei, Taiwan.,Division of Nephrology, Department of Medicine, Tri-Service General Hospital, National Defense Medical Center, Taipei, Taiwan
| |
Collapse
|
10
|
Trefz FM, Lorenz I, Constable PD. Electrocardiographic findings in 130 hospitalized neonatal calves with diarrhea and associated potassium balance disorders. J Vet Intern Med 2018; 32:1447-1461. [PMID: 29943868 PMCID: PMC6060331 DOI: 10.1111/jvim.15220] [Citation(s) in RCA: 11] [Impact Index Per Article: 1.8] [Reference Citation Analysis] [Abstract] [Key Words] [Track Full Text] [Download PDF] [Figures] [Journal Information] [Subscribe] [Scholar Register] [Received: 11/06/2017] [Revised: 03/26/2018] [Accepted: 04/25/2018] [Indexed: 12/15/2022] Open
Abstract
Background Hyperkalemia in neonatal diarrheic calves can potentially result in serious cardiac conduction abnormalities and arrhythmias. Objectives To document electrocardiographic (ECG) findings and the sequence of ECG changes that are associated with increasing plasma potassium concentrations (cK+) in a large population of neonatal diarrheic calves. Animals One hundred and thirty neonatal diarrheic calves (age ≤21 days). Methods Prospective observational study involving calves admitted to a veterinary teaching hospital. Results Hyperkalemic calves (cK+: 5.8‐10.2, blood pH: 6.55‐7.47) had significantly (P < .05) longer QRS durations as well as deeper S wave, higher T wave, and higher ST segment amplitudes in lead II than calves, which had both venous blood pH and cK+ within the reference range. The first ECG changes in response to an increase in cK+ were an increase in voltages of P, Ta, S, and T wave amplitudes. Segmented linear regression indicated that P wave amplitude decreased when cK+ >6.5 mmol/L, S wave amplitude voltage decreased when cK+ >7.4 mmol/L, QRS duration increased when cK+ >7.8 mmol/L, J point amplitude increased when cK+ >7.9 mmol/L, and ST segment angle increased when cK+ >9.1 mmol/L. P wave amplitude was characterized by a second common break point at cK+ = 8.2 mmol/L, above which value the amplitude was 0. Conclusions and Clinical Importance Hyperkalemia in neonatal diarrheic calves is associated with serious cardiac conduction abnormalities. In addition to increased S and T wave amplitude voltages, alterations of P and Ta wave amplitudes are early signs of hyperkalemia, which is consistent with the known sensitivity of atrial myocytes to increased cK+.
Collapse
Affiliation(s)
- Florian M Trefz
- Clinic for Ruminants with Ambulatory and Herd Health Services at the Centre for Clinical Veterinary Medicine, LMU Munich, Sonnenstraße 16, 85764 Oberschleißheim, Germany
| | - Ingrid Lorenz
- Bavarian Animal Health Service (Tiergesundheitsdienst Bayern e.V.), Senator-Gerauer-Str. 23, 85586 Poing, Germany
| | - Peter D Constable
- Department of Veterinary Clinical Medicine, College of Veterinary Medicine, University of Illinois, Urbana-Champaign, Illinois
| |
Collapse
|
11
|
Yasin OZ, Attia Z, Dillon JJ, DeSimone CV, Sapir Y, Dugan J, Somers VK, Ackerman MJ, Asirvatham SJ, Scott CG, Bennet KE, Ladewig DJ, Sadot D, Geva AB, Friedman PA. Noninvasive blood potassium measurement using signal-processed, single-lead ecg acquired from a handheld smartphone. J Electrocardiol 2017. [PMID: 28641860 DOI: 10.1016/j.jelectrocard.2017.06.008] [Citation(s) in RCA: 25] [Impact Index Per Article: 3.6] [Reference Citation Analysis] [Abstract] [Key Words] [Track Full Text] [Journal Information] [Subscribe] [Scholar Register] [Indexed: 12/17/2022]
Abstract
OBJECTIVE We have previously used a 12-lead, signal-processed ECG to calculate blood potassium levels. We now assess the feasibility of doing so with a smartphone-enabled single lead, to permit remote monitoring. PATIENTS AND METHODS Twenty-one hemodialysis patients held a smartphone equipped with inexpensive FDA-approved electrodes for three 2min intervals during hemodialysis. Individualized potassium estimation models were generated for each patient. ECG-calculated potassium values were compared to blood potassium results at subsequent visits to evaluate the accuracy of the potassium estimation models. RESULTS The mean absolute error between the estimated potassium and blood potassium 0.38±0.32 mEq/L (9% of average potassium level) decreasing to 0.6 mEq/L using predictors of poor signal. CONCLUSIONS A single-lead ECG acquired using electrodes attached to a smartphone device can be processed to calculate the serum potassium with an error of 9% in patients undergoing hemodialysis. SUMMARY A single-lead ECG acquired using electrodes attached to a smartphone can be processed to calculate the serum potassium in patients undergoing hemodialysis remotely.
Collapse
Affiliation(s)
- Omar Z Yasin
- Department of Internal Medicine, Mayo Clinic, 200 First Street SW, Rochester, MN, USA; Department of Cardiovascular Diseases, Mayo Clinic, 200 First Street SW, Rochester, MN, USA
| | - Zachi Attia
- Department of Internal Medicine, Mayo Clinic, 200 First Street SW, Rochester, MN, USA; Department of Cardiovascular Diseases, Mayo Clinic, 200 First Street SW, Rochester, MN, USA; Electrical and Computer Engineering, Ben-Gurion University of the Negev, P.O. Box 653, Beer Sheva, Israel
| | - John J Dillon
- Nephrology and Hypertension, Mayo Clinic, 200 First Street SW, Rochester, MN, USA
| | - Christopher V DeSimone
- Department of Cardiovascular Diseases, Mayo Clinic, 200 First Street SW, Rochester, MN, USA
| | - Yehu Sapir
- Electrical and Computer Engineering, Ben-Gurion University of the Negev, P.O. Box 653, Beer Sheva, Israel
| | - Jennifer Dugan
- Department of Internal Medicine, Mayo Clinic, 200 First Street SW, Rochester, MN, USA; Department of Cardiovascular Diseases, Mayo Clinic, 200 First Street SW, Rochester, MN, USA
| | - Virend K Somers
- Department of Internal Medicine, Mayo Clinic, 200 First Street SW, Rochester, MN, USA; Department of Cardiovascular Diseases, Mayo Clinic, 200 First Street SW, Rochester, MN, USA
| | - Michael J Ackerman
- Department of Internal Medicine, Mayo Clinic, 200 First Street SW, Rochester, MN, USA; Department of Cardiovascular Diseases, Mayo Clinic, 200 First Street SW, Rochester, MN, USA
| | - Samuel J Asirvatham
- Department of Internal Medicine, Mayo Clinic, 200 First Street SW, Rochester, MN, USA; Department of Cardiovascular Diseases, Mayo Clinic, 200 First Street SW, Rochester, MN, USA
| | - Christopher G Scott
- Biomedical Statistics and Informatics, Mayo Clinic, 200 First Street SW, Rochester, MN, USA
| | - Kevin E Bennet
- Division of Engineering, Mayo Clinic, 200 First Street SW, Rochester, MN, USA
| | | | - Dan Sadot
- Electrical and Computer Engineering, Ben-Gurion University of the Negev, P.O. Box 653, Beer Sheva, Israel
| | - Amir B Geva
- Electrical and Computer Engineering, Ben-Gurion University of the Negev, P.O. Box 653, Beer Sheva, Israel
| | - Paul A Friedman
- Department of Internal Medicine, Mayo Clinic, 200 First Street SW, Rochester, MN, USA; Department of Cardiovascular Diseases, Mayo Clinic, 200 First Street SW, Rochester, MN, USA.
| |
Collapse
|