Machine-Learning for Prescription Patterns: Random Forest in the Prediction of Dose and Number of Antipsychotics Prescribed to People with Schizophrenia

Clin Psychopharmacol Neurosci. 2022 Aug 31;20(3):450-461. doi: 10.9758/cpn.2022.20.3.450.

Abstract

Objective: We aimed to predict antipsychotic prescription patterns for people with schizophrenia using machine learning (ML) algorithms.

Methods: In a cross-sectional design, a sample of community mental health service users (SUs; n = 368) with a primary diagnosis of schizophrenia was randomly selected. Socio-demographic and clinical features, including the number, total dose, and route of administration of the antipsychotic treatment were recorded. Information about the number and the length of psychiatric hospitalization was retrieved. Ordinary Least Square (OLS) regression and ML algorithms (i.e., random forest [RF], supported vector machine, K-nearest neighborhood, and Naïve Bayes) were used to estimate the predictors of total antipsychotic dosage and prescription of antipsychotic polytherapy (APP).

Results: The strongest predictor of the total dose was APP. The number of Community Mental Health Centers (CMHC) contacts was the most important predictor of APP and, with APP omitted, of dosage. Treatment with anticholinergics predicted APP, emphasizing the strong correlation between APP and higher antipsychotic dose. RF performed better than OLS regression and the other ML algorithms in predicting both antipsychotic dose (root square mean error = 0.70, R2 = 0.31) and APP (area under the receiving operator curve = 0.66, true positive rate = 0.41, and true negative rate = 0.78).

Conclusion: APP is associated with the prescription of higher total doses of antipsychotics. Frequent attenders at CMHCs, and SUs recently hospitalized are often treated with APP and higher doses of antipsychotics. Future prospective studies incorporating standardized clinical assessments for both psychopathological severity and treatment efficacy are needed to confirm these findings.

Keywords: Antipsychotic drugs; Drug polytherapy; Drug prescription; Machine learning; Schizophrenia.