Identification of comorbidity-based clusters and mortality risk in hospitalised patients with diabetes mellitus in Karachi, Pakistan: a machine learning analysis.
Namra Aziz, Tariq Mahmood, Gerald S Bloomfield, Zarmeen Nasim, Zainab Samad, Hooria Imran, Rabiya Owais, Asma Ahmed,
The Aga Khan University Hospital, Karachi, Pakistan namrabia@gmail.com. · IBA, Institute of Business Administration Karachi, Karachi, Pakistan.
Key points
From the paper's conclusion- Among hospitalised patients with diabetes, the RCC cluster demonstrated the highest mortality risk, comprising predominantly older patients with severe complications. These findings highlight the utility of unsupervised ML approaches for identifying high-risk clinical phenotypes and informing risk stratification in resource-constrained settings. Longitudinal studies are warranted to evaluate progression and long-term outcomes across clusters.
Abstract
BACKGROUND: Diabetes has reached epidemic proportions in Pakistan. This study applied machine learning (ML) techniques to identify comorbidity-based and diabetic complications-based clusters in hospitalised patients with diabetes and examine their association with in-hospital mortality. DESIGN: Retrospective cross-sectional study. SETTING: Aga Khan University Hospital, Pakistan. PARTICIPANTS: Adult patients (≥18 years) with diabetes admitted between 2008 and 2021. METHODS: Diagnoses were extracted using International Classification of Diseases (ICD-9 and ICD-10) codes. Data was integrated from the Hospital Information Management Systems (HIMS). The K-Modes clustering algorithm was applied to categorical diagnostic data, with the optimal number of clusters determined using elbow curve and silhouette score analysis. Latent-Dirichlet Allocation and Term Frequency-Inverse Document Frequency were applied to identify frequent terms from each cluster followed by expert validation. Logistic regression was performed to assess the association between cluster membership and in-hospital mortality. RESULTS: Among 78 271 patients, four clusters were identified with varying mortality risks: (1) cardio, tumour and tobacco (CTT), (2) renal complication cluster (RCC), (3) cardiovascular cluster (CVC) and (4) uncontrolled diabetes mellitus, hypertension, stroke and kidney (HSK). The within cluster mortality was highest in the RCC cluster (682; 18.1%), followed by CVC (543; 4.4%), HSK (1,379; 4%) and CTT (603; 2.2%). Compared with CTT, the unadjusted odds of in-hospital mortality were significantly higher in RCC (OR=9.9, 95% CI 8.9 to 11.2, p<0.001), CVC (OR=2.1, 95% CI 1.9 to 2.3, p<0.001) and HSK (OR=1.9, 95% CI 1.7 to 2.1, p<0.001). CONCLUSION: Among hospitalised patients with diabetes, the RCC cluster demonstrated the highest mortality risk, comprising predominantly older patients with severe complications. These findings highlight the utility of unsupervised ML approaches for identifying high-risk clinical phenotypes and informing risk stratification in resource-constrained settings. Longitudinal studies are warranted to evaluate progression and long-term outcomes across clusters.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Establishment and validation of a machine learning-based predictive model for in-hospital mortality risk in acute myocardial infarction patients complicated with diabetes mellitusFrontiers in Cardiovascular Medicine · 2026
- Development and internal validation of a logistic regression model for predicting in-hospital mortality among hospitalized patients with type 2 diabetes and COVID-19: a retrospective cohort studyEuropean Journal of Medical Research · 2026
- Association between data-driven diabetes subtypes and kidney, cardiovascular, and all-cause mortality outcomes in adults: a systematic review and meta-analysis.Acta diabetologica · 2026
- Machine learning prediction of 30-day mortality in coronary artery disease: a retrospective multicenter study using electronic health records.International journal of cardiology · 2026
- Data-driven phenotyping of infective endocarditis using unsupervised machine learning: toward a personalized approach.BMC infectious diseases · 2026
- Application of machine learning prediction models for in-hospital mortality in diabetic sepsis patients: a study based on the MIMIC IV databaseBMC Medical Informatics and Decision Making · 2026