Early Prediction of Diabetes Complications from Electronic Health Records: A Multi-Task Survival Analysis Approach

Bin Liu, Ying Li, Zhaonan Sun, Soumya Ghosh, Kenney NgAAAI 2018

Abstract

Type 2 diabetes mellitus (T2DM) is a chronic disease that usually results in multiple complications. Early identification of individuals at risk for complications after being diagnosed with T2DM is of significant clinical value. In this paper, we present a new data-driven predictive approach to predict when a patient will develop complications after the initial T2DM diagnosis. We propose a novel survival analysis method to model the time-to-event of T2DM complications designed to simultaneously achieve two important metrics: 1) accurate prediction of event times, and 2) good ranking of the relative risks of two patients. Moreover, to better capture the correlations of time-to-events of the multiple complications, we further develop a multi-task version of the survival model. To assess the performance of these approaches, we perform extensive experiments on patient level data extracted from a large electronic health record claims database. The results show that our new proposed survival analysis approach consistently outperforms traditional survival models and demonstrate the effectiveness of the multi-task framework over modeling each complication independently.

Introduction

Type 2 Diabetes Mellitus (T2DM) is a complex, progressive metabolic disorder that often serves as a precursor to various severe health complications. These secondary conditions, ranging from retinopathy and neuropathy to vascular diseases, significantly impact patient quality of life and increase healthcare costs. For clinicians, the ability to accurately predict the onset of these complications is critical for early intervention and personalized care planning.

However, predicting the progression of T2DM is challenging due to the nature of Electronic Health Record (EHR) data. Specifically, medical records are often "censored"—meaning the exact time of a complication's onset may be unknown because a patient left the study or the observation period ended before the event occurred. Traditional machine learning models, such as standard regression, are ill-equipped to handle this censoring. Conversely, established survival analysis methods like the Cox Proportional Hazards model excel at ranking patients by relative risk but often struggle to provide precise estimates of the actual time-to-event.

Methodology: RankSvx and MTL-RankSvx

To address these limitations, researchers from IBM developed RankSvx, a novel survival analysis framework designed to optimize for both ranking accuracy and time-to-event prediction.

The RankSvx Framework

The core of RankSvx is a dual-objective loss function. Unlike traditional models that prioritize one metric over the other, RankSvx combines:

  1. A Regression Term: This component models the actual time-to-event for patients where a complication was observed. It can utilize various loss functions, such as Squared, Poisson, or Log-normal loss, to fit the observed data points.
  2. A Ranking Term: This component ensures the model correctly orders the risks between pairs of patients. By using a sigmoid-based ranking function, the model can incorporate information from censored data, learning that a patient who remained event-free for three years is at lower risk than one who developed a complication in one year.

Multi-Task Learning (MTL-RankSvx)

Recognizing that T2DM complications are biologically interrelated—often driven by chronic hyperglycemia—the authors extended their model into MTL-RankSvx. This multi-task learning version treats the prediction of each complication as a separate but related task.

Illustration of the multi-task survival analysis problem setup, showing observation and prediction windows across different patients and tasks.

The MTL framework uses a Matrix Variate Normal (MVN) distribution to learn a covariance matrix (Ω) that captures the relationships between different complications. Furthermore, the model can incorporate "prior knowledge" from medical literature, such as the human disease network, to guide the learning of these associations. This allows the model to "borrow strength" from data-rich tasks (like neuropathy) to improve predictions for rarer complications.

Datasets and Experimental Setup

The study was conducted using the MarketScan Commercial Claims and Encounter (CCAE) database, which contains de-identified insurance claims for millions of individuals. The researchers extracted a cohort of patients diagnosed with T2DM between 2011 and 2015.

The model tracks five primary complications: Retinopathy (RET), Neuropathy (NEU), Nephrology (NEP), Vascular Disease (VAS), and Hyperosmolar (HYPER). Features used for prediction include patient demographics and 359 distinct ICD diagnosis codes recorded during the observation window.

Summary statistics of the T2DM complications dataset extracted from the MarketScan CCAE database.

Key Results

The performance of the proposed models was evaluated using two primary metrics: the Concordance Index (CI) for ranking and Mean Absolute Error (MAE) for time prediction.

  • Superior Ranking Performance: RankSvx consistently outperformed both the Cox Proportional Hazards model and standard regression. It achieved higher CI scores across all complications, demonstrating a superior ability to identify which patients are at the highest relative risk.
  • Improved Timing Accuracy: In terms of MAE, RankSvx (particularly with Log-normal loss) significantly reduced prediction error compared to the Cox model. For instance, in predicting the onset of Retinopathy, RankSvx reduced the error from over 15 months (Cox) to approximately 5.5 months.
  • The Multi-Task Advantage: MTL-RankSvx showed the most significant performance gains when training data was scarce. By leveraging shared representations across complications, the multi-task model proved more robust and accurate for complications with fewer recorded instances, such as Vascular Disease.

Conclusion and Future Directions

This research demonstrates that a hybrid approach combining ranking and regression in a multi-task framework offers a powerful tool for predicting T2DM progression. By acknowledging the biological correlations between complications, MTL-RankSvx provides clinicians with more accurate and actionable insights than traditional independent models.

Future work will focus on incorporating longitudinal data—such as time-series lab results and medication changes—to capture the dynamic nature of the disease. Additionally, exploring deep learning-based feature embeddings could further enhance the model's ability to extract complex patterns from high-dimensional EHR data.

Summary updated

BibTeX
@inproceedings{liu2018early,
  author = {Bin Liu and Ying Li and Zhaonan Sun and Soumya Ghosh and Kenney Ng},
  title = {{Early Prediction of Diabetes Complications from Electronic Health Records: A Multi-Task Survival Analysis Approach}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2018},
  url = {https://openreview.net/forum?id=Sy4-rTxO-r},
}
Figure