A hybrid fuzzy logic-Random Forest model to predict psychiatric treatment order outcomes: an interpretable tool for legal decision support.

IF 3 Q2 COMPUTER SCIENCE, ARTIFICIAL INTELLIGENCE
Frontiers in Artificial Intelligence Pub Date : 2025-06-17 eCollection Date: 2025-01-01 DOI:10.3389/frai.2025.1606250
Alexandre Hudon
{"title":"A hybrid fuzzy logic-Random Forest model to predict psychiatric treatment order outcomes: an interpretable tool for legal decision support.","authors":"Alexandre Hudon","doi":"10.3389/frai.2025.1606250","DOIUrl":null,"url":null,"abstract":"<p><strong>Background: </strong>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-machine learning model to predict such outcomes and identify important influencing factors.</p><p><strong>Methods: </strong>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.</p><p><strong>Results: </strong>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.</p><p><strong>Conclusion: </strong>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.</p>","PeriodicalId":33315,"journal":{"name":"Frontiers in Artificial Intelligence","volume":"8 ","pages":"1606250"},"PeriodicalIF":3.0000,"publicationDate":"2025-06-17","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC12209287/pdf/","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Frontiers in Artificial Intelligence","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.3389/frai.2025.1606250","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2025/1/1 0:00:00","PubModel":"eCollection","JCR":"Q2","JCRName":"COMPUTER SCIENCE, ARTIFICIAL INTELLIGENCE","Score":null,"Total":0}
引用次数: 0

Abstract

Background: 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-machine learning model to predict such outcomes and identify important influencing factors.

Methods: 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.

Results: 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.

Conclusion: 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.

一个混合模糊逻辑-随机森林模型预测精神治疗命令的结果:一个法律决策支持的解释工具。
背景:围绕非自愿精神治疗命令的决定通常涉及复杂的临床、法律和伦理考虑,特别是当患者缺乏决策能力而拒绝治疗时。在魁北克,这些命令是由高等法院根据综合医疗、法律和行为证据发布的。然而,目前还没有透明的、有证据依据的预测工具来估计完全接受治疗订单的可能性。本研究旨在开发和评估一个混合模糊逻辑-机器学习模型来预测这些结果并识别重要的影响因素。方法:从SOQUIJ中整理出2024年魁北克176个高等法院判决的回顾性数据集,包括人口统计学、临床和法律变量。构造了一个mamdani型模糊推理系统,模拟专家决策逻辑,输出连续似然评分。这个分数,连同结构化特征,被用来训练随机森林分类器。采用正确率、精密度、召回率和F1评分对模型性能进行评价。采用10倍分层交叉验证进行内部验证。还计算了特征重要性,以评估每个变量对预测结果的影响。结果:混合模型的准确率为98.1%,精密度为93.3%,召回率为100%,F1得分为96.6。最具影响力的预测因素是法院批准的持续时间、临床团队要求的持续时间和被告的年龄。模糊逻辑特征(如严重性、遵从性和复合Burden_Score)也显著提高了预测的准确性。在测试集中只观察到一个错误分类案例,系统提供了与专家推理一致的可解释决策逻辑。结论:本探索性研究为法医精神病学背景下的决策支持提供了一种新的方法。未来的工作应该致力于在其他司法管辖区验证模型,将更先进的自然语言处理用于语义特征提取,并探索动态规则优化技术。这些改进将进一步提高在现实世界的临床和法律环境中的普遍性、公平性和实用性。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
CiteScore
6.10
自引率
2.50%
发文量
272
审稿时长
13 weeks
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信