Early Detection of Dementia in Populations With Type 2 Diabetes: Predictive Analytics Using Machine Learning Approach

J Med Internet Res. 2024 Dec 11:26:e52107. doi: 10.2196/52107.

Abstract

Background: The possible association between diabetes mellitus and dementia has raised concerns, given the observed coincidental occurrences.

Objective: This study aimed to develop a personalized predictive model, using artificial intelligence, to assess the 5-year and 10-year dementia risk among patients with type 2 diabetes mellitus (T2DM) who are prescribed antidiabetic medications.

Methods: This retrospective multicenter study used data from the Taipei Medical University Clinical Research Database, which comprises electronic medical records from 3 hospitals in Taiwan. This study applied 8 machine learning algorithms to develop prediction models, including logistic regression, linear discriminant analysis, gradient boosting machine, light gradient boosting machine, AdaBoost, random forest, extreme gradient boosting, and artificial neural network (ANN). These models incorporated a range of variables, encompassing patient characteristics, comorbidities, medication usage, laboratory results, and examination data.

Results: This study involved a cohort of 43,068 patients diagnosed with type 2 diabetes mellitus, which accounted for a total of 1,937,692 visits. For model development and validation, 1,300,829 visits were used, while an additional 636,863 visits were reserved for external testing. The area under the curve of the prediction models range from 0.67 for the logistic regression to 0.98 for the ANNs. Based on the external test results, the model built using the ANN algorithm had the best area under the curve (0.97 for 5-year follow-up period and 0.98 for 10-year follow-up period). Based on the best model (ANN), age, gender, triglyceride, hemoglobin A1c, antidiabetic agents, stroke history, and other long-term medications were the most important predictors.

Conclusions: We have successfully developed a novel, computer-aided, dementia risk prediction model that can facilitate the clinical diagnosis and management of patients prescribed with antidiabetic medications. However, further investigation is required to assess the model's feasibility and external validity.

Keywords: TMUCRD; Taipei Medical University Clinical Research Database; dementia; diabetes; machine learning; prediction model.

Publication types

  • Multicenter Study

MeSH terms

  • Aged
  • Aged, 80 and over
  • Dementia* / complications
  • Diabetes Mellitus, Type 2* / complications
  • Early Diagnosis*
  • Female
  • Humans
  • Hypoglycemic Agents / therapeutic use
  • Machine Learning*
  • Male
  • Middle Aged
  • Neural Networks, Computer
  • Retrospective Studies
  • Taiwan

Substances

  • Hypoglycemic Agents