Fig. 2: Prospective accuracy of AIDE for estimating blood potassium.

This analysis included only ECGs with an associated Lab-K+ collection within 1 hour of the ECG examination (n = 11,547; 5781 in the intervention group and 5766 in the control group), regardless of whether the blood sample was drawn before or after the ECG. Data from patients whose Lab-K+ measurements were obtained >1 hour apart or after treatment were excluded. We combined the intervention and control groups in this analysis. The ROC curve and PRROC curve were used to determine the performance of AIDE for hyperkalemia (Lab-K+ ≥6.0 mmol/L, a and hypokalemia (Lab-K+ ≤3.0 mmol/L, b), respectively. The cutoff points were determined as previously expected to have a positive predictive value of 40%. Scatter plots (c) and Bland–Altman plots (d) were used to compare the Lab-K+ and ECG-K+ values. Red points represent the highest density, followed by yellow, green, light blue, and dark blue. AUC area under the curve, Diff mean difference, r Pearson correlation, MAE mean absolute error, Sens. sensitivity, Spec. specificity, PPV positive predictive value, NPV negative predictive value, PRAUC precision recall curve. Source data are provided as a Source Data file.