Predicting inmate suicidal behavior with an interpretable ensemble machine learning approach in smart prisons
- PMID: 38983205
- PMCID: PMC11232594
- DOI: 10.7717/peerj-cs.2051
Predicting inmate suicidal behavior with an interpretable ensemble machine learning approach in smart prisons
Abstract
The convergence of smart technologies and predictive modelling in prisons presents an exciting opportunity to revolutionize the monitoring of inmate behaviour, allowing for the early detection of signs of distress and the effective mitigation of suicide risks. While machine learning algorithms have been extensively employed in predicting suicidal behaviour, a critical aspect that has often been overlooked is the interoperability of these models. Most of the work done on model interpretations for suicide predictions often limits itself to feature reduction and highlighting important contributing features only. To address this research gap, we used Anchor explanations for creating human-readable statements based on simple rules, which, to our knowledge, have never been used before for suicide prediction models. We also overcome the limitation of anchor explanations, which create weak rules on high-dimensionality datasets, by first reducing data features with the help of SHapley Additive exPlanations (SHAP). We further reduce data features through anchor interpretations for the final ensemble model of XGBoost and random forest. Our results indicate significant improvement when compared with state-of-the-art models, having an accuracy and precision of 98.6% and 98.9%, respectively. The F1-score for the best suicide ideation model appeared to be 96.7%.
Keywords: Ensemble; Machine learning; Model reduction; SHAP; Smart prisons.
© 2024 Akhtar et al.
Conflict of interest statement
The authors declare that they have no competing interests.
Figures











Similar articles
-
An explainable predictive model for suicide attempt risk using an ensemble learning and Shapley Additive Explanations (SHAP) approach.Asian J Psychiatr. 2023 Jan;79:103316. doi: 10.1016/j.ajp.2022.103316. Epub 2022 Nov 7. Asian J Psychiatr. 2023. PMID: 36395702
-
An innovative machine learning approach for slope stability prediction by combining shap interpretability and stacking ensemble learning.Environ Sci Pollut Res Int. 2025 May;32(21):12827-12843. doi: 10.1007/s11356-025-36406-3. Epub 2025 May 7. Environ Sci Pollut Res Int. 2025. PMID: 40332714
-
Machine Learning-Based Prediction of Suicidal Thinking in Adolescents by Derivation and Validation in 3 Independent Worldwide Cohorts: Algorithm Development and Validation Study.J Med Internet Res. 2024 May 17;26:e55913. doi: 10.2196/55913. J Med Internet Res. 2024. PMID: 38758578 Free PMC article.
-
Prediction of Suicidal Behaviors in the Middle-aged Population: Machine Learning Analyses of UK Biobank.JMIR Public Health Surveill. 2023 Feb 20;9:e43419. doi: 10.2196/43419. JMIR Public Health Surveill. 2023. PMID: 36805366 Free PMC article.
-
Interpretable machine learning model to predict surgical difficulty in laparoscopic resection for rectal cancer.Front Oncol. 2024 Feb 6;14:1337219. doi: 10.3389/fonc.2024.1337219. eCollection 2024. Front Oncol. 2024. PMID: 38380369 Free PMC article. Review.
Cited by
-
Integrating multiple feature assessment methods to identify key predictors of repeat suicide attempts in Taiwan.BMC Psychiatry. 2025 Aug 29;25(1):841. doi: 10.1186/s12888-025-07252-x. BMC Psychiatry. 2025. PMID: 40883721 Free PMC article.
References
-
- Aldhaheri MAMM, Xia B, Nepal M, Chen Q. Selecting key smart building technologies for uae prisons by integrating analytical hierarchy process (AHP) and fuzzy-TOPSIS. Buildings. 2022;12:2074. doi: 10.3390/buildings12122074. - DOI
-
- Altaf Khattak SB, Nasralla MM, Rehman IU. The role of 6G networks in enabling future smart health services and applications. 2022 IEEE International Smart Cities Conference (ISC2); Piscataway: IEEE; 2022. pp. 1–7.
LinkOut - more resources
Full Text Sources
Miscellaneous