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

**Authors:** Alexandre Hudon

PMC · DOI: 10.3389/frai.2025.1606250 · Frontiers in Artificial Intelligence · 2025-06-17

## TL;DR

This paper introduces a hybrid model combining fuzzy logic and machine learning to predict outcomes of psychiatric treatment orders in Quebec, aiding legal decisions with high accuracy and interpretability.

## Contribution

The novel contribution is a hybrid fuzzy logic–Random Forest model for predicting psychiatric treatment order outcomes with high accuracy and interpretable decision logic.

## Key findings

- The hybrid model achieved 98.1% accuracy in predicting treatment order outcomes.
- Key predictors included court-granted duration, clinical team's requested duration, and defendant's age.
- Fuzzy logic features like severity and compliance significantly improved prediction accuracy.

## Abstract

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.

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.

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.

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.

## Full-text entities

- **Diseases:** psychiatric (MESH:D001523)
- **Species:** Homo sapiens (human, species) [taxon 9606]

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC12209287/full.md

## Figures

4 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12209287/full.md

## References

36 references — full list in the complete paper: https://tomesphere.com/paper/PMC12209287/full.md

---
Source: https://tomesphere.com/paper/PMC12209287