Development and Evaluation of Machine Learning Models to Predict Mechanical Restraint and Related Coercive Measures in Hospital Psychiatry
Kolding, S.; Damgaard, J. G.; Bernstorff, M.; Hansen, L.; Ostergaard, S. D.; Danielsen, A. A.
Show abstract
IntroductionUse of coercive measures in psychiatric hospitals is clinically and ethically challenging. Aiming to support prevention, we developed and evaluated machine learning models to predict both mechanical restraint and a broader composite outcome that includes related coercive measures. MethodsThe dataset comprised electronic health records (EHR) from adults ([≥]18 years) who had at least one admission to the Psychiatric Services in the Central Denmark Region between 2015 and 2021. For each inpatient day, XGBoost machine learning models were trained to predict mechanical restraint or composite (mechanical, chemical, or manual) restraint within 48 hours. Hyperparameters were optimised for the area under the receiver operating characteristic curve (AUROC) using five-fold cross validation on 85% of the data, with performance validated on a held-out 15% test set. ResultsThe cohort included 16,834 patients with 45,179 inpatient stays, covering 687,388 prediction days. Of these, 2,736 days were followed by a restraint episode within 48 hours, including 983 episodes of mechanical restraint. The final models were trained on 2,389 EHR-based predictors, derived from demographics, diagnoses, medications, and clinical notes. The mechanical restraint model achieved an AUROC of 0.921 (95% CI: [0.918-0.922]) and a positive predictive value (PPV) of 4.9% when classifying the top 1% of risk scores as positive. The composite model achieved an AUROC of 0.912 (95% CI: [0.909-0.913]) and a PPV of 4.2% when predicting mechanical restraint, and 0.900 (95% CI: [0.898-0.900]) with a PPV of 10.4% when predicting composite restraint. ConclusionThe results indicate that incorporating related coercive measures into model training did not improve discrimination (AUROC) for predicting mechanical restraint but did increase PPV when predicting composite restraint, reflecting the higher outcome prevalence. This suggests that leveraging related outcomes can inform prediction of rare events, emphasising the importance of problem framing in clinical prediction modelling. Future work should include external validation across temporal, geographic, and demographic contexts. Significant Outcomes- A machine learning model trained solely for predicting mechanical restraint achieved strong performance (AUROC 0.92), identifying nearly one-third of restraint cases at high specificity. - Training on a broader composite outcome yielded similar discriminatory performance when predicting mechanical restraint, while the higher base rate resulted in a higher positive predictive value for predicting composite restraint. - Broadening the outcome to include multiple restraint types increased the number of at-risk patients detected due to the higher prevalence, without compromising accuracy for mechanical restraint, supporting shared underlying risk factors. Limitations- The model requires more extensive external validation to assess generalisability across time, demographic groups, and settings, which may be limited by regional/national differences in legislation and clinical documentation. - Prediction performance was highest near the restraint event, limiting early forecasting and suggesting that limiting predictions to the early phase of hospitalisation, where most restraint occurs, could elevate the base rate and improve model performance.
Matching journals
The top 7 journals account for 50% of the predicted probability mass.
Similar papers in this journal
- Mapping patient interactions in psychiatric presentations to a tertiary emergency department 93%
- Clinical benefits of modifying the evening light environment in an acute psychiatric unit: A single-centre, two-arm, parallel-group, pragmatic effectiveness randomised controlled trial 92%
- Risk of common psychiatric disorders, suicidal behaviours and premature mortality following violent victimisation: A matched cohort and sibling-comparison study of 127,628 people who experienced violence in Finland and Sweden 91%
Similar papers in this journal
- Descriptives and genetic correlates of eating disorder diagnostic transitions and presumed remission in the Danish registry 91%
- Brain-based predictions of psychiatric illness-linked behaviors across the sexes 90%
- Great Expectations: A Critical Review of and Recommendations for the study of Reward Processing as a Cause and Predictor of Depression 90%
Similar papers in this journal
- Correlates of suicidal behaviors and genetic risk among United States veterans with schizophrenia or bipolar I disorder 92%
- Longitudinal evolution of the transdiagnostic prodrome to severe mental disorders: a dynamic temporal network analysis informed by natural language processing and electronic health records 92%
- Directed exploration is elevated in affective disorders but reduced by an aversive interoceptive state induction 92%
Similar papers in this journal
- Stratifying Risk for Postpartum Depression at Time of Hospital Discharge 91%
- Multivariate GWAS elucidates the genetic architecture of alcohol consumption and misuse, corrects biases, and reveals novel associations with disease 89%
- A significant role for maternal genetic nurture in the risk architecture of attention-deficit/hyperactivity disorder 89%
"Similar papers" are the closest papers from that journal in the model's embedding space. They show what the match is built on, but the ranking comes mostly from a classifier over the whole training set, not from these examples alone.