{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,5]],"date-time":"2026-10-05T23:16:01Z","timestamp":1791242161769,"version":"4.1.0"},"reference-count":60,"publisher":"MDPI AG","issue":"10","license":[{"start":{"date-parts":[[2022,10,16]],"date-time":"2022-10-16T00:00:00Z","timestamp":1665878400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Diagnostics"],"abstract":"<jats:p>Today\u2019s extensive availability of medical data enables the development of predictive models, but this requires suitable statistical methods, such as machine learning (ML). Especially in forensic psychiatry, a complex and cost-intensive field with risk assessments and predictions of treatment outcomes as central tasks, there is a need for such predictive tools, for example, to anticipate complex treatment courses and to be able to offer appropriate therapy on an individualized basis. This study aimed to develop a first basic model for the anticipation of adverse treatment courses based on prior compulsory admission and\/or conviction as simple and easily objectifiable parameters in offender patients with a schizophrenia spectrum disorder (SSD). With a balanced accuracy of 67% and an AUC of 0.72, gradient boosting proved to be the optimal ML algorithm. Antisocial behavior, physical violence against staff, rule breaking, hyperactivity, delusions of grandeur, fewer feelings of guilt, the need for compulsory isolation, cannabis abuse\/dependence, a higher dose of antipsychotics (measured by the olanzapine half-life) and an unfavorable legal prognosis emerged as the ten most influential variables out of a dataset with 209 parameters. Our findings could demonstrate an example of the use of ML in the development of an easy-to-use predictive model based on few objectifiable factors.<\/jats:p>","DOI":"10.3390\/diagnostics12102509","type":"journal-article","created":{"date-parts":[[2022,10,17]],"date-time":"2022-10-17T00:04:55Z","timestamp":1665965095000},"page":"2509","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":5,"title":["Model Building in Forensic Psychiatry: A Machine Learning Approach to Screening Offender Patients with SSD"],"prefix":"10.3390","volume":"12","author":[{"ORCID":"https:\/\/orcid.org\/0000-0001-6838-9380","authenticated-orcid":false,"given":"Lena","family":"Machetanz","sequence":"first","affiliation":[{"name":"Department of Forensic Psychiatry, Psychiatric Hospital, University of Z\u00fcrich, 3002 Zurich, Switzerland"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"David","family":"Huber","sequence":"additional","affiliation":[{"name":"Department of Forensic Psychiatry, Psychiatric Hospital, University of Z\u00fcrich, 3002 Zurich, Switzerland"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-3175-3457","authenticated-orcid":false,"given":"Steffen","family":"Lau","sequence":"additional","affiliation":[{"name":"Department of Forensic Psychiatry, Psychiatric Hospital, University of Z\u00fcrich, 3002 Zurich, Switzerland"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-6072-9958","authenticated-orcid":false,"given":"Johannes","family":"Kirchebner","sequence":"additional","affiliation":[{"name":"Department of Forensic Psychiatry, Psychiatric Hospital, University of Z\u00fcrich, 3002 Zurich, Switzerland"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1968","published-online":{"date-parts":[[2022,10,16]]},"reference":[{"key":"ref_1","unstructured":"Gutierrez, D.D. (2015). Machine Learning and Data Science: An Introduction to Statistical Learning Methods with R, Technics Publications."},{"key":"ref_2","doi-asserted-by":"crossref","first-page":"956","DOI":"10.1038\/mp.2011.173","article-title":"Machine learning and data mining: Strategies for hypothesis generation","volume":"17","author":"Oquendo","year":"2012","journal-title":"Mol. Psychiatry"},{"key":"ref_3","doi-asserted-by":"crossref","first-page":"3449","DOI":"10.1002\/mp.12967","article-title":"Machine learning algorithms for outcome prediction in (chemo)radiotherapy: An empirical comparison of classifiers","volume":"45","author":"Deist","year":"2018","journal-title":"Med. Phys."},{"key":"ref_4","doi-asserted-by":"crossref","first-page":"477","DOI":"10.1016\/j.jmir.2019.09.005","article-title":"Machine Learning and Deep Learning in Medical Imaging: Intelligent Imaging","volume":"50","author":"Currie","year":"2019","journal-title":"J. Med. Imaging Radiat. Sci."},{"key":"ref_5","first-page":"1403","article-title":"Diagnosis of COVID-19 Using Machine Learning and Deep Learning: A Review","volume":"17","author":"Mondal","year":"2021","journal-title":"Curr. Med. Imaging"},{"key":"ref_6","doi-asserted-by":"crossref","unstructured":"Hofmann, L.A., Lau, S., and Kirchebner, J. (2022). Advantages of Machine Learning in Forensic Psychiatric Research\u2014Uncovering the Complexities of Aggressive Behavior in Schizophrenia. Appl. Sci., 12.","DOI":"10.3390\/app12020819"},{"key":"ref_7","first-page":"798","article-title":"Making Individual Prognoses in Psychiatry Using Neuroimaging and Machine Learning","volume":"3","author":"Janssen","year":"2018","journal-title":"Biol. Psychiatry Cogn. Neurosci. Neuroimaging"},{"key":"ref_8","doi-asserted-by":"crossref","unstructured":"Kirchebner, J., G\u00fcnther, M.P., Sonnweber, M., King, A., and Lau, S. (2020). Factors and predictors of length of stay in offenders diagnosed with schizophrenia\u2014A machine-learning-based approach. BMC Psychiatry, 20.","DOI":"10.1186\/s12888-020-02612-1"},{"key":"ref_9","doi-asserted-by":"crossref","first-page":"329","DOI":"10.1080\/09585180210151248","article-title":"Preventive detention, public protection and mental health","volume":"13","author":"Forrester","year":"2002","journal-title":"J. Forensic Psychiatry"},{"key":"ref_10","doi-asserted-by":"crossref","first-page":"333","DOI":"10.1080\/14999013.2016.1221484","article-title":"Long-term forensic mental health services: An exploratory comparison of 18 European countries","volume":"15","author":"Sampson","year":"2016","journal-title":"Int. J. Forensic Ment. Health"},{"key":"ref_11","doi-asserted-by":"crossref","first-page":"407","DOI":"10.1080\/14789940410001703282","article-title":"Clinical hopes and public fears in forensic mental health","volume":"15","author":"Carroll","year":"2004","journal-title":"J. Forensic Psychiatry Psychol."},{"key":"ref_12","doi-asserted-by":"crossref","first-page":"173","DOI":"10.1080\/14999013.2006.10471241","article-title":"Attempting to Understand the Increase in the Numbers of Forensic Beds in Europe: A Multi-site Study of Patients in Forensic and General Psychiatric Services","volume":"5","author":"Hodgins","year":"2006","journal-title":"Int. J. Forensic Ment. Health"},{"key":"ref_13","doi-asserted-by":"crossref","first-page":"265","DOI":"10.1007\/s11757-016-0385-0","article-title":"Forensische Psychiatrie zwischen Therapie und Sicherung","volume":"10","author":"Habermeyer","year":"2016","journal-title":"Forens. Psychiatr. Psychol. Kriminol."},{"key":"ref_14","doi-asserted-by":"crossref","first-page":"43","DOI":"10.3928\/02793695-20090331-02","article-title":"Clinical coaching in forensic psychiatry: An innovative program to recruit and retain nurses","volume":"47","author":"Thorpe","year":"2009","journal-title":"J. Psychosoc. Nurs. Ment. Health Serv."},{"key":"ref_15","doi-asserted-by":"crossref","first-page":"e024899","DOI":"10.1136\/bmjopen-2018-024899","article-title":"Assessing societal and offender perspectives on the value of offender healthcare: A stated preference research protocol","volume":"9","author":"Settumba","year":"2019","journal-title":"BMJ Open"},{"key":"ref_16","unstructured":"Entorf, H. (2007). Evaluation des Ma\u00dfregelvollzugs: Grundz\u00fcge einer Kosten-Nutzen-Analyse, Technische Universit\u00e4t Darmstadt. Darmstadt discussion papers in economics."},{"key":"ref_17","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1186\/s12888-021-03117-1","article-title":"Escape and absconding among offenders with schizophrenia spectrum disorder\u2013an explorative analysis of characteristics","volume":"21","author":"Kirchebner","year":"2021","journal-title":"BMC Psychiatry"},{"key":"ref_18","doi-asserted-by":"crossref","unstructured":"Kappes, J.R., Huber, D.A., Kirchebner, J., Sonnweber, M., G\u00fcnther, M.P., and Lau, S. (2021). Self-Harm among Forensic Psychiatric Inpatients with Schizophrenia Spectrum Disorders: An Explorative Analysis. Int. J. Offender Ther. Comp. Criminol., 0306624X211062139.","DOI":"10.1177\/0306624X211062139"},{"key":"ref_19","doi-asserted-by":"crossref","first-page":"255","DOI":"10.1002\/cbm.2245","article-title":"Exploring substance use as rule-violating behaviour during inpatient treatment of offender patients with schizophrenia","volume":"32","author":"Sonnweber","year":"2022","journal-title":"Crim. Behav. Ment. Health"},{"key":"ref_20","doi-asserted-by":"crossref","first-page":"93","DOI":"10.1080\/14999013.2014.906519","article-title":"Historical-Clinical-Risk Management-20, Version 3 (HCR-20V3): Development and Overview","volume":"13","author":"Douglas","year":"2014","journal-title":"Int. J. Forensic Ment. Health"},{"key":"ref_21","doi-asserted-by":"crossref","first-page":"951","DOI":"10.1037\/a0032878","article-title":"Validation of and revision to the VRAG and SORAG: The Violence Risk Appraisal Guide\u2014Revised (VRAG-R)","volume":"25","author":"Rice","year":"2013","journal-title":"Psychol. Assess."},{"key":"ref_22","unstructured":"World Health Organization (2004). ICD-10: International Statistical Classification of Diseases and Related Health Problems: Tenth Revision."},{"key":"ref_23","unstructured":"World Health Organization (1978). International Classification of Diseases: Ninth Revision, Basic Tabulation List with Alphabetic Index."},{"key":"ref_24","first-page":"237","article-title":"Die entwicklung des psychiatrischen massregelvollzzugs (\u00a7 63StGB) in Nordrhein-Wesfalen","volume":"24","author":"Seifert","year":"1997","journal-title":"Psychiat Prax"},{"key":"ref_25","doi-asserted-by":"crossref","first-page":"91","DOI":"10.1055\/s-0028-1109080","article-title":"Schizophrene patienten im psychiatrischen massregelvollzug (\u00a7 63 StGB) Nordrhein-Westfalens","volume":"77","author":"Kutscher","year":"2009","journal-title":"Fortschr. Der Neurol. Psychiatr."},{"key":"ref_26","doi-asserted-by":"crossref","first-page":"1117","DOI":"10.1007\/s00115-009-2913-z","article-title":"Patienten mit schizophrenen St\u00f6rungen im psychiatrischen Ma\u00dfregelvollzug","volume":"81","author":"Habermeyer","year":"2010","journal-title":"Der Nervenarzt"},{"key":"ref_27","doi-asserted-by":"crossref","first-page":"153","DOI":"10.1002\/nur.4770150210","article-title":"Focus on psychometrics the kappa statistic for establishing interrater reliability in the secondary analysis of qualitative clinical data","volume":"15","author":"Brennan","year":"1992","journal-title":"Res. Nurs. Health"},{"key":"ref_28","doi-asserted-by":"crossref","first-page":"261","DOI":"10.1093\/schbul\/13.2.261","article-title":"The positive and negative syndrome scale (PANSS) for schizophrenia","volume":"13","author":"Kay","year":"1987","journal-title":"Schizophr. Bull."},{"key":"ref_29","doi-asserted-by":"crossref","first-page":"415","DOI":"10.3389\/fpsyt.2020.00415","article-title":"Identifying direct coercion in a high risk subgroup of offender patients with schizophrenia via machine learning algorithms","volume":"11","author":"Kirchebner","year":"2020","journal-title":"Front. Psychiatry"},{"key":"ref_30","doi-asserted-by":"crossref","first-page":"110435","DOI":"10.1016\/j.forsciint.2020.110435","article-title":"Identifying influential factors distinguishing recidivists among offender patients with a diagnosis of schizophrenia via machine learning algorithms","volume":"315","author":"Kirchebner","year":"2020","journal-title":"Forensic Sci. Int."},{"key":"ref_31","doi-asserted-by":"crossref","first-page":"e1856","DOI":"10.1002\/mpr.1856","article-title":"Individuals with schizophrenia who act violently towards others profit unequally from inpatient treatment\u2014Identifying subgroups by latent class analysis","volume":"30","author":"Kirchebner","year":"2021","journal-title":"Int. J. Methods Psychiatr. Res."},{"key":"ref_32","doi-asserted-by":"crossref","first-page":"602","DOI":"10.1177\/0886260520913641","article-title":"Stress, Schizophrenia, and Violence: A Machine Learning Approach","volume":"37","author":"Kirchebner","year":"2022","journal-title":"J. Interpers Violence"},{"key":"ref_33","doi-asserted-by":"crossref","first-page":"86","DOI":"10.1016\/j.eurpsy.2019.05.005","article-title":"Latent class analysis identified phenotypes in individuals with schizophrenia spectrum disorder who engage in aggressive behaviour towards others","volume":"60","author":"Lau","year":"2019","journal-title":"Eur. Psychiatry"},{"key":"ref_34","doi-asserted-by":"crossref","first-page":"152238","DOI":"10.1016\/j.comppsych.2021.152238","article-title":"Violent and non-violent offending in patients with schizophrenia: Exploring influences and differences via machine learning","volume":"107","author":"Sonnweber","year":"2021","journal-title":"Compr. Psychiatry"},{"key":"ref_35","doi-asserted-by":"crossref","first-page":"612322","DOI":"10.3389\/fpsyt.2021.612322","article-title":"Childhood maltreatment, psychopathology, and offending behavior in patients with schizophrenia: A latent class analysis evidencing disparities in inpatient treatment outcome","volume":"12","author":"Lau","year":"2021","journal-title":"Front. Psychiatry"},{"key":"ref_36","doi-asserted-by":"crossref","first-page":"108850","DOI":"10.1016\/j.drugalcdep.2021.108850","article-title":"Schizophrenia and substance use disorder: Characteristics of coexisting issues in a forensic setting","volume":"226","author":"Patterson","year":"2021","journal-title":"Drug Alcohol Depend."},{"key":"ref_37","doi-asserted-by":"crossref","unstructured":"Huber, D.A., Lau, S., Sonnweber, M., G\u00fcnther, M.P., and Kirchebner, J. (2020). Exploring similarities and differences of non-European migrants among forensic patients with schizophrenia. Int. J. Environ. Res. Public Health, 17.","DOI":"10.3390\/ijerph17217922"},{"key":"ref_38","doi-asserted-by":"crossref","first-page":"1100","DOI":"10.1177\/1745691617693393","article-title":"Choosing Prediction over Explanation in Psychology: Lessons from Machine Learning","volume":"12","author":"Yarkoni","year":"2017","journal-title":"Perspect. Psychol. Sci."},{"key":"ref_39","doi-asserted-by":"crossref","first-page":"108","DOI":"10.1006\/jmps.1999.1279","article-title":"Cross-Validation Methods","volume":"44","author":"Browne","year":"2000","journal-title":"J. Math. Psychol."},{"key":"ref_40","doi-asserted-by":"crossref","first-page":"152","DOI":"10.21037\/atm.2019.03.29","article-title":"Predictive analytics with gradient boosting in clinical medicine","volume":"7","author":"Zhang","year":"2019","journal-title":"Ann. Transl. Med."},{"key":"ref_41","doi-asserted-by":"crossref","first-page":"146","DOI":"10.1016\/j.jpsychires.2021.03.026","article-title":"Predicting offenses among individuals with psychiatric disorders\u2014A machine learning approach","volume":"138","author":"Watts","year":"2021","journal-title":"J. Psychiatr. Res."},{"key":"ref_42","doi-asserted-by":"crossref","unstructured":"Travaini, G.V., Pacchioni, F., Bellumore, S., Bosia, M., and De Micco, F. (2022). Machine Learning and Criminal Justice: A Systematic Review of Advanced Methodology for Recidivism Risk Prediction. Int. J. Environ. Res. Public Health, 19.","DOI":"10.3390\/ijerph191710594"},{"key":"ref_43","doi-asserted-by":"crossref","first-page":"1189","DOI":"10.1214\/aos\/1013203451","article-title":"Greedy function approximation: A gradient boosting machine","volume":"29","author":"Friedman","year":"2001","journal-title":"Ann. Stat."},{"key":"ref_44","doi-asserted-by":"crossref","first-page":"2995","DOI":"10.1109\/TKDE.2019.2959988","article-title":"Tackling overfitting in boosting for noisy healthcare data","volume":"33","author":"Park","year":"2019","journal-title":"IEEE Trans. Knowl. Data Eng."},{"key":"ref_45","doi-asserted-by":"crossref","first-page":"419","DOI":"10.3414\/ME13-01-0122","article-title":"The Evolution of Boosting Algorithms","volume":"53","author":"Mayr","year":"2014","journal-title":"Methods Inf. Med."},{"key":"ref_46","unstructured":"Hodgins, S., Toupin, J., and C\u00f4t\u00e9, G. (1996). Schizophrenia and antisocial personality disorder: A criminal combination. Explorations in Criminal Psychopathology: Clinical Syndromes with Forensic Implications, Charles C Thomas Publisher."},{"key":"ref_47","doi-asserted-by":"crossref","first-page":"791","DOI":"10.1093\/oxfordjournals.schbul.a007132","article-title":"The correlates of comorbid antisocial personality disorder in schizophrenia","volume":"30","author":"Moran","year":"2004","journal-title":"Schizophr. Bull."},{"key":"ref_48","doi-asserted-by":"crossref","unstructured":"Vivas, A.B., Hussain-Showaiter, S.M., and Overton, P.G. (2021). Schizophrenia decreases guilt and increases self-disgust: Potential role of altered executive function. Appl. Neuropsychol. Adult, 1\u201311.","DOI":"10.1080\/23279095.2021.1956497"},{"key":"ref_49","doi-asserted-by":"crossref","first-page":"137","DOI":"10.1016\/j.pnpbp.2010.10.005","article-title":"Predictors of compulsory admission in schizophrenia-spectrum patients: Excitement, insight, emotion perception","volume":"35","author":"Montemagni","year":"2011","journal-title":"Prog. Neuropsychopharmacol. Biol. Psychiatry"},{"key":"ref_50","doi-asserted-by":"crossref","first-page":"155","DOI":"10.1016\/j.encep.2021.02.010","article-title":"Individual and contextual factors associated with violent behaviours during psychiatric hospitalizations","volume":"48","author":"Camus","year":"2022","journal-title":"Encephale"},{"key":"ref_51","doi-asserted-by":"crossref","first-page":"179","DOI":"10.1097\/HRP.0000000000000251","article-title":"Psychosis, Mania and Criminal Recidivism: Associations and Implications for Prevention","volume":"28","author":"Lamberti","year":"2020","journal-title":"Harv. Rev. Psychiatry"},{"key":"ref_52","doi-asserted-by":"crossref","first-page":"350","DOI":"10.1016\/j.psychres.2017.11.003","article-title":"Do cognitive deficits predict negative emotionality and aggression in schizophrenia?","volume":"259","author":"Ahmed","year":"2018","journal-title":"Psychiatry Res."},{"key":"ref_53","doi-asserted-by":"crossref","first-page":"e009888","DOI":"10.1136\/bmjopen-2015-009888","article-title":"Association of cannabis use with hospital admission and antipsychotic treatment failure in first episode psychosis: An observational study","volume":"6","author":"Patel","year":"2016","journal-title":"BMJ Open"},{"key":"ref_54","doi-asserted-by":"crossref","first-page":"1663","DOI":"10.1017\/S0033291715003001","article-title":"Continuity of cannabis use and violent offending over the life course","volume":"46","author":"Schoeler","year":"2016","journal-title":"Psychol. Med."},{"key":"ref_55","doi-asserted-by":"crossref","first-page":"2016","DOI":"10.1001\/jama.2009.675","article-title":"Schizophrenia, Substance Abuse, and Violent Crime","volume":"301","author":"Fazel","year":"2009","journal-title":"JAMA"},{"key":"ref_56","doi-asserted-by":"crossref","first-page":"649","DOI":"10.1016\/j.psc.2006.04.010","article-title":"Substance Misuse and Substance-Related Disorders in Forensic Psychiatry","volume":"29","author":"Gendel","year":"2006","journal-title":"Psychiatr. Clin. N. Am."},{"key":"ref_57","doi-asserted-by":"crossref","first-page":"178","DOI":"10.1016\/j.ijlp.2018.05.001","article-title":"Correlates of offense recidivism in patients with schizophrenia","volume":"58","author":"Oueslati","year":"2018","journal-title":"Int. J. Law Psychiatry"},{"key":"ref_58","doi-asserted-by":"crossref","unstructured":"Grann, M., Danesh, J., and Fazel, S. (2008). The association between psychiatric diagnosis and violent re-offending in adult offenders in the community. BMC Psychiatry, 8.","DOI":"10.1186\/1471-244X-8-92"},{"key":"ref_59","doi-asserted-by":"crossref","first-page":"278","DOI":"10.1016\/j.avb.2014.04.014","article-title":"A theoretically informed meta-analysis of the risk for general and violent recidivism for mentally disordered offenders","volume":"19","author":"Bonta","year":"2014","journal-title":"Aggress. Violent Behav."},{"key":"ref_60","doi-asserted-by":"crossref","first-page":"212","DOI":"10.1037\/lhb0000054","article-title":"Offenders with mental illness have criminogenic needs, too: Toward recidivism reduction","volume":"38","author":"Skeem","year":"2014","journal-title":"Law Hum. Behav."}],"container-title":["Diagnostics"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/2075-4418\/12\/10\/2509\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,11]],"date-time":"2025-10-11T00:55:20Z","timestamp":1760144120000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/2075-4418\/12\/10\/2509"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2022,10,16]]},"references-count":60,"journal-issue":{"issue":"10","published-online":{"date-parts":[[2022,10]]}},"alternative-id":["diagnostics12102509"],"URL":"https:\/\/doi.org\/10.3390\/diagnostics12102509","relation":{},"ISSN":["2075-4418"],"issn-type":[{"value":"2075-4418","type":"electronic"}],"subject":[],"published":{"date-parts":[[2022,10,16]]}}}