{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,8,26]],"date-time":"2026-08-26T16:01:22Z","timestamp":1787760082680,"version":"build-2784847793"},"reference-count":36,"publisher":"Frontiers Media SA","license":[{"start":{"date-parts":[[2025,6,17]],"date-time":"2025-06-17T00:00:00Z","timestamp":1750118400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":["frontiersin.org"],"crossmark-restriction":true},"short-container-title":["Front. Artif. Intell."],"abstract":"<jats:sec><jats:title>Background<\/jats:title><jats:p>Decisions surrounding involuntary psychiatric treatment orders often involve complex clinical, legal, and ethical considerations, especially when patients lack decisional capacity and refuse treatment. In Quebec, these orders are issued by the Superior Court based on a combination of medical, legal, and behavioral evidence. However, no transparent, evidence-informed predictive tools currently exist to estimate the likelihood of full treatment order acceptance. This study aims to develop and evaluate a hybrid fuzzy logic\u2013machine learning model to predict such outcomes and identify important influencing factors.<\/jats:p><\/jats:sec><jats:sec><jats:title>Methods<\/jats:title><jats:p>A retrospective dataset of 176 Superior Court judgments rendered in Quebec in 2024 was curated from SOQUIJ, encompassing demographic, clinical, and legal variables. A Mamdani-type fuzzy inference system was constructed to simulate expert decision logic and output a continuous likelihood score. This score, along with structured features, was used to train a Random Forest classifier. Model performance was evaluated using accuracy, precision, recall and F1 score. A 10-fold stratified cross-validation was employed for internal validation. Feature importance was also computed to assess the influence of each variable on the prediction outcome.<\/jats:p><\/jats:sec><jats:sec><jats:title>Results<\/jats:title><jats:p>The hybrid model achieved an accuracy of 98.1%, precision of 93.3%, recall of 100%, and a F1 score of 96.6. The most influential predictors were the duration of time granted by the court, duration requested by the clinical team, and age of the defendant. Fuzzy logic features such as severity, compliance, and a composite Burden_Score also significantly contributed to prediction accuracy. Only one misclassified case was observed in the test set, and the system provided interpretable decision logic consistent with expert reasoning.<\/jats:p><\/jats:sec><jats:sec><jats:title>Conclusion<\/jats:title><jats:p>This exploratory study offers a novel approach for decision support in forensic psychiatric contexts. Future work should aim to validate the model across other jurisdictions, incorporate more advanced natural language processing for semantic feature extraction, and explore dynamic rule optimization techniques. These enhancements would further improve generalizability, fairness, and practical utility in real-world clinical and legal settings.<\/jats:p><\/jats:sec>","DOI":"10.3389\/frai.2025.1606250","type":"journal-article","created":{"date-parts":[[2025,6,17]],"date-time":"2025-06-17T05:27:48Z","timestamp":1750138068000},"update-policy":"https:\/\/doi.org\/10.3389\/crossmark-policy","source":"Crossref","is-referenced-by-count":3,"title":["A hybrid fuzzy logic\u2013Random Forest model to predict psychiatric treatment order outcomes: an interpretable tool for legal decision support"],"prefix":"10.3389","volume":"8","author":[{"given":"Alexandre","family":"Hudon","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1965","published-online":{"date-parts":[[2025,6,17]]},"reference":[{"key":"ref1","doi-asserted-by":"publisher","first-page":"301","DOI":"10.1186\/s13054-024-05005-y","article-title":"Should AI models be explainable to clinicians?","volume":"28","author":"Abgrall","year":"2024","journal-title":"Crit. Care"},{"key":"ref2","doi-asserted-by":"publisher","first-page":"e15154","DOI":"10.2196\/15154","article-title":"Artificial intelligence and human trust in healthcare: focus on clinicians","volume":"22","author":"Asan","year":"2020","journal-title":"J. Med. Internet Res."},{"key":"ref3","doi-asserted-by":"publisher","first-page":"801415","DOI":"10.3389\/fpsyt.2022.801415","article-title":"Defining autonomy in psychiatry","volume":"13","author":"Bergamin","year":"2022","journal-title":"Front. Psych."},{"key":"ref4","doi-asserted-by":"publisher","first-page":"154","DOI":"10.1002\/wps.20882","article-title":"The promise of machine learning in predicting treatment outcomes in psychiatry","volume":"20","author":"Chekroud","year":"2021","journal-title":"World Psychiatry"},{"key":"ref5","doi-asserted-by":"publisher","first-page":"e074819","DOI":"10.1136\/bmj-2023-074819","article-title":"Evaluation of clinical prediction models (part 1): from development to external validation","volume":"384","author":"Collins","year":"2024","journal-title":"BMJ"},{"key":"ref6","year":""},{"key":"ref7","first-page":"213","article-title":"Poster: using Gini impurity to mine attribute-based access control policies with environment attributes","author":"Das","year":"2018"},{"key":"ref8","doi-asserted-by":"publisher","first-page":"1444763","DOI":"10.3389\/frobt.2024.1444763","article-title":"Enhancing interpretability and accuracy of AI models in healthcare: a comprehensive review on challenges and future directions","volume":"11","author":"Ennab","year":"2024","journal-title":"Front. Robot AI"},{"key":"ref9","doi-asserted-by":"publisher","first-page":"484","DOI":"10.1177\/0706743719892718","article-title":"Community treatment order outcomes in Quebec: a unique jurisdiction","volume":"65","author":"Frank","year":"2020","journal-title":"Can. J. Psychiatr."},{"key":"ref10","doi-asserted-by":"publisher","first-page":"1605","DOI":"10.3390\/jcm14051605","article-title":"Shaping the future of healthcare: ethical clinical challenges and pathways to trustworthy AI","volume":"14","author":"Goktas","year":"2025","journal-title":"J. Clin. Med."},{"key":"ref11","doi-asserted-by":"publisher","first-page":"8744","DOI":"10.1016\/j.eswa.2012.01.206","article-title":"Fuzzy inference systems: an integrated modeling environment for collaboration between expert knowledge and data using FisPro","volume":"39","author":"Guillaume","year":"2012","journal-title":"Expert Syst. Appl."},{"key":"ref12","doi-asserted-by":"publisher","first-page":"9858","DOI":"10.1038\/s41598-022-14143-8","article-title":"Rule extraction from biased random forest and fuzzy support vector machine for early diagnosis of diabetes","volume":"12","author":"Hao","year":"2022","journal-title":"Sci. Rep."},{"key":"ref13","doi-asserted-by":"publisher","first-page":"357","DOI":"10.1038\/s41586-020-2649-2","article-title":"Array programming with NumPy","volume":"585","author":"Harris","year":"2020","journal-title":"Nature"},{"key":"ref14","doi-asserted-by":"publisher","first-page":"5979","DOI":"10.1038\/s41598-022-09954-8","article-title":"On evaluation metrics for medical applications of artificial intelligence","volume":"12","author":"Hicks","year":"2022","journal-title":"Sci. Rep."},{"key":"ref15","doi-asserted-by":"publisher","first-page":"e1312","DOI":"10.1002\/widm.1312","article-title":"Causability and explainability of artificial intelligence in medicine","volume":"9","author":"Holzinger","year":"2019","journal-title":"Wiley Interdiscip. Rev. Data Min. Knowl. Discov."},{"key":"ref16","doi-asserted-by":"publisher","first-page":"167","DOI":"10.1080\/10485252.2015.1010532","article-title":"A K-fold averaging cross-validation procedure","volume":"27","author":"Jung","year":"2015","journal-title":"J. Nonparametr. Stat."},{"key":"ref17","doi-asserted-by":"publisher","first-page":"15","DOI":"10.1002\/hast.973","article-title":"Artificial intelligence and black-box medical decisions: accuracy versus explainability","volume":"49","author":"London","year":"2019","journal-title":"Hast. Cent. Rep."},{"key":"ref18","doi-asserted-by":"publisher","first-page":"573","DOI":"10.1136\/jme-2022-108447","article-title":"Evidence, ethics and the promise of artificial intelligence in psychiatry","volume":"49","author":"McCradden","year":"2023","journal-title":"J. Med. Ethics"},{"key":"ref19","doi-asserted-by":"publisher","first-page":"83","DOI":"10.1192\/bji.2019.4","article-title":"Community treatment orders: international perspective","volume":"16","author":"Mikellides","year":"2019","journal-title":"BJPsych Int."},{"key":"ref20","doi-asserted-by":"publisher","first-page":"708","DOI":"10.1097\/01.nmd.0000142020.20038.dd","article-title":"Fuzzy logic detection of medically serious suicide attempt records in major psychiatric disorders","volume":"192","author":"Modai","year":"2004","journal-title":"J. Nerv. Ment. Dis."},{"key":"ref21","doi-asserted-by":"publisher","first-page":"356","DOI":"10.1177\/0706743719845906","article-title":"Community treatment orders and other forms of mandatory outpatient treatment","volume":"64","author":"O'Reilly","year":"2019","journal-title":"Can. J. Psychiatr."},{"key":"ref22","doi-asserted-by":"publisher","first-page":"a448","DOI":"10.1136\/bmj.39580.546597.BE","article-title":"Mental capacity to make decisions on treatment in people admitted to psychiatric hospitals: cross sectional study","volume":"337","author":"Owen","year":"2008","journal-title":"BMJ"},{"key":"ref23","first-page":"2825","article-title":"Scikit-learn: machine learning in Python","volume":"12","author":"Pedregosa","year":"2011","journal-title":"J. Mach. Learn. Res."},{"key":"ref24","doi-asserted-by":"publisher","first-page":"e179","DOI":"10.1002\/hsr2.179","article-title":"The capacity of schizophrenia and bipolar disorder individuals to make autonomous decisions about pharmacological treatments for their illness in real life: a scoping review","volume":"3","author":"Pons","year":"2020","journal-title":"Health Sci. Rep."},{"key":"ref25","doi-asserted-by":"publisher","first-page":"691377","DOI":"10.3389\/fpsyt.2021.691377","article-title":"Clinical reasoning in forensic psychiatry: concepts, processes, and pitfalls","volume":"12","author":"Raharjanti","year":"2021","journal-title":"Front. Psych."},{"key":"ref26","doi-asserted-by":"publisher","first-page":"8443","DOI":"10.1038\/s41598-025-92190-7","article-title":"Navigating artificial general intelligence development: societal, technological, ethical, and brain-inspired pathways","volume":"15","author":"Raman","year":"2025","journal-title":"Sci. Rep."},{"key":"ref27","doi-asserted-by":"publisher","first-page":"15","DOI":"10.1177\/0706743715620415","article-title":"Effectiveness of community treatment orders: the international evidence","volume":"61","author":"Rugk\u00e5sa","year":"2016","journal-title":"Can. J. Psychiatr."},{"key":"ref28","doi-asserted-by":"publisher","first-page":"271","DOI":"10.3389\/fpsyt.2019.00271","article-title":"Criteria, procedures, and future prospects of involuntary treatment in psychiatry around the world: a narrative review","volume":"10","author":"Saya","year":"2019","journal-title":"Front. Psych."},{"key":"ref29","doi-asserted-by":"publisher","first-page":"4275","DOI":"10.1038\/s41598-024-54065-1","article-title":"A dynamic fuzzy rule-based inference system using fuzzy inference with semantic reasoning","volume":"14","author":"Shoaip","year":"2024","journal-title":"Sci. Rep."},{"key":"ref30","doi-asserted-by":"publisher","first-page":"186","DOI":"10.1186\/s12911-024-02582-4","article-title":"Medical-informed machine learning: integrating prior knowledge into medical decision systems","volume":"24","author":"Sirocchi","year":"2024","journal-title":"BMC Med. Inform. Decis. Mak."},{"key":"ref31","year":""},{"key":"ref32","doi-asserted-by":"publisher","first-page":"662","DOI":"10.1192\/pb.22.11.662","article-title":"Mental health legislation is now a harmful anachronism","volume":"22","author":"Szmukler","year":"1998","journal-title":"Psychiatr. Bull."},{"key":"ref33","volume-title":"pandas-dev\/pandas: Pandas (Version latest) [Software]","year":"2020"},{"key":"ref34","doi-asserted-by":"publisher","first-page":"91908","DOI":"10.1155\/JBB\/2006\/91908","article-title":"Fuzzy logic in medicine and bioinformatics","volume":"2006","author":"Torres","year":"2006","journal-title":"J. Biomed. Biotechnol."},{"key":"ref35","doi-asserted-by":"publisher","first-page":"3021","DOI":"10.21105\/joss.03021","article-title":"Seaborn: statistical data visualization","volume":"6","author":"Waskom","year":"2021","journal-title":"J. Open Source Softw."},{"key":"ref36","doi-asserted-by":"publisher","DOI":"10.3310\/hsdr08090","article-title":"Use of community treatment orders and their outcomes: an observational study","volume":"8","author":"Weich","year":"2020","journal-title":"Health Soc. Care Deliv. Res."}],"container-title":["Frontiers in Artificial Intelligence"],"original-title":[],"link":[{"URL":"https:\/\/www.frontiersin.org\/articles\/10.3389\/frai.2025.1606250\/full","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,17]],"date-time":"2025-06-17T05:27:49Z","timestamp":1750138069000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.frontiersin.org\/articles\/10.3389\/frai.2025.1606250\/full"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,6,17]]},"references-count":36,"alternative-id":["10.3389\/frai.2025.1606250"],"URL":"https:\/\/doi.org\/10.3389\/frai.2025.1606250","relation":{},"ISSN":["2624-8212"],"issn-type":[{"value":"2624-8212","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,6,17]]},"article-number":"1606250"}}