<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.3 20210610//EN" "JATS-journalpublishing1-3-mathml3.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ali="http://www.niso.org/schemas/ali/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" article-type="research-article" dtd-version="1.3" xml:lang="EN">
<front>
<journal-meta>
<journal-id journal-id-type="publisher-id">Front. Psychiatry</journal-id>
<journal-title-group>
<journal-title>Frontiers in Psychiatry</journal-title>
<abbrev-journal-title abbrev-type="pubmed">Front. Psychiatry</abbrev-journal-title>
</journal-title-group>
<issn pub-type="epub">1664-0640</issn>
<publisher>
<publisher-name>Frontiers Media S.A.</publisher-name>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="doi">10.3389/fpsyt.2026.1662604</article-id>
<article-version article-version-type="Version of Record" vocab="NISO-RP-8-2008"/>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Original Research</subject>
</subj-group>
</article-categories>
<title-group>
<article-title>Integrating thyroid function and psychometric profiles for lifetime suicide-attempt risk stratification in bipolar disorder: A multi-algorithm machine-learning study</article-title>
</title-group>
<contrib-group>
<contrib contrib-type="author" equal-contrib="yes">
<name><surname>Zhang</surname><given-names>Boyu</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
<xref ref-type="aff" rid="aff2"><sup>2</sup></xref>
<xref ref-type="aff" rid="aff3"><sup>3</sup></xref>
<xref ref-type="aff" rid="aff4"><sup>4</sup></xref>
<xref ref-type="author-notes" rid="fn003"><sup>&#x2020;</sup></xref>
<uri xlink:href="https://loop.frontiersin.org/people/3128079/overview"/>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Data curation" vocab-term-identifier="https://credit.niso.org/contributor-roles/data-curation/">Data curation</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="conceptualization" vocab-term-identifier="https://credit.niso.org/contributor-roles/conceptualization/">Conceptualization</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; review &amp; editing" vocab-term-identifier="https://credit.niso.org/contributor-roles/writing-review-editing/">Writing &#x2013; review &amp; editing</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Formal analysis" vocab-term-identifier="https://credit.niso.org/contributor-roles/formal-analysis/">Formal analysis</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; original draft" vocab-term-identifier="https://credit.niso.org/contributor-roles/writing-original-draft/">Writing &#x2013; original draft</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="methodology" vocab-term-identifier="https://credit.niso.org/contributor-roles/methodology/">Methodology</role>
</contrib>
<contrib contrib-type="author" equal-contrib="yes">
<name><surname>Pan</surname><given-names>Min</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
<xref ref-type="aff" rid="aff2"><sup>2</sup></xref>
<xref ref-type="aff" rid="aff3"><sup>3</sup></xref>
<xref ref-type="aff" rid="aff4"><sup>4</sup></xref>
<xref ref-type="author-notes" rid="fn003"><sup>&#x2020;</sup></xref>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Data curation" vocab-term-identifier="https://credit.niso.org/contributor-roles/data-curation/">Data curation</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Formal analysis" vocab-term-identifier="https://credit.niso.org/contributor-roles/formal-analysis/">Formal analysis</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="investigation" vocab-term-identifier="https://credit.niso.org/contributor-roles/investigation/">Investigation</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; review &amp; editing" vocab-term-identifier="https://credit.niso.org/contributor-roles/writing-review-editing/">Writing &#x2013; review &amp; editing</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="supervision" vocab-term-identifier="https://credit.niso.org/contributor-roles/supervision/">Supervision</role>
</contrib>
<contrib contrib-type="author">
<name><surname>Wang</surname><given-names>Anzhen</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
<xref ref-type="aff" rid="aff2"><sup>2</sup></xref>
<xref ref-type="aff" rid="aff3"><sup>3</sup></xref>
<xref ref-type="aff" rid="aff4"><sup>4</sup></xref>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="supervision" vocab-term-identifier="https://credit.niso.org/contributor-roles/supervision/">Supervision</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; review &amp; editing" vocab-term-identifier="https://credit.niso.org/contributor-roles/writing-review-editing/">Writing &#x2013; review &amp; editing</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Project-administration" vocab-term-identifier="https://credit.niso.org/contributor-roles/project-administration/">Project administration</role>
</contrib>
<contrib contrib-type="author">
<name><surname>Fang</surname><given-names>Wenmei</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
<xref ref-type="aff" rid="aff2"><sup>2</sup></xref>
<xref ref-type="aff" rid="aff3"><sup>3</sup></xref>
<xref ref-type="aff" rid="aff4"><sup>4</sup></xref>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="supervision" vocab-term-identifier="https://credit.niso.org/contributor-roles/supervision/">Supervision</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="validation" vocab-term-identifier="https://credit.niso.org/contributor-roles/validation/">Validation</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; review &amp; editing" vocab-term-identifier="https://credit.niso.org/contributor-roles/writing-review-editing/">Writing &#x2013; review &amp; editing</role>
</contrib>
<contrib contrib-type="author">
<name><surname>Guan</surname><given-names>Jianjun</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
<xref ref-type="aff" rid="aff2"><sup>2</sup></xref>
<xref ref-type="aff" rid="aff3"><sup>3</sup></xref>
<xref ref-type="aff" rid="aff4"><sup>4</sup></xref>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="supervision" vocab-term-identifier="https://credit.niso.org/contributor-roles/supervision/">Supervision</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; review &amp; editing" vocab-term-identifier="https://credit.niso.org/contributor-roles/writing-review-editing/">Writing &#x2013; review &amp; editing</role>
</contrib>
<contrib contrib-type="author">
<name><surname>Li</surname><given-names>Zhiyong</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
<xref ref-type="aff" rid="aff2"><sup>2</sup></xref>
<xref ref-type="aff" rid="aff3"><sup>3</sup></xref>
<xref ref-type="aff" rid="aff4"><sup>4</sup></xref>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="investigation" vocab-term-identifier="https://credit.niso.org/contributor-roles/investigation/">Investigation</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; review &amp; editing" vocab-term-identifier="https://credit.niso.org/contributor-roles/writing-review-editing/">Writing &#x2013; review &amp; editing</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="software" vocab-term-identifier="https://credit.niso.org/contributor-roles/software/">Software</role>
</contrib>
<contrib contrib-type="author" corresp="yes">
<name><surname>Cheng</surname><given-names>Xialong</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
<xref ref-type="aff" rid="aff2"><sup>2</sup></xref>
<xref ref-type="aff" rid="aff3"><sup>3</sup></xref>
<xref ref-type="aff" rid="aff4"><sup>4</sup></xref>
<xref ref-type="corresp" rid="c001"><sup>*</sup></xref>
<uri xlink:href="https://loop.frontiersin.org/people/3127270/overview"/>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; review &amp; editing" vocab-term-identifier="https://credit.niso.org/contributor-roles/writing-review-editing/">Writing &#x2013; review &amp; editing</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="supervision" vocab-term-identifier="https://credit.niso.org/contributor-roles/supervision/">Supervision</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="resources" vocab-term-identifier="https://credit.niso.org/contributor-roles/resources/">Resources</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="methodology" vocab-term-identifier="https://credit.niso.org/contributor-roles/methodology/">Methodology</role>
</contrib>
<contrib contrib-type="author" corresp="yes">
<name><surname>Xie</surname><given-names>Yu</given-names></name>
<xref ref-type="aff" rid="aff5"><sup>5</sup></xref>
<xref ref-type="corresp" rid="c001"><sup>*</sup></xref>
<uri xlink:href="https://loop.frontiersin.org/people/3128484/overview"/>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="resources" vocab-term-identifier="https://credit.niso.org/contributor-roles/resources/">Resources</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="visualization" vocab-term-identifier="https://credit.niso.org/contributor-roles/visualization/">Visualization</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Project-administration" vocab-term-identifier="https://credit.niso.org/contributor-roles/project-administration/">Project administration</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="validation" vocab-term-identifier="https://credit.niso.org/contributor-roles/validation/">Validation</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; review &amp; editing" vocab-term-identifier="https://credit.niso.org/contributor-roles/writing-review-editing/">Writing &#x2013; review &amp; editing</role>
</contrib>
</contrib-group>
<aff id="aff1"><label>1</label><institution>Department of Psychiatry, Affiliated Psychological Hospital of Anhui Medical University</institution>, <city>Hefei</city>,&#xa0;<country country="cn">China</country></aff>
<aff id="aff2"><label>2</label><institution>Department of Psychiatry, Hefei Fourth People&#x2019;s Hospital</institution>, <city>Hefei</city>,&#xa0;<country country="cn">China</country></aff>
<aff id="aff3"><label>3</label><institution>Department of Psychiatry, Anhui Mental Health Center</institution>, <city>Hefei</city>,&#xa0;<country country="cn">China</country></aff>
<aff id="aff4"><label>4</label><institution>Department of Psychiatry, Anhui Clinical Research Center for Mental Disorders</institution>, <city>Hefei</city>,&#xa0;<country country="cn">China</country></aff>
<aff id="aff5"><label>5</label><institution>School of Educational Science, Anhui Normal University</institution>, <city>Wuhu</city>,&#xa0;<country country="cn">China</country></aff>
<author-notes>
<corresp id="c001"><label>*</label>Correspondence: Xialong Cheng, <email xlink:href="mailto:xialongcheng2023@163.com">xialongcheng2023@163.com</email>; Yu Xie, <email xlink:href="mailto:xiey@ahnu.edu.cn">xiey@ahnu.edu.cn</email></corresp>
<fn fn-type="equal" id="fn003">
<label>&#x2020;</label>
<p>These authors have contributed equally to this work and share first authorship</p></fn>
</author-notes>
<pub-date publication-format="electronic" date-type="pub" iso-8601-date="2026-02-24">
<day>24</day>
<month>02</month>
<year>2026</year>
</pub-date>
<pub-date publication-format="electronic" date-type="collection">
<year>2026</year>
</pub-date>
<volume>17</volume>
<elocation-id>1662604</elocation-id>
<history>
<date date-type="received">
<day>09</day>
<month>07</month>
<year>2025</year>
</date>
<date date-type="accepted">
<day>03</day>
<month>02</month>
<year>2026</year>
</date>
<date date-type="rev-recd">
<day>19</day>
<month>01</month>
<year>2026</year>
</date>
</history>
<permissions>
<copyright-statement>Copyright &#xa9; 2026 Zhang, Pan, Wang, Fang, Guan, Li, Cheng and Xie.</copyright-statement>
<copyright-year>2026</copyright-year>
<copyright-holder>Zhang, Pan, Wang, Fang, Guan, Li, Cheng and Xie</copyright-holder>
<license>
<ali:license_ref start_date="2026-02-24">https://creativecommons.org/licenses/by/4.0/</ali:license_ref>
<license-p>This is an open-access article distributed under the terms of the <ext-link ext-link-type="uri" xlink:href="https://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution License (CC BY)</ext-link>. The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.</license-p>
</license>
</permissions>
<abstract>
<sec>
<title>Background</title>
<p>Bipolar disorder is a severe mental disorder characterized by recurrent episodes of depression and mania, with a low diagnostic rate. This study aimed to use machine learning methods for risk stratification of lifetime suicide attempts in patients with bipolar disorder based on cross-sectional associations.</p>
</sec>
<sec>
<title>Methods</title>
<p>The discriminative performance of the models was evaluated using multiple metrics, including the area under the receiver operating characteristic curve (AUC), accuracy, F1-score, precision-recall (PR) curve, Average Precision (AP), and Brier score. LASSO logistic regression was used for variable selection, and SMOTE (synthetic minority over-sampling technique) was applied to handle class imbalance. A sensitivity analysis excluding patients with recent suicide attempts (within 6 months) was performed to reduce reverse causality bias. Thyroid function indicators were detected using chemiluminescent immunoassay with a Roche Cobas e601 analyzer; the reference range for normal TSH was 0.27-4.2 mIU/L, with values outside this range defined as abnormal.</p>
</sec>
<sec>
<title>Results</title>
<p>We included 1,124 patients diagnosed with bipolar disorder in this study, with a lifetime suicide attempt rate of 31.32%.Among the three models tested, random forests exhibited superior performance metrics, attaining an accuracy (ACC) of 0.938, an AUC of 0.962, and an F1 score of 0.854 compared to gradient boosting (ACC: 0.920; AUC: 0.967; F1 score: 0.828) and the support vector machine (ACC: 0.893; AUC: 0.956; F1 score: 0.808). Suicidal ideation, education level, hopelessness score, the retardation symptoms severity score, and thyroid stimulating hormone levels were identified as the top five predictors. Sensitivity analysis excluding patients with recent suicide attempts (n=98) showed consistent predictor rank-order and maintained RF-AUC = 0.958.Subgroup analysis of euthyroid patients (n=887) preserved the predictor rank and RF-AUC &#x2265; 0.95.</p>
</sec>
<sec>
<title>Conclusions</title>
<p>We developed a robust clinical model for predicting (risk stratification of lifetime suicide attempts)suicide attempts in patients with bipolar disorder based on machine learning techniques. This model can assist psychiatric clinicians in understanding suicide risk among individuals diagnosed with bipolar disorder and in identifying those who may require early intervention or preventive measures. We identified a set of 20 clinical and biological markers significantly associated with lifetime suicide attempts in bipolar disorder patients. Importantly, due to the cross-sectional design, these associations cannot establish temporal precedence or support prospective risk prediction. A key limitation is that suicide attempts were assessed retrospectively without a defined time window between predictor measurement and outcome occurrence. Future prospective validation in multi-site, multinational cohorts is required to confirm the model&#x2019;s clinical utility.</p>
</sec>
</abstract>
<kwd-group>
<kwd>bipolar disorder</kwd>
<kwd>machine learning</kwd>
<kwd>predictive models</kwd>
<kwd>suicide attempt</kwd>
<kwd>thyroid function</kwd>
</kwd-group>
<funding-group>
<funding-statement>The author(s) declared that financial support was received for this work and/or its publication. National Clinical Key Specialty Construction Project of China. The Key Laboratory of Adolescent Mental Health and Intelligent Crisis Intervention. f Anhui Province Philosophy and Social Sciences (No: SYS2023C04).</funding-statement>
</funding-group>
<counts>
<fig-count count="4"/>
<table-count count="2"/>
<equation-count count="0"/>
<ref-count count="36"/>
<page-count count="10"/>
<word-count count="4939"/>
</counts>
<custom-meta-group>
<custom-meta>
<meta-name>section-at-acceptance</meta-name>
<meta-value>Mood Disorders</meta-value>
</custom-meta>
</custom-meta-group>
</article-meta>
</front>
<body>
<sec id="s1" sec-type="intro">
<title>Introduction</title>
<p>Bipolar disorder is a severe psychiatric condition with a low diagnostic rate, characterized by recurrent episodes of depression and mania (<xref ref-type="bibr" rid="B1">1</xref>). The depressive state is marked by persistent sadness and anhedonia, and the associated negative emotions can lead to suicidal ideation and even suicide attempts. Consequently, bipolar disorder is associated with a high suicide rate. In a study of 150 patients with bipolar disorder from Southeast Asia, Biazus et&#xa0;al. reported that 35 individuals (23.3%) had attempted suicide (<xref ref-type="bibr" rid="B2">2</xref>). A meta-analysis examining the prevalence of suicide attempts in patients with bipolar disorder found that the lifetime prevalence was 33.9%. The high frequency of suicide attempts among individuals with bipolar disorder has significant implications for public health.</p>
<p>In recent decades, numerous studies have focused on predicting suicidal behavior in bipolar disorder, highlighting suicidal ideation as a prominent predictive indicator. Valtonen et&#xa0;al. observed, in a cross-sectional study involving 191 patients diagnosed with bipolar disorder, that all individuals who had attempted suicide reported experiencing suicidal ideation (<xref ref-type="bibr" rid="B3">3</xref>). Johnson et&#xa0;al. demonstrated that depression, mixed episodes, and hopelessness are predictive factors for both suicidal ideation and suicide attempts; all these factors contribute to an increased risk of suicide in bipolar disorder (<xref ref-type="bibr" rid="B4">4</xref>). Extensive literature has documented a strong association between a history of suicide attempts and subsequent suicidal behavior. Oquendo et&#xa0;al. reported that individuals with a prior suicide attempt were four times more likely to engage in future attempts (<xref ref-type="bibr" rid="B5">5</xref>). Factors such as aggression, hostility, and despair have also been identified as predictors of suicidal behavior. Despair is an independent risk factor for attempted suicide (<xref ref-type="bibr" rid="B6">6</xref>). Furthermore, studies have indicated that gender, age, family history, and childhood abuse experiences can serve as predictive factors for suicide attempts among patients with bipolar disorder (<xref ref-type="bibr" rid="B7">7</xref>, <xref ref-type="bibr" rid="B8">8</xref>).</p>
<p>In the field of machine learning&#x2014;a branch of computer science&#x2014;computers analyze given data to predict the next task at hand. Machine learning algorithms are specifically designed to learn from data and make accurate predictions (<xref ref-type="bibr" rid="B9">9</xref>). Ryu et&#xa0;al. used random forests modeling techniques to achieve a high prediction accuracy of 88.9% in predicting suicide attempts among patients with suicidal ideation; their model yielded an area under the receiver operating characteristic curve (AUC) of 0.947 (<xref ref-type="bibr" rid="B10">10</xref>). Similarly, Oh et&#xa0;al. used a customized artificial neural network classifier to predict suicide attempts in patients with depression and anxiety disorders, achieving overall accuracies of 93.7%, 90.8%, and 87.4% for detecting one-month, one-year, and lifetime suicide attempts, respectively (<xref ref-type="bibr" rid="B11">11</xref>). A machine learning study investigating cognition aimed to predict suicide risk in patients with major depressive disorder, achieving a prediction accuracy of 70.6% using XGBoost-2 (<xref ref-type="bibr" rid="B12">12</xref>).</p>
<p>Although machine learning has been widely applied to predict suicide behavior in patients with depression, studies utilizing this approach specifically for bipolar disorder remain relatively scarce. Notably, Pigoni et&#xa0;al. recently employed multimodal machine learning (clinical + neuroimaging features) to predict 12-month suicide attempts in bipolar disorder (<xref ref-type="bibr" rid="B13">13</xref>); however, biological markers&#x2014;including thyroid function and biochemical indicators&#x2014;were not incorporated into their predictive model. Other existing studies have primarily focused on using machine learning to assist in the diagnosis of bipolar disorder or to predict other disease outcomes, rather than to explicitly model suicide risk (<xref ref-type="bibr" rid="B14">14</xref>&#x2013;<xref ref-type="bibr" rid="B16">16</xref>).</p>
<p>Contemporary machine learning has advanced beyond traditional algorithms, with newer approaches demonstrating exceptional performance in modeling complex, nonlinear relationships in biomedical data. Neural networks (including deep learning) excel at capturing intricate patterns in high-dimensional clinical data, while Gaussian process regression offers advantages in uncertainty quantification, particularly for small-sample settings. Graphical techniques (e.g., Bayesian networks) can elucidate conditional dependencies among predictors, and ensemble or composite methods that hybridize multiple base learners often outperform single-algorithm approaches. For this initial study, we selected three established algorithms (gradient boosting, random forests, support vector machines) due to their robustness, interpretability, and widespread validation in clinical prediction studies&#x2014;critical considerations for translating findings into preliminary clinical insights. A pilot comparison with a shallow neural network confirmed that random forests achieved competitive performance (AUC = 0.958 vs. 0.946) while maintaining superior interpretability, justifying our model choice.</p>
<p>In this study, therefore, we build upon the emerging literature by employing machine learning methods to predict suicide attempts in patients with bipolar disorder, incorporating demographic characteristics, physiological indicators (including thyroid function), and psychometric scale scores as key predictive features. Our contribution is threefold: (1) we expand the feature space by integrating routinely available biochemical and endocrine markers; (2) we apply systematic hyper-parameter tuning and class-imbalance handling (SMOTE) to optimize model performance; and&#xa0;(3) we externally validate the best-performing algorithm (random forests) through rigorous cross-validation and calibration assessment.</p>
</sec>
<sec id="s2">
<title>Methods</title>
<sec id="s2_1">
<title>Data source</title>
<p>Data were extracted from the electronic medical record (EMR) database of Hefei Fourth People&#x2019;s Hospital, a tertiary psychiatric center in Hefei, China. Consecutive in-patients and out-patients who received an ICD-10 diagnosis of bipolar disorder (F31.x) in the Anxiety and Depression Department between January 2020 and August 2023 were screened. After excluding 87 cases with &lt; 50% completed fields or uncertain suicide-attempt history, 1,124 patients remained and constituted the final analytic sample. The study was approved by the Medical Research Ethics Committee of Hefei Fourth People&#x2019;s Hospital (Code: HFSY-IRB-YJ-KYXM-GL, 2023-046-002) and conducted in accordance with the Declaration of Helsinki. Owing to the retrospective nature of the analysis, the requirement for informed consent was waived.</p>
</sec>
<sec id="s2_2">
<title>Primary outcome</title>
<p>The primary outcome was &#x201c;lifetime suicide attempt&#x201d;, defined as any self-injurious act with explicit intent to die, documented in the structured nursing intake form and cross-validated by at least one attending psychiatrist (<xref ref-type="bibr" rid="B17">17</xref>). Cases were dichotomized as &#x201c;absent&#x201d; (0) or &#x201c;present&#x201d; (1).</p>
</sec>
<sec id="s2_3">
<title>Predictor variables and selection procedure</title>
<p>The raw data set contained 52 demographic, laboratory, and psychometric variables. To avoid data-driven over-fitting we applied a two-stage selection protocol:Pre-filter: retain variables with &lt; 20% missing values and documented in &#x2265; 80% of patients (32 variables passed). LASSO logistic regression (10-fold cross-validation, &#x3b1; min) was used to shrink coefficients and retain the 20 non-zero predictors that showed the strongest joint association with the outcome while accounting for multicollinearity (<xref ref-type="fig" rid="f1"><bold>Figure&#xa0;1</bold></xref>). The final 20 variables entered into machine-learning training are listed in <xref ref-type="table" rid="T1"><bold>Table&#xa0;1</bold></xref> and included sociodemographics (age, sex, education), thyroid panel (TSH, FT3, FT4, T3, T4), hepatic/renal indices, metabolic markers, and psychometric sub-scores (HAMD hopelessness and retardation items, HAMA psychic anxiety, etc.). Thyroid function indicators (TSH, FT3, FT4, T3, T4) were detected using chemiluminescent immunoassay with a Roche Cobas e601 analyzer; the reference range for normal TSH was 0.27-4.2 mIU/L, with hypothyroxinemia defined as TSH &lt; 0.27 mIU/L and hyperthyrotropinemia defined as TSH &gt; 4.2 mIU/L.Categorical variables were dummy-coded; continuous variables were z-scaled prior to modeling. The LASSO coefficient plot and regularization path are provided in <xref ref-type="supplementary-material" rid="SF1"><bold>Supplementary Figure S1</bold></xref>.</p>
<fig id="f1" position="float">
<label>Figure&#xa0;1</label>
<caption>
<p>Variable selection flow-chart for the final 20-predictor machine-learning model.</p>
</caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fpsyt-17-1662604-g001.tif">
<alt-text content-type="machine-generated">Flowchart depicting variable selection for machine learning using electronic medical record data. Out of fifty-two original variables, those with high missing or low recording rates are excluded. Remaining thirty-two variables undergo LASSO regression and cross-validation, identifying twenty with nonzero coefficients. Clinical applicability review further excludes non-approved variables, resulting in twenty final predictors for machine learning training. Pool of excluded variables is maintained.</alt-text>
</graphic></fig>
<table-wrap id="T1" position="float">
<label>Table&#xa0;1</label>
<caption>
<p>Association between potential risk factors for suicide attempts in the development cohort.</p>
</caption>
<table frame="hsides">
<thead>
<tr>
<th valign="middle" rowspan="2" align="left"/>
<th valign="middle" colspan="3" align="left">N (%)</th>
</tr>
<tr>
<th valign="middle" align="left">Suicide attempts (N&#xa0;=&#xa0;352)</th>
<th valign="middle" align="left">No suicide attempts (N&#xa0;=&#xa0;772)</th>
<th valign="middle" align="left"><italic>P</italic></th>
</tr>
</thead>
<tbody>
<tr>
<th valign="middle" align="left">Gender</th>
<th valign="middle" align="left"/>
<th valign="middle" align="left"/>
<th valign="middle" align="left">&lt;0.001</th>
</tr>
<tr>
<td valign="middle" align="left">Male</td>
<td valign="middle" align="left">143(40.63)</td>
<td valign="middle" align="left">426(55.18)</td>
<td valign="middle" align="left"/>
</tr>
<tr>
<td valign="middle" align="left">Female</td>
<td valign="middle" align="left">209(59.37)</td>
<td valign="middle" align="left">346(44.82)</td>
<td valign="middle" align="left"/>
</tr>
<tr>
<td valign="middle" align="left">Age</td>
<td valign="middle" align="left">33.68(13.53)</td>
<td valign="middle" align="left">34.7(12.29)</td>
<td valign="middle" align="left">&lt;0.001</td>
</tr>
<tr>
<td valign="middle" align="left">Education</td>
<td valign="middle" align="left"/>
<td valign="middle" align="left"/>
<td valign="middle" align="left">0.127</td>
</tr>
<tr>
<th valign="middle" align="left">No higher education</th>
<th valign="middle" align="left">232(65.91)</th>
<th valign="middle" align="left">471(61.01)</th>
<th valign="middle" align="left"/>
</tr>
<tr>
<td valign="middle" align="left">Highly educated</td>
<td valign="middle" align="left">120(34.09)</td>
<td valign="middle" align="left">301(38.99)</td>
<td valign="middle" align="left"/>
</tr>
<tr>
<td valign="middle" align="left">BMI</td>
<td valign="middle" align="left">23.12(4.53)</td>
<td valign="middle" align="left">23.02(4.16)</td>
<td valign="middle" align="left">&lt;0.001</td>
</tr>
<tr>
<td valign="middle" align="left">During</td>
<td valign="middle" align="left">9.37(8.55)</td>
<td valign="middle" align="left">10.38(9.06)</td>
<td valign="middle" align="left">&lt;0.001</td>
</tr>
<tr>
<th valign="middle" align="left">Family history</th>
<th valign="middle" align="left"/>
<th valign="middle" align="left"/>
<th valign="middle" align="left">0.103</th>
</tr>
<tr>
<td valign="middle" align="left">Yes</td>
<td valign="middle" align="left">33(9.38)</td>
<td valign="middle" align="left">83(10.75)</td>
<td valign="middle" align="left"/>
</tr>
<tr>
<td valign="middle" align="left">No</td>
<td valign="middle" align="left">391(90.62)</td>
<td valign="middle" align="left">689(89.25)</td>
<td valign="middle" align="left"/>
</tr>
<tr>
<th valign="middle" align="left">Body symbols</th>
<th valign="middle" align="left"/>
<th valign="middle" align="left"/>
<th valign="middle" align="left">&lt;0.001</th>
</tr>
<tr>
<td valign="middle" align="left">Yes</td>
<td valign="middle" align="left">80(22.73)</td>
<td valign="middle" align="left">51(6.61)</td>
<td valign="middle" align="left"/>
</tr>
<tr>
<td valign="middle" align="left">No</td>
<td valign="middle" align="left">272(77.27)</td>
<td valign="middle" align="left">721(93.39)</td>
<td valign="middle" align="left"/>
</tr>
<tr>
<th valign="middle" align="left">Mental symbols</th>
<th valign="middle" align="left"/>
<th valign="middle" align="left"/>
<th valign="middle" align="left">0.013</th>
</tr>
<tr>
<td valign="middle" align="left">Yes</td>
<td valign="middle" align="left">147(41.76)</td>
<td valign="middle" align="left">262(33.94)</td>
<td valign="middle" align="left"/>
</tr>
<tr>
<td valign="middle" align="left">No</td>
<td valign="middle" align="left">205(58.24)</td>
<td valign="middle" align="left">510(66.06)</td>
<td valign="middle" align="left"/>
</tr>
<tr>
<th valign="middle" align="left">Impulse behavior</th>
<th valign="middle" align="left"/>
<th valign="middle" align="left"/>
<th valign="middle" align="left">&lt;0.001</th>
</tr>
<tr>
<td valign="middle" align="left">Yes</td>
<td valign="middle" align="left">101(28.69)</td>
<td valign="middle" align="left">355(45.98)</td>
<td valign="middle" align="left"/>
</tr>
<tr>
<td valign="middle" align="left">No</td>
<td valign="middle" align="left">251(71.31)</td>
<td valign="middle" align="left">417(54.02)</td>
<td valign="middle" align="left"/>
</tr>
<tr>
<th valign="middle" align="left">Suicide ideation</th>
<th valign="middle" align="left"/>
<th valign="middle" align="left"/>
<th valign="middle" align="left">&lt;0.001</th>
</tr>
<tr>
<td valign="middle" align="left">Yes</td>
<td valign="middle" align="left">352(100)</td>
<td valign="middle" align="left">358(46.37)</td>
<td valign="middle" align="left"/>
</tr>
<tr>
<td valign="middle" align="left">No</td>
<td valign="middle" align="left">0(0)</td>
<td valign="middle" align="left">414(53.63)</td>
<td valign="middle" align="left"/>
</tr>
<tr>
<td valign="middle" align="left">T3 (nmol/L)</td>
<td valign="middle" align="left">1.27(0.4)</td>
<td valign="middle" align="left">1.46(0.45)</td>
<td valign="middle" align="left">&lt;0.001</td>
</tr>
<tr>
<td valign="middle" align="left">T4 (nmol/L)</td>
<td valign="middle" align="left">32.21(44.08)</td>
<td valign="middle" align="left">53.39(53.6)</td>
<td valign="middle" align="left">&lt;0.001</td>
</tr>
<tr>
<td valign="middle" align="left">TSH (mlU/L)</td>
<td valign="middle" align="left">2.3(2.07)</td>
<td valign="middle" align="left">2.28(1.92)</td>
<td valign="middle" align="left">&lt;0.001</td>
</tr>
<tr>
<td valign="middle" align="left">FT3 (pmol/L)</td>
<td valign="middle" align="left">3.67(1.08)</td>
<td valign="middle" align="left">4.27(1.26)</td>
<td valign="middle" align="left">&lt;0.001</td>
</tr>
<tr>
<td valign="middle" align="left">FT4 (pmol/L)</td>
<td valign="middle" align="left">4.95(6.3)</td>
<td valign="middle" align="left">8.45(7.98)</td>
<td valign="middle" align="left">&lt;0.001</td>
</tr>
<tr>
<td valign="middle" align="left">Total bilirubin</td>
<td valign="middle" align="left">10.99(6.19)</td>
<td valign="middle" align="left">11.61(7.16)</td>
<td valign="middle" align="left">&lt;0.001</td>
</tr>
<tr>
<td valign="middle" align="left">Direct bilirubin</td>
<td valign="middle" align="left">4.44(2.52)</td>
<td valign="middle" align="left">4.81(2.93)</td>
<td valign="middle" align="left">&lt;0.001</td>
</tr>
<tr>
<td valign="middle" align="left">Total protein</td>
<td valign="middle" align="left">65.35(4.56)</td>
<td valign="middle" align="left">65.62(5.84)</td>
<td valign="middle" align="left">&lt;0.001</td>
</tr>
<tr>
<td valign="middle" align="left">Albumin</td>
<td valign="middle" align="left">42.14(2.94)</td>
<td valign="middle" align="left">42.81(3.68)</td>
<td valign="middle" align="left">&lt;0.001</td>
</tr>
<tr>
<td valign="middle" align="left">Globulin</td>
<td valign="middle" align="left">23.2(3.29)</td>
<td valign="middle" align="left">23.16(3.82)</td>
<td valign="middle" align="left">&lt;0.001</td>
</tr>
<tr>
<td valign="middle" align="left">Alanine aminotransferase</td>
<td valign="middle" align="left">27.42(38.96)</td>
<td valign="middle" align="left">25.14(23.87)</td>
<td valign="middle" align="left">&lt;0.001</td>
</tr>
<tr>
<td valign="middle" align="left">Aspartate aminotransferase</td>
<td valign="middle" align="left">24.26(20.82)</td>
<td valign="middle" align="left">22.89(14.01)</td>
<td valign="middle" align="left">&lt;0.001</td>
</tr>
<tr>
<td valign="middle" align="left">Glutamyl transphthalease</td>
<td valign="middle" align="left">27.37(35.66)</td>
<td valign="middle" align="left">27.44(26.66)</td>
<td valign="middle" align="left">&lt;0.001</td>
</tr>
<tr>
<td valign="middle" align="left">Total bile acids</td>
<td valign="middle" align="left">4.27(3.6)</td>
<td valign="middle" align="left">4.39(3.6)</td>
<td valign="middle" align="left">&lt;0.001</td>
</tr>
<tr>
<td valign="middle" align="left">Total cholesterol</td>
<td valign="middle" align="left">4.21(0.88)</td>
<td valign="middle" align="left">4.16(0.98)</td>
<td valign="middle" align="left">&lt;0.001</td>
</tr>
<tr>
<td valign="middle" align="left">High-density lipoprotein</td>
<td valign="middle" align="left">1.23(0.29)</td>
<td valign="middle" align="left">1.21(0.36)</td>
<td valign="middle" align="left">&lt;0.001</td>
</tr>
<tr>
<td valign="middle" align="left">Triglycerides</td>
<td valign="middle" align="left">1.29(0.86)</td>
<td valign="middle" align="left">1.43(1.14)</td>
<td valign="middle" align="left">&lt;0.001</td>
</tr>
<tr>
<td valign="middle" align="left">Apolipoprotein A</td>
<td valign="middle" align="left">1.23(0.24)</td>
<td valign="middle" align="left">1.29(0.49)</td>
<td valign="middle" align="left">&lt;0.001</td>
</tr>
<tr>
<td valign="middle" align="left">Apolipoprotein B</td>
<td valign="middle" align="left">0.83(0.47)</td>
<td valign="middle" align="left">0.79(0.34)</td>
<td valign="middle" align="left">&lt;0.001</td>
</tr>
<tr>
<td valign="middle" align="left">Urea nitrogen</td>
<td valign="middle" align="left">4.29(1.4)</td>
<td valign="middle" align="left">4.05(1.5)</td>
<td valign="middle" align="left">&lt;0.001</td>
</tr>
<tr>
<td valign="middle" align="left">Creatinine</td>
<td valign="middle" align="left">64.86(18.8)</td>
<td valign="middle" align="left">64.41(14.95)</td>
<td valign="middle" align="left">&lt;0.001</td>
</tr>
<tr>
<td valign="middle" align="left">Uric acid</td>
<td valign="middle" align="left">357.62(114.42)</td>
<td valign="middle" align="left">337.73(115.13)</td>
<td valign="middle" align="left">&lt;0.001</td>
</tr>
<tr>
<td valign="middle" align="left">Potassium</td>
<td valign="middle" align="left">3.96(0.39)</td>
<td valign="middle" align="left">3.97(0.35)</td>
<td valign="middle" align="left">&lt;0.001</td>
</tr>
<tr>
<td valign="middle" align="left">Sodium</td>
<td valign="middle" align="left">141.78(3.42)</td>
<td valign="middle" align="left">143.36(49.17)</td>
<td valign="middle" align="left">&lt;0.001</td>
</tr>
<tr>
<td valign="middle" align="left">Chlorine</td>
<td valign="middle" align="left">105.37(2.93)</td>
<td valign="middle" align="left">105.72(2.82)</td>
<td valign="middle" align="left">&lt;0.001</td>
</tr>
<tr>
<td valign="middle" align="left">Calcium</td>
<td valign="middle" align="left">2.32(0.24)</td>
<td valign="middle" align="left">2.32(0.17)</td>
<td valign="middle" align="left">&lt;0.001</td>
</tr>
<tr>
<td valign="middle" align="left">Creatine kinase</td>
<td valign="middle" align="left">266.96(359.62)</td>
<td valign="middle" align="left">325.19(619.37)</td>
<td valign="middle" align="left">&lt;0.001</td>
</tr>
<tr>
<td valign="middle" align="left">Glucose</td>
<td valign="middle" align="left">5.06(1.12)</td>
<td valign="middle" align="left">4.98(1)</td>
<td valign="middle" align="left">&lt;0.001</td>
</tr>
<tr>
<td valign="middle" align="left">CK isoenzymes</td>
<td valign="middle" align="left">32.27(70.2)</td>
<td valign="middle" align="left">21(31.19)</td>
<td valign="middle" align="left">&lt;0.001</td>
</tr>
<tr>
<td valign="middle" align="left">Magnesium</td>
<td valign="middle" align="left">0.89(0.1)</td>
<td valign="middle" align="left">0.9(0.08)</td>
<td valign="middle" align="left">&lt;0.001</td>
</tr>
<tr>
<td valign="middle" align="left">Inorganic phosphorus determination</td>
<td valign="middle" align="left">1.2(0.17)</td>
<td valign="middle" align="left">1.2(0.19)</td>
<td valign="middle" align="left">&lt;0.001</td>
</tr>
<tr>
<td valign="middle" align="left">Social dysfunction</td>
<td valign="middle" align="left">10.43(5.06)</td>
<td valign="middle" align="left">9.7(5.3)</td>
<td valign="middle" align="left">&lt;0.001</td>
</tr>
<tr>
<td valign="middle" align="left">HAMD</td>
<td valign="middle" align="left"/>
<td valign="middle" align="left"/>
<td valign="middle" align="left"/>
</tr>
<tr>
<td valign="middle" align="left">Anxiety/Somatization</td>
<td valign="middle" align="left">5.33(3.7)</td>
<td valign="middle" align="left">3.78(3.52)</td>
<td valign="middle" align="left">&lt;0.001</td>
</tr>
<tr>
<td valign="middle" align="left">Weight loss</td>
<td valign="middle" align="left">0.47(0.72)</td>
<td valign="middle" align="left">0.31(0.61)</td>
<td valign="middle" align="left">&lt;0.001</td>
</tr>
<tr>
<td valign="middle" align="left">Cognitive disturbances</td>
<td valign="middle" align="left">4.89(3.48)</td>
<td valign="middle" align="left">3.31(3.14)</td>
<td valign="middle" align="left">&lt;0.001</td>
</tr>
<tr>
<td valign="middle" align="left">Diurnal variation</td>
<td valign="middle" align="left">0.67(1.04)</td>
<td valign="middle" align="left">0.49(0.89)</td>
<td valign="middle" align="left">&lt;0.001</td>
</tr>
<tr>
<td valign="middle" align="left">Retardation</td>
<td valign="middle" align="left">5.59(3.5)</td>
<td valign="middle" align="left">3.03(3.14)</td>
<td valign="middle" align="left">&lt;0.001</td>
</tr>
<tr>
<td valign="middle" align="left">Sleep disturbances</td>
<td valign="middle" align="left">4.49(2.61)</td>
<td valign="middle" align="left">3.65(2.86)</td>
<td valign="middle" align="left">&lt;0.001</td>
</tr>
<tr>
<td valign="middle" align="left">Hopelessness</td>
<td valign="middle" align="left">4.91(3.87)</td>
<td valign="middle" align="left">2.05(2.95)</td>
<td valign="middle" align="left">&lt;0.001</td>
</tr>
<tr>
<td valign="middle" align="left">HAMA</td>
<td valign="middle" align="left"/>
<td valign="middle" align="left"/>
<td valign="middle" align="left"/>
</tr>
<tr>
<td valign="middle" align="left">Somatic anxiety</td>
<td valign="middle" align="left">4.57(4.72)</td>
<td valign="middle" align="left">3.19(4.52)</td>
<td valign="middle" align="left">&lt;0.001</td>
</tr>
<tr>
<td valign="middle" align="left">Psychic anxiety</td>
<td valign="middle" align="left">10.68(6.16)</td>
<td valign="middle" align="left">7.02(5.22)</td>
<td valign="middle" align="left">&lt;0.001</td>
</tr>
</tbody>
</table>
</table-wrap>
</sec>
<sec id="s2_4">
<title>Missing data</title>
<p>Overall missingness was 8.6%. Missing values were imputed with the &#x201c;bagImpute&#x201d; algorithm (caret), a non-parametric bagged-tree method that preserves non-linear relations and interactions better than mean/median imputation. To assess the impact of imputation, we compared pre- and post-imputation distributions of key variables (TSH, hopelessness score, psychomotor retardation score) in <xref ref-type="supplementary-material" rid="SF1"><bold>Supplementary Table S1</bold></xref>. A sensitivity analysis using multiple imputation by chained equations (MICE) was conducted, yielding consistent model performance (RF-AUC = 0.959), confirming the robustness of our imputation approach.</p>
</sec>
<sec id="s2_5">
<title>Statistical comparisons between groups</title>
<p>Normality was rejected for all continuous markers (Shapiro&#x2013;Wilk p &lt; 0.01). Consequently, between-group differences were tested with the two-sample Kolmogorov&#x2013;Smirnov test (sensitive to both location and shape) and corroborated by Mann&#x2013;Whitney U for central tendency; categorical variables were compared with Fisher&#x2019;s exact test. Two-tailed <italic>p</italic> &lt; 0.05 indicated statistical significance.</p>
</sec>
<sec id="s2_6">
<title>Machine-learning algorithms and training protocol</title>
<p>Gradient boosting machine (GBM), random forests (RF), and support vector machine (SVM) models were used to predict suicide attempts. GBMs constitute a formidable category of machine-learning techniques, demonstrating substantial success across a diverse array of practical applications. Their efficacy lies in their adaptability to the specific requirements of each application, which enables customization such as learning with respect to various loss functions (<xref ref-type="bibr" rid="B18">18</xref>). RF is a composite machine learning algorithm formed by integrating a series of tree classifiers. Each tree contributes one vote for the prevailing class, and the amalgamation of these results yields the ultimate sorted outcome. RF models exhibit elevated classification accuracy, display resilience to outliers and noise, and consistently avoid overfitting issues (<xref ref-type="bibr" rid="B19">19</xref>). SVMs encompass support vector classifiers and support vector regressors and stand out as some of the most robust and precise techniques within the realm of widely recognized data mining algorithms (<xref ref-type="bibr" rid="B20">20</xref>).</p>
<p>Three learners were evaluated: Gradient Boosting Machine (GBM) &#x2013; implementation &#x201c;gbm&#x201d;, interaction depth 5, shrinkage 0.01, 5,000 trees; Random Forests (RF) &#x2013; ntree = 1,500, mtry = &#x221a;p, nodesize = 5; Support Vector Machine (SVM) &#x2013; radial basis kernel, cost = 4, &#x3b3; = 0.055. To counter class imbalance (31% events) we applied SMOTE (<xref ref-type="bibr" rid="B21">21</xref>)(synthetic minority over-sampling technique) within the training fold only, leaving the validation fold untouched.</p>
<p>Hyper-parameter tuning was executed through a grid search coupled with k-fold cross-validation. The grid search was specifically designed to align hyperparameters and optimize intricate problems. K-fold cross-validation is a standard approach used to transform the validation set within a training set. Typically, a grid search is conjoined with k-fold cross-validation to generate a corresponding evaluation metric and identify the optimal hyperparameters (<xref ref-type="bibr" rid="B22">22</xref>). To predict suicide attempts, hyper-parameters were optimized by grid search coupled with nested 10-fold cross-validation (repeated 10&#xd7;). Model performance was summarized across 100 hold-out folds, with discriminative performance evaluated using the area under the receiver operating characteristic curve (AUC). Calibration was assessed graphically (loess curves) and quantitatively (Hosmer&#x2013;Lemeshow test, calibration slope/intercept). All analyses were performed in R 4.3.1 using the caret, pROC, and iml packages (<xref ref-type="bibr" rid="B23">23</xref>).</p>
</sec>
<sec id="s2_7">
<title>Internal validation</title>
<p>Discrimination was quantified with Accuracy, F1 score, AUC (DeLong 95% CI), precision-recall (PR) curve, Average Precision (AP), and Brier score. Replicability was examined with 10&#xd7;10-fold cross-validation; over-fitting was ruled out because the mean AUC of the training folds (0.964) differed by &lt; 0.01 from the mean validation AUC (0.962).</p>
</sec>
<sec id="s2_8">
<title>Sensitivity analysis</title>
<p>A sensitivity analysis excluding patients with recent suicide attempts (within 6 months, n=98) was conducted to reduce reverse causality bias. A subgroup analysis restricted to euthyroid patients (n=887) was also performed to verify the stability of predictors.</p>
</sec>
</sec>
<sec id="s3" sec-type="results">
<title>Results</title>
<sec id="s3_1">
<title>Study cohort</title>
<p>Of 1,211 patients screened, 1,124 met inclusion criteria. <xref ref-type="table" rid="T1"><bold>Table&#xa0;1</bold></xref> summarizes demographic, laboratory and psychometric characteristics by suicide-attempt status. Overall missingness was 8.6% (5,049/58,448 data points). Lifetime suicide attempts were documented in 352 patients (31.3%).</p>
</sec>
<sec id="s3_2">
<title>Predictive performance (discrimination)</title>
<p>Across 100 held-out validation folds, random forests achieved the best-balanced performance: accuracy 0.938 (95% CI 0.897&#x2013;0.965), AUC 0.962 (95% CI 0.941&#x2013;0.983) and F1-score 0.854 (95% CI 0.819&#x2013;0.889). Gradient boosting showed marginally higher AUC (0.967; 95% CI 0.949&#x2013;0.984) but lower accuracy (0.920; 95% CI 0.876&#x2013;0.952) and F1 (0.828; 95% CI 0.792&#x2013;0.864). Support vector machine yielded accuracy 0.893 (95% CI 0.845&#x2013;0.930), AUC 0.956 (95% CI 0.933&#x2013;0.978) and F1 0.808 (95% CI 0.771&#x2013;0.845) (<xref ref-type="table" rid="T2"><bold>Table&#xa0;2</bold></xref> and <xref ref-type="fig" rid="f2"><bold>Figure&#xa0;2</bold></xref>). It should be noted that these high performance metrics are based on a single-center retrospective cohort, and their generalizability may be limited.</p>
<table-wrap id="T2" position="float">
<label>Table&#xa0;2</label>
<caption>
<p>Comparison of machine learning models.</p>
</caption>
<table frame="hsides">
<thead>
<tr>
<th valign="middle" align="left">Machine learning models</th>
<th valign="middle" align="left">Accuracy</th>
<th valign="middle" align="left">95% CI</th>
<th valign="middle" align="left">AUC</th>
<th valign="middle" align="left">95% CI</th>
<th valign="middle" align="left">F1-score</th>
<th valign="middle" align="left">95% CI</th>
</tr>
</thead>
<tbody>
<tr>
<td valign="middle" align="left">Gradient Boosting Machine (GBM)</td>
<td valign="middle" align="left">0.920</td>
<td valign="middle" align="left">(0.876, 0.952)</td>
<td valign="middle" align="left">0.967</td>
<td valign="middle" align="left">(0.949, 0.984)</td>
<td valign="middle" align="left">0.828</td>
<td valign="middle" align="left">(0.792, 0.864)</td>
</tr>
<tr>
<td valign="middle" align="left">Random Forest (RF)</td>
<td valign="middle" align="left">0.938</td>
<td valign="middle" align="left">(0.897, 0.965)</td>
<td valign="middle" align="left">0.962</td>
<td valign="middle" align="left">(0.941, 0.983)</td>
<td valign="middle" align="left">0.854</td>
<td valign="middle" align="left">(0.819, 0.889)</td>
</tr>
<tr>
<td valign="middle" align="left">Support Vector Machine (SVM)</td>
<td valign="middle" align="left">0.893</td>
<td valign="middle" align="left">(0.845, 0.930)</td>
<td valign="middle" align="left">0.956</td>
<td valign="middle" align="left">(0.933, 0.978)</td>
<td valign="middle" align="left">0.808</td>
<td valign="middle" align="left">(0.771, 0.845)</td>
</tr>
</tbody>
</table>
</table-wrap>
<fig id="f2" position="float">
<label>Figure&#xa0;2</label>
<caption>
<p>Receiver operating characteristic (ROC) curves for the gradient boosting machine (red), random forests (green), and the support vector machine (blue).</p>
</caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fpsyt-17-1662604-g002.tif">
<alt-text content-type="machine-generated">Receiver Operating Characteristic (ROC) curve plotted with sensitivity on the y-axis versus specificity on the x-axis, featuring three closely clustered lines in red, green, and blue above the diagonal, indicating high classification performance.</alt-text>
</graphic></fig>
</sec>
<sec id="s3_3">
<title>Calibration</title>
<p>Random-forest predictions showed excellent agreement with observed event rates: calibration slope = 1.04 (SE 0.07) and intercept = 0.02 (SE 0.03); Hosmer&#x2013;Lemeshow &#x3c7;&#xb2; = 6.12, p = 0.63, indicating no significant departure from perfect calibration (<xref ref-type="fig" rid="f3"><bold>Figure&#xa0;3</bold></xref>).</p>
<fig id="f3" position="float">
<label>Figure&#xa0;3</label>
<caption>
<p>Calibration curves of random forests.</p>
</caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fpsyt-17-1662604-g003.tif">
<alt-text content-type="machine-generated">Calibration curve line chart displaying observed average versus predicted value from zero to one on both axes, with a dashed black curve representing model calibration and a solid red diagonal line representing perfect calibration.</alt-text>
</graphic></fig>
</sec>
<sec id="s3_4">
<title>Variable importance</title>
<p>Mean Gini-index decrease across the 100 RF runs ranked the following as the five most influential predictors: Suicidal ideation (scaled importance = 100);Education level (61);HAMD hopelessness sub-score (54);HAMD psychomotor retardation sub-score (48);Thyroid-stimulating hormone (TSH) (42).The same variables occupied the top quintile in GBM and SVM models. The variable importance plot is ordered by scaled importance and grouped by domain (demographic, thyroid, psychometric) for clarity (<xref ref-type="fig" rid="f4"><bold>Figure&#xa0;4</bold></xref>).</p>
<fig id="f4" position="float">
<label>Figure&#xa0;4</label>
<caption>
<p>Variable importance of random forests.</p>
</caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fpsyt-17-1662604-g004.tif">
<alt-text content-type="machine-generated">Horizontal dot plot showing feature importance ranked for variables related to suicide ideation, education, hopelessness, and various clinical measures. Suicide ideation is the most important factor, followed by education and hopelessness.</alt-text>
</graphic></fig>
</sec>
<sec id="s3_5">
<title>Sensitivity analyses</title>
<p>Repeating the pipeline without SMOTE yielded AUCs 0.938&#x2013;0.954, confirming that oversampling did not artefactually inflate performance. Subgroup analysis restricted to euthyroid patients (n = 887) preserved the same rank-order of predictors and maintained RF-AUC &#x2265; 0.95.Excluding patients with recent suicide attempts (n=98) resulted in RF-AUC = 0.958 (95% CI 0.935&#x2013;0.981), with consistent top predictors, reducing reverse causality bias.</p>
<p>To enhance clinical interpretability, we developed a simplified risk scoring system based on these top five predictors. Each variable was categorized and assigned points according to its relative weight in a LASSO logistic regression model fitted on the original (non-SMOTE) dataset (<xref ref-type="supplementary-material" rid="SF1"><bold>Supplementary Table S4</bold></xref>): suicidal ideation (present = 3, absent = 0), hopelessness score &#x2265;9 (2 points), moderate-to-severe psychomotor retardation (2 points), education &lt;12 years (1 point), and abnormal TSH level (2 points). The total score ranged from 0 to 12, with optimal cut-offs determined via Youden&#x2019;s index yielding three risk strata: low risk (0&#x2013;3), moderate risk (4&#x2013;7), and high risk (8&#x2013;12).</p>
</sec>
</sec>
<sec id="s4" sec-type="discussion">
<title>Discussion</title>
<p>This study used machine learning to predict suicide-related risk in patients with bipolar disorder. In the study, we included demographic characteristics, physiological indicators, and psychometric scale scores. We tested the predictive performance of three learners: GBM, RF, and SVM. Although there were differences in the machine learning techniques used, it was confirmed that each machine learning technique could effectively predict suicide attempts. Five important factors were found to predict suicide in patients with bipolar disorder, including suicidal ideation, education level, two dimensions of hopelessness and retardation in HAMD, and the immune index TSH.</p>
<p>By comparing the three learners, we confirmed that RF, an integration-based machine learning learner as described above, has the best predictive accuracy. In previous studies, RF was found to be an excellent learner for predicting suicide risk. In a study on the detection of suicide risk by MPI-2 based on machine learning, the k-nearest neighbor algorithm and the RF learner were selected. RF was reported to predict suicidal ideation and suicide attempts with 92.9% and 95% accuracy, respectively (<xref ref-type="bibr" rid="B24">24</xref>). In a study using machine learning to predict suicide attempts in people with suicidal ideation, the RF showed good performance (AUC of 0.947), with an accuracy of 88.9% (<xref ref-type="bibr" rid="B10">10</xref>). In summary, RF has been proven to have excellent accuracy in predicting suicide behavior. In this study, RF also served as a good learner with high accuracy in predicting suicide attempts in patients with bipolar disorder, as well as preadolescent children with a history of suicidal ideation reporting a history of suicide attempts (<xref ref-type="bibr" rid="B25">25</xref>). In an eight-year follow-up study of individuals with affective disorders, including bipolar disorder, depression, and schizoaffective disorder, the researchers found that suicidal ideation was not a significant predictor of suicidal behavior within one year, but was significantly associated with suicide attempts over the long term (<xref ref-type="bibr" rid="B26">26</xref>). O&#x2019;Connor and Kirtley proposed the integrated motivational&#x2013;volitional (IMV) theory for suicidal behavior, which indicates that defeat and entrapment drive the emergence of suicidal ideation and that a group of factors, entitled volitional moderators (VMs), govern the transition from suicidal ideation to suicidal behavior (<xref ref-type="bibr" rid="B27">27</xref>).</p>
<p>Consistent with previous studies, suicidal ideation appears as a high predictor of suicide attempts in the RF model.</p>
<p>Education in the RF model is another predictor for suicide attempts. Previous studies have highlighted the significant relationship between low education levels and suicide attempts (<xref ref-type="bibr" rid="B28">28</xref>). This may be due to the lack of social and family support in patients with low education, which has been systematically reviewed as a risk factor for suicide attempts in bipolar disorder (<xref ref-type="bibr" rid="B29">29</xref>). The low level of education in patients with bipolar disorder may mean that the overall level of education of the family is not high, and that therefore the family lacks understanding and cannot provide support for these patients. The absence of family members may tend to lead to negative emotions and suicide attempts.</p>
<p>Hopelessness is an important factor that triggers suicide attempts and has a predictive effect on suicidal behavior (<xref ref-type="bibr" rid="B5">5</xref>). A 10-year prospective study highlighted that the level of hopelessness was the only score that distinguished participants with suicidal ideation from suicide attempts (<xref ref-type="bibr" rid="B30">30</xref>). Feelings of hopelessness were closely related to suicidal behavior one year later in patients with affective disorders (<xref ref-type="bibr" rid="B26">26</xref>). We believe that individuals may experience negative emotions and thoughts after experiencing various kinds of pain, but when they still feel hopeful about life, they will not make the final suicide attempt. Once a sense of despair arises, they will feel that any measures are meaningless and choose suicide as the only way forward. According to the three-step theory of suicide, there are four influential factors in the process from the generation of suicidal ideation to suicide attempts, which are pain, despair, connection, and suicidal ability. Hopelessness is required for the development of suicidal ideation, and pain and hopelessness are the two most common motivations for suicide attempts (<xref ref-type="bibr" rid="B31">31</xref>). However, other studies have found that between hopelessness and suicidal ideation, individuals&#x2019; attitudes towards suicide play a potential moderating role. In other words, at the level of despair, people who are more likely to commit suicide are those who think suicide is an acceptable behavior. Moreover, there seems to be a difference in gender, and the attitude towards suicide seems to have a greater impact on suicidal ideation among women (<xref ref-type="bibr" rid="B32">32</xref>). Retardation here refers to psychomotor retardation, which is specifically manifested as poor and dull brain thinking, slow body movement, and slow thinking processes. Previous studies have shown that psychomotor retardation is associated with a greater number of depressive episodes (<xref ref-type="bibr" rid="B33">33</xref>). Psychomotor delay is associated with more depressive episodes, producing negative emotions, feelings of pain, suicidal ideation, and finally stimulating individuals to commit suicide attempts.</p>
<p>TSH is also a predictor for suicide attempts in patients with bipolar disorder. The thyroid gland is the largest endocrine organ in the human body, and thyroid hormone secreted by this gland has an impact on individuals&#x2019; emotions and cognitive processes. Excessive secretion of thyroid hormone will cause excessive mood swings and may lead to emotional problems such as anxiety, irritability, and depression. In the hypothalamic&#x2013;pituitary&#x2013;thyroid axis, TSH has a regulatory effect on thyroid hormone level, which is manifested in that an increase in TSH level will promote secretion of thyroid hormone. Therefore, abnormal TSH values may be accompanied by a series of mental disorders. At the same time, the relationship between the TSH index and suicide attempts has been widely studied in other mental diseases, especially in depression. Many previous studies have shown a correlation between suicide attempts and abnormal TSH level in depressed patients. One study found that TSH in depressed patients is independently correlated with suicide attempts (<xref ref-type="bibr" rid="B34">34</xref>). Another study explored the association between TSH and suicide in people with comorbid depression and anxiety and found that patients with comorbid anxiety (MDA) who had attempted suicide had higher TSH levels (<xref ref-type="bibr" rid="B35">35</xref>). However, few studies have explored the relationship between TSH level and suicide attempts in patients with bipolar disorder. Our study found that TSH can be identified as a predictor of suicide risk in patients with bipolar disorder through machine learning.</p>
<p>While machine learning models offer powerful tools for pattern recognition, their &#x201c;black-box&#x201d; nature can limit adoption in real-world clinical practice. To bridge this gap, we derived a simplified, interpretable risk scoring system based on the top predictive features&#x2014;suicidal ideation, hopelessness, psychomotor retardation, lower educational attainment, and abnormal TSH levels&#x2014;that demonstrated excellent discrimination and calibration in internal validation. This score categorizes patients into low, moderate, and high-risk groups, providing clinicians with actionable thresholds for monitoring and early intervention.</p>
<p>Notably, the inclusion of TSH&#x2014;a readily available biological marker&#x2014;adds objective, quantifiable value to traditionally subjective psychometric assessments. In combination with psychological factors such as hopelessness and suicidal ideation, this integrated approach may help identify individuals who appear stable but harbor elevated biological risk. The accompanying nomogram allows for rapid visual estimation of suicide attempt risk at the point of care, even without computational tools.</p>
<p>Although this scoring system was derived from a cross-sectional sample and requires external prospective validation before routine implementation, it represents a practical step toward translating complex machine learning findings into clinically usable instruments. Future studies should evaluate whether using such a tool improves risk assessment accuracy, clinician decision-making, and ultimately, patient outcomes.</p>
<p>It is important to acknowledge the limitations of this study. The cross-sectional design means that the model captures associations rather than true predictive relationships, and the high performance metrics may be influenced by the single-center retrospective nature of the data. External validation in diverse populations is essential to confirm the generalizability of the findings.</p>
</sec>
<sec id="s5" sec-type="conclusions">
<title>Conclusions</title>
<p>We developed and internally validated a parsimonious, yet robust, machine-learning model that quantifies lifetime suicide-attempt risk in adult patients with bipolar disorder by using routinely available demographic, endocrine and psychometric variables. Random forests achieved excellent discrimination (AUC 0.962) and calibration (slope 1.04, intercept 0.02), outperforming gradient boosting and support vector machine algorithms. Suicidal ideation, education level, hopelessness, psychomotor retardation and thyroid-stimulating hormone emerged as the top predictors, all of which are clinically actionable and can be captured within a single outpatient visit.</p>
<p>The model is ready for prospective implementation studies in psychiatric hospitals and community clinics to test its ability to flag high-risk individuals who might benefit from enhanced monitoring, safety-planning and early intervention. Integration into electronic medical record systems could facilitate automated risk alerts without additional staff burden.</p>
<p>While our model achieved high discrimination (AUC = 0.962), clinicians should be cautioned that this performance reflects cross-sectional associations rather than true predictive ability. The retrospective assessment of lifetime suicide attempts means that biomarker measurements may reflect consequences rather than causes of suicidal behavior. This model should not be used for individual risk prediction in clinical practice until validated in prospective cohorts with temporally well-defined assessments.&#x201d; Moreover, although the high performance of the present research model partially reflects the lifetime risk of suicide attempts among local adult patients with bipolar disorder, the limitations inherent to a single-center sample may restrict its generalizability to different environments, ethnicities, nationalities, and healthcare systems. Therefore, it is recommended that future research conduct external validation in multi-center, cross-cohort settings as a prerequisite for clinical implementation.</p>
</sec>
<sec id="s6">
<title>Limitations</title>
<p>Cross-sectional design: lifetime suicide attempts were ascertained retrospectively, precluding determination of temporal directionality between predictors and outcome; Single-center, retrospective sample may limit generalizability; external validation in multi-site, ethnically diverse cohorts is required; The lack of ecological effects and the small number of events observed in the class-unbalanced data may be another limitation of the study (<xref ref-type="bibr" rid="B36">36</xref>), despite SMOTE, the event rate (31%) remains modest; rare-event correction techniques should be explored in future work; We did not capture potentially relevant factors such as childhood trauma granularity, medication adherence or recent life events; The model&#xa0;predicts lifetime rather than prospective suicide attempts; future studies should define a clear forward-looking time window (e.g., 6- or 12-month risk) and link predictions to subsequent clinical contacts.</p>
</sec>
</body>
<back>
<sec id="s7" sec-type="data-availability">
<title>Data availability statement</title>
<p>The raw data supporting the conclusions of this article will be made available by the authors, without undue reservation.</p></sec>
<sec id="s8" sec-type="ethics-statement">
<title>Ethics statement</title>
<p>The study was approved by the Medical Research Ethics Committee of Hefei Fourth People&#x2019;s Hospital (Code: HFSY-IRB-YJ-KYXM-GL, 2023-046-002). The studies were conducted in accordance with the local legislation and institutional requirements. Due to the retrospective design of the study, the requirement for written informed consent was waived.</p></sec>
<sec id="s9" sec-type="author-contributions">
<title>Author contributions</title>
<p>BZ: Data curation, Conceptualization, Writing &#x2013; review &amp; editing, Formal analysis, Writing &#x2013; original draft, Methodology. MP: Data curation, Formal analysis, Investigation, Writing &#x2013; review &amp; editing, Supervision. AW: Supervision, Writing &#x2013; review &amp; editing, Project administration. WF: Supervision, Validation, Writing &#x2013; review &amp; editing. JG: Supervision, Writing &#x2013; review &amp; editing. ZL: Investigation, Writing &#x2013; review &amp; editing, Software. XC: Writing &#x2013; review &amp; editing, Supervision, Resources, Methodology. YX: Resources, Visualization, Project administration, Validation, Writing &#x2013; review &amp; editing.</p></sec>
<sec id="s11" sec-type="COI-statement">
<title>Conflict of interest</title>
<p>The author(s) declared that this work was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.</p></sec>
<sec id="s12" sec-type="ai-statement">
<title>Generative AI statement</title>
<p>The author(s) declared that generative AI was not used in the creation of this manuscript.</p>
<p>Any alternative text (alt text) provided alongside figures in this article has been generated by Frontiers with the support of artificial intelligence and reasonable efforts have been made to ensure accuracy, including review by the authors wherever possible. If you identify any issues, please contact us.</p></sec>
<sec id="s13" sec-type="disclaimer">
<title>Publisher&#x2019;s note</title>
<p>All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.</p></sec>
<sec id="s14" sec-type="supplementary-material">
<title>Supplementary material</title>
<p>The Supplementary Material for this article can be found online at: <ext-link ext-link-type="uri" xlink:href="https://www.frontiersin.org/articles/10.3389/fpsyt.2026.1662604/full#supplementary-material">https://www.frontiersin.org/articles/10.3389/fpsyt.2026.1662604/full#supplementary-material</ext-link></p>
<supplementary-material xlink:href="DataSheet1.pdf" id="SF1" mimetype="application/pdf"><label>DATA SHEET 1</label>
<caption>
<p>Detailed baseline demographic and clinical characteristics of the 1,124 bipolar disorder patients included in the study, including stratification by lifetime suicide attempt status (attempters vs. non-attempters) and descriptive statistics (mean, standard deviation, frequency, percentage) for all collected variables.</p>
</caption></supplementary-material>
<supplementary-material xlink:href="DataSheet2.pdf" id="SF2" mimetype="application/pdf"><label>DATA SHEET 2</label>
<caption>
<p>Complete results of LASSO logistic regression for variable selection, including coefficient values, lambda selection criteria, cross-validation performance metrics, and a full list of the 20 final clinical and biological markers identified for suicide attempt risk prediction.</p>
</caption></supplementary-material>
<supplementary-material xlink:href="DataSheet3.pdf" id="SF3" mimetype="application/pdf"><label>DATA SHEET 3</label>
<caption>
<p>Comprehensive machine learning model performance metrics (accuracy, AUC, F1 score, sensitivity, specificity, precision) for random forests, gradient boosting, and support vector machines&#x2014;including full results of the sensitivity analysis (excluding recent suicide attempters) and subgroup analysis (euthyroid bipolar disorder patients).</p>
</caption></supplementary-material></sec>
<ref-list>
<title>References</title>
<ref id="B1">
<label>1</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Phillips</surname> <given-names>ML</given-names></name>
<name><surname>Kupfer</surname> <given-names>DJ</given-names></name>
</person-group>. 
<article-title>Bipolar disorder diagnosis: challenges and future directions</article-title>. <source>Lancet</source>. (<year>2013</year>) <volume>381</volume>:<page-range>1663&#x2013;71</page-range>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/S0140-6736(13)60989-7</pub-id>, PMID: <pub-id pub-id-type="pmid">23663952</pub-id>
</mixed-citation>
</ref>
<ref id="B2">
<label>2</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Biazus</surname> <given-names>TB</given-names></name>
<name><surname>Beraldi</surname> <given-names>GH</given-names></name>
<name><surname>Tokeshi</surname> <given-names>L</given-names></name>
<name><surname>Rotenberg</surname> <given-names>LS</given-names></name>
<name><surname>Dragioti</surname> <given-names>E</given-names></name>
<name><surname>Carvalho</surname> <given-names>AF</given-names></name>
<etal/>
</person-group>. 
<article-title>All-cause and cause-specific mortality among people with bipolar disorder: a large-scale systematic review and meta-analysis</article-title>. <source>Mol Psychiatry</source>. (<year>2023</year>) <volume>28</volume>:<fpage>2508</fpage>&#x2013;<lpage>24</lpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.1038/s41380-023-02109-9</pub-id>, PMID: <pub-id pub-id-type="pmid">37491460</pub-id>
</mixed-citation>
</ref>
<ref id="B3">
<label>3</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Valtonen</surname> <given-names>H</given-names></name>
<name><surname>Suominen</surname> <given-names>K</given-names></name>
<name><surname>Mantere</surname> <given-names>O</given-names></name>
<name><surname>Leppamaki</surname> <given-names>S</given-names></name>
<name><surname>Arvilommi</surname> <given-names>P</given-names></name>
<name><surname>Isometsa</surname> <given-names>ET</given-names></name>
<etal/>
</person-group>. 
<article-title>Suicidal ideation and attempts in bipolar and II disorders</article-title>. <source>J Clin Psychiatry</source>. (<year>2005</year>) <volume>66</volume>:<page-range>1456&#x2013;62</page-range>. doi:&#xa0;<pub-id pub-id-type="doi">10.4088/JCP.v66n1116</pub-id>, PMID: <pub-id pub-id-type="pmid">16420084</pub-id>
</mixed-citation>
</ref>
<ref id="B4">
<label>4</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Johnson</surname> <given-names>SL</given-names></name>
<name><surname>McMurrich</surname> <given-names>SL</given-names></name>
<name><surname>Yates</surname> <given-names>M</given-names></name>
</person-group>. 
<article-title>Suicidality in bipolar I disorder</article-title>. <source>Suicide Life Threat Behav</source>. (<year>2005</year>) <volume>35</volume>:<page-range>681&#x2013;9</page-range>. doi:&#xa0;<pub-id pub-id-type="doi">10.1521/suli.2005.35.6.681</pub-id>, PMID: <pub-id pub-id-type="pmid">16552983</pub-id>
</mixed-citation>
</ref>
<ref id="B5">
<label>5</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Oquendo</surname> <given-names>MA</given-names></name>
<name><surname>Galfalvy</surname> <given-names>H</given-names></name>
<name><surname>Russo</surname> <given-names>S</given-names></name>
<name><surname>Ellis</surname> <given-names>SP</given-names></name>
<name><surname>Grunebaum</surname> <given-names>MF</given-names></name>
<name><surname>Burke</surname> <given-names>A</given-names></name>
<etal/>
</person-group>. 
<article-title>Prospective study of clinical predictors of suicidal acts after a major depressive episode in patients with major depressive disorder or bipolar disorder</article-title>. <source>Am J Psychiatry</source>. (<year>2004</year>) <volume>161</volume>:<page-range>1433&#x2013;41</page-range>. doi:&#xa0;<pub-id pub-id-type="doi">10.1176/appi.ajp.161.8.1433</pub-id>, PMID: <pub-id pub-id-type="pmid">15285970</pub-id>
</mixed-citation>
</ref>
<ref id="B6">
<label>6</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Galfalvy</surname> <given-names>H</given-names></name>
<name><surname>Oquendo</surname> <given-names>MA</given-names></name>
<name><surname>Carballo</surname> <given-names>JJ</given-names></name>
<name><surname>Sher</surname> <given-names>L</given-names></name>
<name><surname>Grunebaum</surname> <given-names>MF</given-names></name>
<name><surname>Burke</surname> <given-names>A</given-names></name>
<etal/>
</person-group>. 
<article-title>Clinical predictors of suicidal acts after major depression in bipolar disorder: a prospective study</article-title>. <source>Bipolar Disord</source>. (<year>2006</year>) <volume>8</volume>:<page-range>586&#x2013;95</page-range>. doi:&#xa0;<pub-id pub-id-type="doi">10.1111/j.1399-5618.2006.00340.x</pub-id>, PMID: <pub-id pub-id-type="pmid">17042832</pub-id>
</mixed-citation>
</ref>
<ref id="B7">
<label>7</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Monson</surname> <given-names>ET</given-names></name>
<name><surname>Shabalin</surname> <given-names>AA</given-names></name>
<name><surname>Docherty</surname> <given-names>AR</given-names></name>
</person-group>. 
<article-title>Assessment of suicide attempt and death in bipolar affective disorder: a combined clinical and genetic approach</article-title>. <source>Transl Psychiatry</source>. (<year>2021</year>) <volume>11</volume>:<fpage>379</fpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.1038/s41398-021-01500-w</pub-id>, PMID: <pub-id pub-id-type="pmid">34234108</pub-id>
</mixed-citation>
</ref>
<ref id="B8">
<label>8</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Valtonen</surname> <given-names>HM</given-names></name>
<name><surname>Suominen</surname> <given-names>K</given-names></name>
<name><surname>Mantere</surname> <given-names>O</given-names></name>
<name><surname>Lepp&#xe4;m&#xe4;ki</surname> <given-names>S</given-names></name>
<name><surname>Arvilommi</surname> <given-names>P</given-names></name>
<name><surname>Isomets&#xe4;</surname> <given-names>ET</given-names></name>
<etal/>
</person-group>. 
<article-title>Prospective study of risk factors for attempted suicide among patients with bipolar disorder</article-title>. <source>Bipolar Disord</source>. (<year>2006</year>) <volume>8</volume>:<page-range>576&#x2013;85</page-range>. doi:&#xa0;<pub-id pub-id-type="doi">10.1111/j.1399-5618.2006.00341.x</pub-id>, PMID: <pub-id pub-id-type="pmid">17042831</pub-id>
</mixed-citation>
</ref>
<ref id="B9">
<label>9</label>
<mixed-citation publication-type="book">
<person-group person-group-type="author">
<name><surname>Choudhary</surname> <given-names>R</given-names></name>
<name><surname>Gianey</surname> <given-names>HK</given-names></name>
</person-group>. 
<article-title>Comprehensive review on supervised machine learning&#xa0;algorithms</article-title>. In: <source>2017 Int Conf Mach Learn Data Sci (MLDS)</source>. 
<publisher-name>IEEE</publisher-name> (<year>2017</year>). p. <fpage>37</fpage>&#x2013;<lpage>43</lpage>.
</mixed-citation>
</ref>
<ref id="B10">
<label>10</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Ryu</surname> <given-names>S</given-names></name>
<name><surname>Lee</surname> <given-names>H</given-names></name>
<name><surname>Lee</surname> <given-names>DK</given-names></name>
<name><surname>Kim</surname> <given-names>SW</given-names></name>
<name><surname>Kim</surname> <given-names>CE</given-names></name>
</person-group>. 
<article-title>Detection of suicide attempters among suicide ideators using machine learning</article-title>. <source>Psychiatry Investig</source>. (<year>2019</year>) <volume>16</volume>:<page-range>588&#x2013;96</page-range>. doi:&#xa0;<pub-id pub-id-type="doi">10.30773/pi.2019.06.19</pub-id>, PMID: <pub-id pub-id-type="pmid">31446686</pub-id>
</mixed-citation>
</ref>
<ref id="B11">
<label>11</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Oh</surname> <given-names>J</given-names></name>
<name><surname>Yun</surname> <given-names>K</given-names></name>
<name><surname>Hwang</surname> <given-names>JH</given-names></name>
<name><surname>Chae</surname> <given-names>JH</given-names></name>
</person-group>. 
<article-title>Classification of suicide attempts through a machine learning algorithm based on multiple systemic psychiatric scales</article-title>. <source>Front Psychiatry</source>. (<year>2017</year>) <volume>8</volume>:<elocation-id>192</elocation-id>. doi:&#xa0;<pub-id pub-id-type="doi">10.3389/fpsyt.2017.00192</pub-id>, PMID: <pub-id pub-id-type="pmid">29038651</pub-id>
</mixed-citation>
</ref>
<ref id="B12">
<label>12</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Zheng</surname> <given-names>S</given-names></name>
<name><surname>Zeng</surname> <given-names>W</given-names></name>
<name><surname>Xin</surname> <given-names>Q</given-names></name>
</person-group>. 
<article-title>Can cognition help predict suicide risk in patients with major depressive disorder? A machine learning study</article-title>. <source>BMC Psychiatry</source>. (<year>2022</year>) <volume>22</volume>:<fpage>1</fpage>&#x2013;<lpage>13</lpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.1186/s12888-022-04223-4</pub-id>, PMID: <pub-id pub-id-type="pmid">36050667</pub-id>
</mixed-citation>
</ref>
<ref id="B13">
<label>13</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Pigoni</surname> <given-names>A</given-names></name>
<name><surname>Tesic</surname> <given-names>I</given-names></name>
<name><surname>Pini</surname> <given-names>C</given-names></name>
<name><surname>Enrico</surname> <given-names>P</given-names></name>
<name><surname>Di Consoli</surname> <given-names>L</given-names></name>
<name><surname>Siri</surname> <given-names>F</given-names></name>
<etal/>
</person-group>. 
<article-title>Multimodal machine learning prediction of 12-month suicide attempts in bipolar disorder</article-title>. <source>Bipolar Disord</source>. (<year>2025</year>) <volume>27</volume>:<page-range>217&#x2013;31</page-range>. doi:&#xa0;<pub-id pub-id-type="doi">10.1111/bdi.70011</pub-id>, PMID: <pub-id pub-id-type="pmid">40052301</pub-id>
</mixed-citation>
</ref>
<ref id="B14">
<label>14</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Librenza-Garcia</surname> <given-names>D</given-names></name>
<name><surname>Kotzian</surname> <given-names>BJ</given-names></name>
<name><surname>Yang</surname> <given-names>J</given-names></name>
<name><surname>Mwangi</surname> <given-names>B</given-names></name>
<name><surname>Cao</surname> <given-names>B</given-names></name>
<name><surname>Lima</surname> <given-names>LN</given-names></name>
<etal/>
</person-group>. 
<article-title>The impact of machine learning techniques in the study of bipolar disorder: a systematic review</article-title>. <source>Neurosci Biobehav Rev</source>. (<year>2017</year>) <volume>80</volume>:<page-range>538&#x2013;54</page-range>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.neubiorev.2017.07.004</pub-id>, PMID: <pub-id pub-id-type="pmid">28728937</pub-id>
</mixed-citation>
</ref>
<ref id="B15">
<label>15</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Claude</surname> <given-names>LA</given-names></name>
<name><surname>Houenou</surname> <given-names>J</given-names></name>
<name><surname>Duchesnay</surname> <given-names>E</given-names></name>
<name><surname>Favre</surname> <given-names>P</given-names></name>
</person-group>. 
<article-title>Will machine learning applied to neuroimaging in bipolar disorder help the clinician? A critical review and methodological suggestions</article-title>. <source>Bipolar Disord</source>. (<year>2020</year>) <volume>22</volume>:<page-range>334&#x2013;55</page-range>. doi:&#xa0;<pub-id pub-id-type="doi">10.1111/bdi.12895</pub-id>, PMID: <pub-id pub-id-type="pmid">32108409</pub-id>
</mixed-citation>
</ref>
<ref id="B16">
<label>16</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Zainab</surname> <given-names>J</given-names></name>
<name><surname>Noor</surname> <given-names>A</given-names></name>
<name><surname>Al-Ansari</surname> <given-names>O</given-names></name>
<name><surname>Mousa</surname> <given-names>A</given-names></name>
<name><surname>Abd-Alrazaq</surname> <given-names>A</given-names></name>
<name><surname>Ahmed</surname> <given-names>A</given-names></name>
<etal/>
</person-group>. 
<article-title>The role of machine learning in diagnosing bipolar disorder: scoping review</article-title>. <source>J Med Internet Res</source>. (<year>2021</year>) <volume>23</volume>:<fpage>e29749</fpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.2196/29749</pub-id>, PMID: <pub-id pub-id-type="pmid">34806996</pub-id>
</mixed-citation>
</ref>
<ref id="B17">
<label>17</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Nock</surname> <given-names>MK</given-names></name>
<name><surname>Borges</surname> <given-names>G</given-names></name>
<name><surname>Bromet</surname> <given-names>EJ</given-names></name>
</person-group>. 
<article-title>Suicide and suicidal behavior</article-title>. <source>Epidemiol Rev</source>. (<year>2008</year>) <volume>30</volume>:<page-range>133&#x2013;54</page-range>. doi:&#xa0;<pub-id pub-id-type="doi">10.1093/epirev/mxn002</pub-id>, PMID: <pub-id pub-id-type="pmid">18653727</pub-id>
</mixed-citation>
</ref>
<ref id="B18">
<label>18</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Natekin</surname> <given-names>A</given-names></name>
<name><surname>Knoll</surname> <given-names>A</given-names></name>
</person-group>. 
<article-title>Gradient boosting machines: a tutorial</article-title>. <source>Front Neurorobotics</source>. (<year>2013</year>) <volume>7</volume>:<fpage>21</fpage>., PMID: <pub-id pub-id-type="pmid">24409142</pub-id>
</mixed-citation>
</ref>
<ref id="B19">
<label>19</label>
<mixed-citation publication-type="book">
<person-group person-group-type="author">
<name><surname>Liu</surname> <given-names>Y</given-names></name>
<name><surname>Wang</surname> <given-names>Y</given-names></name>
<name><surname>Zhang</surname> <given-names>J</given-names></name>
</person-group>. 
<article-title>New machine learning algorithm: random forest</article-title>. In: <source>ICICA 2012</source>. 
<publisher-name>Springer</publisher-name>, <publisher-loc>Berlin</publisher-loc> (<year>2012</year>). p. <page-range>246&#x2013;52</page-range>.
</mixed-citation>
</ref>
<ref id="B20">
<label>20</label>
<mixed-citation publication-type="book">
<person-group person-group-type="author">
<name><surname>Xue</surname> <given-names>H</given-names></name>
<name><surname>Yang</surname> <given-names>Q</given-names></name>
<name><surname>Chen</surname> <given-names>S</given-names></name>
</person-group>. 
<article-title>SVM: support vector machines</article-title>. In: <source>The Top Ten Algorithms in Data Mining</source>. 
<publisher-name>Chapman &amp; Hall/CRC</publisher-name> (<year>2009</year>). p. <fpage>37</fpage>&#x2013;<lpage>60</lpage>.
</mixed-citation>
</ref>
<ref id="B21">
<label>21</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Chawla</surname> <given-names>NV</given-names></name>
<name><surname>Bowyer</surname> <given-names>KW</given-names></name>
<name><surname>Hall</surname> <given-names>LO</given-names></name>
<name><surname>Kegelmeyer</surname> <given-names>WP</given-names></name>
</person-group>. 
<article-title>SMOTE: synthetic minority over-sampling technique</article-title>. <source>J Artif Intell Res</source>. (<year>2002</year>) <volume>16</volume>:<page-range>321&#x2013;57</page-range>. doi:&#xa0;<pub-id pub-id-type="doi">10.1613/jair.953</pub-id>
</mixed-citation>
</ref>
<ref id="B22">
<label>22</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Yan</surname> <given-names>T</given-names></name>
<name><surname>Shen</surname> <given-names>S-L</given-names></name>
<name><surname>Zhou</surname> <given-names>A</given-names></name>
<name><surname>Chen</surname> <given-names>X</given-names></name>
</person-group>. 
<article-title>Prediction of geological characteristics from shield operational parameters by integrating grid search and k-fold cross-validation into stacking classification algorithm</article-title>. <source>J Rock Mech Geotech Eng</source>. (<year>2022</year>) <volume>14</volume>:<page-range>1292&#x2013;303</page-range>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.jrmge.2022.03.002</pub-id>
</mixed-citation>
</ref>
<ref id="B23">
<label>23</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Kuhn</surname> <given-names>M</given-names></name>
</person-group>. 
<article-title>Building predictive models in R using the caret package</article-title>. <source>J Stat Software</source>. (<year>2008</year>) <volume>28</volume>:<fpage>1</fpage>&#x2013;<lpage>26</lpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.18637/jss.v028.i05</pub-id>
</mixed-citation>
</ref>
<ref id="B24">
<label>24</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Kim</surname> <given-names>S</given-names></name>
<name><surname>Lee</surname> <given-names>HK</given-names></name>
<name><surname>Lee</surname> <given-names>K</given-names></name>
</person-group>. 
<article-title>Detecting suicidal risk using MMPI-2 based on machine learning algorithm</article-title>. <source>Sci Rep</source>. (<year>2021</year>) <volume>11</volume>:<fpage>15310</fpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.1038/s41598-021-94839-5</pub-id>, PMID: <pub-id pub-id-type="pmid">34321546</pub-id>
</mixed-citation>
</ref>
<ref id="B25">
<label>25</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Lawrence</surname> <given-names>HR</given-names></name>
<name><surname>Taylor</surname> <given-names>A</given-names></name>
<name><surname>Burke</surname> <given-names>AE</given-names></name>
<name><surname>Sheehan</surname> <given-names>BP</given-names></name>
<name><surname>Levin</surname> <given-names>RY</given-names></name>
<name><surname>Walsh</surname> <given-names>RFL</given-names></name>
<etal/>
</person-group>. 
<article-title>Prevalence and correlates of suicidal ideation and suicide attempts in preadolescent children: a US population-based study</article-title>. <source>Transl Psychiatry</source>. (<year>2021</year>) <volume>11</volume>:<fpage>489</fpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.1038/s41398-021-01593-3</pub-id>, PMID: <pub-id pub-id-type="pmid">34552053</pub-id>
</mixed-citation>
</ref>
<ref id="B26">
<label>26</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Fawcett</surname> <given-names>J</given-names></name>
<name><surname>Scheftner</surname> <given-names>WA</given-names></name>
<name><surname>Fogg</surname> <given-names>L</given-names></name>
<name><surname>Clark</surname> <given-names>DC</given-names></name>
<name><surname>Young</surname> <given-names>MA</given-names></name>
<name><surname>Hedeker</surname> <given-names>D</given-names></name>
<etal/>
</person-group>. 
<article-title>Time-related predictors of suicide in major affective disorder</article-title>. <source>Am J Psychiatry</source>. (<year>1990</year>) <volume>147</volume>:<page-range>1189&#x2013;94</page-range>. doi:&#xa0;<pub-id pub-id-type="doi">10.1176/ajp.147.9.1189</pub-id>, PMID: <pub-id pub-id-type="pmid">2104515</pub-id>
</mixed-citation>
</ref>
<ref id="B27">
<label>27</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>O&#x2019;Connor</surname> <given-names>RC</given-names></name>
<name><surname>Kirtley</surname> <given-names>OJ</given-names></name>
</person-group>. 
<article-title>The integrated motivational&#x2013;volitional model of suicidal behavior</article-title>. <source>Philos Trans R Soc B</source>. (<year>2018</year>) <volume>373</volume>:<fpage>20170268</fpage>.
</mixed-citation>
</ref>
<ref id="B28">
<label>28</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Cheffi</surname> <given-names>N</given-names></name>
<name><surname>Chakroun-Walha</surname> <given-names>O</given-names></name>
<name><surname>Sellami</surname> <given-names>R</given-names></name>
<name><surname>Ouali</surname> <given-names>R</given-names></name>
<name><surname>Mnif</surname> <given-names>D</given-names></name>
<name><surname>Guermazi</surname> <given-names>F</given-names></name>
<etal/>
</person-group>. 
<article-title>Validation of the hamilton depression rating scale (HDRS) in the Tunisian dialect</article-title>. <source>Public Health</source>. (<year>2022</year>) <volume>202</volume>:<page-range>100&#x2013;5</page-range>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.puhe.2021.11.003</pub-id>, PMID: <pub-id pub-id-type="pmid">34936977</pub-id>
</mixed-citation>
</ref>
<ref id="B29">
<label>29</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Gonda</surname> <given-names>X</given-names></name>
<name><surname>Pompili</surname> <given-names>M</given-names></name>
<name><surname>Serafini</surname> <given-names>G</given-names></name>
<name><surname>Montebovi</surname> <given-names>F</given-names></name>
<name><surname>Campi</surname> <given-names>S</given-names></name>
<name><surname>Dome</surname> <given-names>P</given-names></name>
<etal/>
</person-group>. 
<article-title>Suicidal behavior in bipolar disorder: epidemiology, characteristics and major risk factors</article-title>. <source>J Affect Disord</source>. (<year>2012</year>) <volume>143</volume>:<fpage>16</fpage>&#x2013;<lpage>26</lpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.jad.2012.04.041</pub-id>, PMID: <pub-id pub-id-type="pmid">22763038</pub-id>
</mixed-citation>
</ref>
<ref id="B30">
<label>30</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Beck</surname> <given-names>AT</given-names></name>
<name><surname>Steer</surname> <given-names>RA</given-names></name>
</person-group>. 
<article-title>Clinical predictors of eventual suicide: a 5- to 10-year prospective study of suicide attempters</article-title>. <source>J Affect Disord</source>. (<year>1989</year>) <volume>17</volume>:<page-range>203&#x2013;9</page-range>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/0165-0327(89)90001-3</pub-id>, PMID: <pub-id pub-id-type="pmid">2529288</pub-id>
</mixed-citation>
</ref>
<ref id="B31">
<label>31</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Klonsky</surname> <given-names>ED</given-names></name>
<name><surname>May</surname> <given-names>AM</given-names></name>
</person-group>. 
<article-title>The three-step theory (3ST): a new theory of suicide rooted in the &#x201c;ideation-to-action&#x201d; framework</article-title>. <source>Int J Cognit Ther</source>. (<year>2015</year>) <volume>8</volume>:<page-range>114&#x2013;29</page-range>. doi:&#xa0;<pub-id pub-id-type="doi">10.1521/ijct.2015.8.2.114</pub-id>
</mixed-citation>
</ref>
<ref id="B32">
<label>32</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Gibb</surname> <given-names>BE</given-names></name>
<name><surname>Andover</surname> <given-names>MS</given-names></name>
<name><surname>Beach</surname> <given-names>SR</given-names></name>
</person-group>. 
<article-title>Suicidal ideation and attitudes toward&#xa0;suicide</article-title>.&#xa0;<source>Suicide Life Threat Behav</source>. (<year>2006</year>) <volume>36</volume>:<page-range>12&#x2013;8</page-range>. doi:&#xa0;<pub-id pub-id-type="doi">10.1521/suli.2006.36.1.12</pub-id>, PMID: <pub-id pub-id-type="pmid">16676621</pub-id>
</mixed-citation>
</ref>
<ref id="B33">
<label>33</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Calugi</surname> <given-names>S</given-names></name>
<name><surname>Cassano</surname> <given-names>GB</given-names></name>
<name><surname>Litta</surname> <given-names>A</given-names></name>
<name><surname>Rucci</surname> <given-names>P</given-names></name>
<name><surname>Benvenuti</surname> <given-names>A</given-names></name>
<name><surname>Miniati</surname> <given-names>M</given-names></name>
<etal/>
</person-group>. 
<article-title>Does psychomotor retardation define a clinically relevant phenotype of unipolar depression</article-title>? <source>J Affect Disord</source>. (<year>2011</year>) <volume>129</volume>:<fpage>296</fpage>&#x2013;<lpage>300</lpage>., PMID: <pub-id pub-id-type="pmid">20833434</pub-id>
</mixed-citation>
</ref>
<ref id="B34">
<label>34</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Peng</surname> <given-names>P</given-names></name>
<name><surname>Wang</surname> <given-names>Q</given-names></name>
<name><surname>Lang</surname> <given-names>X</given-names></name>
<name><surname>Liu</surname> <given-names>T</given-names></name>
<name><surname>Zhang</surname> <given-names>XY</given-names></name>
</person-group>. 
<article-title>Clinical symptoms, thyroid dysfunction, and metabolic disturbances in first-episode drug-na&#xef;ve major depressive disorder patients with suicide attempts: a network perspective</article-title>. <source>Front Endocrinol</source>. (<year>2023</year>) <volume>14</volume>:<elocation-id>1136806</elocation-id>. doi:&#xa0;<pub-id pub-id-type="doi">10.3389/fendo.2023.1136806</pub-id>, PMID: <pub-id pub-id-type="pmid">36909321</pub-id>
</mixed-citation>
</ref>
<ref id="B35">
<label>35</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Ye</surname> <given-names>G</given-names></name>
<name><surname>Yuan</surname> <given-names>Y</given-names></name>
<name><surname>Li</surname> <given-names>Z</given-names></name>
</person-group>. 
<article-title>Sex-differential association of suicide attempts with&#xa0;thyroid&#xa0;dysfunction in first-episode and drug-na&#xef;ve young major depressive disorder patients with comorbid anxiety</article-title>. <source>Sci Rep</source>. (<year>2023</year>) <volume>13</volume>:<fpage>13715</fpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.1038/s41598-023-40948-2</pub-id>, PMID: <pub-id pub-id-type="pmid">37608074</pub-id>
</mixed-citation>
</ref>
<ref id="B36">
<label>36</label>
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Ishwaran</surname> <given-names>H</given-names></name>
<name><surname>O&#x2019;Brien</surname> <given-names>R</given-names></name>
</person-group>. 
<article-title>Commentary: the problem of class imbalance in biomedical data</article-title>. <source>J Thorac Cardiovasc Surg</source>. (<year>2021</year>) <volume>161</volume>:<page-range>1940&#x2013;1</page-range>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.jtcvs.2020.06.052</pub-id>, PMID: <pub-id pub-id-type="pmid">32711988</pub-id>
</mixed-citation>
</ref>
</ref-list>
<fn-group>
<fn id="n1" fn-type="custom" custom-type="edited-by">
<p>Edited by: <ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/293195">Xuntao Yin</ext-link>, Guangzhou Medical University, China</p></fn>
<fn id="n2" fn-type="custom" custom-type="reviewed-by">
<p>Reviewed by: <ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/2555429">Brandt Wiskur</ext-link>, University of Oklahoma Health Sciences Center, United States</p>
<p><ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/3160548">Mobina Amanollahi</ext-link>, Washington University in St. Louis, United States</p></fn>
</fn-group>
</back>
</article>