Treatment Discontinuation Prediction in Patients With Diabetes Using a Ranking Model: Machine Learning Model Development

Hisashi Kurasawa, Kayo Waki, Akihiro Chiba, Tomohisa Seki, Katsuyoshi Hayashi, Akinori Fujino, Tsuneyuki Haga, Takashi Noguchi, Kazuhiko OheJMIR 2022

Abstract

Treatment discontinuation (TD) is a significant barrier to effective diabetes management, often leading to poor glycemic control and severe long-term complications. This study presents a machine-learning-based ranking model designed to predict TD risk by leveraging high-dimensional data from electronic medical records (EMRs). Unlike traditional binary classification models, this ranking approach prioritizes patients based on the relative imminence of discontinuation. Developed using data from 7,551 patients, the model achieved a concordance index (C-index) of 0.749, significantly outperforming the standard Cox proportional hazards model. This tool offers a scalable method for clinicians to identify and intervene with high-risk patients, potentially improving long-term outcomes in diabetes care.

Introduction: The Challenge of Treatment Discontinuation

In the management of chronic conditions like diabetes, consistent follow-up is essential. However, "Treatment Discontinuation"—defined as a patient failing to attend scheduled appointments without rescheduling—remains a pervasive issue. When patients drop out of care, they lose access to necessary medication adjustments and screenings, increasing the risk of neuropathy, retinopathy, and cardiovascular events.

Predicting TD is challenging because patient visit intervals are inconsistent; some are seen monthly, while others are seen annually. Traditional predictive models often treat this as a binary classification task (e.g., "will the patient miss an appointment in the next 30 days?"). This binary framing fails to account for varying schedules and does not provide a clear priority list for clinical intervention.

Methodology: A Ranking-Based Approach

To address these limitations, the researchers framed TD prediction as a ranking problem. Instead of assigning a simple "yes/no" label, the model learns to rank pairs of patients based on who is likely to discontinue treatment sooner. This approach is more naturally aligned with clinical resource allocation, where staff must decide which patients to contact first.

The model utilizes a pairwise ranking algorithm with a logistic regression backbone, regularized with an L2-norm to manage a massive feature space. The study extracted 149,699 features from the University of Tokyo Hospital’s EMR system. These features encompass:

  • Static Demographic Data: Age, sex, and geographic distance to the hospital.
  • Dynamic Clinical Indicators: Changes in medication, laboratory results (such as HbA1c levels), and consultation history.
  • Behavioral Patterns: Frequency of late arrivals or previously missed appointments.
  • Temporal Trends: Statistical summaries (mean, standard deviation, etc.) of clinical data over 3, 6, and 12-month windows.

Datasets and Cohort Selection

The study analyzed a longitudinal dataset of 7,551 patients diagnosed with diabetes. The cohort was divided into a training set and an internal validation (test) set based on the date of their appointments.

Flowchart of the patient selection process and dataset split.

The training data consisted of 6,509 patients with appointments between September 2012 and May 2014. The test data included 1,042 patients from May 2014 to January 2016. TD was strictly defined as missing a scheduled appointment with no subsequent hospital visits for at least 60 days and exceeding three times the patient's average visit interval.

Key Results and Performance

The ranking model demonstrated superior performance compared to the Cox proportional hazards model, which is the traditional gold standard for survival analysis in medicine.

  • Predictive Accuracy: The ranking model achieved a C-index of 0.749, compared to 0.662 for the Cox model. This indicates a much higher accuracy in correctly ordering patients by their risk levels.
  • Discrimination: The model showed an Area Under the Receiver Operating Characteristic (AUROC) of 0.758 and an Area Under the Precision-Recall Curve (AUPRC) of 0.713.
  • Clinical Stratification: In the high-risk group (risk score ≥ 0.5), approximately 10.3% of patients discontinued treatment within 100 days. Conversely, in the low-risk group (< 0.5), 93.9% of patients remained in treatment for over a year.

Discussion and Future Directions

The success of the ranking model highlights the importance of behavioral and care-complexity indicators. Top predictors included the frequency of visits to other specialized departments (e.g., cardiovascular medicine) and the presence of referral letters, suggesting that patients with more complex care needs may be at higher risk of dropping out.

Despite its accuracy, the model has limitations. As a single-center study, its generalizability to rural or different international healthcare systems remains to be tested. Furthermore, the high dimensionality (nearly 150,000 features) creates a "black box" effect. Future work will focus on using explainable AI (XAI) to identify a smaller, more interpretable subset of features that clinicians can easily act upon. Additionally, integrating regional health data could help distinguish true treatment discontinuation from patients simply moving their care to another facility.

Conclusion

By shifting the focus from binary prediction to risk ranking, this machine-learning model provides a robust tool for prioritizing patient outreach. Integrating such scores into EMR systems could empower clinical teams to intervene early, ensuring that high-risk patients with diabetes stay on the path to effective long-term management.

Summary updated

BibTeX
@inproceedings{kurasawa2022treatment,
  author = {Hisashi Kurasawa and Kayo Waki and Akihiro Chiba and Tomohisa Seki and Katsuyoshi Hayashi and Akinori Fujino and Tsuneyuki Haga and Takashi Noguchi and Kazuhiko Ohe},
  title = {{Treatment Discontinuation Prediction in Patients With Diabetes Using a Ranking Model: Machine Learning Model Development}},
  booktitle = {JMIR},
  year = {2022},
  doi = {10.2196/37951},
}
Figure