Abstract
Suicide remains a leading cause of death and a significant public health concern in the United States. A majority (83%) of suicide decedents had a healthcare visit within the prior 365 days, presenting unique opportunities to utilize healthcare data for AI-based interventions. While previous works applied machine learning (ML) to analyze healthcare records for suicide attempt risk prediction (SARP), they lack external validation. Additionally, advantages of deep learning (DL) over ML for tabular SARP remains understudied. We performed external validation of a state-of-the-art SARP model from the Mental Health Research Network using over 750,000 UMass Memorial Health patient encounters. We further compared ML vs DL, assessing cross-setting healthcare generalizability. We found existing models did not generalize well, ML significantly outperformed DL on most metrics, and DL achieved higher sensitivity. These findings underscore the need for developing robust, generalizable SARP models for diverse healthcare contexts, improving identification of individuals at risk.
Similar content being viewed by others
Acknowledgements
This material is based upon work supported by the National Science Foundation under Grant NRT-HDR-2021871 and the National Institutes of Health under Grants R01MH118220 and P50MH129701. In addition, we would like to thank the DAISY Research Lab and Academic & Research Computing group at Worcester Polytechnic Institute for their support and computational resources provided, respectively.
Author information
Authors and Affiliations
Corresponding author
Ethics declarations
Competing interests
Author F.L. is an Associated Editor of npj Mental Health Research. F.L. was not involved in the journal’s review of, or decisions related to, this manuscript. The other authors declare no competing financial or non-financial interests.
Additional information
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary information
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Josselyn, N., Sawant, S., Davis-Martin, R.E. et al. Evaluating model generalizability for suicide attempt risk prediction: traditional machine vs deep learning. npj Mental Health Res (2026). https://doi.org/10.1038/s44184-026-00209-2
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s44184-026-00209-2


