Related Experiment Video
Updated: Sep 3, 2025

Implementation of a Real-Time Psychosis Risk Detection and Alerting System Based on Electronic Health Records using CogStack
Published on: May 15, 2020
Machine-Learning for Prescription Patterns: Random Forest in the Prediction of Dose and Number of Antipsychotics
Mattia Marchi1, Giacomo Galli1, Gianluca Fiore1
1Department of Biomedical, Metabolic and Neural Sciences, University of Modena and Reggio Emilia, Modena, Italy.
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.
More Related Videos
Related Concept Videos
Drug Therapy
Antianxiety Medications
Analysis of Population Pharmacokinetic Data
Psychosis and Antipsychotic Drugs: Overview
Prediction Intervals
However, the point estimate is most likely not the exact value of the population parameter, but close to it. After calculating point estimates, we construct interval estimates, called confidence intervals or prediction intervals. This prediction interval comprises a range of values unlike the point estimate and is a better predictor of the observed sample value, y.
Randomized Experiments
Simple randomization
Simple...
Model Approaches for Pharmacokinetic Data: Distributed Parameter Models
The distributed parameter models are specifically designed to account for variations and differences in some drug classes. This model is particularly useful for assessing regional concentrations of anticancer or...

