Introduction
Suicide is a complex global mental health challenge with significant social, economic, and human consequences, affecting over 700,000 people annually. Risk factors for suicide are multifaceted, including psychiatric disorders, prior attempts, hospitalization history, academic or occupational stress, economic hardship, and social isolation. Exposure to negative emotions or bullying on social media is also an important risk factor.
Traditional assessment methods, including clinical interviews and questionnaires, are limited by cost, time, reliance on specialists, and underreporting due to stigma. In this context, artificial intelligence (AI) and machine learning (ML) offer unprecedented capacity to analyze large, complex datasets and uncover hidden patterns to predict suicide risk. AI and ML models can identify high-risk individuals even when overt symptoms are absent, track behavioral and psychological changes over time, and predict short- to medium-term risk. Key risk factors detected by these algorithms include psychiatric disorders, depression, anxiety, prior hospitalizations, method of suicide attempt, marital status, low education, unemployment, and social isolation. Random forests and deep neural networks show particularly strong performance across clinical and textual datasets. Despite challenges such as limited multimodal data and cross-cultural generalizability, AI and ML provide practical tools for early intervention, targeted preventive strategies, and enhanced clinical decision-making. This study aimed to review advances in identifying and preventing suicide risk through AI and ML. Systematic reviews of these approaches highlight both their transformative potential and the need for integration with clinical expertise to improve suicide prevention efforts.
Methods
This study is a systematic review conducted based on the PRISMA framework. The research questions addressed the main factors contributing to suicidal behaviors (what), the groups most at risk (who), the conditions and times when suicides are more frequently reported (when), and the effectiveness of AI- and ML-based detection approaches (how). A comprehensive search was performed in major international databases (Google Scholar, PubMed, Scopus, PsycINFO, EMBASE, ProQuest, Web of Science, and CINAHL) using keywords such as suicide, self-harm, risk factors, prevention, AI, ML, and early detection, covering studies published in English between January 2014 and September 2025.
Quality assessment of the included studies was done using a standardized checklist covering clarity of aims, methodological rigor, ethical considerations, and alignment with research objectives. Studies were scored by type (quantitative, qualitative, experimental, quasi-experimental), and low-quality papers were excluded based on predefined thresholds. The researchers independently reviewed and analyzed all selected articles, and checked reference lists for additional articles. Of 751 retrieved articles, 25 met the inclusion criteria and were selected for final analysis (
Figure 1).
Results
In this systematic review, 25 studies were analyzed across diverse populations, including social media users, inpatient and outpatient cohorts, and national suicide registry data from multiple countries. A wide variety of data sources were employed to predict suicidal ideation and behavior, ranging from social media platforms (Twitter, Reddit, Facebook) and text messages to electronic health records, psychiatric notes, and hospital-based suicide registries. The studies were conducted in countries such as the United States, Canada, Denmark, Taiwan, Bangladesh, Saudi Arabia, and Iran, with dataset sizes ranging from a few hundred messages or patients to millions of entries from national databases. Methodologically, studies applied both classical ML algorithms—such as logistic regression, random forests, decision trees, and XGBoost—and more advanced deep learning approaches, including LSTM, BiLSTM, CNN-BiLSTM, and multilayer deep neural networks. While some studies focused on natural language processing of textual content, others examined clinical variables such as age, gender, occupation, hospitalization history, and suicide attempt methods. Reported accuracy rates varied widely, from approximately 65% in earlier models to over 95% in studies using advanced deep learning architectures. Their findings consistently identified risk factors such as psychiatric disorders, depression, anxiety, prior hospitalization or healthcare visits, specific methods of suicide (particularly physical methods), marital status (divorced or widowed), lower educational level, unemployment, occupational stress, and expressions of hopelessness or social isolation in online platforms. Most ML models demonstrated the ability to detect high-risk individuals in the short term—sometimes up to two weeks before a suicide attempt. Overall, random forests and deep neural networks showed the strongest predictive performance across both clinical and textual datasets. However, key challenges remain, including the absence of multimodal data (e.g., images, video, audio), limited cross-cultural generalizability, and low sensitivity in some models.
Conclusion
This review study highlighted significant advances in suicide risk detection and prevention using AI and ML methods. Across 25 studies, diverse data sources, including social media posts, text messages, psychiatric notes, electronic health records, and national suicide registries, were analyzed to identify behavioral, clinical, and social patterns linked to suicide. The reviewed studies applied both classical ML methods (logistic regression, decision trees, XGBoost, random forests) and advanced deep learning models (LSTM, BiLSTM, CNN-BiLSTM, multilayer neural networks). Natural language processing proved particularly effective for detecting psychosocial markers in text. Prediction accuracy ranged from 65% in early models to over 95% with deep learning, demonstrating strong potential for real-world clinical applications.
The identified common risk factors of suicide included psychiatric disorders, depression, anxiety, prior hospitalizations, suicide method, marital status, low education, unemployment, and social isolation. ML models could detect high-risk individuals before making a suicide attempt, creating opportunities for early intervention. Despite promising results, challenges such as limited multimodal data, cross-cultural generalizability, and the need for interpretable outputs remain.
Overall, AI and ML—especially random forests and deep neural networks—show strong potential as practical tools for suicide prevention, supporting clinicians in decision-making, enabling personalized interventions, and informing public health strategies.
Ethical Considerations
Compliance with ethical guidelines
All ethical principles were considered in this study. This study is a systematic review, and no human samples were included. Therefore, no ethical approval code was required.
Funding
This research did not receive any specific grant from funding agencies in the public, commercial, or not-for profit sectors.
Authors contributions
The authors contributed equally to preparing this article. All authors read and approved the final version of the manuscript.
Conflicts of interest
The authors declare no conflict of interest.
References
- Chipalo E, Jeong H. The prevalence and association of adverse childhood experiences with suicide risk behaviors among adolescents and youth in Zimbabwe. Child and Adolescent Social Work Journal. 2025; 42(2):163-77. [DOI:10.1007/s10560-023-00958-5]
- Chang Q, Shi Y, Yao S, Ban X, Cai Z. Prevalence of suicidal ideation, suicide plans, and suicide attempts among children and adolescents under 18 years of age in mainland China: A systematic review and meta-analysis. Trauma, Violence, & Abuse. 2024; 25(3):2090-102. [DOI:10.1177/15248380231205828] [PMID]
- Arendt F, Till B, Gutsch A, Niederkrotenthaler T. Social media influencers and the Papageno effect: Experimental evidence for the suicide-preventive impact of social media posts on hope, healing, and recovery. Social Science & Medicine. 2025; 370:117852. [DOI:10.1016/j.socscimed.2025.117852] [PMID]
- Saini P, Hunt A, Blaney P, Murray A. Recognising and responding to suicide-risk factors in primary care: A scoping review. Journal of Prevention. 2024; 45(5):727-50. [DOI:10.1007/s10935-024-00783-1] [PMID]
- Bagheri Sheykhangafshe F, Tajbakhsh K, Pour Saeid V, Gharibi Loroun S, Shah Hosseini M. Effectiveness of Artificial Intelligence Interventions in the Treatment of Psychological Disorders: A Systematic Review. Journal of Research and Health. 2025; 15(6):705-22. [DOI:10.32598/JRH.15.SP.1922.6]
- Gaur V, Maggu G, Bairwa K, Chaudhury S, Dhamija S, Ali T. Artificial intelligence in suicide prevention: Utilizing deep learning approach for early detection. Industrial Psychiatry Journal. 2024; 33(2):226-33. [DOI:10.4103/ipj.ipj_20_24] [PMID]
- Parsapoor Mah Parsa M, Koudys JW, Ruocco AC. Suicide risk detection using artificial intelligence: the promise of creating a benchmark dataset for research on the detection of suicide risk. Frontiers in Psychiatry. 2023; 14:1186569. [DOI:10.3389/fpsyt.2023.1186569] [PMID]
- Tang H, Miri Rekavandi A, Rooprai D, Dwivedi G, Sanfilippo FM, Boussaid F, et al. Analysis and evaluation of explainable artificial intelligence on suicide risk assessment. Scientific Reports. 2024; 14(1):6163. [DOI:10.1038/s41598-024-53426-0] [PMID]
- Brown LA, Benhamou K, May AM, Mu W, Berk R. Machine learning algorithms in suicide prevention: Clinician interpretations as barriers to implementation. The Journal of Clinical Psychiatry. 2020; 81(3):19m12970. [DOI:10.4088/JCP.19m12970] [PMID]
- Roy A, Nikolitch K, McGinn R, Jinah S, Klement W, Kaminsky ZA. A machine learning approach predicts future risk to suicidal ideation from social media data. NPJ Digital Medicine. 2020; 3:78. [DOI:10.1038/s41746-020-0287-6] [PMID]
- Wilimitis D, Turer RW, Ripperger M, McCoy AB, Sperry SH, Fielstein EM, et al. Integration of face-to-face screening with real-time machine learning to predict risk of suicide among adults. JAMA Network Open. 2022; 5(5):e2212095. [DOI:10.1001/jamanetworkopen.2022.12095] [PMID]
- Allam H, Davison C, Kalota F, Lazaros E, Hua D. AI-Driven Mental Health Surveillance: Identifying Suicidal Ideation Through Machine Learning Techniques. Big Data and Cognitive Computing. 2025; 9(1):16. [DOI:10.3390/bdcc9010016]
- Ryu S, Lee H, Lee DK, Kim SW, Kim CE. Detection of suicide attempters among suicide ideators using machine learning. Psychiatry Investigation. 2019; 16(8):588-93. [DOI:10.30773/pi.2019.06.19] [PMID]
- Lim JS, Yang CM, Baek JW, Lee SY, Kim BN. Prediction models for suicide attempts among adolescents using machine learning techniques. Clinical Psychopharmacology and Neuroscience. 2022; 20(4):609-20. [DOI:10.9758/cpn.2022.20.4.609] [PMID]
- Bentley KH, Zuromski KL, Fortgang RG, Madsen EM, Kessler D, Lee H, et al. Implementing machine learning models for suicide risk prediction in clinical practice: focus group study with hospital providers. JMIR Formative Research. 2022; 6(3):e30946. [DOI:10.2196/30946] [PMID]
- Aldhyani TH, Alsubari SN, Alshebami AS, Alkahtani H, Ahmed ZAT. Detecting and analyzing suicidal ideation on social media using deep learning and machine learning models. International Journal of Environmental Research and Public Health. 2022; 19(19):12635. [DOI:10.3390/ijerph191912635] [PMID]
- Walsh CG, Ribeiro JD, Franklin JC. Predicting suicide attempts in adolescents with longitudinal clinical data and machine learning. Journal of Child Psychology and Psychiatry. 2018; 59(12):1261-70. [DOI:10.1111/jcpp.12916] [PMID]
- Su Z, Jiang H, Yang Y, Hou X, Su Y, Yang L. Acoustic Features for Identifying Suicide Risk in Crisis Hotline Callers: Machine Learning Approach. Journal of Medical Internet Research. 2025; 27:e67772. [DOI:10.2196/67772] [PMID]
- Haroz EE, Grubin F, Goklish N, Pioche S, Cwik M, Barlow A, et al. Designing a clinical decision support tool that leverages machine learning for suicide risk prediction: Development study in partnership with Native American care providers. JMIR Public Health and Surveillance. 2021; 7(9):e24377. [DOI:10.2196/24377] [PMID]
- DelPozo-Banos M, John A, Petkov N, Berridge DM, Southern K, LLoyd K, et al. Using neural networks with routine health records to identify suicide risk: Feasibility study. JMIR Mental Health. 2018; 5(2):e10144. [DOI:10.2196/10144] [PMID]
- Haque R, Islam N, Islam M, Ahsan MM. A comparative analysis on suicidal ideation detection using NLP, machine, and deep learning. Technologies. 2022; 10(3):57. [DOI:10.3390/technologies10030057]
- Gradus JL, Rosellini AJ, Horváth-Puhó E, Street AE, Galatzer-Levy I, Jiang T, et al. Prediction of sex-specific suicide risk using machine learning and single-payer health care registry data from Denmark. JAMA Psychiatry. 2020; 77(1):25-34. [DOI:10.1001/jamapsychiatry.2019.2905] [PMID]
- Farid A, Ghanbari Viki M, Mosleh SQ. [Relationship Between Perfectionism and Exam Anxiety in Iranian Students: A Systematic Review and Meta-analysis (Persian)]. Iranian Journal of Psychiatry and Clinical Psychology. 2025; 31:5148.1. [DOI: 10.32598/ijpcp.31.5184.1]
- von Elm E, Altman DG, Egger M, Pocock SJ, Gøtzsche PC, Vandenbroucke JP; et al. The Strengthening the Reporting of Observational Studies in Epidemiology (STROBE) statement: Guidelines for reporting observational studies. PLoS Medicine. 2007; 4(10):e296. [DOI:10.1371/journal.pmed.0040296] [PMID]
- Long HA, French DP, Brooks JM. Optimising the value of the critical appraisal skills programme (CASP) tool for quality appraisal in qualitative evidence synthesis. Research Methods in Medicine & Health Sciences. 2020; 1(1):31‑42. [DOI:10.1177/2632084320947559]
- Bhandarkar AR, Arya N, Lin KK, North F, Duvall MJ, Miller NE, et al. Building a natural language processing artificial intelligence to predict suicide-related events based on patient portal message data. Mayo Clinic Proceedings. Digital Health. 2023; 1(4):510-8. [DOI:10.1016/j.mcpdig.2023.09.001] [PMID]
- Kaminsky Z, McQuaid RJ, Hellemans KG, Patterson ZR, Saad M, Gabrys RL, et al. Machine Learning-Based Suicide Risk Prediction Model for Suicidal Trajectory on Social Media Following Suicidal Mentions: Independent Algorithm Validation. Journal of Medical Internet Research. 2024; 26:e49927. [DOI:10.2196/49927] [PMID]
- Wu EL, Wu CY, Lee MB, Chu KC, Huang MS. Development of Internet suicide message identification and the Monitoring-Tracking-Rescuing model in Taiwan. Journal of Affective Disorders. 2023; 320:37-41. [DOI:10.1016/j.jad.2022.09.090] [PMID]
- Morales S, Barros J, Echávarri O, García F, Osses A, Moya C, et al. Acute mental discomfort associated with suicide behavior in a clinical sample of patients with affective disorders: Ascertaining critical variables using artificial intelligence tools. Frontiers in Psychiatry. 2017; 8:7. [DOI:10.3389/fpsyt.2017.00007] [PMID]
- Bazrafshan M, Sayehmiri K. Predicting suicidal behavior outcomes: An analysis of key factors and machine learning models. BMC Psychiatry. 2024; 24(1):841. [DOI:10.1186/s12888-024-06273-2] [PMID]
- Kessler RC, Hwang I, Hoffmire CA, McCarthy JF, Petukhova MV, Rosellini AJ, et al. Developing a practical suicide risk prediction model for targeting high-risk patients in the Veterans Health Administration. International Journal of Methods in Psychiatric Research. 2017; 26(3):e1575. [DOI:10.1002/mpr.1575] [PMID]
- Poulin C, Shiner B, Thompson P, Vepstas L, Young-Xu Y, Goertzel B, et al. Predicting the risk of suicide by analyzing the text of clinical notes. Plos One. 2014; 9(1):e85733. [DOI:10.1371/journal.pone.0085733] [PMID]
- Rabani ST, Khan QR, Khanday AM. Detection of suicidal ideation on Twitter using machine learning & ensemble approaches. Baghdad Science Journal. 2020; 17(4):1328. [DOI:10.21123/bsj.2020.17.4.1328]