Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2024 Jun 19:10:e2051.
doi: 10.7717/peerj-cs.2051. eCollection 2024.

Predicting inmate suicidal behavior with an interpretable ensemble machine learning approach in smart prisons

Affiliations

Predicting inmate suicidal behavior with an interpretable ensemble machine learning approach in smart prisons

Khayyam Akhtar et al. PeerJ Comput Sci. .

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.

PubMed Disclaimer

Conflict of interest statement

The authors declare that they have no competing interests.

Figures

Figure 1
Figure 1. Overview of methodology for classification on the reduced dataset.
Figure 2
Figure 2. Feature contributions by SHAP values excluding suicidal ideation features.
Figure 3
Figure 3. Feature contributions by SHAP values including suicidal ideation features.
Figure 4
Figure 4. Comparing model accuracy, precision and sensitivity with Nordin et al. (2023).
Figure 5
Figure 5. Comparing model F1-score, precision and sensitivity with Horvath et al. (2021).
Figure 6
Figure 6. Comparing model AUC, PPV and log loss with Horvath et al. (2021).
Figure 7
Figure 7. Execution time of our ensemble models on 10-fold cross-validation for performance impact assessment.
Figure 8
Figure 8. Comparing execution time of original and modified anchor library across three runs.
Figure 9
Figure 9. Comparing average execution time of original and modified anchor library for three runs.
Figure 10
Figure 10. Comparing average precision of original and modified anchor library for three runs.
Figure 11
Figure 11. Comparing average precision of original and modified anchor library averaged for three runs.

Similar articles

Cited by

References

    1. 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
    1. 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.
    1. Alwakeel A, Alwakeel M, Zahra SR, Saleem TJ, Hijji M, Alwakeel SS, Alwakeel AM, Alzorgi S. Common mental disorders in smart city settings and use of multimodal medical sensor fusion to detect them. Diagnostics. 2023;13:1082. doi: 10.3390/diagnostics13061082. - DOI - PMC - PubMed
    1. Amini P, Ahmadinia H, Poorolajal J, Moqaddasi Amiri M. Evaluating the high risk groups for suicide: a comparison of logistic regression, support vector machine, decision tree and artificial neural network. Iranian Journal of Public Health. 2016;45(9):1179–1187. - PMC - PubMed
    1. Barak-Corren Y, Castro VM, Javitt S, Hoffnagle AG, Dai Y, Perlis RH, Nock MK, Smoller JW, Reis BY. Predicting suicidal behavior from longitudinal electronic health records. American Journal of Psychiatry. 2017;174(2):154–162. doi: 10.1176/appi.ajp.2016.16010077. - DOI - PubMed

LinkOut - more resources