Skip to main navigation Skip to search Skip to main content

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
  • , Aysha Almas

Research output: Contribution to journal › Article › peer-review

1 Citation (Scopus)

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.

Original languageEnglish (US)
Pages (from-to)e106407
JournalBMJ Open
Volume16
Issue number8
DOIs
Publication statusPublished - 31 Aug 2026

UN SDGs

This output contributes to the following UN Sustainable Development Goals (SDGs)

  1. SDG 3 - Good Health and Well-being
    SDG 3 Good Health and Well-being

Keywords

  • DIABETES & ENDOCRINOLOGY
  • Diabetic foot
  • Diabetic retinopathy
  • Machine Learning

Fingerprint

Dive into the research topics of 'Identification of comorbidity-based clusters and mortality risk in hospitalised patients with diabetes mellitus in Karachi, Pakistan: a machine learning analysis'. Together they form a unique fingerprint.

Cite this