Background: The objectives of this study were to classify patients with serum magnesium derangement on hospital admission into clusters using unsupervised machine learning approach and to evaluate the mortality risks among these distinct clusters. Methods: Consensus cluster analysis was performed based on demographic information, principal diagnoses, comorbidities, and laboratory data in hypomagnesemia (serum magnesium ≤ 1.6 mg/dL) and hypermagnesemia cohorts (serum magnesium ≥ 2.4 mg/dL). Each cluster’s key features were determined using the standardized mean difference. The associations of the clusters with hospital mortality and one-year mortality were assessed. Results: In hypomagnesemia cohort (n = 13,320), consensus cluster analysis identified three clusters. Cluster 1 patients had the highest comorbidity burden and lowest serum magnesium. Cluster 2 patients had the youngest age, lowest comorbidity burden, and highest kidney function. Cluster 3 patients had the oldest age and lowest kidney function. Cluster 1 and cluster 3 were associated with higher hospital and one-year mortality compared to cluster 2. In hypermagnesemia cohort (n = 4671), the analysis identified two clusters. Compared to cluster 1, the key features of cluster 2 included older age, higher comorbidity burden, more hospital admissions primarily due to kidney disease, more acute kidney injury, and lower kidney function. Compared to cluster 1, cluster 2 was associated with higher hospital mortality and one-year mortality. Conclusion: Our cluster analysis identified clinically distinct phenotypes with differing mortality risks in hospitalized patients with dysmagnesemia. Future studies are required to assess the application of this ML consensus clustering approach to care for hospitalized patients with dysmagnesemia.
Machine Learning Consensus Clustering Approach for Hospitalized Patients with Phosphate Derangements
Background: The goal of this study was to categorize patients with abnormal serum phosphate upon hospital admission into distinct clusters utilizing an unsupervised machine learning approach, and to assess the mortality risk associated with these clusters. Methods: We utilized the consensus clustering approach on demographic information, comorbidities, principal diagnoses, and laboratory data of hypophosphatemia (serum phosphate ≤ 2.4 mg/dL) and hyperphosphatemia cohorts (serum phosphate ≥ 4.6 mg/dL). The standardized mean difference was applied to determine each cluster’s key features. We assessed the association of the clusters with mortality. Results: In the hypophosphatemia cohort (n = 3113), the consensus cluster analysis identified two clusters. The key features of patients in Cluster 2, compared with Cluster 1, included: older age; a higher comorbidity burden, particularly hypertension; diabetes mellitus; coronary artery disease; lower eGFR; and more acute kidney injury (AKI) at admission. Cluster 2 had a comparable hospital mortality (3.7% vs. 2.9%; p = 0.17), but a higher one-year mortality (26.8% vs. 14.0%; p < 0.001), and five-year mortality (20.2% vs. 44.3%; p < 0.001), compared to Cluster 1. In the hyperphosphatemia cohort (n = 7252), the analysis identified two clusters. The key features of patients in Cluster 2, compared with Cluster 1, included: older age; more primary admission for kidney disease; more history of hypertension; more end-stage kidney disease; more AKI at admission; and higher admission potassium, magnesium, and phosphate. Cluster 2 had a higher hospital (8.9% vs. 2.4%; p < 0.001) one-year mortality (32.9% vs. 14.8%; p < 0.001), and five-year mortality (24.5% vs. 51.1%; p < 0.001), compared with Cluster 1. Conclusion: Our cluster analysis classified clinically distinct phenotypes with different mortality risks among hospitalized patients with serum phosphate derangements. Age, comorbidities, and kidney function were the key features that differentiated the phenotypes.
Subtyping Hyperchloremia among Hospitalized Patients by Machine Learning Consensus Clustering
Background and Objectives: Despite the association between hyperchloremia and adverse outcomes, mortality risks among patients with hyperchloremia have not consistently been observed among all studies with different patient populations with hyperchloremia. The objective of this study was to characterize hyperchloremic patients at hospital admission into clusters using an unsupervised machine learning approach and to evaluate the mortality risk among these distinct clusters. Materials and Methods: We performed consensus cluster analysis based on demographic information, principal diagnoses, comorbidities, and laboratory data among 11,394 hospitalized adult patients with admission serum chloride of >108 mEq/L. We calculated the standardized mean difference of each variable to identify each cluster’s key features. We assessed the association of each hyperchloremia cluster with hospital and one-year mortality. Results: There were three distinct clusters of patients with admission hyperchloremia: 3237 (28%), 4059 (36%), and 4098 (36%) patients in clusters 1 through 3, respectively. Cluster 1 was characterized by higher serum chloride but lower serum sodium, bicarbonate, hemoglobin, and albumin. Cluster 2 was characterized by younger age, lower comorbidity score, lower serum chloride, and higher estimated glomerular filtration (eGFR), hemoglobin, and albumin. Cluster 3 was characterized by older age, higher comorbidity score, higher serum sodium, potassium, and lower eGFR. Compared with cluster 2, odds ratios for hospital mortality were 3.60 (95% CI 2.33–5.56) for cluster 1, and 4.83 (95% CI 3.21–7.28) for cluster 3, whereas hazard ratios for one-year mortality were 4.49 (95% CI 3.53–5.70) for cluster 1 and 6.96 (95% CI 5.56–8.72) for cluster 3. Conclusions: Our cluster analysis identified three clinically distinct phenotypes with differing mortality risks in hospitalized patients with admission hyperchloremia.