Introduction:The detection and monitoring of electrolyte imbalance is essential for appropriate management of many metabolic diseases; however, there is no tool that detects such imbalances reliably and noninvasively. In this study, we developed a deep learning model (DLM) using electrocardiography (ECG) for detecting electrolyte imbalance and validated its performance in a multicenter study. Methods and Results: This retrospective cohort study included two hospitals: 92,140 patients who underwent a laboratory electrolyte examination and an ECG within 30 min were included in this study. A DLM was developed using 83,449 ECGs of 48,356 patients; the internal validation included 12,091 ECGs of 12,091 patients.We conducted an external validation with 31,693 ECGs of 31,693 patients from another hospital, and the result was electrolyte imbalance detection. During internal, the area under the receiving operating characteristic curve (AUC) of a DLM using a 12-lead ECG for detecting hyperkalemia, hypokalemia, hypernatremia, hyponatremia, hypercalcemia, and hypocalcemia were 0.945, 0.866, 0.944, 0.885, 0.905, and 0.901, respectively. The values during external validation of the AUC of hyperkalemia, hypokalemia, hypernatremia, hyponatremia, hypercalcemia, and hypocalcemia were 0.873, 0.857, 0.839, 0.856, 0.831, and 0.813 respectively. The DLM helped to visualize the important ECG region for detecting each electrolyte imbalance, and it showed how the P wave, QRS complex, or T wave differs in importance in detecting each electrolyte imbalance.
Conclusion:The proposed DLM demonstrated high performance in detecting electrolyte imbalance. These results suggest that a DLM can be used for detecting and monitoring electrolyte imbalance using ECG on a daily basis.