Abstract
Background: Hyperkalemia poses a significant risk of sudden cardiac death, especially for those with end-stage renal diseases (ESRD). Smartwatches with ECG capabilities offer a promising solution for continuous, non-invasive monitoring using AI. Objectives: To develop an AI-ECG algorithm to predict serum potassium level in ESRD patients with smartwatch generated ECG waveforms. Methods: A cohort of 152,508 patients with 293,557 ECGs paired serum potassium levels obtained within one hour at Cedars Sinai Medical Center (CSMC) was used to train an AI-ECG model (‘Kardio-Net’) to predict serum potassium level. The model was further fine-tuned on 4,337 ECGs from 1,463 patients with ESRD using inputs from 12-lead and single-lead ECGs. Kardio-Net was evaluated in held-out test cohorts from CSMC and Stanford Healthcare (SHC) as well as a prospective international cohort of 40 ESRD patients with smartwatch ECGs at Chang Gung Memorial Hospital (CGMH). Results: The Kardio-Net, when applied to 12-lead ECGs, identified severe hyperkalemia with an AUC of 0.852 and a mean absolute error (MAE) of 0.527 mEq/L. In external validation at SHC, the model achieved an AUC of 0.849 and an MAE of 0.599 mEq/L. For single-lead ECGs, Kardio-Net detected hyperkalemia with an AUC of 0.876 and had an MAE of 0.575 mEq/L in the CSMC test cohort. Using prospectively obtained smartwatch data, the AUC was 0.831, with an MAE of 0.580 mEq/L. Conclusions: We validate a deep learning model to predict serum potassium levels from both 12-lead ECGs and single-lead smartwatch data, demonstrating its utility for remote monitoring of hyperkalemia.
Introduction: The "Silent Killer" in ESRD
Hyperkalemia, or elevated serum potassium, is often referred to as a "silent killer" for patients suffering from End-Stage Renal Disease (ESRD). Because the kidneys are unable to effectively regulate potassium levels, patients are at constant risk of sudden cardiac arrest, particularly in the intervals between dialysis sessions. Currently, the gold standard for monitoring potassium is invasive phlebotomy. However, blood draws are resource-intensive, painful, and only provide a snapshot of a patient's status at a single point in time.
While clinicians have long recognized that high potassium levels induce specific changes in electrocardiogram (ECG) waveforms—such as peaked T-waves or widened QRS complexes—these changes are often subtle and difficult for the human eye to detect consistently. This study explores the potential of Artificial Intelligence (AI) to bridge this diagnostic gap by transforming the single-lead ECG sensors found in modern smartwatches into continuous, non-invasive potassium monitors.
Methodology and Model Development
The researchers developed Kardio-Net, a deep learning model based on a Convolutional Neural Network (CNN) architecture designed specifically for ECG interpretation. To overcome the challenge of limited data in specific patient populations, the team employed a two-stage training strategy:
- Pre-training: The model was initially trained on a massive dataset of 293,557 ECGs from a general population of 152,508 patients at Cedars-Sinai Medical Center (CSMC). This allowed the network to learn the fundamental features of cardiac electrical activity.
- Fine-tuning: The model was then refined using a specialized dataset of 4,337 ECGs from 1,463 ESRD patients. This transfer learning approach enabled the model to specialize in the complex ECG morphologies typical of kidney disease patients while retaining broad cardiac knowledge.
To ensure the model's applicability to consumer wearables, which typically provide only a single lead (Lead I), the researchers trained a variant of Kardio-Net using only Lead I data. They also integrated a noise ECG classifier to automatically filter out low-quality recordings, a common issue with mobile health data.
Results and Multi-Institutional Validation
Kardio-Net was rigorously tested across three distinct institutional datasets to ensure generalizability:
- Internal Validation (CSMC): The 12-lead model achieved an Area Under the Curve (AUC) of 0.852 for identifying severe hyperkalemia (>6.5 mEq/L), with a Mean Absolute Error (MAE) of 0.527 mEq/L.
- External Validation (Stanford HealthCare): The model maintained strong performance with an AUC of 0.849 and an MAE of 0.599 mEq/L.
- Prospective Smartwatch Validation (CGMH, Taiwan): In a cohort of 40 ESRD patients providing 589 smartwatch ECGs, the model achieved an AUC of 0.831 and an MAE of 0.580 mEq/L.
Notably, the single-lead model performed comparably to the 12-lead version, validating the potential of consumer-grade hardware for clinical-grade monitoring.
Discussion and Limitations
The success of Kardio-Net demonstrates that AI can effectively detect physiological changes that elude human observation. The model's robustness across various comorbidities, such as diabetes and atrial fibrillation, further underscores its clinical potential.
However, several limitations remain. The training data relied on blood tests and ECGs taken within one hour of each other, rather than simultaneously. Additionally, the smartwatch data was collected in a controlled clinical environment; future studies must evaluate performance in "free-living" conditions where movement and variable heart rates may introduce additional noise.
Conclusion
Kardio-Net represents a significant step toward non-invasive, real-time monitoring of serum potassium. By leveraging the ubiquity of smartwatches, this technology could serve as a vital "smoke alarm" for ESRD patients, providing early warnings of life-threatening hyperkalemia and potentially saving lives through timely intervention.
Summary updated