Development and evaluation of machine learning models to predict mechanical restraint and related coercive measures in hospital psychiatry
Nordic Journal of Psychiatry · 2026
DOI: 10.1080/08039488.2026.2716241 ↗Kurz gefasst
Fachartikel in der Zeitschrift Nordic Journal of Psychiatry, 2026. Verfasst von Sara Kolding und 5 weiteren Autor:innen. Beteiligte Einrichtung: Department of Affective Disorders, Aarhus University Hospital, Aarhus, Denmark. Hauptthemen laut MEDLINE: Restraint, Physical, Hospitals, Psychiatric, Coercion, Machine Learning. Die Arbeit nennt 60 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY-NC-ND 4.0). Gefördert von: Lundbeck Foundation, Danish Cancer Society, Central Denmark Region Fund for Strengthening of Health Science.
Abstract (Originalsprache)
Introduction
Use 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.
Methods
The 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.
Results
The 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.
Conclusion
The 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.
Schlagwörter
MeSH-Schlagwörter (MEDLINE)
Stichwörter der Autor:innen
Autor:innen und Institutionen
- Department of Affective Disorders, Aarhus University Hospital, Aarhus, Denmark.
- Department of Clinical Medicine, Aarhus University, Aarhus, Denmark.
- Centre for Humanities Computing, Aarhus University, Aarhus, Denmark.
- Psychosis Research Unit, Aarhus University Hospital, Aarhus, Denmark.
ORCID-Profile: Sara Kolding, Jakob Grøhn Damgaard, Martin Bernstorff, Lasse Hansen, Søren Dinesen Østergaard, Andreas Aalkjær Danielsen
Förderung
- Lundbeck Foundation
- Danish Cancer Society
- Central Denmark Region Fund for Strengthening of Health Science
- Danish Agency for Digitisation Investment Fund for New Technologies
- Independent Research Fund Denmark
Zitieren
APA
Kolding, S., Damgaard, J. G., Bernstorff, M., Hansen, L., Østergaard, S. D., & Danielsen, A. A. (2026). Development and evaluation of machine learning models to predict mechanical restraint and related coercive measures in hospital psychiatry. Nordic Journal of Psychiatry. https://doi.org/10.1080/08039488.2026.2716241
Vancouver
Kolding S, Damgaard JG, Bernstorff M, Hansen L, Østergaard SD, Danielsen AA. Development and evaluation of machine learning models to predict mechanical restraint and related coercive measures in hospital psychiatry. Nordic Journal of Psychiatry. 2026. doi:10.1080/08039488.2026.2716241
BibTeX
@article{Kolding2026,
author = {Kolding, Sara and Damgaard, Jakob Grøhn and Bernstorff, Martin and Hansen, Lasse and Østergaard, Søren Dinesen and Danielsen, Andreas Aalkjær},
title = {Development and evaluation of machine learning models to predict mechanical restraint and related coercive measures in hospital psychiatry},
journal = {Nordic Journal of Psychiatry},
year = {2026},
doi = {10.1080/08039488.2026.2716241}
}
EUVIMED