Validation of Random Forest Machine Learning Models to Predict Dementia-Related Neuropsychiatric Symptoms in Real-World Data

J Alzheimers Dis. 2020;77(2):855-864. doi: 10.3233/JAD-200345.

Abstract

Background: Neuropsychiatric symptoms (NPS) are the leading cause of the social burden of dementia but their role is underestimated.

Objective: The objective of the study was to validate predictive models to separately identify psychotic and depressive symptoms in patients diagnosed with dementia using clinical databases representing the whole population to inform decision-makers.

Methods: First, we searched the electronic health records of 4,003 patients with dementia to identify NPS. Second, machine learning (random forest) algorithms were applied to build separate predictive models for psychotic and depressive symptom clusters in the training set (N = 3,003). Third, calibration and discrimination were assessed in the test set (N = 1,000) to assess the performance of the models.

Results: Neuropsychiatric symptoms were noted in the electronic health record of 58% of patients. The area under the receiver operating curve reached 0.80 for the psychotic cluster model and 0.74 for the depressive cluster model. The Kappa index and accuracy also showed better discrimination in the psychotic model. Calibration plots indicated that both types of model had less predictive accuracy when the probability of neuropsychiatric symptoms was <25%. The most important variables in the psychotic cluster model were use of risperidone, level of sedation, use of quetiapine and haloperidol and the number of antipsychotics prescribed. In the depressive cluster model, the most important variables were number of antidepressants prescribed, escitalopram use, level of sedation, and age.

Conclusion: Given their relatively good performance, the predictive models can be used to estimate prevalence of NPS in population databases.

Keywords: Dementia; depressive symptoms; machine learning; neuropsychiatric symptoms; predictive model\sep prevalence; psychotic symptoms; real-world data.

Publication types

  • Research Support, Non-U.S. Gov't

MeSH terms

  • Aged
  • Aged, 80 and over
  • Data Analysis*
  • Databases, Factual / standards*
  • Databases, Factual / statistics & numerical data
  • Dementia / diagnosis
  • Dementia / epidemiology
  • Electronic Health Records / standards*
  • Female
  • Forecasting
  • Humans
  • Machine Learning / standards*
  • Male
  • Mental Disorders / diagnosis*
  • Mental Disorders / epidemiology
  • Reproducibility of Results
  • Retrospective Studies