<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.0 20040830//EN" "journalpublishing.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="2.0" xml:lang="en" article-type="research-article"><front><journal-meta><journal-id journal-id-type="nlm-ta">JMIR AI</journal-id><journal-id journal-id-type="publisher-id">ai</journal-id><journal-id journal-id-type="index">41</journal-id><journal-title>JMIR AI</journal-title><abbrev-journal-title>JMIR AI</abbrev-journal-title><issn pub-type="epub">2817-1705</issn><publisher><publisher-name>JMIR Publications</publisher-name><publisher-loc>Toronto, Canada</publisher-loc></publisher></journal-meta><article-meta><article-id pub-id-type="publisher-id">v5i1e85085</article-id><article-id pub-id-type="doi">10.2196/85085</article-id><article-categories><subj-group subj-group-type="heading"><subject>Original Paper</subject></subj-group></article-categories><title-group><article-title>AI Models for Suicide Risk Prediction in Adult Patients Receiving Mental Health Care Using Real-World Data: Retrospective Population-Based Study</article-title></title-group><contrib-group><contrib contrib-type="author" corresp="yes" equal-contrib="yes"><name name-style="western"><surname>Pe&#x00F1;a-G&#x00F3;mez</surname><given-names>Cleof&#x00E9;</given-names></name><degrees>PhD</degrees><xref ref-type="aff" rid="aff1">1</xref><xref ref-type="aff" rid="aff2">2</xref><xref ref-type="fn" rid="equal-contrib1">*</xref></contrib><contrib contrib-type="author" equal-contrib="yes"><name name-style="western"><surname>Fradera</surname><given-names>Marc</given-names></name><degrees>PhD</degrees><xref ref-type="aff" rid="aff2">2</xref><xref ref-type="aff" rid="aff3">3</xref><xref ref-type="aff" rid="aff4">4</xref><xref ref-type="fn" rid="equal-contrib1">*</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>S&#x00E1;nchez Corrales</surname><given-names>Xavier</given-names></name><degrees>MS</degrees><xref ref-type="aff" rid="aff5">5</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Caravaca-Rodriguez</surname><given-names>Marc</given-names></name><degrees>BSc</degrees><xref ref-type="aff" rid="aff2">2</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Mart&#x00ED;nez-Cerd&#x00E1;</surname><given-names>Juan-Francisco</given-names></name><degrees>PhD</degrees><xref ref-type="aff" rid="aff6">6</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Escofet</surname><given-names>Joan Albert</given-names></name><degrees>MS</degrees><xref ref-type="aff" rid="aff6">6</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Roche</surname><given-names>David</given-names></name><degrees>PhD</degrees><xref ref-type="aff" rid="aff7">7</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Barber&#x00ED;a</surname><given-names>Eneko</given-names></name><degrees>MD</degrees><xref ref-type="aff" rid="aff8">8</xref><xref ref-type="aff" rid="aff9">9</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Pontes</surname><given-names>Caridad</given-names></name><degrees>PhD, MD</degrees><xref ref-type="aff" rid="aff10">10</xref><xref ref-type="aff" rid="aff11">11</xref><xref ref-type="aff" rid="aff12">12</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Giraldo</surname><given-names>Jes&#x00FA;s</given-names></name><degrees>PhD</degrees><xref ref-type="aff" rid="aff3">3</xref><xref ref-type="aff" rid="aff4">4</xref><xref ref-type="aff" rid="aff13">13</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Palao</surname><given-names>Diego</given-names></name><degrees>MD, PhD</degrees><xref ref-type="aff" rid="aff2">2</xref><xref ref-type="aff" rid="aff3">3</xref><xref ref-type="aff" rid="aff4">4</xref><xref ref-type="aff" rid="aff5">5</xref><xref ref-type="aff" rid="aff14">14</xref></contrib></contrib-group><aff id="aff1"><institution>Barcelona Supercomputing Center</institution><addr-line>Barcelona</addr-line><country>Spain</country></aff><aff id="aff2"><institution>Institut d&#x2019;Investigaci&#x00F3; i Innovaci&#x00F3; Parc Taul&#x00ED; (I3PT-CERCA)</institution><addr-line>Pla&#x00E7;a Torre de l'Aigua, s/n,</addr-line><addr-line>Sabadell</addr-line><country>Spain</country></aff><aff id="aff3"><institution>Unitat Mixta de Neuroci&#x00E8;ncies Traslacional I3PT-INc-UAB, Universitat Aut&#x00F2;noma de Barcelona</institution><addr-line>08208 Sabadell</addr-line><country>Spain</country></aff><aff id="aff4"><institution>Centro de Investigaci&#x00F3;n Biom&#x00E9;dica en Red de Salud Mental (CIBERSAM), Instituto de Salud Carlos III</institution><addr-line>28029 Madrid</addr-line><country>Spain</country></aff><aff id="aff5"><institution>Department of Mental Health, University Hospital Parc Taul&#x00ED;</institution><addr-line>08208 Sabadell</addr-line><country>Spain</country></aff><aff id="aff6"><institution>Agency for Health Quality and Assessment of Catalonia (AQUAS), Data Analytics Program for Health Research and Innovation (PADRIS) of the Data and AI Department</institution><addr-line>Barcelona</addr-line><country>Spain</country></aff><aff id="aff7"><institution>Research Institute for Evaluation and Public Policies (IRAPP), Universitat Internacional de Catalunya (UIC)</institution><addr-line>Barcelona</addr-line><country>Spain</country></aff><aff id="aff8"><institution>Forensic Pathology Department, Institut de Medicina Legal i Ci&#x00E8;ncies Forenses de Catalunya (IMLCFC)</institution><addr-line>Barcelona</addr-line><country>Spain</country></aff><aff id="aff9"><institution>School of Medicine and Health Sciences. Universitat Rovira i Virgili (URV)</institution><addr-line>Reus</addr-line><country>Spain</country></aff><aff id="aff10"><institution>Digitalization for the Sustainability of the Healthcare System (DS3)</institution><addr-line>Barcelona</addr-line><country>Spain</country></aff><aff id="aff11"><institution>Servei de Farmacologia Cl&#x00ED;nica, Hospital de la Santa Creu i de Sant Pau</institution><addr-line>Barcelona</addr-line><country>Spain</country></aff><aff id="aff12"><institution>Departament de Farmacologia, de Toxicolog&#x00ED;a i de Terap&#x00E8;utica, Universitat Aut&#x00F2;noma de Barcelona</institution><addr-line>Barcelona</addr-line><country>Spain</country></aff><aff id="aff13"><institution>Laboratory of Molecular Neuropharmacology and Bioinformatics, Unitat de Bioestad&#x00ED;stica, Institut de Neuroci&#x00E8;ncies, Universitat Aut&#x00F2;noma de Barcelona</institution><addr-line>Bellaterra</addr-line><country>Spain</country></aff><aff id="aff14"><institution>Department of Psychiatry and Forensic Medicine, Medical School, Universitat Aut&#x00F2;noma de Barcelona</institution><addr-line>Bellaterra (Cerdanyola del Vall&#x00E8;s) Barcelona</addr-line><country>Spain</country></aff><contrib-group><contrib contrib-type="editor"><name name-style="western"><surname>Wang</surname><given-names>Yanshan</given-names></name></contrib></contrib-group><contrib-group><contrib contrib-type="reviewer"><name name-style="western"><surname>Pelletier</surname><given-names>Eric</given-names></name></contrib><contrib contrib-type="reviewer"><name name-style="western"><surname>Khashu</surname><given-names>Kunal</given-names></name></contrib></contrib-group><author-notes><corresp>Correspondence to Cleof&#x00E9; Pe&#x00F1;a-G&#x00F3;mez, PhD, Institut d&#x2019;Investigaci&#x00F3; i Innovaci&#x00F3; Parc Taul&#x00ED; (I3PT-CERCA), Pla&#x00E7;a Torre de l'Aigua, s/n,, Sabadell, 08208, Spain, +34 937458376; <email>cpenagom@bsc.es</email></corresp><fn fn-type="equal" id="equal-contrib1"><label>*</label><p>these authors contributed equally</p></fn></author-notes><pub-date pub-type="collection"><year>2026</year></pub-date><pub-date pub-type="epub"><day>26</day><month>8</month><year>2026</year></pub-date><volume>5</volume><elocation-id>e85085</elocation-id><history><date date-type="received"><day>30</day><month>09</month><year>2025</year></date><date date-type="rev-recd"><day>01</day><month>05</month><year>2026</year></date><date date-type="accepted"><day>15</day><month>06</month><year>2026</year></date></history><copyright-statement>&#x00A9; Cleof&#x00E9; Pe&#x00F1;a-G&#x00F3;mez, Marc Fradera, Xavier S&#x00E1;nchez Corrales, Marc Caravaca-Rodriguez, Juan-Francisco Mart&#x00ED;nez-Cerd&#x00E1;, Joan Albert Escofet, David Roche, Eneko Barber&#x00ED;a, Caridad Pontes, Jes&#x00FA;s Giraldo, Diego Palao. Originally published in JMIR AI (<ext-link ext-link-type="uri" xlink:href="https://ai.jmir.org">https://ai.jmir.org</ext-link>), 26.8.2026. </copyright-statement><copyright-year>2026</copyright-year><license license-type="open-access" xlink:href="https://creativecommons.org/licenses/by/4.0/"><p>This is an open-access article distributed under the terms of the Creative Commons Attribution License (<ext-link ext-link-type="uri" xlink:href="https://creativecommons.org/licenses/by/4.0/">https://creativecommons.org/licenses/by/4.0/</ext-link>), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work, first published in JMIR AI, is properly cited. The complete bibliographic information, a link to the original publication on <ext-link ext-link-type="uri" xlink:href="https://www.ai.jmir.org/">https://www.ai.jmir.org/</ext-link>, as well as this copyright and license information must be included.</p></license><self-uri xlink:type="simple" xlink:href="https://ai.jmir.org/2026/1/e85085"/><abstract><sec><title>Background</title><p>Suicidal behavior is a major public health problem worldwide. The exact etiology remains unclear, representing a complex problem involving multiple factors. Evidence indicates that around 50% to 80% of people who die by suicide have had contact with the health care system in the year prior to their death.</p></sec><sec><title>Objective</title><p>We present the IDICIUS project, whose objective is to develop a clinical decision support system that functions as an early warning system and applies AI to prevent suicide risk using anonymized electronic health record data.</p></sec><sec sec-type="methods"><title>Methods</title><p>This study shows the first 2 stages of the IDICIUS project, where real-world data from 4 public sources were integrated, curated, standardized, and anonymized in phase 1, and analysis and modeling of suicide risk were performed in phase 2. This retrospective population-based study included 41,557 adult patients receiving mental health care at a large hospital. We evaluated the performance of machine learning classifiers with increasing complexity: logistic regression, elastic net, decision trees and random forests, bagging and boosting ensemble methods (GradientBoosting, XGBoost [extreme gradient boosting], CatBoost, RandomForest, and AdaBoost [adaptive boosting]), support vector machines, and deep neural networks. To address class imbalance, we tested several balancing techniques, with random undersampling providing the best results.</p></sec><sec sec-type="results"><title>Results</title><p>Phase 1 yielded a useful database of 32,661 patients receiving mental health care and 112 features. Of those, 2764 patients exhibited suicidal behavior (target), while 29,897 did not (control). The undersampling reduced the class distribution to 4422 vs 2211 (control vs target). The most prevalent features in the target class (N=2764) were psychiatric conditions, anxiety episodes (n=2269, 82.1%) and depressive episodes (n=1682, 60.9%), along with demographic and behavioral factors: female sex (n=1672, 60.5%), alcohol consumption (n=770, 27.9%), and conduct disorder (n=709, 25.7%). The largest patient subgroups were females with combined depression and anxiety (n=300, 10.9%), females with anxiety disorders only (n=182, 6.6%), males with anxiety disorders only (n=120, 4.3%), and males with combined depression and anxiety (n=106, 3.8%). In phase 2, ensemble methods, especially GradientBoosting and XGBoost, achieved the best performance, with receiver operating characteristic-area under the curve scores around 0.95. While these models showed moderate precision in identifying true positives (0.51&#x2010;0.58), they demonstrated high sensitivity in detecting at-risk patients, with recall scores of 0.85 and 0.84, respectively. Both models achieved a good balance between precision and recall (<italic>F</italic><sub>1</sub>-scores: 0.68 and 0.67). The strongest predictors were corticosteroid use, psychiatric medications (olanzapine and lorazepam), female sex, and depression.</p></sec><sec sec-type="conclusions"><title>Conclusions</title><p>We integrated multiple electronic health record data sources and applied AI to develop, model, and optimize ensemble algorithms for suicide prevention, maximizing effectiveness, efficiency, and generalizability. These AI-generated algorithms, based on readily available and well-structured data, may advance the identification of at-risk patients and function as early warning systems, thereby increasing opportunities for timely preventive interventions.</p></sec></abstract><kwd-group><kwd>suicide prevention</kwd><kwd>suicidal behavior</kwd><kwd>mental health</kwd><kwd>real-world data</kwd><kwd>clinical decision support system</kwd><kwd>early warning system</kwd><kwd>electronic health records</kwd><kwd>AI</kwd><kwd>machine learning</kwd></kwd-group></article-meta></front><body><sec id="s1" sec-type="intro"><title>Introduction</title><p>Suicidal behavior represents a complex problem with a substantial impact on public health worldwide [<xref ref-type="bibr" rid="ref1">1</xref>-<xref ref-type="bibr" rid="ref3">3</xref>]. Its heterogeneity and multifactorial nature make prediction in clinical practice particularly challenging, especially in the medium and long terms [<xref ref-type="bibr" rid="ref4">4</xref>]. Nevertheless, evidence indicates that many individuals who die by suicide have sought some form of help prior to their death [<xref ref-type="bibr" rid="ref5">5</xref>]. Approximately 50% to 80% of people who died by suicide had a prior interaction with the public health care system. Of these, around 60% did so during the previous month [<xref ref-type="bibr" rid="ref6">6</xref>,<xref ref-type="bibr" rid="ref7">7</xref>].</p><p>The implementation of early-stage interventions in this context is particularly crucial, as a prompt identification of individuals at high and imminent risk may allow for the effective mitigation of progression along the suicidal behavior continuum before it advances to more severe phases [<xref ref-type="bibr" rid="ref8">8</xref>,<xref ref-type="bibr" rid="ref9">9</xref>].</p><p>Although most prevention programs rely on training health care professionals to detect potential suicide risk and address it, recent reviews and meta-analyses suggest that such preventive measures may not achieve the expected effectiveness [<xref ref-type="bibr" rid="ref10">10</xref>-<xref ref-type="bibr" rid="ref14">14</xref>], and clinicians generally perform poorly at predicting who will attempt suicide [<xref ref-type="bibr" rid="ref15">15</xref>]. This limitation highlights the need for novel approaches to identify patients at risk within health care settings&#x2014;approaches designed not to replace clinical judgment but to complement and enhance existing assessment strategies [<xref ref-type="bibr" rid="ref16">16</xref>].</p><p>In this context, electronic health records (EHRs) typically include longitudinal information, allowing for the monitoring of patients over extended periods and the identification of temporal patterns preceding suicidal behavior [<xref ref-type="bibr" rid="ref17">17</xref>]. EHRs integrate a wide range of variables, including sociodemographic characteristics, clinical diagnoses, treatment histories, comorbidities, and health care utilization patterns [<xref ref-type="bibr" rid="ref7">7</xref>]. Multiple studies have demonstrated that applying AI-based tools to EHR data can identify novel characteristics beyond the well-established risk factors for suicidal behavior [<xref ref-type="bibr" rid="ref17">17</xref>-<xref ref-type="bibr" rid="ref22">22</xref>], thereby enhancing the predictive accuracy of suicide risk models compared with previous approaches [<xref ref-type="bibr" rid="ref17">17</xref>,<xref ref-type="bibr" rid="ref23">23</xref>,<xref ref-type="bibr" rid="ref24">24</xref>]. Furthermore, AI approaches using machine learning (ML) models enable the simultaneous assessment of multiple variables, capturing complex interdependencies [<xref ref-type="bibr" rid="ref25">25</xref>,<xref ref-type="bibr" rid="ref26">26</xref>] and nonlinear associations [<xref ref-type="bibr" rid="ref27">27</xref>,<xref ref-type="bibr" rid="ref28">28</xref>] in the development of predictive models.</p><p>The use of AI has also been extended to the development of early warning systems (EWSs) in hospitals as a clinical decision support system (CDSS) for clinicians [<xref ref-type="bibr" rid="ref29">29</xref>,<xref ref-type="bibr" rid="ref30">30</xref>]. These systems typically generate risk scores designed to assist clinicians in recognizing clinical deterioration among hospitalized patients. When integrated into EHRs, some EWSs have been associated with reductions in in-hospital mortality [<xref ref-type="bibr" rid="ref31">31</xref>,<xref ref-type="bibr" rid="ref32">32</xref>]. Building on this concept, similar AI-driven early warning approaches could be adapted to mental health care, enabling the timely identification of individuals at elevated risk for suicide and facilitating prompt, targeted interventions.</p><p>The IDICIUS project aims to develop a CDSS, motivated by EWS, that applies AI predictive models to prevent suicide risk. This tool will integrate information on suicide attempts, suicidal ideation, and deaths by suicide with clinical and sociodemographic factors derived from real-world data (RWD) recorded in EHRs and public health care and/or administrative databases, based on a cohort of 41,557 adult patients receiving psychiatric care. The IDICIUS project consists of a 4-stage approach, including (1) gathering of usable data, (2) analysis and modeling of risk, (3) building of a predictive tool, and (4) the implementation of the tool for effectiveness assessment. This study presents the first 2 stages of the IDICIUS project. Phase 1 focuses on integrating and harmonizing multiple databases with input from relevant stakeholders; implementing data curation, standardization, and anonymization; and defining key risk factors. Phase 2 aims to develop and validate predictive models using advanced ML techniques, selecting and optimizing the most effective, efficient, and generalizable algorithm for suicide prevention. Ultimately, these models are designed to assist clinicians in monitoring variations in suicide risk among patients and to be implemented within routine clinical workflows.</p></sec><sec id="s2" sec-type="methods"><title>Methods</title><sec id="s2-1"><title>Sample Characteristics and Study Design</title><p>This is a retrospective, population-based study that used structured and anonymized existing EHR data from a large cohort of prevalent adult patients receiving mental health follow-up care in a large hospital facility (Consorci Corporaci&#x00F3; Sanit&#x00E0;ria Parc Taul&#x00ED;). The hospital provides outpatient care to a population of approximately 440,000 inhabitants in Sabadell, Catalonia. Predictive models were developed using AI algorithms and ML techniques, trained on the obtained data.</p><p>The study included data from cases who received mental health care between January 1, 2018, and June 1, 2024, at the hospital. The index visit was defined as the first recorded clinical encounter that qualified for study inclusion. To be eligible, patients were required to have had at least one additional visit within the 3 months preceding this index visit. Exclusion criteria included nonresidency in the Province of Barcelona and the absence of any visit to a primary care health center.</p></sec><sec id="s2-2"><title>Ethical Considerations</title><p>The study received approval from the institutional ethics review board under study code TED2021-131979B-C31 and case number 2023/5120. In addition, the study was approved by the institutional ethics committee to ensure compliance with the General Data Protection Regulation and applicable laws. As it used existing, fully anonymized data processed by an independent team, informed consent was waived by the ethics committee. Data confidentiality was maintained in accordance with Spanish Organic Law 3/2018 [<xref ref-type="bibr" rid="ref33">33</xref>] and Regulation (EU) 2016/679 [<xref ref-type="bibr" rid="ref34">34</xref>]. The study was conducted in accordance with the principles of the Declaration of Helsinki. The review process included 2 rounds of evaluation, with the initial submission on November 28, 2023, and final approval granted on January 25, 2024.</p></sec><sec id="s2-3"><title>RWD Sources</title><p>RWD was linked and extracted from 4 primary data sources (<xref ref-type="fig" rid="figure1">Figure 1</xref>):</p><list list-type="order"><list-item><p>EHRs of patients in mental health follow-up, attended at any level of care within the Parc Taul&#x00ED; Mental Health Service during the study period.</p></list-item><list-item><p>Catalonia Suicide Risk Code registry, containing sociodemographic and clinical information for individuals who have attempted suicide and/or present suicidal ideation assessed as high risk.</p></list-item><list-item><p>Registry of suicide deaths from the Institut de Medicina Legal i Ci&#x00E8;ncies Forenses, the official source for identifying deaths by suicide.</p></list-item><list-item><p>Outpatient medication database of prescriptions billed by pharmacies to the Catalan Health Service, comprising all medications prescribed through the public health care system, dispensed by community pharmacies, and reimbursed.</p></list-item></list><fig position="float" id="figure1"><label>Figure 1.</label><caption><p>Real-world data integration schema. Four sources of information were integrated: (A) electronic health records (EHRs) registered from January 1, 2018, to June 1, 2024, at specialized mental health units for adults (Centre de Salut Mental per Adults [CSMA]) at Parc Taul&#x00ED; University Hospital (Consorci Corporaci&#x00F3; Sanit&#x00E0;ria Parc Taul&#x00ED; [CCSPT]); (B) deaths by suicide recorded by the forensic institute (Institut de Medicina Legal i Ci&#x00E8;ncies Forenses de Catalunya [IMLCFC]); (C) clinical variables specifically related to suicidal behavior (Codi Risc Su&#x00EF;cidi [CRS]) registered by the Department of Health of Catalonia; and (D) clinical, sociodemographic variables, and pharmacy dispensation data registered by the Catalan Health Service (Catsalut) for invoicing purposes. All data were linked, anonymized, processed, and provided by AQUAS (Ag&#x00E8;ncia de Qualitat i Avaluaci&#x00F3; Sanit&#x00E0;ries de Catalunya), a public-law entity under the Department of Health of Catalonia. After initial harmonization, data curation, and integration, performed at the Trusted Research Environment (TRE), a database of 41,557 patients and 206 features was obtained.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="ai_v5i1e85085_fig01.png"/></fig><p>Given the highly sensitive nature of the data, data linkage and extraction were performed by a team independent of the researchers, in accordance with legal requirements. The 4 data sources were subsequently harmonized, integrated, and anonymized by personnel from the Agency for Health Quality and Assessment of Catalonia (AQUAS [Ag&#x00E8;ncia de Qualitat i Avaluaci&#x00F3; Sanit&#x00E0;ries de Catalunya]), a public-law entity under the Department of Health of the Generalitat of Catalonia holding the custody of large public health care databases for academic research. All data processing and modeling were conducted within AQUAS&#x2019;s Trusted Research Environment, a secure computational infrastructure that prevents extraction of individual-level microdata under any circumstances and allows access to anonymized data only to authorized study personnel designated by the Department of Health of the Generalitat of Catalonia. Only aggregated statistical outputs were permitted for export, and these required explicit prior authorization through established data governance protocols.</p></sec><sec id="s2-4"><title>ML Classifiers and Hyperparameter Tuning</title><p>We evaluated the performance of state-of-the-art ML classifiers with an increasing degree of complexity: logistic regression, elastic net, decision trees and random forests, bagging and boosting ensemble methods (GradientBoosting, extreme gradient boosting [XGBoost], CatBoost, RandomForest, and adaptive boosting [AdaBoost]), support vector machines, and deep learning (DL). For the DL approach, we implemented a sequential neural network with 3 hidden layers (128, 64, and 8 units) using rectified linear unit activation, L2 regularization (0.001), and progressively adjusted dropout rates (0.3, 0.4, and 0.5). The output layer used a sigmoid activation for prediction. EarlyStopping and ReduceLROnPlateau were applied to prevent overfitting.</p><p>The optimal hyperparameters for the trained models were determined through grid search combined with 10-fold cross-validation, enabling systematic and robust tuning within the algorithms&#x2019; search space.</p></sec><sec id="s2-5"><title>Model Performance</title><p>Model performance on the target class was evaluated using standard performance metrics precision, recall, accuracy, and the <italic>F</italic><sub>1</sub>-score, all of which are derived from true-positive (TP), true-negative (TN), false-positive (FP), and false-negative (FN) outcomes. Precision (TP/[TP + FP]) reflects how reliable the identified risk cases are; recall (TP/[TP + FN]) measures how many at-risk patients were successfully detected&#x2014;that is, the ability to identify positives; accuracy represents the overall model correctness (TP + TN/[TP + FN + TN + FP]); and the <italic>F</italic><sub>1</sub>-score combines precision and recall to measure how well the model balances correctly identifying patients who have the condition while avoiding misdiagnosing patients who do not, by using the harmonic mean: (2 &#x00D7; precision &#x00D7; recall)/(precision + recall).</p><p>In our clinical context, recall is the most critical metric, as an FN (failing to identify a patient at suicidal risk) can have severe consequences. Therefore, the model was designed to prioritize minimizing FNs, even at the expense of generating more FPs, which can subsequently be ruled out through clinical evaluation.</p></sec><sec id="s2-6"><title>Dataset Characteristics and Preparation</title><p>The integrated full dataset, combining the 4 RWD sources, consisted of 41,557 eligible patients with a total of 206 features. To construct the analysis dataset, one patient with a response rate below 5% was excluded, and the age range was restricted to 18 to 95 years to focus the study on the adult population, as risk factors significantly differ between adult and pediatric populations. The variable that registered the suicide attempts in the past 30 days (&#x201C;count_temp_30d<italic>&#x201D;</italic>) was also excluded to prevent data leakage with the target variable. The resulting analysis dataset comprised 32,661 patients and 112 features, ensuring data quality and relevance for subsequent analyses. Of those, 2764 patients exhibited suicidal behavior (target class), while 29,897 did not (control class).</p><p>Feature intersection analysis was performed using UpSet plots to visualize the complex overlapping patterns among features associated with the target class. This approach allows for the comprehensive examination of multiway intersections that extend beyond the limitations of traditional Venn diagrams. The analysis identified all possible combinations of these features and quantified the size of each intersection within the study population.</p><p>The analysis dataset was split into 80% training and 20% testing sets. To address class imbalance, we evaluated several balancing techniques, including SMOTE (Synthetic Minority Oversampling Technique), ADASYN (Adaptive Synthetic Sampling), SMOTE-Tomek, the Neighborhood Cleaning Rule, and RandomUnderSampler, both individually and in combination. Among these approaches, the highest performance was achieved using RandomUnderSampler alone. The RandomUnderSampler (sampler_strategy=0.5) reduced the class distribution from 23,917 vs 2211 to 4422 vs 2211 (negative vs positive cases). Prior to feeding the models, standard scaling was applied only to the numerical features (a total of 21).</p><p>To enhance model performance, we conducted additional feature engineering by applying log transformations to numerical variables and testing various mathematical transformations (divisions, sums, and logarithms) on key variables, including age, number of diagnoses, and medication count. However, these modifications did not improve the final model metrics.</p></sec><sec id="s2-7"><title>Explainability</title><p>We computed SHAP [<xref ref-type="bibr" rid="ref35">35</xref>] (Shapley additive explanations) values for the classifiers to assess feature importance. The summary plot ranks features by influence (Y axis), while the X axis shows each feature&#x2019;s impact on predictions. Positive SHAP values increase predicted suicide risk, whereas negative values decrease it, with color indicating high (red) or low (blue) feature values.</p></sec></sec><sec id="s3" sec-type="results"><title>Results</title><sec id="s3-1"><title>Sample and Dataset Characteristics</title><p>The study included 41,557 cases and 206 features in the full dataset and 32,661 patients and 112 features in the analysis dataset. During the study period, 2604 individuals had a recorded suicide attempt and 160 died by suicide. In total, 2764 individuals had suicidal behavior and were defined as the target class (<xref ref-type="table" rid="table1">Table 1</xref>).</p><p>Among the target class (N=2764), the most prevalent features were psychiatric conditions, including anxiety episodes (n=2269, 82.1%) and depressive episodes (n=1682, 60.9%), followed by female sex (n=1672, 60.5%), alcohol consumption (n=770, 27.9%), and conduct disorder (n=709, 25.7%; <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref>). The most common subgroup was females with both depression and anxiety (n=300, 10.9%), followed by females with anxiety disorders (n=182, 6.6%), males with anxiety disorders (n=120, 4.3%), and males with both depression and anxiety (n=106, 3.8%). In the analysis dataset, 60.5% (1672/2764) of suicidal behavior cases occurred in women; the prevalence of suicidal behavior was 9.0% (1672/32,662) in women and 7.7% (1092/32,662) in men.</p><table-wrap id="t1" position="float"><label>Table 1.</label><caption><p>Sociodemographic characteristics and distribution of suicidal behavior.</p></caption><table id="table1" frame="hsides" rules="groups"><thead><tr><td align="left" valign="bottom">Characteristic</td><td align="left" valign="bottom">Full dataset</td><td align="left" valign="bottom">Analysis dataset</td></tr></thead><tbody><tr><td align="left" valign="top">Sample (n)</td><td align="left" valign="top">41,557</td><td align="left" valign="top">32,662</td></tr><tr><td align="left" valign="top">Age (y), mean (SD; range)</td><td align="left" valign="top">39.57 (22.19; 1-118)</td><td align="left" valign="top">47.08 (19.39; 18-95)</td></tr><tr><td align="left" valign="top" colspan="3">Sex distribution (total sample)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Female, n (%)</td><td align="left" valign="top">22,150 (53.3)</td><td align="left" valign="top">18,518 (56.7)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Male, n (%)</td><td align="left" valign="top">19,407 (46.7)</td><td align="left" valign="top">14,144 (43.3)</td></tr><tr><td align="left" valign="top" colspan="3">Sex distribution by suicidal behavior</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>No suicidal behavior, n (%)</td><td align="left" valign="top">38,432 (92.5)</td><td align="left" valign="top">29,898 (91.5)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Female, n (%)</td><td align="left" valign="top">20,182 (52.5)</td><td align="left" valign="top">16,846 (56.3)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Male, n (%)</td><td align="left" valign="top">18,250 (47.5)</td><td align="left" valign="top">13,052 (43.7)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Suicidal behavior, n (%)</td><td align="left" valign="top">3125 (7.5)</td><td align="left" valign="top">2764 (8.5)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Female, n (%)</td><td align="left" valign="top">1968 (63)</td><td align="left" valign="top">1672 (60.5)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Male, n (%)</td><td align="left" valign="top">1157 (37)</td><td align="left" valign="top">1092 (39.5)</td></tr><tr><td align="left" valign="top" colspan="3">Suicidal behavior rates by sex</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Female, n (%)</td><td align="left" valign="top">1968 (8.9)</td><td align="left" valign="top">1672 (9)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Male, n (%)</td><td align="left" valign="top">1157 (6)</td><td align="left" valign="top">1092 (7.7)</td></tr></tbody></table></table-wrap></sec><sec id="s3-2"><title>Model Performance</title><p>Among the evaluated models, the ensemble methods GradientBoosting, XGBoost, CatBoost, RandomForest, and AdaBoost ranked highest, with receiver operating characteristic-area under the curve (ROC-AUC) values between 0.94 and 0.95 (<xref ref-type="table" rid="table2">Table 2</xref> and <xref ref-type="fig" rid="figure2">Figure 2</xref>). These models also showed the highest accuracy, all above 0.91. Their precision ranged from 0.51 to 0.58, and recall ranged from 0.82 to 0.86. Support vector machine had the lowest precision (0.35) and recall of 0.81.</p><fig position="float" id="figure2"><label>Figure 2.</label><caption><p>Receiver operating characteristic (ROC) curves for all models. ROC curves comparing the performance of 11 machine learning models for suicide risk prediction. GradientBoosting achieved the highest area under the curve (AUC; 0.958), followed closely by XGBoost (0.958) and CatBoost (0.957). Tree-based ensemble methods consistently outperformed traditional machine learning approaches, with LogisticRegression and ElasticNet showing the lowest performance (AUC=0.844 and 0.842, respectively). AdaBoost: adaptive boosting; ANN: artificial neural network; KNN: k-nearest neighbor; SVM: support vector machine; XGBoost: extreme gradient boosting.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="ai_v5i1e85085_fig02.png"/></fig><table-wrap id="t2" position="float"><label>Table 2.</label><caption><p>Model performance metrics.</p></caption><table id="table2" frame="hsides" rules="groups"><thead><tr><td align="left" valign="bottom">Model</td><td align="left" valign="bottom">ROC-AUC<sup><xref ref-type="table-fn" rid="table2fn1">a</xref></sup></td><td align="left" valign="bottom">Accuracy</td><td align="left" valign="bottom"><italic>F</italic><sub>1</sub>-score</td><td align="left" valign="bottom">Precision</td><td align="left" valign="bottom">Recall</td></tr></thead><tbody><tr><td align="left" valign="top">GradientBoosting</td><td align="left" valign="top">0.9582</td><td align="left" valign="top">0.9343</td><td align="left" valign="top">0.6889</td><td align="left" valign="top">0.5751</td><td align="left" valign="top">0.8590</td></tr><tr><td align="left" valign="top">XGBoost<sup><xref ref-type="table-fn" rid="table2fn2">b</xref></sup></td><td align="left" valign="top">0.9581</td><td align="left" valign="top">0.9313</td><td align="left" valign="top">0.6763</td><td align="left" valign="top">0.5624</td><td align="left" valign="top">0.8481</td></tr><tr><td align="left" valign="top">CatBoost</td><td align="left" valign="top">0.9574</td><td align="left" valign="top">0.9348</td><td align="left" valign="top">0.6872</td><td align="left" valign="top">0.5785</td><td align="left" valign="top">0.8463</td></tr><tr><td align="left" valign="top">RandomForest</td><td align="left" valign="top">0.9521</td><td align="left" valign="top">0.9300</td><td align="left" valign="top">0.6705</td><td align="left" valign="top">0.5576</td><td align="left" valign="top">0.8409</td></tr><tr><td align="left" valign="top">AdaBoost<sup><xref ref-type="table-fn" rid="table2fn3">c</xref></sup></td><td align="left" valign="top">0.9458</td><td align="left" valign="top">0.9172</td><td align="left" valign="top">0.6256</td><td align="left" valign="top">0.5067</td><td align="left" valign="top">0.8174</td></tr><tr><td align="left" valign="top">ANN<sup><xref ref-type="table-fn" rid="table2fn4">d</xref></sup></td><td align="left" valign="top">0.9241</td><td align="left" valign="top">0.9092</td><td align="left" valign="top">0.5850</td><td align="left" valign="top">0.4772</td><td align="left" valign="top">0.7559</td></tr><tr><td align="left" valign="top">SVM<sup><xref ref-type="table-fn" rid="table2fn5">e</xref></sup></td><td align="left" valign="top">0.9165</td><td align="left" valign="top">0.8609</td><td align="left" valign="top">0.4975</td><td align="left" valign="top">0.3583</td><td align="left" valign="top">0.8137</td></tr><tr><td align="left" valign="top">DecisionTree</td><td align="left" valign="top">0.9104</td><td align="left" valign="top">0.8938</td><td align="left" valign="top">0.5673</td><td align="left" valign="top">0.4329</td><td align="left" valign="top">0.8228</td></tr><tr><td align="left" valign="top">KNN<sup><xref ref-type="table-fn" rid="table2fn6">f</xref></sup></td><td align="left" valign="top">0.8826</td><td align="left" valign="top">0.9105</td><td align="left" valign="top">0.5193</td><td align="left" valign="top">0.4759</td><td align="left" valign="top">0.5714</td></tr><tr><td align="left" valign="top">LogisticRegression</td><td align="left" valign="top">0.8436</td><td align="left" valign="top">0.8054</td><td align="left" valign="top">0.3881</td><td align="left" valign="top">0.2644</td><td align="left" valign="top">0.7288</td></tr><tr><td align="left" valign="top">ElasticNet</td><td align="left" valign="top">0.8419</td><td align="left" valign="top">0.7964</td><td align="left" valign="top">0.3814</td><td align="left" valign="top">0.2567</td><td align="left" valign="top">0.7414</td></tr></tbody></table><table-wrap-foot><fn id="table2fn1"><p><sup>a</sup>ROC-AUC: receiver operating characteristic-area under the curve.</p></fn><fn id="table2fn2"><p><sup>b</sup>XGBoost: extreme gradient boosting.</p></fn><fn id="table2fn3"><p><sup>c</sup>AdaBoost: adaptive boosting.</p></fn><fn id="table2fn4"><p><sup>d</sup>ANN: artificial neural network.</p></fn><fn id="table2fn5"><p><sup>e</sup>SVM: support vector machine.</p></fn><fn id="table2fn6"><p><sup>f</sup>KNN: k-nearest neighbor.</p></fn></table-wrap-foot></table-wrap><p><italic>F</italic><sub>1</sub>-scores varied across models, with the top-performing models ranging from 0.63 to 0.69. GradientBoosting achieved the highest <italic>F</italic><sub>1</sub>-score (0.6889), followed by CatBoost (0.6872) and XGBoost (0.6763). Traditional statistical models performed worse across all 5 metrics. LogisticRegression and ElasticNet had ROC-AUC values below 0.85 and the lowest <italic>F</italic><sub>1</sub>-scores (0.38 for both). KNN showed high accuracy (0.91) but lower recall (0.57). Overall, GradientBoosting and XGBoost were the best-performing models (<xref ref-type="fig" rid="figure3">Figure 3</xref>).</p><fig position="float" id="figure3"><label>Figure 3.</label><caption><p>Performance analysis of top-performing ensemble models. Comprehensive evaluation of (A) GradientBoosting and (B) extreme gradient boosting (XGBoost) models showing confusion matrices and learning curves. The confusion matrices demonstrate high true-negative rates (5629/6533, 86.1% and 5615/6533, 85.9% for GradientBoosting and XGBoost, respectively) with relatively low false-positive and false-negative rates. Learning curves indicate stable performance across training set sizes with minimal overfitting. (C) Direct comparison of receiver operating characteristic (ROC) curves for both ensemble models demonstrates nearly identical performance with overlapping curves and identical area under the curve (AUC) values of 0.95. (D) Neural network training dynamics showing loss and performance metrics over epochs. The balanced configuration demonstrates stable convergence with training and validation losses decreasing consistently, while accuracy, precision, and recall metrics show steady improvement with minimal overfitting, indicating robust model generalization.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="ai_v5i1e85085_fig03.png"/></fig><p>To test model stability and metric variability across imbalance-handling methods, we ran 1000 iterations of the best-performing model, GradientBoosting, under each strategy and summarized performance using mean estimates and 95% CIs (<xref ref-type="table" rid="table3">Table 3</xref>).</p><table-wrap id="t3" position="float"><label>Table 3.</label><caption><p>Mean performance and 95% CIs of GradientBoosting across 1000 bootstrap resamples under different class-balancing methods.</p></caption><table id="table3" frame="hsides" rules="groups"><thead><tr><td align="left" valign="bottom">Class-balancing method</td><td align="left" valign="bottom">ROC-AUC<sup><xref ref-type="table-fn" rid="table3fn1">a</xref></sup>, mean<break/>(95% CI)</td><td align="left" valign="bottom">Accuracy, mean<break/>(95% CI)</td><td align="left" valign="bottom"><italic>F</italic><sub>1</sub>-score, mean<break/>(95% CI)</td><td align="left" valign="bottom">Precision, mean<break/>(95% CI)</td><td align="left" valign="bottom">Recall, mean<break/>(95% CI)</td></tr></thead><tbody><tr><td align="left" valign="top">RandomUnderSampler</td><td align="left" valign="top">0.958 (0.946&#x2010;0.969)</td><td align="left" valign="top">0.934 (0.926&#x2010;0.942)</td><td align="left" valign="top">0.689 (0.648&#x2010;0.726)</td><td align="left" valign="top">0.575 (0.527&#x2010;0.622)</td><td align="left" valign="top">0.859 (0.816&#x2010;0.898)</td></tr><tr><td align="left" valign="top">SMOTE<sup><xref ref-type="table-fn" rid="table3fn2">b</xref></sup></td><td align="left" valign="top">0.924 (0.907&#x2010;0.939)</td><td align="left" valign="top">0.919 (0.909&#x2010;0.928)</td><td align="left" valign="top">0.615 (0.570&#x2010;0.657)</td><td align="left" valign="top">0.514 (0.463&#x2010;0.566)</td><td align="left" valign="top">0.765 (0.714&#x2010;0.813)</td></tr><tr><td align="left" valign="top">ADASYN<sup><xref ref-type="table-fn" rid="table3fn3">c</xref></sup></td><td align="left" valign="top">0.920 (0.903&#x2010;0.936)</td><td align="left" valign="top">0.921 (0.911&#x2010;0.929)</td><td align="left" valign="top">0.619 (0.577&#x2010;0.660)</td><td align="left" valign="top">0.523 (0.479&#x2010;0.569)</td><td align="left" valign="top">0.758 (0.709&#x2010;0.810)</td></tr><tr><td align="left" valign="top">SMOTE-Tomek</td><td align="left" valign="top">0.921 (0.904&#x2010;0.937)</td><td align="left" valign="top">0.917 (0.907&#x2010;0.926)</td><td align="left" valign="top">0.610 (0.567&#x2010;0.650)</td><td align="left" valign="top">0.506 (0.458&#x2010;0.552)</td><td align="left" valign="top">0.767 (0.717&#x2010;0.814)</td></tr><tr><td align="left" valign="top">Cost-sensitive learning (manual weights)</td><td align="left" valign="top">0.953 (0.936&#x2010;0.968)</td><td align="left" valign="top">0.958 (0.951&#x2010;0.965)</td><td align="left" valign="top">0.743 (0.69&#x2010;0.785)</td><td align="left" valign="top">0.782 (0.732&#x2010;0.828)</td><td align="left" valign="top">0.708 (0.654&#x2010;0.762)</td></tr><tr><td align="left" valign="top">Cost-sensitive learning (automatic weights)</td><td align="left" valign="top">0.952 (0.936&#x2010;0.967)</td><td align="left" valign="top">0.958 (0.951&#x2010;0.965)</td><td align="left" valign="top">0.742 (0.699&#x2010;0.784)</td><td align="left" valign="top">0.782 (0.726&#x2010;0.832)</td><td align="left" valign="top">0.707 (0.650&#x2010;0.758)</td></tr></tbody></table><table-wrap-foot><fn id="table3fn1"><p><sup>a</sup>ROC-AUC: receiver operating characteristic-area under the curve.</p></fn><fn id="table3fn2"><p><sup>b</sup>SMOTE: Synthetic Minority Oversampling Technique.</p></fn><fn id="table3fn3"><p><sup>c</sup>ADASYN: Adaptive Synthetic Sampling.</p></fn></table-wrap-foot></table-wrap><p>The neural network was evaluated with and without transformed numerical variables, with no relevant differences between the settings. Using the default threshold of 0.5, the model achieved an accuracy of 0.89, a precision of 0.43, a recall of 0.69, and an <italic>F</italic><sub>1</sub>-score of 0.53. Threshold optimization identified 0.77 as the optimal cutoff, yielding a precision of 0.56, a recall of 0.58, and an <italic>F</italic><sub>1</sub>-score of 0.57.</p></sec><sec id="s3-3"><title>Explainability</title><p>SHAP analysis showed similar feature-importance patterns for GradientBoosting and XGBoost (<xref ref-type="fig" rid="figure4">Figure 4</xref>). The most influential features included corticosteroid use, psychiatric medications such as olanzapine and lorazepam, female sex, and recurrent depression. Features such as urinary incontinence, hospitalizations, pregabalin use, and anxiety disorder were less influential.</p><fig position="float" id="figure4"><label>Figure 4.</label><caption><p>SHAP (Shapley additive explanations) values showing the impact of top features on suicide risk prediction for (A) GradientBoosting and (B) extreme gradient boosting (XGBoost) models. The consistent patterns between models validate the robustness of these feature importance rankings. Each point represents a patient, with the X axis indicating the feature&#x2019;s contribution to the model&#x2019;s output. Positive values increase suicide risk prediction, while negative values decrease it. Colors represent feature values (red color denotes &#x201C;high&#x201D; and blue color denotes &#x201C;low&#x201D;). Suffixes indicate drug intake timing: CE: current; DS: distant; RM: remote.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="ai_v5i1e85085_fig04.png"/></fig></sec></sec><sec id="s4" sec-type="discussion"><title>Discussion</title><p>This study evaluates the potential of AI for suicide prevention in a psychiatric setting using harmonized clinical data from 4 public databases. In a cohort of 32,661 patients receiving mental health care, suicidal behavior was associated with a relatively small set of common clinical and pharmacological features, including anxiety and depressive episodes, conduct disorders, corticosteroids, lorazepam, clonazepam, and olanzapine. Ensemble methods outperformed traditional approaches, in line with prior evidence that boosting methods often perform strongly across settings [<xref ref-type="bibr" rid="ref36">36</xref>].</p><p>GradientBoosting and XGBoost showed the best overall performance (<italic>F</italic><sub>1</sub>-scores of 0.68 and 0.67, respectively). In screening or triage settings, where FNs are particularly consequential, recall should be as high as possible. Here, recall was relatively high (0.85 and 0.84, respectively), supporting the potential use of these models alongside clinical judgment to guide targeted interventions. Accordingly, threshold selection should be guided by the clinical context and the relative costs of FPs and FNs [<xref ref-type="bibr" rid="ref37">37</xref>]. A previous meta-analysis assessing ML performance in clinical populations reported a pooled recall of 0.58 [<xref ref-type="bibr" rid="ref38">38</xref>]. Similarly, Pigoni et al [<xref ref-type="bibr" rid="ref39">39</xref>] found substantial heterogeneity in recall/sensitivity across ML studies in psychiatric clinical populations, with values ranging from 0.13 to 0.98 and an overall mean of 0.72 after harmonizing percentages and range estimates. Traditional clinical judgment and standardized risk scales have demonstrated only modest predictive performance, slightly better than chance, although they may capture contextual and behavioral cues not reflected in structured data, such as affect or tone of voice [<xref ref-type="bibr" rid="ref4">4</xref>,<xref ref-type="bibr" rid="ref15">15</xref>]. At the same time, a substantial proportion of individuals who die by suicide have recent contact with health services, up to 80% within the year prior and 50% within the month before death [<xref ref-type="bibr" rid="ref7">7</xref>]. Together, these findings highlight the potential value of data-driven approaches to support the identification of risk signals that may not be consistently detected during routine clinical assessment.</p><p>Precision was moderate (0.56&#x2010;0.57), indicating that some flagged individuals may not ultimately be at high risk. In the context of psychiatric follow-up, the additional burden of risk flags may be more manageable, particularly when alerts are restricted to patients already receiving care and when the output is used to support rather than replace clinical judgment. Although FPs can still contribute to unnecessary workload, the potential benefits of preventing suicide may justify a low-to-moderate positive predictive value when the intervention is cost-effective, actionable, and integrated into routine care. Indeed, comparable low positive predictive value strategies are routinely employed in other areas of health care, including breast cancer screening and stroke prevention [<xref ref-type="bibr" rid="ref40">40</xref>]. Nevertheless, FPs should be minimized through threshold calibration, tiered risk stratification, and workflow integration.</p><p>Previous studies applying AI to EHRs have yielded mixed findings, with some reporting strong predictive power [<xref ref-type="bibr" rid="ref27">27</xref>] and others showing good performance with classical statistical models such as LASSO or logistic regression [<xref ref-type="bibr" rid="ref19">19</xref>]. Such variability likely reflects differences in methods, sample sizes, populations, and feature selection. Importantly, we excluded variables capturing prior suicide attempts, regardless of their known clinical value, to avoid data leakage. Although including these features markedly improved performance (precision from 0.56 to 0.98 for boosting methods), the models became overly dependent on them. Instead, we aimed to develop a clinically useful EWS that prioritizes recall and can identify individuals at risk even in the absence of prior attempts&#x2014;when prevention is most challenging yet most critical.</p><p>Corticosteroid use consistently ranked as a highly important feature across both models, suggesting that it captures key clinical information, possibly reflecting chronic and severe underlying physical conditions linked to chronic suffering, underlying inflammatory conditions, or even a risk for corticosteroid-induced psychiatric symptoms and behavioral disturbances, and relapse or worsening of underlying psychiatric conditions [<xref ref-type="bibr" rid="ref41">41</xref>]. Its prominence, alongside any other medications, may also indicate broader systemic issues. In GradientBoosting, corticosteroid use showed high variability in impact (SHAP values ~&#x2212;2 to +3), while in XGBoost, its effect was similarly important but more constrained. Antipsychotic medications (olanzapine and quetiapine) and dosing patterns also contributed notably, potentially reflecting their role as markers for underlying severe psychiatric morbidity, such as schizophrenia, impulsivity disorders, or complicated depression, which are usual indications for their use and may be the actual underlying risk factors [<xref ref-type="bibr" rid="ref7">7</xref>]. Similarly, clonazepam is often used for insomnia, a clinical condition that has been reported to increase the risk of suicide [<xref ref-type="bibr" rid="ref42">42</xref>]. In these cases, exposure to these medications may be a useful marker of risk and is convenient for algorithms, since these are structured data that are readily available in databases [<xref ref-type="bibr" rid="ref43">43</xref>]. Benzodiazepines, such as lorazepam and diazepam, ranked as a highly important feature across both models, are commonly used in psychiatric practice for anxiety, insomnia, and agitation [<xref ref-type="bibr" rid="ref7">7</xref>]. The models incorporate demographic characteristics (eg, biological sex) alongside behavioral risk indicators (eg, alcohol consumption). Together, these clinically familiar features provide face validity to the model and integrate multiple variables simultaneously rather than relying on any single risk factor, potentially highlighting risk patterns that may not be readily apparent in routine practice. Thus, value is added by ensuring completeness in recovering and summarizing relevant risk information from existing records, easing the health care professional&#x2019;s task. This may be particularly relevant in primary care and emergency settings, where EHRs can be incomplete, fragmented across care environments, or not immediately accessible and where timely risk identification and stratification are essential.</p><p>While EHRs provide valuable clinical information, they fail to capture the full multidimensional complexity of individuals&#x2019; lives. We previously reported [<xref ref-type="bibr" rid="ref44">44</xref>] that DL models improved the detection of TPs by incorporating domains absent from EHRs, such as risk-taking behavior, social media activity, social connectedness, sexual behavior, and personality traits. In that study, recall ranged from 0.67 to 0.87 and accuracy from 0.83 to 0.87, although precision remained lower. Subsequent work further improved performance, with the best models achieving area under the curve values of 0.85 to 0.90 and recall values of 0.81 to 0.93, but with very low precision of 0.17 to 0.16. These results highlight that suicide risk prediction may benefit from integrating routinely collected clinical data with broader psychosocial and behavioral dimensions.</p><p>However, ensuring responsible data integration requires coordinated efforts across stakeholders while maintaining privacy and ethical standards. In addition, generalizability remains a major challenge, as models developed in one population may not transfer well to others due to differences in ethnicity, age, cultural context, or clinical characteristics [<xref ref-type="bibr" rid="ref39">39</xref>,<xref ref-type="bibr" rid="ref45">45</xref>,<xref ref-type="bibr" rid="ref46">46</xref>]. Furthermore, methodological variability in EHR recording can introduce additional inconsistencies, even across hospitals within the same country [<xref ref-type="bibr" rid="ref47">47</xref>]. For instance, our control group consisted of individuals receiving psychiatric treatment, reflecting a clinically realistic population in which distinctions between individuals at varying levels of suicide risk may be more subtle.</p><p>Suicide is a global public health problem, accounting for 1.5% of all deaths worldwide [<xref ref-type="bibr" rid="ref3">3</xref>,<xref ref-type="bibr" rid="ref46">46</xref>,<xref ref-type="bibr" rid="ref48">48</xref>]. Public health action is urgently needed, and EHRs appear well-suited for developing suicide prevention algorithms and CDSS, as they can capture and integrate newly available clinical information in real time to help prevent deaths. The system is intended to support, not replace, clinical judgment, and its value will depend on integration into existing care pathways. In this setting, FNs are the more consequential error because missed cases may delay or prevent timely intervention, whereas FPs can be addressed through confirmatory assessments and structured follow-ups. Once a risk flag is generated, the model could trigger evidence-based responses such as safety planning-type interventions, associated with a 43% reduction in reattempts over 12 months [<xref ref-type="bibr" rid="ref49">49</xref>], and brief contact and continuity interventions, which have been shown to significantly reduce suicide reattempts [<xref ref-type="bibr" rid="ref50">50</xref>]. The Catalan Suicide Risk Code provides a real-world example of this integrated pathway, linking detection with structured follow-up and continuity of care [<xref ref-type="bibr" rid="ref51">51</xref>]. Implementation should also include ethical safeguards such as subgroup monitoring, patient transparency, and institutional governance.</p><p>Key limitations include restricted generalizability, a lack of broader psychosocial data, and a relatively small sample size reduced further by undersampling. To improve generalizability, we applied techniques such as cross-validation, separate training and testing sets, and bootstrapping. These limitations will be partially mitigated through clinical validation and large-scale implementation in the public health system, enabling evaluation in large populations. The clinical validation of these findings is a critical next step, planned as part of the second phase of this project. This will involve implementing the algorithm within the hospital information system and prospectively validating its predictions against newly collected clinical data. While we removed variables known to improve metrics, such as prior suicide attempts, with the aim of predicting nonobvious risk of suicidal behavior, known risk factors may be used in combination with the proposed algorithms to complement the detection of individuals at unknown and known risks. In summary, the use of AI-generated algorithms based on readily available and well-structured data may allow us to make progress in the identification of individuals at risk, thus increasing the chances of applying preventive measures in a timely manner.</p></sec></body><back><ack><p>Generative AI (ChatGPT; OpenAI) tools were used solely for (1) grammar checking and English-language correction during the preparation of the manuscript and (2) code debugging. The authors did not use generative AI for conceptualization, methodology, data analysis, interpretation of results, or writing of scientific content. All intellectual contributions and scientific reasoning remain entirely the work of the authors. The authors reviewed and verified all AI-generated code outputs before inclusion.</p></ack><notes><sec><title>Funding</title><p>This research was funded by the Instituto de Salud Carlos III, Subdirecci&#x00F3;n General de Evaluaci&#x00F3;n y Fomento de la Investigaci&#x00F3;n (ISCIII) and Fondo Europeo de Desarrollo Regional (FEDER; grant number PI21/01148), and by the Ministerio de Ciencia, Innovaci&#x00F3;n y Universidades and NextGenerationEU (reference number TED2021-131979B-C31). DP thanks the support of the Spanish Ministry of Science and Innovation/ISCIII/FEDER (PI21/01148), the Secretaria d&#x2019;Universitats i Recerca del Departament d&#x2019;Economia i Coneixement of the Generalitat de Catalunya (e-MH-PEMN&#x2013;2021 SGR 01431), the CERCA Programme/Generalitat de Catalunya, the Instituto de Salud Carlos III, and the CIBER of Mental Health (CIBERSAM CB 19/09/00029). CP-G acknowledges his AI4S fellowship under the &#x201C;Generaci&#x00F3;n D&#x201D; initiative of Red.es and the Ministerio para la Transformaci&#x00F3;n Digital y de la Funci&#x00F3;n P&#x00FA;blica, for talent attraction (C005/24-ED CV1), funded by NextGenerationEU through the PRTR. XSC thanks the support of the Departament de Salut, Generalitat de Catalunya (CatSalut)&#x2013;REACT NEXT GEN PT-052023-EP. The funders had no role in the design of the study; in the collection, analysis, or interpretation of data; in the writing of the manuscript; or in the decision to publish the results. The Department of Mental Health at the Parc Taul&#x00ED; University Hospital and the Institut d&#x2019;Investigaci&#x00F3; i Innovaci&#x00F3; Parc Taul&#x00ED; (I3PT-CERCA) are the sponsors.</p></sec><sec><title>Data Availability</title><p>The dataset from this study is securely stored on an AQUAS (Agency for Health Quality and Assessment of Catalonia) server, with access restricted to the authors. External researchers may request access from AQUAS (padris@gencat.cat). For security reasons, all analyses must be conducted within the AQUAS server environment, and only aggregated results may be exported, under the strict supervision of AQUAS technicians. Detailed information on eligibility and access conditions is available on the AQUAS website [<xref ref-type="bibr" rid="ref52">52</xref>].</p></sec></notes><fn-group><fn fn-type="con"><p>Conceptualization: CP-G, MF, DR, EB, CP, JG, DP</p><p>Data curation: CP-G, XSC, MC, JFM-C, JAE, EB</p><p>Formal analysis: CP-G, XSC, MC, JFM-C, JAE</p><p>Funding acquisition: MF, DP</p><p>Investigation: CP-G, MF, XSC, MC, DR, CP, JG, DP</p><p>Methodology: CP-G, MF, XSC, MC, JFM-C, JAE, DR, EB, CP, JG, DP</p><p>Project administration: CP-G, MF, DP</p><p>Resources: MF, JFM-C, JAE, EB, DP</p><p>Software: CP-G, XSC, MC, JFM-C, JAE</p><p>Supervision: CP-G, MF, DP</p><p>Validation: CP-G, MF, XSC, JFM-C, JAE, EB, DP</p><p>Visualization: CP-G, XSC</p><p>Writing &#x2013; original draft: CP-G</p><p>Writing &#x2013; review and editing: CP-G, MF, CP, JG, DP</p></fn><fn fn-type="conflict"><p>DP has received grants from, and served as a consultant or advisor for, Rovi, Johnson &#x0026; Johnson, and Lundbeck. The other authors declare no conflicts of interest.</p></fn></fn-group><glossary><title>Abbreviations</title><def-list><def-item><term id="abb1">AdaBoost</term><def><p>adaptive boosting</p></def></def-item><def-item><term id="abb2">ADASYN</term><def><p>Adaptive Synthetic Sampling</p></def></def-item><def-item><term id="abb3">AQUAS</term><def><p>Agency for Health Quality and Assessment of Catalonia</p></def></def-item><def-item><term id="abb4">CDSS</term><def><p>clinical decision support system</p></def></def-item><def-item><term id="abb5">DL</term><def><p>deep learning</p></def></def-item><def-item><term id="abb6">EHR</term><def><p>electronic health record</p></def></def-item><def-item><term id="abb7">EWS</term><def><p>early warning system</p></def></def-item><def-item><term id="abb8">FN</term><def><p>false-negative</p></def></def-item><def-item><term id="abb9">FP</term><def><p>false-positive</p></def></def-item><def-item><term id="abb10">ML</term><def><p>machine learning</p></def></def-item><def-item><term id="abb11">ROC-AUC</term><def><p>receiver operating characteristic-area under the curve</p></def></def-item><def-item><term id="abb12">RWD</term><def><p>real-world data</p></def></def-item><def-item><term id="abb13">SHAP</term><def><p>Shapley additive explanations</p></def></def-item><def-item><term id="abb14">SMOTE</term><def><p>Synthetic Minority Oversampling Technique</p></def></def-item><def-item><term id="abb15">TN</term><def><p>true-negative</p></def></def-item><def-item><term id="abb16">TP</term><def><p>true-positive</p></def></def-item><def-item><term id="abb17">XGBoost</term><def><p>extreme gradient boosting</p></def></def-item></def-list></glossary><ref-list><title>References</title><ref id="ref1"><label>1</label><nlm-citation citation-type="report"><article-title>LIVE LIFE: an implementation guide for suicide prevention in countries</article-title><year>2021</year><access-date>2025-05-01</access-date><publisher-name>World Health Organization</publisher-name><comment><ext-link ext-link-type="uri" xlink:href="https://www.who.int/publications/i/item/9789240026629">https://www.who.int/publications/i/item/9789240026629</ext-link></comment></nlm-citation></ref><ref id="ref2"><label>2</label><nlm-citation citation-type="report"><article-title>Preventing suicide: a global imperative</article-title><year>2014</year><access-date>2026-07-23</access-date><publisher-name>World Health Organization</publisher-name><comment><ext-link ext-link-type="uri" xlink:href="https://iris.who.int/server/api/core/bitstreams/5bd12922-b362-458f-8025-f613da4922e7/content">https://iris.who.int/server/api/core/bitstreams/5bd12922-b362-458f-8025-f613da4922e7/content</ext-link></comment></nlm-citation></ref><ref id="ref3"><label>3</label><nlm-citation citation-type="report"><article-title>Suicide worldwide in 2021: global health estimates</article-title><year>2025</year><access-date>2026-07-23</access-date><publisher-name>World Health Organization</publisher-name><comment><ext-link ext-link-type="uri" xlink:href="https://iris.who.int/server/api/core/bitstreams/769d0a45-b50a-4b17-ba40-259bef44d9dd/content">https://iris.who.int/server/api/core/bitstreams/769d0a45-b50a-4b17-ba40-259bef44d9dd/content</ext-link></comment></nlm-citation></ref><ref id="ref4"><label>4</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Franklin</surname><given-names>JC</given-names> </name><name name-style="western"><surname>Ribeiro</surname><given-names>JD</given-names> </name><name name-style="western"><surname>Fox</surname><given-names>KR</given-names> </name><etal/></person-group><article-title>Risk factors for suicidal thoughts and behaviors: a meta-analysis of 50 years of research</article-title><source>Psychol Bull</source><year>2017</year><month>02</month><volume>143</volume><issue>2</issue><fpage>187</fpage><lpage>232</lpage><pub-id pub-id-type="doi">10.1037/bul0000084</pub-id><pub-id pub-id-type="medline">27841450</pub-id></nlm-citation></ref><ref id="ref5"><label>5</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Laanani</surname><given-names>M</given-names> </name><name name-style="western"><surname>Imbaud</surname><given-names>C</given-names> </name><name name-style="western"><surname>Tuppin</surname><given-names>P</given-names> </name><etal/></person-group><article-title>Contacts with health services during the year prior to suicide death and prevalent conditions a nationwide study</article-title><source>J Affect Disord</source><year>2020</year><month>09</month><day>1</day><volume>274</volume><fpage>174</fpage><lpage>182</lpage><pub-id pub-id-type="doi">10.1016/j.jad.2020.05.071</pub-id><pub-id pub-id-type="medline">32469801</pub-id></nlm-citation></ref><ref id="ref6"><label>6</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Stene-Larsen</surname><given-names>K</given-names> </name><name name-style="western"><surname>Reneflot</surname><given-names>A</given-names> </name></person-group><article-title>Contact with primary and mental health care prior to suicide: a systematic review of the literature from 2000 to 2017</article-title><source>Scand J Public Health</source><year>2019</year><month>02</month><volume>47</volume><issue>1</issue><fpage>9</fpage><lpage>17</lpage><pub-id pub-id-type="doi">10.1177/1403494817746274</pub-id><pub-id pub-id-type="medline">29207932</pub-id></nlm-citation></ref><ref id="ref7"><label>7</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Fradera</surname><given-names>M</given-names> </name><name name-style="western"><surname>Ouchi</surname><given-names>D</given-names> </name><name name-style="western"><surname>Prat</surname><given-names>O</given-names> </name><etal/></person-group><article-title>Can routine primary care records help in detecting suicide risk? A population-based case-control study in Barcelona</article-title><source>Arch Suicide Res</source><year>2022</year><volume>26</volume><issue>3</issue><fpage>1395</fpage><lpage>1409</lpage><pub-id pub-id-type="doi">10.1080/13811118.2021.1911894</pub-id><pub-id pub-id-type="medline">33896400</pub-id></nlm-citation></ref><ref id="ref8"><label>8</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Bebbington</surname><given-names>PE</given-names> </name><name name-style="western"><surname>Minot</surname><given-names>S</given-names> </name><name name-style="western"><surname>Cooper</surname><given-names>C</given-names> </name><etal/></person-group><article-title>Suicidal ideation, self-harm and attempted suicide: results from the British psychiatric morbidity survey 2000</article-title><source>Eur Psychiatry</source><year>2010</year><month>11</month><volume>25</volume><issue>7</issue><fpage>427</fpage><lpage>431</lpage><pub-id pub-id-type="doi">10.1016/j.eurpsy.2009.12.004</pub-id><pub-id pub-id-type="medline">20627465</pub-id></nlm-citation></ref><ref id="ref9"><label>9</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Sveticic</surname><given-names>J</given-names> </name><name name-style="western"><surname>De Leo</surname><given-names>D</given-names> </name></person-group><article-title>The hypothesis of a continuum in suicidality: a discussion on its validity and practical implications</article-title><source>Ment Illn</source><year>2012</year><month>07</month><day>26</day><volume>4</volume><issue>2</issue><fpage>e15</fpage><pub-id pub-id-type="doi">10.4081/mi.2012.e15</pub-id><pub-id pub-id-type="medline">25478116</pub-id></nlm-citation></ref><ref id="ref10"><label>10</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Chan</surname><given-names>MKY</given-names> </name><name name-style="western"><surname>Bhatti</surname><given-names>H</given-names> </name><name name-style="western"><surname>Meader</surname><given-names>N</given-names> </name><etal/></person-group><article-title>Predicting suicide following self-harm: systematic review of risk factors and risk scales</article-title><source>Br J Psychiatry</source><year>2016</year><month>10</month><volume>209</volume><issue>4</issue><fpage>277</fpage><lpage>283</lpage><pub-id pub-id-type="doi">10.1192/bjp.bp.115.170050</pub-id><pub-id pub-id-type="medline">27340111</pub-id></nlm-citation></ref><ref id="ref11"><label>11</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Large</surname><given-names>M</given-names> </name><name name-style="western"><surname>Kaneson</surname><given-names>M</given-names> </name><name name-style="western"><surname>Myles</surname><given-names>N</given-names> </name><name name-style="western"><surname>Myles</surname><given-names>H</given-names> </name><name name-style="western"><surname>Gunaratne</surname><given-names>P</given-names> </name><name name-style="western"><surname>Ryan</surname><given-names>C</given-names> </name></person-group><article-title>Meta-analysis of longitudinal cohort studies of suicide risk assessment among psychiatric patients: heterogeneity in results and lack of improvement over time</article-title><source>PLoS One</source><year>2016</year><volume>11</volume><issue>6</issue><fpage>e0156322</fpage><pub-id pub-id-type="doi">10.1371/journal.pone.0156322</pub-id><pub-id pub-id-type="medline">27285387</pub-id></nlm-citation></ref><ref id="ref12"><label>12</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Witt</surname><given-names>K</given-names> </name><name name-style="western"><surname>Spittal</surname><given-names>MJ</given-names> </name><name name-style="western"><surname>Carter</surname><given-names>G</given-names> </name><etal/></person-group><article-title>Effectiveness of online and mobile telephone applications (&#x2018;apps&#x2019;) for the self-management of suicidal ideation and self-harm: a systematic review and meta-analysis</article-title><source>BMC Psychiatry</source><year>2017</year><month>08</month><day>15</day><volume>17</volume><issue>1</issue><fpage>297</fpage><pub-id pub-id-type="doi">10.1186/s12888-017-1458-0</pub-id><pub-id pub-id-type="medline">28810841</pub-id></nlm-citation></ref><ref id="ref13"><label>13</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Okolie</surname><given-names>C</given-names> </name><name name-style="western"><surname>Dennis</surname><given-names>M</given-names> </name><name name-style="western"><surname>Simon Thomas</surname><given-names>E</given-names> </name><name name-style="western"><surname>John</surname><given-names>A</given-names> </name></person-group><article-title>A systematic review of interventions to prevent suicidal behaviors and reduce suicidal ideation in older people</article-title><source>Int Psychogeriatr</source><year>2017</year><month>11</month><volume>29</volume><issue>11</issue><fpage>1801</fpage><lpage>1824</lpage><pub-id pub-id-type="doi">10.1017/S1041610217001430</pub-id><pub-id pub-id-type="medline">28766474</pub-id></nlm-citation></ref><ref id="ref14"><label>14</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Milner</surname><given-names>A</given-names> </name><name name-style="western"><surname>Witt</surname><given-names>K</given-names> </name><name name-style="western"><surname>Pirkis</surname><given-names>J</given-names> </name><etal/></person-group><article-title>The effectiveness of suicide prevention delivered by GPs: a systematic review and meta-analysis</article-title><source>J Affect Disord</source><year>2017</year><month>03</month><day>1</day><volume>210</volume><fpage>294</fpage><lpage>302</lpage><pub-id pub-id-type="doi">10.1016/j.jad.2016.12.035</pub-id><pub-id pub-id-type="medline">28068618</pub-id></nlm-citation></ref><ref id="ref15"><label>15</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Woodford</surname><given-names>R</given-names> </name><name name-style="western"><surname>Spittal</surname><given-names>MJ</given-names> </name><name name-style="western"><surname>Milner</surname><given-names>A</given-names> </name><etal/></person-group><article-title>Accuracy of clinician predictions of future self&#x2010;harm: a systematic review and meta&#x2010;analysis of predictive studies</article-title><source>Suicide Life Threat Behav</source><year>2019</year><month>02</month><volume>49</volume><issue>1</issue><fpage>23</fpage><lpage>40</lpage><pub-id pub-id-type="doi">10.1111/sltb.12395</pub-id><pub-id pub-id-type="medline">28972271</pub-id></nlm-citation></ref><ref id="ref16"><label>16</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Simon</surname><given-names>GE</given-names> </name><name name-style="western"><surname>Matarazzo</surname><given-names>BB</given-names> </name><name name-style="western"><surname>Walsh</surname><given-names>CG</given-names> </name><etal/></person-group><article-title>Reconciling statistical and clinicians&#x2019; predictions of suicide risk</article-title><source>Psychiatr Serv</source><year>2021</year><month>05</month><day>1</day><volume>72</volume><issue>5</issue><fpage>555</fpage><lpage>562</lpage><pub-id pub-id-type="doi">10.1176/appi.ps.202000214</pub-id><pub-id pub-id-type="medline">33691491</pub-id></nlm-citation></ref><ref id="ref17"><label>17</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Barak-Corren</surname><given-names>Y</given-names> </name><name name-style="western"><surname>Castro</surname><given-names>VM</given-names> </name><name name-style="western"><surname>Javitt</surname><given-names>S</given-names> </name><etal/></person-group><article-title>Predicting suicidal behavior from longitudinal electronic health records</article-title><source>Am J Psychiatry</source><year>2017</year><month>02</month><day>1</day><volume>174</volume><issue>2</issue><fpage>154</fpage><lpage>162</lpage><pub-id pub-id-type="doi">10.1176/appi.ajp.2016.16010077</pub-id><pub-id pub-id-type="medline">27609239</pub-id></nlm-citation></ref><ref id="ref18"><label>18</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Kessler</surname><given-names>RC</given-names> </name><name name-style="western"><surname>Warner</surname><given-names>CH</given-names> </name><name name-style="western"><surname>Ivany</surname><given-names>C</given-names> </name><etal/></person-group><article-title>Predicting suicides after psychiatric hospitalization in US Army soldiers: the Army Study to Assess Risk and Resilience in Servicemembers (Army STARRS)</article-title><source>JAMA Psychiatry</source><year>2015</year><month>01</month><volume>72</volume><issue>1</issue><fpage>49</fpage><lpage>57</lpage><pub-id pub-id-type="doi">10.1001/jamapsychiatry.2014.1754</pub-id><pub-id pub-id-type="medline">25390793</pub-id></nlm-citation></ref><ref id="ref19"><label>19</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Simon</surname><given-names>GE</given-names> </name><name name-style="western"><surname>Johnson</surname><given-names>E</given-names> </name><name name-style="western"><surname>Lawrence</surname><given-names>JM</given-names> </name><etal/></person-group><article-title>Predicting suicide attempts and suicide deaths following outpatient visits using electronic health records</article-title><source>Am J Psychiatry</source><year>2018</year><month>10</month><day>1</day><volume>175</volume><issue>10</issue><fpage>951</fpage><lpage>960</lpage><pub-id pub-id-type="doi">10.1176/appi.ajp.2018.17101167</pub-id><pub-id pub-id-type="medline">29792051</pub-id></nlm-citation></ref><ref id="ref20"><label>20</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Poulin</surname><given-names>C</given-names> </name><name name-style="western"><surname>Shiner</surname><given-names>B</given-names> </name><name name-style="western"><surname>Thompson</surname><given-names>P</given-names> </name><etal/></person-group><article-title>Predicting the risk of suicide by analyzing the text of clinical notes</article-title><source>PLoS One</source><year>2014</year><volume>9</volume><issue>1</issue><fpage>e85733</fpage><pub-id pub-id-type="doi">10.1371/journal.pone.0085733</pub-id><pub-id pub-id-type="medline">24489669</pub-id></nlm-citation></ref><ref id="ref21"><label>21</label><nlm-citation citation-type="confproc"><person-group person-group-type="author"><name name-style="western"><surname>Ben-Ari</surname><given-names>A</given-names> </name><name name-style="western"><surname>Hammond</surname><given-names>K</given-names> </name></person-group><article-title>Text mining the EMR for modeling and predicting suicidal behavior among US veterans of the 1991 persian gulf war</article-title><conf-name>2015 48th Hawaii International Conference on System Sciences (HICSS)</conf-name><conf-date>Jan 5-8, 2015</conf-date><pub-id pub-id-type="doi">10.1109/HICSS.2015.382</pub-id></nlm-citation></ref><ref id="ref22"><label>22</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Su</surname><given-names>C</given-names> </name><name name-style="western"><surname>Xu</surname><given-names>Z</given-names> </name><name name-style="western"><surname>Pathak</surname><given-names>J</given-names> </name><name name-style="western"><surname>Wang</surname><given-names>F</given-names> </name></person-group><article-title>Deep learning in mental health outcome research: a scoping review</article-title><source>Transl Psychiatry</source><year>2020</year><month>04</month><day>22</day><volume>10</volume><issue>1</issue><fpage>116</fpage><pub-id pub-id-type="doi">10.1038/s41398-020-0780-3</pub-id><pub-id pub-id-type="medline">32532967</pub-id></nlm-citation></ref><ref id="ref23"><label>23</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Walkup</surname><given-names>JT</given-names> </name><name name-style="western"><surname>Townsend</surname><given-names>L</given-names> </name><name name-style="western"><surname>Crystal</surname><given-names>S</given-names> </name><name name-style="western"><surname>Olfson</surname><given-names>M</given-names> </name></person-group><article-title>A systematic review of validated methods for identifying suicide or suicidal ideation using administrative or claims data</article-title><source>Pharmacoepidemiol Drug Saf</source><year>2012</year><month>01</month><volume>21</volume><issue>S1</issue><fpage>174</fpage><lpage>182</lpage><pub-id pub-id-type="doi">10.1002/pds.2335</pub-id><pub-id pub-id-type="medline">22262604</pub-id></nlm-citation></ref><ref id="ref24"><label>24</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Platt</surname><given-names>R</given-names> </name><name name-style="western"><surname>Carnahan</surname><given-names>R</given-names> </name></person-group><article-title>The U.S. Food and Drug Administration&#x2019;s Mini&#x2010;sentinel Program</article-title><source>Pharmacoepidemiol Drug Saf</source><year>2012</year><month>01</month><volume>21</volume><issue>S1</issue><fpage>1</fpage><lpage>303</lpage><pub-id pub-id-type="doi">10.1002/pds.3230</pub-id></nlm-citation></ref><ref id="ref25"><label>25</label><nlm-citation citation-type="book"><person-group person-group-type="author"><name name-style="western"><surname>McArdle</surname><given-names>JJ</given-names> </name><name name-style="western"><surname>Ritschard</surname><given-names>G</given-names> </name></person-group><source>Contemporary Issues in Exploratory Data Mining in the Behavioral Sciences</source><year>2014</year><publisher-name>Routledge/Taylor &#x0026; Francis Group</publisher-name><pub-id pub-id-type="doi">10.4324/9780203403020</pub-id></nlm-citation></ref><ref id="ref26"><label>26</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Walsh</surname><given-names>CG</given-names> </name><name name-style="western"><surname>Ribeiro</surname><given-names>JD</given-names> </name><name name-style="western"><surname>Franklin</surname><given-names>JC</given-names> </name></person-group><article-title>Predicting risk of suicide attempts over time through machine learning</article-title><source>Clin Psychol Sci</source><year>2017</year><month>05</month><volume>5</volume><issue>3</issue><fpage>457</fpage><lpage>469</lpage><pub-id pub-id-type="doi">10.1177/2167702617691560</pub-id></nlm-citation></ref><ref id="ref27"><label>27</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Burke</surname><given-names>TA</given-names> </name><name name-style="western"><surname>Ammerman</surname><given-names>BA</given-names> </name><name name-style="western"><surname>Jacobucci</surname><given-names>R</given-names> </name></person-group><article-title>The use of machine learning in the study of suicidal and non-suicidal self-injurious thoughts and behaviors: a systematic review</article-title><source>J Affect Disord</source><year>2019</year><month>02</month><day>15</day><volume>245</volume><fpage>869</fpage><lpage>884</lpage><pub-id pub-id-type="doi">10.1016/j.jad.2018.11.073</pub-id><pub-id pub-id-type="medline">30699872</pub-id></nlm-citation></ref><ref id="ref28"><label>28</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Kessler</surname><given-names>RC</given-names> </name><name name-style="western"><surname>Hwang</surname><given-names>I</given-names> </name><name name-style="western"><surname>Hoffmire</surname><given-names>CA</given-names> </name><etal/></person-group><article-title>Developing a practical suicide risk prediction model for targeting high-risk patients in the Veterans health Administration</article-title><source>Int J Methods Psychiatr Res</source><year>2017</year><month>09</month><volume>26</volume><issue>3</issue><fpage>e1575</fpage><pub-id pub-id-type="doi">10.1002/mpr.1575</pub-id><pub-id pub-id-type="medline">28675617</pub-id></nlm-citation></ref><ref id="ref29"><label>29</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Zheng</surname><given-names>L</given-names> </name><name name-style="western"><surname>Wang</surname><given-names>O</given-names> </name><name name-style="western"><surname>Hao</surname><given-names>S</given-names> </name><etal/></person-group><article-title>Development of an early-warning system for high-risk patients for suicide attempt using deep learning and electronic health records</article-title><source>Transl Psychiatry</source><year>2020</year><month>02</month><day>20</day><volume>10</volume><issue>1</issue><fpage>72</fpage><pub-id pub-id-type="doi">10.1038/s41398-020-0684-2</pub-id><pub-id pub-id-type="medline">32080165</pub-id></nlm-citation></ref><ref id="ref30"><label>30</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Edelson</surname><given-names>DP</given-names> </name><name name-style="western"><surname>Churpek</surname><given-names>MM</given-names> </name><name name-style="western"><surname>Carey</surname><given-names>KA</given-names> </name><etal/></person-group><article-title>Early warning scores with and without artificial intelligence</article-title><source>JAMA Netw Open</source><year>2024</year><month>10</month><day>1</day><volume>7</volume><issue>10</issue><fpage>e2438986</fpage><pub-id pub-id-type="doi">10.1001/jamanetworkopen.2024.38986</pub-id><pub-id pub-id-type="medline">39405061</pub-id></nlm-citation></ref><ref id="ref31"><label>31</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Winslow</surname><given-names>CJ</given-names> </name><name name-style="western"><surname>Edelson</surname><given-names>DP</given-names> </name><name name-style="western"><surname>Churpek</surname><given-names>MM</given-names> </name><etal/></person-group><article-title>The impact of a machine learning early warning score on hospital mortality: a multicenter clinical intervention trial</article-title><source>Crit Care Med</source><year>2022</year><month>09</month><day>1</day><volume>50</volume><issue>9</issue><fpage>1339</fpage><lpage>1347</lpage><pub-id pub-id-type="doi">10.1097/CCM.0000000000005492</pub-id><pub-id pub-id-type="medline">35452010</pub-id></nlm-citation></ref><ref id="ref32"><label>32</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Escobar</surname><given-names>GJ</given-names> </name><name name-style="western"><surname>Liu</surname><given-names>VX</given-names> </name><name name-style="western"><surname>Schuler</surname><given-names>A</given-names> </name><name name-style="western"><surname>Lawson</surname><given-names>B</given-names> </name><name name-style="western"><surname>Greene</surname><given-names>JD</given-names> </name><name name-style="western"><surname>Kipnis</surname><given-names>P</given-names> </name></person-group><article-title>Automated identification of adults at risk for in-hospital clinical deterioration</article-title><source>N Engl J Med</source><year>2020</year><month>11</month><day>12</day><volume>383</volume><issue>20</issue><fpage>1951</fpage><lpage>1960</lpage><pub-id pub-id-type="doi">10.1056/NEJMsa2001090</pub-id><pub-id pub-id-type="medline">33176085</pub-id></nlm-citation></ref><ref id="ref33"><label>33</label><nlm-citation citation-type="web"><article-title>Ley Org&#x00E1;nica 3/2018, de 5 de diciembre, de Protecci&#x00F3;n de Datos Personales y garant&#x00ED;a de los derechos digitales [Article in Spanish]</article-title><source>Bolet&#x00ED;n Oficial del Estado (BOE)</source><access-date>2018-06-12</access-date><comment><ext-link ext-link-type="uri" xlink:href="https://www.boe.es/eli/es/lo/2018/12/05/3/con">https://www.boe.es/eli/es/lo/2018/12/05/3/con</ext-link></comment></nlm-citation></ref><ref id="ref34"><label>34</label><nlm-citation citation-type="report"><article-title>Regulation (EU) 2016/679 of the European Parliament and of the Council of 27 April 2016 on the protection of natural persons with regard to the processing of personal data and on the free movement of such data, and repealing Directive 95/46/EC (General Data Protection Regulation) (Text with EEA relevance) [Article in Spanish]</article-title><year>2016</year><access-date>2026-08-05</access-date><publisher-name>European Union</publisher-name><comment><ext-link ext-link-type="uri" xlink:href="https://eur-lex.europa.eu/eli/reg/2016/679/oj">https://eur-lex.europa.eu/eli/reg/2016/679/oj</ext-link></comment></nlm-citation></ref><ref id="ref35"><label>35</label><nlm-citation citation-type="confproc"><person-group person-group-type="author"><name name-style="western"><surname>Lundberg</surname><given-names>SM</given-names> </name><name name-style="western"><surname>Lee</surname><given-names>SI</given-names> </name></person-group><article-title>A unified approach to interpreting model predictions</article-title><conf-name>NIPS&#x2019;17: Proceedings of the 31st International Conference on Neural Information Processing Systems</conf-name><conf-date>Dec 4-9, 2017</conf-date><pub-id pub-id-type="doi">10.5555/3295222.3295230</pub-id></nlm-citation></ref><ref id="ref36"><label>36</label><nlm-citation citation-type="other"><person-group person-group-type="author"><name name-style="western"><surname>Florek</surname><given-names>P</given-names> </name><name name-style="western"><surname>Zagda&#x0144;ski</surname><given-names>A</given-names> </name></person-group><article-title>Benchmarking state-of-the-art gradient boosting algorithms for classification</article-title><source>arXiv</source><comment>Preprint posted online on  May 26, 2023</comment><pub-id pub-id-type="doi">10.48550/arXiv.2305.17094</pub-id></nlm-citation></ref><ref id="ref37"><label>37</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Seyedsalehi</surname><given-names>A</given-names> </name><name name-style="western"><surname>Fazel</surname><given-names>S</given-names> </name></person-group><article-title>Suicide risk assessment tools and prediction models: new evidence, methodological innovations, outdated criticisms</article-title><source>BMJ Ment Health</source><year>2024</year><month>03</month><day>14</day><volume>27</volume><issue>1</issue><fpage>e300990</fpage><pub-id pub-id-type="doi">10.1136/bmjment-2024-300990</pub-id><pub-id pub-id-type="medline">38485246</pub-id></nlm-citation></ref><ref id="ref38"><label>38</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Ehtemam</surname><given-names>H</given-names> </name><name name-style="western"><surname>Sadeghi Esfahlani</surname><given-names>S</given-names> </name><name name-style="western"><surname>Sanaei</surname><given-names>A</given-names> </name><etal/></person-group><article-title>Role of machine learning algorithms in suicide risk prediction: a systematic review-meta analysis of clinical studies</article-title><source>BMC Med Inform Decis Mak</source><year>2024</year><month>05</month><day>27</day><volume>24</volume><issue>1</issue><fpage>138</fpage><pub-id pub-id-type="doi">10.1186/s12911-024-02524-0</pub-id><pub-id pub-id-type="medline">38802823</pub-id></nlm-citation></ref><ref id="ref39"><label>39</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Pigoni</surname><given-names>A</given-names> </name><name name-style="western"><surname>Delvecchio</surname><given-names>G</given-names> </name><name name-style="western"><surname>Turtulici</surname><given-names>N</given-names> </name><etal/></person-group><article-title>Machine learning and the prediction of suicide in psychiatric populations: a systematic review</article-title><source>Transl Psychiatry</source><year>2024</year><month>03</month><day>9</day><volume>14</volume><issue>1</issue><fpage>140</fpage><pub-id pub-id-type="doi">10.1038/s41398-024-02852-9</pub-id><pub-id pub-id-type="medline">38461283</pub-id></nlm-citation></ref><ref id="ref40"><label>40</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Kirtley</surname><given-names>OJ</given-names> </name><name name-style="western"><surname>van Mens</surname><given-names>K</given-names> </name><name name-style="western"><surname>Hoogendoorn</surname><given-names>M</given-names> </name><name name-style="western"><surname>Kapur</surname><given-names>N</given-names> </name><name name-style="western"><surname>de Beurs</surname><given-names>D</given-names> </name></person-group><article-title>Translating promise into practice: a review of machine learning in suicide research and prevention</article-title><source>Lancet Psychiatry</source><year>2022</year><month>03</month><volume>9</volume><issue>3</issue><fpage>243</fpage><lpage>252</lpage><pub-id pub-id-type="doi">10.1016/S2215-0366(21)00254-6</pub-id><pub-id pub-id-type="medline">35183281</pub-id></nlm-citation></ref><ref id="ref41"><label>41</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Lagerberg</surname><given-names>T</given-names> </name><name name-style="western"><surname>Gustafsson</surname><given-names>TT</given-names> </name><name name-style="western"><surname>Molero</surname><given-names>Y</given-names> </name><etal/></person-group><article-title>Oral glucocorticoids and risk of psychiatric and suicidal behaviour outcomes: population-based cohort study</article-title><source>Br J Psychiatry</source><year>2026</year><month>07</month><volume>229</volume><issue>1</issue><fpage>43</fpage><lpage>50</lpage><pub-id pub-id-type="doi">10.1192/bjp.2025.128</pub-id><pub-id pub-id-type="medline">40556309</pub-id></nlm-citation></ref><ref id="ref42"><label>42</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Lin</surname><given-names>HT</given-names> </name><name name-style="western"><surname>Lai</surname><given-names>CH</given-names> </name><name name-style="western"><surname>Perng</surname><given-names>HJ</given-names> </name><etal/></person-group><article-title>Insomnia as an independent predictor of suicide attempts: a nationwide population-based retrospective cohort study</article-title><source>BMC Psychiatry</source><year>2018</year><month>05</month><day>2</day><volume>18</volume><issue>1</issue><fpage>117</fpage><pub-id pub-id-type="doi">10.1186/s12888-018-1702-2</pub-id><pub-id pub-id-type="medline">29716570</pub-id></nlm-citation></ref><ref id="ref43"><label>43</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Piera-Jim&#x00E9;nez</surname><given-names>J</given-names> </name><name name-style="western"><surname>Carot-Sans</surname><given-names>G</given-names> </name><name name-style="western"><surname>Ramiro-Pareta</surname><given-names>M</given-names> </name><etal/></person-group><article-title>A 25-year retrospective of health IT infrastructure building: the example of the catalonia region</article-title><source>J Med Internet Res</source><year>2024</year><month>11</month><day>18</day><volume>26</volume><fpage>e58933</fpage><pub-id pub-id-type="doi">10.2196/58933</pub-id><pub-id pub-id-type="medline">39556831</pub-id></nlm-citation></ref><ref id="ref44"><label>44</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Pe&#x00F1;a G&#x00F3;mez</surname><given-names>C</given-names> </name><name name-style="western"><surname>Fradera</surname><given-names>M</given-names> </name><name name-style="western"><surname>Caravaca</surname><given-names>M</given-names> </name><name name-style="western"><surname>Roche</surname><given-names>D</given-names> </name><name name-style="western"><surname>Giraldo</surname><given-names>J</given-names> </name><name name-style="western"><surname>Palao</surname><given-names>D</given-names> </name></person-group><article-title>Machine learning model development to retrospectively predict suicide attempts in the Millenium Cohort Study sample</article-title><source>Eur Psychiatr</source><year>2025</year><month>04</month><volume>68</volume><issue>S1</issue><fpage>S120</fpage><pub-id pub-id-type="doi">10.1192/j.eurpsy.2025.335</pub-id></nlm-citation></ref><ref id="ref45"><label>45</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Haroz</surname><given-names>EE</given-names> </name><name name-style="western"><surname>Rebman</surname><given-names>P</given-names> </name><name name-style="western"><surname>Goklish</surname><given-names>N</given-names> </name><etal/></person-group><article-title>Performance of machine learning suicide risk models in an American Indian population</article-title><source>JAMA Netw Open</source><year>2024</year><month>10</month><day>1</day><volume>7</volume><issue>10</issue><fpage>e2439269</fpage><pub-id pub-id-type="doi">10.1001/jamanetworkopen.2024.39269</pub-id><pub-id pub-id-type="medline">39401036</pub-id></nlm-citation></ref><ref id="ref46"><label>46</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Mart&#x00ED;nez-Al&#x00E9;s</surname><given-names>G</given-names> </name><name name-style="western"><surname>Jiang</surname><given-names>T</given-names> </name><name name-style="western"><surname>Keyes</surname><given-names>KM</given-names> </name><name name-style="western"><surname>Gradus</surname><given-names>JL</given-names> </name></person-group><article-title>The recent rise of suicide mortality in the United States</article-title><source>Annu Rev Public Health</source><year>2021</year><month>04</month><day>5</day><volume>43</volume><fpage>99</fpage><lpage>116</lpage><pub-id pub-id-type="doi">10.1146/annurev-publhealth-051920-123206</pub-id><pub-id pub-id-type="medline">34705474</pub-id></nlm-citation></ref><ref id="ref47"><label>47</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Singh</surname><given-names>H</given-names> </name><name name-style="western"><surname>Mhasawade</surname><given-names>V</given-names> </name><name name-style="western"><surname>Chunara</surname><given-names>R</given-names> </name></person-group><article-title>Generalizability challenges of mortality risk prediction models: a retrospective analysis on a multi-center database</article-title><source>PLOS Digit Health</source><year>2022</year><month>04</month><volume>1</volume><issue>4</issue><fpage>e0000023</fpage><pub-id pub-id-type="doi">10.1371/journal.pdig.0000023</pub-id><pub-id pub-id-type="medline">36812510</pub-id></nlm-citation></ref><ref id="ref48"><label>48</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Vos</surname><given-names>T</given-names> </name><name name-style="western"><surname>Lim</surname><given-names>SS</given-names> </name><name name-style="western"><surname>Abbafati</surname><given-names>C</given-names> </name><etal/></person-group><article-title>Global burden of 369 diseases and injuries in 204 countries and territories, 1990&#x2013;2019: a systematic analysis for the Global Burden of Disease Study 2019</article-title><source>The Lancet</source><year>2020</year><month>10</month><volume>396</volume><issue>10258</issue><fpage>1204</fpage><lpage>1222</lpage><pub-id pub-id-type="doi">10.1016/S0140-6736(20)30925-9</pub-id></nlm-citation></ref><ref id="ref49"><label>49</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Nuij</surname><given-names>C</given-names> </name><name name-style="western"><surname>van Ballegooijen</surname><given-names>W</given-names> </name><name name-style="western"><surname>de Beurs</surname><given-names>D</given-names> </name><etal/></person-group><article-title>Safety planning-type interventions for suicide prevention: meta-analysis</article-title><source>Br J Psychiatry</source><year>2021</year><month>08</month><volume>219</volume><issue>2</issue><fpage>419</fpage><lpage>426</lpage><pub-id pub-id-type="doi">10.1192/bjp.2021.50</pub-id><pub-id pub-id-type="medline">35048835</pub-id></nlm-citation></ref><ref id="ref50"><label>50</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Homan</surname><given-names>S</given-names> </name><name name-style="western"><surname>Marciniak</surname><given-names>MA</given-names> </name><name name-style="western"><surname>Michel</surname><given-names>S</given-names> </name><etal/></person-group><article-title>Effectiveness of brief interventions and contacts after suicide attempt: a systematic review and meta-analysis</article-title><source>EClinicalMedicine</source><year>2026</year><month>03</month><volume>93</volume><fpage>103824</fpage><pub-id pub-id-type="doi">10.1016/j.eclinm.2026.103824</pub-id><pub-id pub-id-type="medline">41859679</pub-id></nlm-citation></ref><ref id="ref51"><label>51</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>P&#x00E9;rez</surname><given-names>V</given-names> </name><name name-style="western"><surname>Elices</surname><given-names>M</given-names> </name><name name-style="western"><surname>Prat</surname><given-names>B</given-names> </name><etal/></person-group><article-title>The Catalonia Suicide Risk Code: a secondary prevention program for individuals at risk of suicide</article-title><source>J Affect Disord</source><year>2020</year><month>05</month><day>1</day><volume>268</volume><fpage>201</fpage><lpage>205</lpage><pub-id pub-id-type="doi">10.1016/j.jad.2020.03.009</pub-id><pub-id pub-id-type="medline">32174478</pub-id></nlm-citation></ref><ref id="ref52"><label>52</label><nlm-citation citation-type="web"><source>Ag&#x00E8;ncia de Qualitat i Avaluaci&#x00F3; Sanit&#x00E0;ries de Catalunya (AQuAS) [Article in Catalan]</source><access-date>2026-07-23</access-date><comment><ext-link ext-link-type="uri" xlink:href="https://aquas.gencat.cat/ca/inici">https://aquas.gencat.cat/ca/inici</ext-link></comment></nlm-citation></ref></ref-list><app-group><supplementary-material id="app1"><label>Multimedia Appendix 1</label><p>UpSet plot showing the distribution and overlaps of 10 key clinical variables.</p><media xlink:href="ai_v5i1e85085_app1.docx" xlink:title="DOCX File, 128 KB"/></supplementary-material></app-group></back></article>