Predicting Risk of Suicide Attempts Over Time Through Machine Learning
The DOI matches its Crossref record; 26 of the 26 references it cites were found in a registry or an index.
Abstract
Traditional approaches to the prediction of suicide attempts have limited the accuracy and scale of risk detection for these dangerous behaviors. We sought to overcome these limitations by applying machine learning to electronic health records within a large medical database. Participants were 5,167 adult patients with a claim code for self-injury (i.e., ICD-9, E95x); expert review of records determined that 3,250 patients made a suicide attempt (i.e., cases), and 1,917 patients engaged in self-injury that was nonsuicidal, accidental, or nonverifiable (i.e., controls). We developed machine learning algorithms that accurately predicted future suicide attempts (AUC = 0.84, precision = 0.79, recall = 0.95, Brier score = 0.14). Moreover, accuracy improved from 720 days to 7 days before the suicide attempt, and predictor importance shifted across time. These findings represent a step toward accurate and scalable risk detection and provide insight into how suicide attempt risk shifts over time.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
R: A Language and Environment for Statistical Computing
R Core Team (2025) · doi:10.32614/r.manuals · Cited by 352,181
Scikit-learn: Machine Learning in Python
Pedregosa, F., Varoquaux, G., Gramfort, A., Michel, V., Thirion, B., Grisel, O., Blondel, M., Müller, A., Nothman, J., Louppe, G., et al. (2012) · arXiv · doi:10.48550/arxiv.1201.0490 · Cited by 71,016
The Elements of Statistical Learning
Hastie, T., Friedman, J., & Tibshirani, R. (2001) · Springer Series in Statistics · doi:10.1007/978-0-387-21606-5 · Cited by 24,162
Harrell, F. E. (2001) · Springer Series in Statistics · doi:10.1007/978-1-4757-3462-1 · Cited by 9,195
Supervised Machine Learning: A Review of Classification Techniques
Kotsiantis, S. B. (2007) · Informatica · Cited by 6,202
IPython: A System for Interactive Scientific Computing
Perez, F., & Granger, B. E. (2007) · Computing in Science & Engineering · doi:10.1109/mcse.2007.53 · Cited by 4,009
Risk factors for suicidal thoughts and behaviors: A meta-analysis of 50 years of research
Franklin, J. C., Ribeiro, J. D., Fox, K. R., Bentley, K. H., Kleiman, E. M., Huang, X., Musacchio, K. M., Jaroszewski, A. C., Chang, B. P., & Nock, M. K. (2017) · Psychological Bulletin · doi:10.1037/bul0000084 · Cited by 3,784
Self-citationArea Deprivation and Widening Inequalities in US Mortality, 1969–1998
Singh, G. K. (2003) · American Journal of Public Health · doi:10.2105/ajph.93.7.1137 · Cited by 1,423
Ribeiro, J. D., Franklin, J. C., Fox, K. R., Bentley, K. H., Kleiman, E. M., Chang, B. P., & Nock, M. K. (2016) · Psychological Medicine · doi:10.1017/s0033291715001804 · Cited by 1,346 · cited 4×
“Second, given the importance of prior suicidal behaviors in future suicidal behavior (see Ribeiro et al., 2016a), one possibility is that the present approach would be more effective for individuals with a documented history of prior suicidal behaviors.”
BackgroundResultInfluentialSelf-citationTowards an integrated motivational–volitional model of suicidal behaviour
O'connor, R. C. (2011) · International Handbook of Suicide Prevention · doi:10.1002/9781119998556.ch11 · Cited by 552 · cited 2×
“Although short-term risk is a major part of many suicide theories (e.g., O’Connor, 2011; Wenzel & Beck, 2008) and a major focus of clinical guidelines (e.g., Rudd et al., 2006), few studies have examined short-term risk for suicide attempts.”
Background
Cited by
High-performance medicine: the convergence of human and artificial intelligence
Topol, E. J. (2019) · Nature Medicine · doi:10.1038/s41591-018-0300-7 · Cited by 10,450
The integrated motivational–volitional model of suicidal behaviour
O'Connor, R. C., & Kirtley, O. J. (2018) · Philosophical Transactions of the Royal Society B: Biological Sciences · doi:10.1098/rstb.2017.0268 · Cited by 1,781
Artificial intelligence, bias and clinical safety
Challen, R., Denny, J., Pitt, M., Gompels, L., Edwards, T., & Tsaneva-Atanasova, K. (2019) · BMJ Quality & Safety · doi:10.1136/bmjqs-2018-008370 · Cited by 956
Ribeiro, J. D., Huang, X., Fox, K. R., & Franklin, J. C. (2018) · British Journal of Psychiatry · doi:10.1192/bjp.2018.27 · Cited by 894
Self-citationSupervised Machine Learning: A Brief Primer
Jiang, T., Gradus, J. L., & Rosellini, A. J. (2020) · Behavior Therapy · doi:10.1016/j.beth.2020.05.002 · Cited by 847
Annual Research Review: Suicide among youth – epidemiology, (potential) etiology, and treatment
Cha, C. B., Franz, P. J., M. Guzmán, E., Glenn, C. R., Kleiman, E. M., & Nock, M. K. (2018) · Journal of Child Psychology and Psychiatry · doi:10.1111/jcpp.12831 · Cited by 602
On the ethics of algorithmic decision-making in healthcare
Grote, T., & Berens, P. (2020) · Journal of Medical Ethics · doi:10.1136/medethics-2019-105586 · Cited by 551
Prediction Models for Suicide Attempts and Deaths: A Systematic Review and Simulation
Belsher, B. E., Smolenski, D. J., Pruitt, L. D., Bush, N. E., Beech, E. H., Workman, D. E., Morgan, R. L., Evatt, D. P., Tucker, J., & Skopp, N. A. (2019) · JAMA Psychiatry · doi:10.1001/jamapsychiatry.2019.0174 · Cited by 540
A tutorial on calibration measurements and calibration models for clinical prediction models
Huang, Y., Li, W., Macheret, F., Gabriel, R. A., & Ohno-Machado, L. (2020) · Journal of the American Medical Informatics Association · doi:10.1093/jamia/ocz228 · Cited by 486
Ethics and governance of trustworthy medical artificial intelligence
Zhang, J., & Zhang, Z.-M. (2023) · BMC Medical Informatics and Decision Making · doi:10.1186/s12911-023-02103-9 · Cited by 507
“Deep learning is widely used in medical AI and performs very well currently in medical imaging analysis [36] and clinical risk prediction [37] significantly improving doctors’ diagnostic and predictive capabilities.”
Simon, G. E., Johnson, E., Lawrence, J. M., Rossom, R. C., Ahmedani, B., Lynch, F. L., Beck, A., Waitzfelder, B., Ziebell, R., Penfold, R. B., et al. (2018) · American Journal of Psychiatry · doi:10.1176/appi.ajp.2018.17101167 · Cited by 400
Predicting suicide attempts in adolescents with longitudinal clinical data and machine learning
Walsh, C. G., Ribeiro, J. D., & Franklin, J. C. (2018) · Journal of Child Psychology and Psychiatry · doi:10.1111/jcpp.12916 · Cited by 264
Self-citationSuicidal Ideation Detection: A Review of Machine Learning Methods and Applications
Ji, S., Pan, S., Li, X., Cambria, E., Long, G., & Huang, Z. (2021) · IEEE Transactions on Computational Social Systems · doi:10.1109/tcss.2020.3021467 · Cited by 257
Kessler, R. C., Bossarte, R. M., Luedtke, A., Zaslavsky, A. M., & Zubizarreta, J. R. (2020) · Molecular Psychiatry · doi:10.1038/s41380-019-0531-0 · Cited by 234
Machine learning model to predict mental health crises from electronic health records
Garriga, R., Mas, J., Abraha, S., Nolan, J., Harrison, O., Tadros, G., & Matic, A. (2022) · Nature Medicine · doi:10.1038/s41591-022-01811-5 · Cited by 229
Bernert, R. A., Hilberg, A. M., Melia, R., Kim, J. P., Shah, N. H., & Abnousi, F. (2020) · International Journal of Environmental Research and Public Health · doi:10.3390/ijerph17165929 · Cited by 222
Torous, J., Larsen, M. E., Depp, C., Cosco, T. D., Barnett, I., Nock, M. K., & Firth, J. (2018) · Current Psychiatry Reports · doi:10.1007/s11920-018-0914-y · Cited by 207
Burke, T. A., Ammerman, B. A., & Jacobucci, R. (2019) · Journal of Affective Disorders · doi:10.1016/j.jad.2018.11.073 · Cited by 205
Harris, L. M., Huang, X., Linthicum, K. P., Bryen, C. P., & Ribeiro, J. D. (2020) · Scientific Reports · doi:10.1038/s41598-020-70866-6 · Cited by 201
Self-citationKnowledge-aware Assessment of Severity of Suicide Risk for Early Intervention
Gaur, M., Alambo, A., Sain, J. P., Kursuncu, U., Thirunarayan, K., Kavuluru, R., Sheth, A., Welton, R., & Pathak, J. (2019) · The World Wide Web Conference · doi:10.1145/3308558.3313698 · Cited by 190
“They achieved an F1-score of 86% with a recall of 95% [61].”
BackgroundMethodAnxiety sensitivity and suicidal ideation/suicide risk: A meta-analysis.
Stanley, I. H., Boffa, J. W., Rogers, M. L., Hom, M. A., Albanese, B. J., Chu, C., Capron, D. W., Schmidt, N. B., & Joiner, T. E. (2018) · Journal of Consulting and Clinical Psychology · doi:10.1037/ccp0000342 · Cited by 180
Loh, E. (2018) · BMJ Leader · doi:10.1136/leader-2018-000071 · Cited by 166
“23 In another study, researchers used machine-learning algorithms to identify individuals at risk of suicide with high (91”
BackgroundMachine learning in suicide science: Applications and ethics
Linthicum, K. P., Schafer, K. M., & Ribeiro, J. D. (2019) · Behavioral Sciences & the Law · doi:10.1002/bsl.2392 · Cited by 163
Self-citationYang, Z., Mitra, A., Liu, W., Berlowitz, D., & Yu, H. (2023) · Nature Communications · doi:10.1038/s41467-023-43715-z · Cited by 158
“AUPRC is the area under PPV and sensitivity curve, and it has shown to be an effective measure for highly imbalanced binary classi fi cation problems, which include self-harm prediction 35,36 .”
Ruderfer, D. M., Walsh, C. G., Aguirre, M. W., Tanigawa, Y., Ribeiro, J. D., Franklin, J. C., & Rivas, M. A. (2020) · Molecular Psychiatry · doi:10.1038/s41380-018-0326-8 · Cited by 134
“In this work, we exploit both the large-scale population genetic sample from the UK Biobank and a hospital based EHR and genetic sample from the Vanderbilt University Medical Center (VUMC) to study the genetics of patient reported suicide attempt along with clinically predicted probability of suicide attempt derived f…”
BackgroundMethodInfluentialSelf-citationFonseka, T. M., Bhat, V., & Kennedy, S. H. (2019) · Australian & New Zealand Journal of Psychiatry · doi:10.1177/0004867419864428 · Cited by 126
Allen, N. B., Nelson, B. W., Brent, D., & Auerbach, R. P. (2019) · Journal of Affective Disorders · doi:10.1016/j.jad.2019.03.044 · Cited by 115
Translating promise into practice: a review of machine learning in suicide research and prevention
Kirtley, O. J., van Mens, K., Hoogendoorn, M., Kapur, N., & de Beurs, D. (2022) · The Lancet Psychiatry · doi:10.1016/s2215-0366(21)00254-6 · Cited by 100
Which PHQ-9 Items Can Effectively Screen for Suicide? Machine Learning Approaches
Kim, S., Lee, H.-K., & Lee, K. (2021) · International Journal of Environmental Research and Public Health · doi:10.3390/ijerph18073339 · Cited by 99
“These techniques will accurately predict suicidal behavior and actual suicide through longitudinal records of patients [31,33,34], socio-demographic information, psychopathological factors, and control for risk factors [49].”
BackgroundMethodExamining the role of sex in self-injurious thoughts and behaviors
Fox, K. R., Millner, A. J., Mukerji, C. E., & Nock, M. K. (2018) · Clinical Psychology Review · doi:10.1016/j.cpr.2017.09.009 · Cited by 99
Steeg, S., Quinlivan, L., Nowland, R., Carroll, R., Casey, D., Clements, C., Cooper, J., Davies, L., Knipe, D., Ness, J., et al. (2018) · BMC Psychiatry · doi:10.1186/s12888-018-1693-z · Cited by 91
“Machine learning techniques utilising medical databases are also becoming more common in the pursuit of accurate detection of suicide risk [27].”
Artificial intelligence in food science and nutrition: A narrative review
Miyazawa, T., Hiratsuka, Y., Toda, M., Hatakeyama, N., Ozawa, H., Abe, C., Cheng, T.-Y., Matsushima, Y., Miyawaki, Y., Ashida, K., et al. (2022) · Nutrition Reviews · doi:10.1093/nutrit/nuac033 · Cited by 91
Haines-Delmont, A., Chahal, G., Bruen, A. J., Wall, A., Khan, C. T., Sadashiv, R., & Fearnley, D. (2020) · JMIR mhealth and uhealth · doi:10.2196/15901 · Cited by 87
“Although previous studies have utilized electronic health care record data to create an actuarial model of suicide risk [30,34,35,37,63-65] or focused on a single aspect of user input such as language [29,30,36], this study adds to the literature by introducing external, user-generated input, and smartphone data and c…”
BackgroundMethodLevis, M., Leonard Westgate, C., Gui, J., Watts, B. V., & Shiner, B. (2021) · Psychological Medicine · doi:10.1017/s0033291720000173 · Cited by 87
Prospective Validation of an Electronic Health Record–Based, Real-Time Suicide Risk Model
Walsh, C. G., Johnson, K. B., Ripperger, M., Sperry, S., Harris, J., Clark, N., Fielstein, E., Novak, L., Robinson, K., & Stead, W. W. (2021) · JAMA Network Open · doi:10.1001/jamanetworkopen.2021.1428 · Cited by 78
Self-citationRisk assessment tools and data-driven approaches for predicting and preventing suicidal behavior
Velupillai, S., Hadlaczky, G., Baca-Garcia, E., Gorrell, G. M., Werbeloff, N., Nguyen, D., Patel, R., Leightley, D., Downs, J., Hotopf, M., et al. (2019) · Frontiers in Psychiatry · doi:10.3389/fpsyt.2019.00036 · Cited by 76
“As an alternative, or complementary approach to risk assessment tools, data mining techniques have been applied to the problem of identifying suicidal behavior and assessing suicide risk, using different levels of detail and cohorts (18–24), examples in Table 1 .”
MethodPredicting imminent suicidal thoughts and nonfatal attempts: The role of complexity
Ribeiro, J. D., Huang, X., Fox, K. R., Walsh, C. G., & Linthicum, K. P. (2019) · Clinical Psychological Science · doi:10.1177/2167702619838464 · Cited by 75
Self-citationHodgson, D., Goldingay, S., Boddy, J., Nipperess, S., & Watts, L. (2022) · The British Journal of Social Work · doi:10.1093/bjsw/bcab168 · Cited by 74
Suicide risk assessment in UK mental health services: a national mixed-methods study
Graney, J., Hunt, I. M., Quinlivan, L., Rodway, C., Turnbull, P., Gianatsi, M., Appleby, L., & Kapur, N. (2020) · The Lancet Psychiatry · doi:10.1016/s2215-0366(20)30381-3 · Cited by 71
AI support for ethical decision-making around resuscitation: proceed with care
Biller-Andorno, N., Ferrario, A., Joebges, S., Krones, T., Massini, F., Barth, P., Arampatzis, G., & Krauthammer, M. (2022) · Journal of Medical Ethics · doi:10.1136/medethics-2020-106786 · Cited by 67
AI support for ethical decision-making around resuscitation: proceed with care
Biller-Andorno, N., Ferrario, A., Joebges, S., Krones, T., Massini, F., Barth, P., Arampatzis, G., & Krauthammer, M. (2020) · doi:10.1101/2020.08.17.20171769 · Cited by 67
McKee, M., & Wouters, O. J. (2022) · International Journal of Health Policy and Management · doi:10.34172/ijhpm.2022.7261 · Cited by 67
Computing schizophrenia: ethical challenges for machine learning in psychiatry
Starke, G., De Clercq, E., Borgwardt, S., & Elger, B. S. (2021) · Psychological Medicine · doi:10.1017/s0033291720001683 · Cited by 62
Technology Can Augment, but Not Replace, Critical Human Skills Needed for Patient Care
Alrassi, J., Katsufrakis, P. J., & Chandran, L. (2021) · Academic Medicine · doi:10.1097/acm.0000000000003733 · Cited by 60
The Differences between Suicide Ideators and Suicide Attempters: Simple, Complicated, or Complex?
Huang, X., Ribeiro, J. D., & Franklin, J. C. (2019) · doi:10.31234/osf.io/8tuqg · Cited by 51
Self-citationThe differences between suicide ideators and suicide attempters: simple, complicated, or complex
Huang, X., Ribeiro, J. D., & Franklin, J. C. (2020) · Journal of Consulting and Clinical Psychology · doi:10.1037/ccp0000498 · Cited by 50
Self-citationObeid, J. S., Dahne, J., Christensen, S., Howard, S., Crawford, T., Frey, L. J., Stecker, T., & Bunnell, B. E. (2020) · JMIR Medical Informatics · doi:10.2196/17784 · Cited by 44
“Using a complex combination of structured EHR data (including demographics, diagnostic codes, and census-based socioeconomic status) and medication data extracted via NLP, Walsh et al [20] achieved a maximum AUC of 0.”
MethodInfluentialThe Role of Big Data Analytics in Predicting Suicide
Kessler, R. C., Bernecker, S. L., Bossarte, R. M., Luedtke, A. R., McCarthy, J. F., Nock, M. K., Pigeon, W. R., Petukhova, M. V., Sadikova, E., VanderWeele, T. J., et al. (2019) · Personalized Psychiatry · doi:10.1007/978-3-030-03553-2_5 · Cited by 44
Open questions and research gaps for monitoring and updating AI-enabled tools in clinical settings
Davis, S. E., Walsh, C. G., & Matheny, M. E. (2022) · Frontiers in Digital Health · doi:10.3389/fdgth.2022.958284 · Cited by 33
Self-citationWhat the future holds: Machine learning to predict success in psychotherapy
Taubitz, F.-S., Büdenbender, B., & Alpers, G. W. (2022) · Behaviour Research and Therapy · doi:10.1016/j.brat.2022.104116 · Cited by 25
Mining Free-Text Medical Notes for Suicide Risk Assessment
Adamou, M., Antoniou, G., Greasidou, E., Lagani, V., Charonyktakis, P., & Tsamardinos, I. (2018) · Proceedings of the 10th Hellenic Conference on Artificial Intelligence · doi:10.1145/3200947.3201020 · Cited by 22
“Data analytics has specifically been identified as a possible solution to uncover yet unknown patterns contributing to suicide tendency and this approach was tested on a database sample with good effect [31].”
BackgroundMethodInfluentialTaliaferro, L. A., Almeida, J., Aguinaldo, L. D., & McManama O’Brien, K. H. (2019) · Clinical Child Psychology and Psychiatry · doi:10.1177/1359104519862340 · Cited by 21
Pairing Machine Learning and Clinical Psychology: How You Evaluate Predictive Performance Matters
Jacobucci, R., Littlefield, A. K., Millner, A. J., Kleiman, E., & Steinley, D. (2020) · doi:10.31234/osf.io/2yber · Cited by 12
(2021) · doi:10.1007/s43441-021-00355-z · Cited by 11
Suicide risk assessment: clinical implications of the unpredictability of suicidal behavior
Teismann, T., Janssen, W. C., & Heering, H. D. (2026) · Frontiers in Psychiatry · doi:10.3389/fpsyt.2026.1844322 · Cited by 3
“Initial results indicated a comparatively high accuracy of risk classi fi cation in predicting suicidal ideation and behavior [e.g., (25)] but expectations regarding the possibilities of suicide prediction using AI models have since been diminished: Even complex risk assessment models do not allow…”
Metadata
- Authors
- Walsh, C. G., Ribeiro, J. D., & Franklin, J. C.
- Venue
- Clinical Psychological Science
- Publisher
- SAGE Publications
- Published
- 2017-04-11
- Volume
- 5
- Issue
- 3
- Pages
- 457-469
- ISSN
- 2167-7026 (ISSN-L)
- 2167-7034
- OpenAlex
- W2605512411
- Cited by
- 567
- References
- 26
- FWCI
- 64.17
- Type
- journal article
- Language
- en
- Open access
- closed
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.