Predicting crime during or after psychiatric care: Evaluating machine learning for risk assessment using the Danish patient registries

Research output: Contribution to journalJournal articleResearchpeer-review

Standard

Predicting crime during or after psychiatric care : Evaluating machine learning for risk assessment using the Danish patient registries. / Trinhammer, M. L.; Merrild, A. C.Holst; Lotz, J. F.; Makransky, G.

In: Journal of Psychiatric Research, Vol. 152, 2022, p. 194-200.

Research output: Contribution to journalJournal articleResearchpeer-review

Harvard

Trinhammer, ML, Merrild, ACH, Lotz, JF & Makransky, G 2022, 'Predicting crime during or after psychiatric care: Evaluating machine learning for risk assessment using the Danish patient registries', Journal of Psychiatric Research, vol. 152, pp. 194-200. https://doi.org/10.1016/j.jpsychires.2022.06.009

APA

Trinhammer, M. L., Merrild, A. C. H., Lotz, J. F., & Makransky, G. (2022). Predicting crime during or after psychiatric care: Evaluating machine learning for risk assessment using the Danish patient registries. Journal of Psychiatric Research, 152, 194-200. https://doi.org/10.1016/j.jpsychires.2022.06.009

Vancouver

Trinhammer ML, Merrild ACH, Lotz JF, Makransky G. Predicting crime during or after psychiatric care: Evaluating machine learning for risk assessment using the Danish patient registries. Journal of Psychiatric Research. 2022;152:194-200. https://doi.org/10.1016/j.jpsychires.2022.06.009

Author

Trinhammer, M. L. ; Merrild, A. C.Holst ; Lotz, J. F. ; Makransky, G. / Predicting crime during or after psychiatric care : Evaluating machine learning for risk assessment using the Danish patient registries. In: Journal of Psychiatric Research. 2022 ; Vol. 152. pp. 194-200.

Bibtex

@article{3f35a4faf6664d5fb862fee84bef852a,
title = "Predicting crime during or after psychiatric care: Evaluating machine learning for risk assessment using the Danish patient registries",
abstract = "Background: Structural changes in psychiatric systems have altered treatment opportunities for patients in need of mental healthcare. These changes are possibly associated with an increase in post-discharge crime, reported in the increase of forensic psychiatric populations. As current risk-assessment tools are time-consuming to administer and offer limited accuracy, this study aims to develop a predictive model designed to identify psychiatric patients at risk of committing crime leading to a future forensic psychiatric treatment course. Method: We utilized the longitudinal quality of the Danish patient registries, identifying the 45.720 adult patients who had contact with the psychiatric system in 2014, of which 474 committed crime leading to a forensic psychiatric treatment course after discharge. Four machine learning models (Logistic Regression, Random Forest, XGBoost and LightGBM) were applied over a range of sociodemographic, judicial, and psychiatric variables. Results: This study achieves a F1-macro score of 76%, with precision = 57% and recall = 47% reported by the LightGBM algorithm. Our model was therefore able to identify 47% of future forensic psychiatric patients, while making correct predictions in 57% of cases. Conclusion: The study demonstrates how a clinically useful initial risk-assessment can be achieved using machine learning on data from patient registries. The proposed approach offers the opportunity to flag potential future forensic psychiatric patients, while in contact with the general psychiatric system, hereby allowing early-intervention initiatives to be activated.",
keywords = "Computational psychiatry, Forensic psychiatry, Machine learning, Precision psychiatry, Statistical risk assessment",
author = "Trinhammer, {M. L.} and Merrild, {A. C.Holst} and Lotz, {J. F.} and G. Makransky",
note = "Publisher Copyright: {\textcopyright} 2022 The Author(s)",
year = "2022",
doi = "10.1016/j.jpsychires.2022.06.009",
language = "English",
volume = "152",
pages = "194--200",
journal = "Journal of Psychiatric Research",
issn = "0022-3956",
publisher = "Pergamon Press",

}

RIS

TY - JOUR

T1 - Predicting crime during or after psychiatric care

T2 - Evaluating machine learning for risk assessment using the Danish patient registries

AU - Trinhammer, M. L.

AU - Merrild, A. C.Holst

AU - Lotz, J. F.

AU - Makransky, G.

N1 - Publisher Copyright: © 2022 The Author(s)

PY - 2022

Y1 - 2022

N2 - Background: Structural changes in psychiatric systems have altered treatment opportunities for patients in need of mental healthcare. These changes are possibly associated with an increase in post-discharge crime, reported in the increase of forensic psychiatric populations. As current risk-assessment tools are time-consuming to administer and offer limited accuracy, this study aims to develop a predictive model designed to identify psychiatric patients at risk of committing crime leading to a future forensic psychiatric treatment course. Method: We utilized the longitudinal quality of the Danish patient registries, identifying the 45.720 adult patients who had contact with the psychiatric system in 2014, of which 474 committed crime leading to a forensic psychiatric treatment course after discharge. Four machine learning models (Logistic Regression, Random Forest, XGBoost and LightGBM) were applied over a range of sociodemographic, judicial, and psychiatric variables. Results: This study achieves a F1-macro score of 76%, with precision = 57% and recall = 47% reported by the LightGBM algorithm. Our model was therefore able to identify 47% of future forensic psychiatric patients, while making correct predictions in 57% of cases. Conclusion: The study demonstrates how a clinically useful initial risk-assessment can be achieved using machine learning on data from patient registries. The proposed approach offers the opportunity to flag potential future forensic psychiatric patients, while in contact with the general psychiatric system, hereby allowing early-intervention initiatives to be activated.

AB - Background: Structural changes in psychiatric systems have altered treatment opportunities for patients in need of mental healthcare. These changes are possibly associated with an increase in post-discharge crime, reported in the increase of forensic psychiatric populations. As current risk-assessment tools are time-consuming to administer and offer limited accuracy, this study aims to develop a predictive model designed to identify psychiatric patients at risk of committing crime leading to a future forensic psychiatric treatment course. Method: We utilized the longitudinal quality of the Danish patient registries, identifying the 45.720 adult patients who had contact with the psychiatric system in 2014, of which 474 committed crime leading to a forensic psychiatric treatment course after discharge. Four machine learning models (Logistic Regression, Random Forest, XGBoost and LightGBM) were applied over a range of sociodemographic, judicial, and psychiatric variables. Results: This study achieves a F1-macro score of 76%, with precision = 57% and recall = 47% reported by the LightGBM algorithm. Our model was therefore able to identify 47% of future forensic psychiatric patients, while making correct predictions in 57% of cases. Conclusion: The study demonstrates how a clinically useful initial risk-assessment can be achieved using machine learning on data from patient registries. The proposed approach offers the opportunity to flag potential future forensic psychiatric patients, while in contact with the general psychiatric system, hereby allowing early-intervention initiatives to be activated.

KW - Computational psychiatry

KW - Forensic psychiatry

KW - Machine learning

KW - Precision psychiatry

KW - Statistical risk assessment

UR - http://www.scopus.com/inward/record.url?scp=85132711552&partnerID=8YFLogxK

U2 - 10.1016/j.jpsychires.2022.06.009

DO - 10.1016/j.jpsychires.2022.06.009

M3 - Journal article

C2 - 35752071

AN - SCOPUS:85132711552

VL - 152

SP - 194

EP - 200

JO - Journal of Psychiatric Research

JF - Journal of Psychiatric Research

SN - 0022-3956

ER -

ID: 314296011