Up to 77% of individuals who died by suicide had contact with their primary care provider within 12 months prior to their death []. Suicidal ideation is a significant risk factor for suicidal death and is an important clinical concern [-]. Screening for suicidal ideation is a standard practice in health care settings. However, a past study reported poor agreement in rating suicide risk among primary care providers []. Assessing patients’ suicide risk is challenging, especially among those who deny suicidal ideation and perceive suicide as taboo to talk about [-]. In recent years, researchers have attempted to screen suicide risk unobtrusively based on implicit language-based clues in patients’ speech [,]. A study applied a naive Bayes classifier to patients’ verbal responses in clinical interviews to detect suicide risk with an area under the curve (AUC) of 0.63 []. This line of research is supported by recent behavioral and neuroimaging studies that demonstrated a close relationship between language use and social-emotional processing [].
A systematic review has suggested that first-person singular pronouns and negative emotion words are language features of people who are suicidal []. However, first-person singular pronouns and negative emotion words are also found among those who are prone to depression [,], and first-person singular pronoun use has been proposed as a specific language marker of depression in a meta-analysis []. This result is concordant with the idea of depressive self-focus and rumination on past events, particularly on negative memories in depression. Given the overlapping language features among patients with depression and those with suicide risk, there is a need to look for language features that are specific in predicting suicide among patients with depression. Previous studies reported other linguistic features (eg, prepositions and verbs) for predicting suicide risk [,]. Another study differentiating suicide notes from depression notes and neutral blog posts found adverbs, cognitive processing words, and death words as the most significant language features of suicidality [].
Natural language processing (NLP) and machine learning (ML) have been used to detect suicide risk [,]. Previous studies have incorporated NLP and ML into suicide detection for universal screening on social media [-]. Researchers have identified explicit suicide expressions (eg, suicide notes) [] and texts written by suicidal individuals (eg, songs, poems, diaries) [], but these have mostly been searched for in social media posts and other personal documents []. Few studies have evaluated the techniques in clinical settings [,,]. This study used a text analysis approach using NLP and ML techniques for suicidal ideation detection from the words spoken by participants in clinical interviews for depression. It is hypothesized that (1) language features extracted from responses to interview questions are associated with suicidal ideation; (2) there is a difference in language features between suicidal ideation and depression; and (3) the model can contribute to more accurate suicidal ideation detection, especially among patients with depression.
This cross-sectional study was part of an ongoing digital phenotyping research project in characterizing depression with a case-control design []. Patients with lifetime major depressive disorder (MDD) were recruited from outpatient clinics in a local university-affiliated hospital. The diagnosis of any psychiatric disorder was made by the attending psychiatrist. Controls were recruited from the community. The Mini-International Neuropsychiatric Interview, version 5.0, was used to check if they had any Diagnostic and Statistical Manual of Mental Disorders, fourth edition, diagnosis []. We found that 8% (9/117) of the community sample had lifetime MDD, and these individuals were considered as cases. The diagnostic criteria for MDD included having (1) 5 or more depressive symptoms for ≥2 weeks, (2) either depressed mood or loss of interest and pleasure, (3) symptoms causing significant distress or impairment, and (4) no manic or hypomanic behavior. Participants who, at some point in their lives, had ever received a diagnosis were classified as cases of lifetime MDD. Inclusion criteria for participation were (1) being a native Cantonese speaker and (2) being a Chinese adult aged 18 to 65 years. Participants (1) with any voice, speech, and language problems; (2) with any history of psychiatric disorder other than MDD; and (3) who were incompetent to give written informed consent were excluded. The data collection was conducted between October 2020 and May 2022. This study included 197 cases and 108 controls (n=305).
Ethical ConsiderationsEthical approval was obtained from the Joint Chinese University of Hong Kong–New Territories East Cluster clinical research ethics committee (2020.492).
Clinical MeasurementsThe structured interview guide for the Hamilton Depression Rating Scale (HAMD) was adopted []. The HAMD-17 shows high interrater reliability []. The interviews were conducted by the second author (JC), who holds an MD and a PhD. Each interview took 15 to 30 minutes. We sequentially probed 14 questions on the HAMD-17 (H1 to H14) to assess depression symptoms (we rated questions H15 to H17 based on observation during the interview). Depression severity was classified as no depression (score 0-7), mild depression (8-16), and moderate to severe depression (≥17) [].
H11, which was used to assess suicide risk, asks “Since last week, have you had any thoughts that life is not worth living?” Suicide risk was rated in five progressive levels: (1) having no suicidal thoughts; (2) feeling life is not worth living; (3) having wishes to be dead, or any thoughts of possible death of self; (4) having suicidal ideation or gestures; and (5) having attempts at suicide. JC and TMHL rated H11 with high interrater reliability (κ=0.92). Discrepancies in ratings were discussed until a consensus was reached. A total of 236 of 305 participants (77%) who did not report any suicidal thoughts were classified as the nonsuicidal group. The severity of suicidal ideation ranged from passive ideation (ie, having wishes to be dead) to active ideation (ie, having suicidal thoughts and behaviors); persons with active ideation are more prone to suicide attempts and deaths than those with passive ideation []. Thus, 33 and 23 participants who felt life was not worth living and had wished to be dead, respectively, were classified as the low-suicide-risk group (18%); 12 participants and 1 participant who had suicidal thoughts and acting out behavior, respectively, were classified as the high-suicide-risk group (4%). includes verbatim quotations of the verbal responses to H11.
Feature ExtractionThe interviews were recorded and transcribed by a research assistant with a psychology background. The transcripts were checked by the first author (TMHL). As interword spacing is absent in Chinese texts (eg, “I want to kill myself” in Chinese would become “Iwanttokillmyself”), Chinese word segmentation was needed to separate words. For Chinese word segmentation, the study used a deep learning–based Chinese word segmentation engine, fastHan, which included local text samples for training and testing its segmentation model, achieving over 90% agreement with human segmentation [].
Words were translated into psychologically meaningful categories using Linguistic Inquiry and Word Count (LIWC) []. There are 71 categories in the Chinese version of LIWC []. To investigate if a language feature f existed within a verbal response, we calculated the proportion of words ri in the response that matched with any of the words cj listed in an LIWC category using the following formula:
where R= and C= denotes the collection of words in the response and the LIWC category, respectively, while m(r, c) represents checking for an exact match between r and c (which returns 1=matched or 0=not matched), and |R| denotes the number of words in the response. All the features were calculated by the proportion of words of each category relative to text length (as a percentage). Using the relative frequency minimized the confounding factor of text length in interview responses.
Statistical AnalysisAll analyses were conducted using R (version 4.2.0; R Foundation for Statistical Computing). A P value <.05 was considered statistically significant. Descriptive statistics for continuous variables are shown as means and SDs, while categorical variables are presented as numbers and percentages. Age and the number of words in interview responses were compared among the nonsuicidal, low-suicide-risk, and high-suicide-risk groups using a 1-way ANOVA, while gender and depression severity were compared with the chi-square test among the groups. The Cramér V was used to measure the associations of clinician ratings of the HAMD questions with suicide risk.
Ordinal logistic regression was performed to model the relationship between language features (predictors) and suicide risk (the outcome)—ordered in three progressive levels from (1) nonsuicidal, (2) low suicide risk, to (3) high suicide risk []. The analysis was conducted for the responses to H11 (a suicide-related question) and the responses to other questions (content without suicide disclosure). The regression models were adjusted for age, gender, and depression severity. Adjusted odds ratios (ORs) with 95% CIs were calculated as a measure of the strength of association. The ORs were standardized across the HAMD questions and visualized using a heatmap. Euclidean distance was used as the similarity measure for clustering the questions with similar language features associated with suicide risk. Bonferroni correction for multiple testing was applied.
Random forest, an ML classification technique [], was used to detect participants with suicide risk, including (1) high suicide risk and (2) any suicide risk (both low and high risk) among (1) all participants, (2) participants with lifetime MDD, (3) participants with lifetime MDD and unremitted depression (HAMD-17 score ≥8), (4) participants with lifetime MDD and remitted depression, and (5) control participants, based on language features extracted from their interview responses. All classification results were evaluated by leave-one-out cross-validation. Receiver operating characteristic curve analysis was used for analyzing the accuracy of classification results. Statistics included the AUC and 95% CI, sensitivity, and specificity of the ML classifiers. For each classifier, sensitivity and specificity at the optimal cutoff were computed.
shows the characteristics of the 3 groups, namely the nonsuicidal, low-suicide-risk, and high-suicide-risk groups. No significant age or gender differences were found among the 3 groups. Suicide risk was correlated with depression severity (V=0.45, 95% CI 0.36-0.52; P<.001). All participants in the high-suicide-risk group were depressed, of which the majority (8/13, 62%) were moderately to severely depressed. In the low-suicide-risk group, 86% (48/56) had depression. The majority (28/56, 50%) were experiencing mild depression. Only 23% (54/236) of nonsuicidal participants had depression, most of whom (46/236, 20%) had mild depression. Participants, on average, generated 387.93 (SD 349.19) words in response to all 14 interview questions. There were significant differences among the 3 groups in terms of the number of words in their interview responses. The low-suicide-risk group generated longer responses than the nonsuicidal group (P<.001) and high-suicide-risk group (P=.02). The high-suicide-risk group also uttered marginally more words compared to the nonsuicidal group (P=.05).
Table 1. Characteristics of the participants (N=305).CharacteristicsNonsuicidal (n=236)Low suicide risk (n=56)High suicide risk (n=13)P valueAge (years), mean (SD)52.63 (11.57)54.46 (11.88)51.69 (15.42).27Gender, n (%).37Female132 (56)37 (66)7 (54)Male104 (44)19 (34)6 (46)Lifetime major depressive disorder, n (%)<.001Yes133 (56)51 (91)13 (100) No103 (44)5 (8)0 (0) Depression severity, n (%)<.001None182 (77)8 (14)0 (0)Mild46 (20)28 (50)5 (38)Moderate or severe8 (3)20 (36)8 (62)Number of words in responses, mean (SD)To all questions except H11313.86 (280.60)604.57 (434.45)420.08 (187.05)<.001To H11 only7.91 (16.78)48.77 (58.96)25.62 (18.89)<.001aSeverity ranges for the Hamilton Depression Rating Scale–17: no depression (0-7); mild depression (8-16); moderate to severe depression (≥17).
bH11: Hamilton Depression Rating Scale question 11.
shows the associations of clinician ratings of the HAMD questions with suicide risk. All the ratings were associated with suicide risk (V=0.14-0.40). The clinician rating of H12 (on anxiety psychic) had the strongest association with suicide risk, whereas the rating of H8 (on insomnia late) had the weakest association with suicide risk.
Table 2. Associations of clinician ratings of the Hamilton Depression Rating Scale (HAMD) questions with suicide risk (based on H11).HAMD itemQuestion typeCramér V (95% CI)P valueH1Depressed mood0.36 (0.26-0.42)<.001H2Work and activities0.36 (0.27-0.43)<.001H3Genital symptoms0.21 (0.12-0.28)<.001H4Somatic symptoms gastrointestinal0.30 (0.21-0.37)<.001H5Loss of weight0.18 (0.08-0.25).005H6Insomnia early0.23 (0.13-0.30)<.001H7Insomnia middle0.17 (0.07-0.24).003H8Insomnia late0.14 (0.01-0.20).03H9Somatic symptoms general0.30 (0.21-0.37)<.001H10Feelings of guilt0.36 (0.26-0.43)<.001H12Anxiety psychic0.40 (0.30-0.46)<.001H13Anxiety somatic0.31 (0.22-0.38)<.001H14Hypochondriasis0.28 (0.18-0.34)<.001Associations of Suicide Risk With Language Features in H11Suicide risk was assessed by clinicians based on H11 (a suicide-related question). shows the significant associations of suicide risk with language features in verbal responses to H11. Suicide risk was positively associated with linguistic (ie, function words, verbs, adverbs, prepositions, and numbers), psychological (ie, social, cognitive, and biological process words, relativity words, death words, and fillers), and Chinese-specific categories (ie, postpositions, quantity units, multifunction words, and tense markers). After adjusting the analyses for depression severity, 11 language features remained significant. Among the 11 features, increased use of past tense markers posed the highest suicide risk. For every 1% increase in past tense markers, the odds of being more likely to have higher suicide risk (low or high suicide risk vs nonsuicidal) were multiplied 1.24 times (OR 1.24, 95% CI 1.09-1.43; P=.002).
Table 3. Significant associations of suicide risk with language features in verbal responses to H11 (Hamilton Depression Rating Scale question 11) using ordinal logistic regression.LIWC categoryNonsuicidal (n=236), mean (SD)Low suicide risk (n=56), mean (SD)High suicide risk (n=13), mean (SD)Odds ratio (95% CI)P valueOdds ratio (95% CI)P valueFunction words19.48 (22.32)42.48 (15.75)44.25 (17.64)1.05 (1.03-1.07)<.0011.04 (1.02-1.06)<.001Verbs3.30 (10.62)15.08 (10.11)21.90 (8.03)1.13 (1.09-1.16)<.0011.08 (1.05-1.11)<.001Auxiliary verbs0.39 (1.68)4.14 (7.46)5.27 (4.12)1.28 (1.18-1.40)<.0011.17 (1.08-1.28)<.001Adverbs7.10 (14.73)11.59 (9.06)11.06 (8.14)1.02 (1.00-1.04).031.02 (1.00-1.05).07Prepositions0.92 (2.85)7.07 (7.52)12.22 (10.04)1.24 (1.18-1.31)<.0011.19 (1.13-1.26)<.001Numbers0.32 (2.48)1.70 (4.72)0.48 (1.37)1.09 (1.01-1.18).021.03 (0.94-1.11).45Postpositions0.86 (3.64)3.15 (5.31)2.22 (3.58)1.10 (1.04-1.16).0021.06 (1.00-1.13).06Quantity units1.06 (4.04)3.05 (3.56)1.53 (2.54)1.09 (1.02-1.16).0091.04 (0.96-1.12).32Multifunction words1.98 (9.79)8.75 (9.70)11.11 (8.70)1.09 (1.05-1.13)<.0011.05 (1.03-1.09)<.001Tense markers0.30 (1.87)1.52 (2.88)3.09 (4.27)1.30 (1.16-1.46)<.0011.15 (1.03-1.29).01Past tense markers0.15 (1.25)1.09 (2.45)2.43 (3.99)1.40 (1.22-1.63)<.0011.24 (1.09-1.43).002Present tense markers0.00 (0.00)0.23 (0.94)0.00 (0.00)1.71 (1.08-2.90).021.07 (0.65-1.78).80Social processes0.60 (2.35)1.74 (3.12)0.39 (0.95)1.10 (1.00-1.20).040.93 (0.82-1.04).22Family0.02 (0.26)0.37 (1.10)0.00 (0.00)1.66 (1.15-2.41).0061.04 (0.70-1.54).86Cognitive processes13.89 (19.00)20.12 (14.96)18.05 (12.42)1.02 (1.00-1.03).021.01 (0.99-1.03).16Discrepancy0.94 (4.62)4.33 (7.42)5.74 (4.38)1.12 (1.06-1.19)<.0011.08 (1.03-1.14)<.001Tentative1.16 (3.96)5.41 (7.76)2.96 (2.82)1.10 (1.06-1.16)<.0011.05 (1.00-1.11).04Biological processes0.14 (0.92)1.01 (2.36)1.04 (3.10)1.34 (1.16-1.58)<.0011.04 (0.87-1.23).69Body0.09 (0.64)0.45 (1.15)0.83 (2.35)1.55 (1.21-2.02)<.0011.04 (0.77-1.41).79Health0.05 (0.37)0.56 (2.03)0.21 (0.77)1.32 (1.08-1.74).011.03 (0.83-1.32).76Relativity2.23 (6.13)9.21 (9.77)7.23 (7.26)1.09 (1.06-1.13)<.0011.05 (1.02-1.09).004Motion0.73 (3.47)2.14 (3.18)1.09 (1.79)1.08 (1.01-1.16).031.03 (0.93-1.11).55Space0.88 (3.64)2.38 (3.41)3.85 (4.41)1.12 (1.04-1.21).0021.07 (0.99-1.15).07Time1.12 (3.87)6.22 (9.16)4.03 (5.72)1.10 (1.06-1.15)<.0011.06 (1.01-1.11).01Death0.11 (1.32)0.68 (1.89)0.83 (2.35)1.27 (1.06-1.55).021.12 (0.93-1.30).18Filler0.71 (2.64)1.57 (2.80)1.57 (3.31)1.10 (1.01-1.20).031.01 (0.90-1.12).88aLIWC: Linguistic Inquiry and Word Count.
bAdjusted for age and gender.
cAdjusted for age, gender, and depression severity.
Associations of Suicide Risk With Language Features Across Other HAMD QuestionsSuicide-related language features varied across other HAMD questions (see ). Among the language features, increased use of anger words in H2 posed the highest suicide risk. For every 1% increase in anger words, the odds of being more likely to have suicide risk were multiplied 2.91 times (OR 2.91, 95% CI 1.22-8.55; P=.02). Some language features, on the other hand, were negatively associated with suicide risk. For example, increased use of feeling words (OR 0.36, 95% CI 0.12-0.82; P=.04), future tense markers (OR 0.50, 95% CI 0.23-0.84; P=.03), and anxiety words (OR 0.57, 95% CI 0.29-0.88; P=.04) when responding to H2, H8, and H13, respectively, reduced suicide risk. Overall, six language features—namely function words, auxiliary verbs, prepositions, multifunction words, cognitive process words, and discrepancy words—were found to be associated with suicide risk in 3 or more questions; these are illustrated in .
illustrates the hierarchical relationship between the HAMD questions based on the association of language features with suicide risk. Questions with similar suicide-related language features are closer and joined as clusters in the dendrogram. For instance, H10 (asking about feelings of guilt) joined together with H11 (a suicide-related question) as a cluster. While the heights reflect the similarity between the clusters, the largest difference between clusters is between the clusters of H10 and H11 vs the clusters of the other questions. Some possible clusters were observed in the dendrogram, including (1) the suicide-related cluster: H10 and H11; (2) the mood cluster: H2, H8, H1, and H12; (3) the appetite cluster: H5, H4, and H13; (4) the somatic symptom cluster: H7, H9, and H14; and (5) the sexual activity cluster: H3 and H6.
depicts the performance for detecting suicide risk based on verbal responses to the HAMD questions in the ML analysis. Based on the responses to H11 (the outcome measure), ML models were trained to identify individuals with high risk in () all participants, () those with lifetime MDD, and () those with lifetime MDD and unremitted depression (AUC 0.76-0.89; P<.001; sensitivity=0.69-0.85; specificity=0.73-0.84; ). H11 could also be used to detect suicide risk in general (including both high and low suicide risk) in () all participants, () those with lifetime MDD, and () those with lifetime MDD and unremitted depression (AUC 0.83-0.92; P<.001; sensitivity=0.77-0.84; specificity=0.78-0.84). None of the control participants (without lifetime MDD) had high suicide risk, while 3 healthy controls reported low suicide risk. Using only H11, suicide risk could be detected among control participants (AUC 0.70; P=.04; sensitivity=0.80; specificity=0.71).
Based on the responses to H14 (on hypochondriasis), ML models were trained to identify individuals with high suicide risk in (A) all participants (AUC 0.76; P<.001; sensitivity=0.69; specificity=0.70), (B) those with lifetime MDD (AUC 0.76; P<.001; sensitivity=0.77; specificity=0.77), and (C) those with lifetime MDD and unremitted depression (AUC 0.75; P=.003; sensitivity=0.69; specificity=0.69). H4, H6, H8, and H10 could also be used to detect high suicide risk. Except for H7 and H8, other questions could be used to detect suicide risk in general (including both high and low suicide risk) in (D) all participants. Based on the responses to H1, H4, H5, H9, H10, and H12, ML models identified individuals with suicide risk in (E) those with lifetime MDD.
This study aimed to provide a novel perspective on suicidal ideation detection by analyzing texts in clinician-administered, structured interviews with NLP and ML. LIWC extracts human-understandable language features without knowing the interview content and can preserve patient privacy in clinical research. The study complements previous research with social media data (over 80% of the related studies were conducted using social media texts []) by (1) incorporating clinician-rated measures as the outcome, (2) investigating texts generated for specific purposes (ie, responding to the HAMD questions), and (3) exploring the added value of text analysis to clinical practice. The findings show that significant language features extracted from verbal responses to interview questions are associated with clinician-rated suicide risk. There is a difference in language features between suicidal ideation and depression. The ML models demonstrate that using direct responses to H11 is effective in identifying participants with suicide risk. More importantly, suicide risk can also be detected with satisfactory performance even without patients’ disclosure of suicidal ideation.
Principal ResultsThe study distinguished suicidal ideation from its major confounding effect, depression, with an aim to investigate solely suicide-related language features. The use of past tense markers, verbs, and prepositions in response to a suicide-related question posed a higher risk than other language features. This finding on past tense markers is coherent with previous studies in which rumination occurred in suicidal individuals or past suicide attempts were described [,]. An increase in verbs is also found in previous research, which implies an aggravated suicide risk when suicidal intentions and thoughts become actions [,]. Prepositions are a relatively new language feature finding. This is consistent with a systematic review that analyzed 75 studies, only one of which reported increased use of prepositions of suicidal thoughts and behaviors []. In the modern Chinese language, neuroscience evidence suggests that prepositions are probably not a separate word class from verbs (the action words in a sentence) [], which are also more frequently used by suicidal people. Another explanation for prepositions as connectors of words is that they demand and convey information about location, time, or direction []. An increase in prepositions use by suicidal people when responding to a suicide-related question may highlight the existence of concrete suicide plans.
Many previous depression and suicide detection studies were conducted on social media rather than clinical interviews [,]. Social media texts freely generated by users are often nonspecific to suicide or depression []. This study analyzed participants’ responses to the HAMD questions, specifically focusing on a series of depressive symptomatologies. Results were mixed for suicide-related language features in responses to different questions. Previous studies reported a significant difference in the use of first-person singular pronouns and negative emotion words between suicidal and nonsuicidal groups [,]. This study consistently found these patterns posed a higher suicide risk: increased use of anger words on the work and activities question (H2), negative emotion words on the middle insomnia question (H7), and sadness words on the somatic symptoms question (H9). However, the increased use of first-person singular pronouns and anxiety words when responding to H5 (on the loss of weight) and H13 (on anxiety somatic), respectively, were intriguingly found to reduce suicide risk, which seems contradictory to previous studies that found these 2 categories were major language features of suicidal ideation []. It is speculated that rather than being generic, suicide-related language features appear to be more topic specific. The use of first-person singular pronouns to describe feelings and daily activities could reflect self-focus, a low level of social integration, and even suicidal rumination []. Paying more attention to oneself in the context of body weight management (in H5), on the other hand, may indicate positive self-concept and self-compassion []. Using more anxiety words (in H13) to describe the relationship between somatic symptoms and anxiety may signify a good understanding of one’s own condition.
ML on the response to H11 (the outcome measure) is, understandably, highly effective in identifying both clinical and control participants with suicide risk, which is consistent with positive findings from previous studies detecting suicide-related social media posts labeled using human annotation [,]. With AUCs up to 92%, automatic detection of suicidal ideation in clinical settings, especially among busy and primary care clinics, seems possible. Real-time feedback from the ML models during clinical interviews can potentially facilitate early detection of suicidal ideation []. The ML models can be developed with other automated techniques, including chatbot-based interviews for future screening []. Furthermore, suicide risk can be detected with satisfactory performance without participants’ disclosure of suicidal ideation or attempts (eg, in H10 on feelings of guilt and H14 on hypochondriasis), which provides new evidence on the association of language use with suicidality. In particular, while the clinician rating of H14 is not the strongest predictor for suicide risk, the responses to H14, surprisingly, generate the most powerful language clues to identify high suicide risk in the ML analysis. Verbal responses tend to provide subtle yet more objective language-based information about underlying suicidal ideation, which transcends depressive symptomatologies. The findings suggest that the investigation of suicide-related language features should be an important research topic apart from studying the clinical correlates of suicidality. The evidence strengthens the use of NLP and ML for suicidal ideation detection using implicit language-based clues, especially when health care personnel cannot identify patients’ suicide risk upon a direct suicide-related question, or when patients refuse to answer a suicide-related question.
LimitationsFirst, although we had a relatively large sample size of patients, there were few high-suicide-risk participants. The sample size of at-risk groups will be increased for a more balanced sample. Second, this study focused on a cross-sectional time frame to investigate the discriminating power of language features for suicide detection. A longitudinal study could contribute to a longer time-frame exploration of the temporal association of language use with suicidal thoughts and behaviors. Third, although the HAMD-17 showed high interrater reliability [] and high intermethod reliability [], and JC and TMHL rated H11 with high interrater reliability (κ=0.92), the reliability of the interview ratings of the rest of the HAMD questions in the current study was not assessed. H11 was used to determine whether the participants had suicide risk, while the text analysis was also conducted on the patient’s verbal responses in the interview. It is also difficult to avoid errors arising from participants’ willful denial of suicidal ideation or participants’ belief that talking about suicide is taboo. Future research may need a more comprehensive measure for the outcome of suicidality that is based on more objective benchmarks (eg, actual suicidal behaviors or history). Fourth, the current study did not compare various machine learning algorithms (eg, support vector machines, naive Bayes classifiers, and neural networks), model parameters, and feature sets to achieve the best results. The performance of suicidal ideation detection might be an underestimate. The paper also proposes future directions to use deep learning–based models, such as Bidirectional Encoder Representations from Transformers (BERT), MentalBERT, and other large language models [] to conduct comparative experiments. Finally, the language and cultural differences between the Chinese and English languages, which could create deviations among the studies, should be investigated. Chinese people seem more conservative in expressing emotions, and topics like suicide may receive media airtime but not be present in their personal lives [,]. Only rarely do Chinese or, more broadly, Asian people express personal feelings and suicidal ideation, as they commonly see these as signs of a weak personality (eg, irresponsible, fragile, impulsive, and attention-seeking), which culminates and intertwines with the social stigma of mental disorders in the general population [].
ConclusionsThe study investigated a novel perspective of using NLP and ML to analyze the texts from clinical interviews for suicidal ideation detection, which has the potential to provide more accurate and specific markers for suicide detection. Suicide risk detection is crucial groundwork for precrisis management to respond to safety concerns in automated screening and assessment. Other media such as chatbots and text-based detection have been used in many mental health applications. We hope that the enhanced suicide detection described in this study will augment and strengthen the performance of screening and assessment in the future.
This work was supported by the Health and Medical Research Fund (09203066) and a Chinese University of Hong Kong Direct Grant for Research (2021.055 and 2022.073).
None declared.
Edited by Christian Lovis; submitted 23.06.23; peer-reviewed by Tianlin Zhang, Yu Bai; final revised version received 31.07.23; accepted 23.08.23; published 01.12.23
© Tim M H Li, Jie Chen, Framenia O C Law, Chun-Tung Li, Ngan Yin Chan, Joey W Y Chan, Steven W H Chau, Yaping Liu, Shirley Xin Li, Jihui Zhang, Kwong-Sak Leung, Yun-Kwok Wing. Originally published in JMIR Medical Informatics (https://medinform.jmir.org), 1.12.2023.
This is an open-access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work, first published in JMIR Medical Informatics, is properly cited. The complete bibliographic information, a link to the original publication on https://medinform.jmir.org/, as well as this copyright and license information must be included.
Comments (0)