No retraction, correction or concern found when last checked on Oct 23, 2026.
Natural language processing applied to mental illness detection: a narrative review
Tianlin Zhang, Annika M. Schoene, Shaoxiong Ji and 1 more
npj Digital Medicine · 2022 · Review · CC BY
doi:10.1038/s41746-022-00589-7
Abstract
Mental illness is highly prevalent nowadays, constituting a major cause of distress in people’s life with impact on society’s health and well-being. Mental illness is a complex multi-factorial disease associated with individual risk factors and a variety of socioeconomic, clinical associations. In order to capture these complex associations expressed in a wide variety of textual data, including social media posts, interviews, and clinical notes, natural language processing (NLP) methods demonstrate promising improvements to empower proactive mental healthcare and assist early diagnosis. We provide a narrative review of mental illness detection using NLP in the past decade, to understand methods, trends, challenges and future directions. A total of 399 studies from 10,467 records were included. The review reveals that there is an upward trend in mental illness detection NLP research. Deep learning methods receive more attention and perform better than traditional machine learning methods. We also provide some recommendations for future studies, including the development of novel detection methods, deep learning paradigms and interpretable models.
Full text
From PubMed Central, U.S. National Library of Medicine, as current on Oct 23, 2026. Paragraph numbers are ours, so an answer can point at one.
Introduction
Mental illnesses, also called mental health disorders, are highly prevalent worldwide, and have been one of the most serious public health concerns. There are many different mental illnesses, including depression, suicidal ideation, bipolar disorder, autism spectrum disorder (ASD), anxiety disorder, schizophrenia, etc., any of which can have a negative influence on an individual’s physical health and well-being with the problem exacerbated due to Covid-19. According to the latest statistics, millions of people worldwide suffer from one or more mental disorders. If mental illness is detected at an early stage, it can be beneficial to overall disease progression and treatment.
There are different text types, in which people express their mood, such as social media messages on social media platforms, transcripts of interviews and clinical notes including the description of patients’ mental states. In recent years, natural language processing (NLP), a branch of artificial intelligence (AI) technologies, has played an essential role in supporting the analysis and management of large scale textual data and facilitating various tasks such as information extraction, sentiment analysis, emotion detection, and mental health surveillance–. Detecting mental illness from text can be cast as a text classification or sentiment analysis task, where we can leverage NLP techniques to automatically identify early indicators of mental illness to support early detection, prevention and treatment.
Existing reviews introduce mainly the computational methods for mental health illness detection, they mostly focus on specific mental illnesses (suicide–, depression–), or specific data sources (social media–, non-clinical texts). To the best of our knowledge, there is no review of NLP techniques applied to mental illness detection from textual sources recently. We present a broader scope of mental illness detection using NLP that covers a decade of research, different types of mental illness and a variety of data sources. Our review aims to provide a comprehensive overview of the latest trends and recent NLP methodologies used for text-based mental illness detection, and also points at the future challenges and directions. Our review seeks to answer the following questions:What are the main NLP trends and approaches for mental illness detection?Which features have been used for mental health detection in traditional machine learning-based models?Which neural architectures have been commonly used to detect mental illness?What are the main challenges and future directions in NLP for mental illness?
What are the main NLP trends and approaches for mental illness detection?
Which features have been used for mental health detection in traditional machine learning-based models?
Which neural architectures have been commonly used to detect mental illness?
What are the main challenges and future directions in NLP for mental illness?
Search strategy
A comprehensive search was conducted in multiple scientific databases for articles written in English and published between January 2012 and December 2021. The databases include PubMed, Scopus, Web of Science, DBLP computer science bibliography, IEEE Xplore, and ACM Digital Library.
The search query we used was based on four sets of keywords shown in Table 1. For mental illness, 15 terms were identified, related to general terms for mental health and disorders (e.g., mental disorder and mental health), and common specific mental illnesses (e.g., depression, suicide, anxiety). For data source, we searched for general terms about text types (e.g., social media, text, and notes) as well as for names of popular social media platforms, including Twitter and Reddit. The methods and detection sets refer to NLP methods used for mental illness identification.
The keywords of each sets were combined using Boolean operator “OR", and the four sets were combined using Boolean operator “AND". We conducted the searches in December 2021.
Filtering strategy
A total of 10,467 bibliographic records were retrieved from six databases, of which 7536 records were retained after removing duplication. Then, we used RobotAnalyst, a tool that minimizes the human workload involved in the screening phase of reviews, by prioritizing the most relevant articles for mental illness based on relevancy feedback and active learning,.
Each of the 7536 records was screened based on title and abstract. Records were removed if the following exclusion criteria were met: (1) the full text was not available in English; (2) the abstract was not relevant to mental illness detection; (3) the method did not use textual experimental data, but speech or image data.
After the screening process, 611 records were retained for further review. An additional manual full-text review was conducted to retain only articles focusing on the description of NLP methods only. The final inclusion criteria were established as follow:Articles must study textual data such as contents from social media, electronic health records or transcription of interviews.They must focus on NLP methods for mental illness detection, including machine learning-based methods (in this paper, the machine learning methods refer to traditional feature engineering-based machine learning) and deep learning-based methods. We exclude review and data analysis papers.They must provide a methodology contribution by (1) proposing a new feature extraction method, a neural architecture, or a novel NLP pipeline; or (2) applying the learning methods to a specific mental health detection domain or task.
Articles must study textual data such as contents from social media, electronic health records or transcription of interviews.
They must focus on NLP methods for mental illness detection, including machine learning-based methods (in this paper, the machine learning methods refer to traditional feature engineering-based machine learning) and deep learning-based methods. We exclude review and data analysis papers.
They must provide a methodology contribution by (1) proposing a new feature extraction method, a neural architecture, or a novel NLP pipeline; or (2) applying the learning methods to a specific mental health detection domain or task.
Following the full-text screening process, 399 articles were selected. The flow diagram of the article selection process is shown in Fig. 1.
Data extraction
For each selected article, we extracted the following types of metadata and other information:Year of publication.The aim of research.The dataset used, including type of mental illness (e.g., depression, suicide, and eating disorder), language, and data sources (e.g., Twitter, electronic health records (EHRs) and interviews).The NLP method (e.g., machine learning and deep learning) and types of features used (e.g., semantic, syntactic, and topic).
Year of publication.
The aim of research.
The dataset used, including type of mental illness (e.g., depression, suicide, and eating disorder), language, and data sources (e.g., Twitter, electronic health records (EHRs) and interviews).
The NLP method (e.g., machine learning and deep learning) and types of features used (e.g., semantic, syntactic, and topic).
Findings
We show in Fig. 2 the number of publications retrieved and the methods used in our review, reflecting the trends of the past 10 years. We can observe that: (1) there is an upward trend in NLP-driven mental illness detection research, suggesting the great research value and prospects for automatic mental illness detection from text (2) deep learning-based methods have increased in popularity in the last couple of years.
In the following subsections, we provide an overview of the datasets and the methods used. In section Datesets, we introduce the different types of datasets, which include different mental illness applications, languages and sources. Section NLP methods used to extract data provides an overview of the approaches and summarizes the features for NLP development.
Datasets
In order to better train mental illness detection models, reliable and accurate datasets are necessary. There are several sources from which we can collect text data related to mental health, including social media posts, screening surveys, narrative writing, interviews and EHRs. At the same time, for different detection tasks, the datasets also differ in the types of illness they focus on and language. We show a comprehensive mapping of each method with its associated application using a Sankey diagram (Fig. 3).
Data sources
Figure 4 illustrates the distribution of the different data sources. It can be seen that, among the 399 reviewed papers, social media posts (81%) constitute the majority of sources, followed by interviews (7%), EHRs (6%), screening surveys (4%), and narrative writing (2%).
Social media posts
The use of social media has become increasingly popular for people to express their emotions and thoughts. In addition, people with mental illness often share their mental states or discuss mental health issues with others through these platforms by posting text messages, photos, videos and other links. Prominent social media platforms are Twitter, Reddit, Tumblr, Chinese microblogs, and other online forums. We briefly introduce some popular social media platforms.
Twitter. Twitter is a popular social networking service with over 300 million active users monthly, in which users can post their tweets (the posts on Twitter) or retweet others’ posts. Researchers can collect tweets using available Twitter application programming interfaces (API). For example, Sinha et al. created a manually annotated dataset to identify suicidal ideation in Twitter. Hu et al. used a rule-based approach to label users’ depression status from the Twitter. However, normally Twitter does not allow the texts of downloaded tweets to be publicly shared, only the tweet identifiers—some/many of which may then disappear over time, so many datasets of actual tweets are not made publicly available.
Reddit. Reddit is also a popular social media platform for publishing posts and comments. The difference between Reddit and other data sources is that posts are grouped into different subreddits according to the topics (i.e., depression and suicide). Because of Reddit’s open policy, their datasets are publicly available. Yates et al. established a depression dataset named “Reddit Self-reported Depression Diagnosis" (RSDD), which contains about 9k depressed users and 100k control users. Similarly, CLEF risk 2019 shared task also proposed an anorexia and self-harm detection task based on the Reddit platform.
Online forums. People can discuss their mental health conditions and seek mental help from online forums (also called online communities). There are various forms of online forums, such as chat rooms, discussion rooms (recoveryourlife, endthislife). For example, Saleem et al. designed a psychological distress detection model on 512 discussion threads downloaded from an online forum for veterans. Franz et al. used the text data from TeenHelp.org, an Internet support forum, to train a self-harm detection system.
Electronic health records
EHRs, a rich source of secondary health care data, have been widely used to document patients’ historical medical records. EHRs often contain several different data types, including patients’ profile information, medications, diagnosis history, images. In addition, most EHRs related to mental illness include clinical notes written in narrative form. Therefore, it is appropriate to use NLP techniques to assist in disease diagnosis on EHRs datasets, such as suicide screening, depressive disorder identification, and mental condition prediction.
Interviews
Some work has been carried out to detect mental illness by interviewing users and then analyzing the linguistic information extracted from transcribed clinical interviews,. The main datasets include the DAIC-WoZ depression database that involves transcriptions of 142 participants, the AViD-Corpus with 48 participants, and the schizophrenic identification corpus collected from 109 participants.
Screening surveys
In order to evaluate participants’ mental health conditions, some researchers post questionnaires for clinician-patient diagnosis of patients or self-measurement. After participants are asked to fill in a survey from crowd-sourcing platforms (like Crowd Flower, Amazon’s Mechanical Turk) or online platforms, the data is collected and labeled. There are different survey contents to measure different psychiatric symptoms. For depression, the PHQ-9 (Patient Health Questionnaire) or Beck Depression Inventory (BDI) questionnaire are widely used for assessing the severity of depressive symptoms. The Scale Center for Epidemiological Studies Depression Scale (CES-D) questionnaire with 20 multiple-choice questions is also designed for testing depression. For suicide ideation, there are many questionnaires such as the Holmes-Rahe Social Readjustment Rating Scale (SRRS) or the Depressive Symptom Inventory-Suicide Subscale (DSI-SS).
Narrative writing
There are other types of texts written for specific experiments, as well as narrative texts that are not published on social media platforms, which we classify as narrative writing. For example, in one study, children were asked to write a story about a time that they had a problem or fought with other people, where researchers then analyzed their personal narrative to detect ASD. In addition, a case study on Greek poetry of the 20th century was carried out for predicting suicidal tendencies.
Types of mental illness
There are many applications for the detection of different types of mental illness, where depression (45%) and suicide (20%) account for the largest proportion; stress, anorexia, eating disorders, PTSD, bipolar disorder, anxiety, ASD and schizophrenia have corresponding datasets and have been analyzed using NLP (Fig. 5). This shows that there is a demand for NLP technology in different mental illness detection applications.
The amount of datasets in English dominates (81%), followed by datasets in Chinese (10%), Arabic (1.5%). When using non-English language datasets, the main difference lies in the pre-processing pipline, such as word segmentation, sentence splitting and other language-dependent text processing, while the methods and model architectures are language-agnostic.
Machine learning methods
Traditional machine learning methods such as support vector machine (SVM), Adaptive Boosting (AdaBoost), Decision Trees, etc. have been used for NLP downstream tasks. Figure 3 shows that 59% of the methods used for mental illness detection are based on traditional machine learning, typically following a pipeline approach of data pre-processing, feature extraction, modeling, optimization, and evaluation.
In order to train a good ML model, it is important to select the main contributing features, which also help us to find the key predictors of illness. Table 2 shows an overview of commonly used features in machine learning. We further classify these features into linguistic features, statistical features, domain knowledge features, and other auxiliary features. The most frequently used features are mainly based on basic linguistic patterns (Part-of-Speech (POS)–, Bag-of-words (BoW)–, Linguistic Inquiry and Word Count (LIWC)–) and statistics (n-gram–, term frequency-inverse document frequency (TF-IDF)–, length of sentences or passages–) because these features can be easily obtained through text processing tools and are widely used in many NLP tasks. Furthermore, emotion and topic features have been shown empirically to be effective for mental illness detection–. Domain specific ontologies, dictionaries and social attributes in social networks also have the potential to improve accuracy–. Research conducted on social media data often leverages other auxiliary features to aid detection, such as social behavioral features,, user’s profile,, or time features,.
Machine learning models have been designed based on a combination of various extracted features. The majority of the papers based on machine learning methods used supervised learning, where they described one or more methods employed to detect mental illness: SVM,–, Adaptive Boosting (AdaBoost),–, k-Nearest Neighbors (KNN),–, Decision Tree–, Random Forest,–, Logistic Model Tree (LMT),,,, Naive Bayes (NB),,,, Logistic Regression,–, XGBoost,,,, and some ensemble models combining several methods,–. The advantage of such supervised learning lies in the model’s ability to learn patterns from labeled data, thus ensuring better performance. However, labeling the large amount of data at a high quality level is time-consuming and challenging, although there are methods that help reduce the human annotation burden. Thus, we need to use other methods which do not rely on labeled data or need only a small amount of data to train a classifier.
Unsupervised learning methods to discover patterns from unlabeled data, such as clustering data,,, or by using LDA topic model. However, in most cases, we can apply these unsupervised models to extract additional features for developing supervised learning classifiers,,,. Across all papers, few papers, used semi-supervised learning (models trained from large unlabeled data as additional information), including statistical model ssToT (semi-supervised topic modeling over time) and classic semi-supervised algorithms (YATSI and LLGC).
Deep learning methods
As mentioned above, machine learning-based models rely heavily on feature engineering and feature extraction. Using deep learning frameworks allows models to capture valuable features automatically without feature engineering, which helps achieve notable improvements. Advances in deep learning methods have brought breakthroughs in many fields including computer vision, NLP, and signal processing. For the task of mental illness detection from text, deep learning techniques have recently attracted more attention and shown better performance compared to machine learning ones.
Deep learning-based frameworks mainly contain two layers: an embedding layer and a classification layer. By using an embedding layer, the inputs are embedded from sparse one-hot encoded vectors (where only one member of a vector is ‘1’, all others are ‘0’, leading to the sparsity) into dense vectors which can preserve semantic and syntactic information such that deep learning models can be better trained. There are many different embedding techniques, such as ELMo, GloVe word embedding, word2vec and contextual language encoder representations (e.g., bidirectional encoder representations from transformers (BERT) and ALBERT.
According to the structures of different classification layer’s structures, we have divided the deep learning-based methods into the following categories for this review: convolutional neural networks (CNN)-based methods (17%), recurrent neural networks (RNN)-based methods (36%), transformer-based methods (17%) and hybrid-based methods (30%) that combine multiple neural networks with different structures, as shown in Table 3.
CNN-based methods. The standard CNN structure is composed of a convolutional layer and a pooling layer, followed by a fully-connected layer. Some studies– utilized standard CNN to construct classification models, and combined other features such as LIWC, TF-IDF, BOW, and POS. In order to capture sentiment information, Rao et al. proposed a hierarchical MGL-CNN model based on CNN. Lin et al. designed a CNN framework combined with a graph model to leverage tweet content and social interaction information.
RNN-based methods. The architecture of RNNs allows previous outputs to be used as inputs, which is beneficial when using sequential data such as text. Generally, long short-term memory (LSTM) and gated recurrent (GRU) networks models that can deal with the vanishing gradient problem of the traditional RNN are effectively used in NLP field. There are many studies (e.g.,,) based on LSTM or GRU, and some of them, exploited an attention mechanism to find significant word information from text. Some also used a hierarchical attention network based on LSTM or GRU structure to better exploit the different-level semantic information,.
Moreover, many other deep learning strategies are introduced, including transfer learning, multi-task learning, reinforcement learning and multiple instance learning (MIL). Rutowski et al. made use of transfer learning to pre-train a model on an open dataset, and the results illustrated the effectiveness of pre-training,. Ghosh et al. developed a deep multi-task method that modeled emotion recognition as a primary task and depression detection as a secondary task. The experimental results showed that multi-task frameworks can improve the performance of all tasks when jointly learning. Reinforcement learning was also used in depression detection, to enable the model to pay more attention to useful information rather than noisy data by selecting indicator posts. MIL is a machine learning paradigm, which aims to learn features from bags’ labels of the training set instead of individual labels. Wongkoblap et al. used MIL to predict users with depression task,.
Transformer-based methods. Recently, transformer architectures were able to solve long-range dependencies using attention and recurrence. Wang et al. proposed the C-Attention network by using a transformer encoder block with multi-head self-attention and convolution processing. Zhang et al. also presented their TransformerRNN with multi-head self-attention. Additionally, many researchers leveraged transformer-based pre-trained language representation models, including BERT,, DistilBERT, Roberta, ALBERT, BioClinical BERT for clinical notes, XLNET, and GPT model. The usage and development of these BERT-based models prove the potential value of large-scale pre-training models in the application of mental illness detection.
Hybrid-based methods. Some methods combining several neural networks for mental illness detection have been used. For examples, the hybrid frameworks of CNN and LSTM models– are able to obtain both local features and long-dependency features, which outperform the individual CNN or LSTM classifiers used individually. Sawhney et al. proposed STATENet, a time-aware model, which contains an individual tweet transformer and a Plutchik-based emotion transformer to jointly learn the linguistic and emotional patterns. Inspired by the improved performance of using sub-emotions representations, Aragon et al. presented a deep emotion attention model which consists of sub-emotion embedding, CNN, GRU as well as an attention mechanism, and Lara et al. also proposed Deep Bag of Sub-Emotions (DeepBose) model. Furthermore, Sawhney et al. introduced the PHASE model, which learns the chronological emotional progression of a user by a new time-sensitive emotion LSTM and also Hyperbolic Graph Convolution Networks. It also learns the chronological emotional spectrum of a user by using BERT fine-tuned for emotions as well as a heterogeneous social network graph.
Evaluation metrics
Evaluation metrics are used to compare the performance of different models for mental illness detection tasks. Some tasks can be regarded as a classification problem, thus the most widely used standard evaluation metrics are Accuracy (AC), Precision (P), Recall (R), and F1-score (F1),–. Similarly, the area under the ROC curve (AUC-ROC),, is also used as a classification metric which can measure the true positive rate and false positive rate. In some studies, they can not only detect mental illness, but also score its severity,,,. Therefore, metrics of mean error (e.g., mean absolute error, mean square error, root mean squared error) and other new metrics (e.g., graded precision, graded recall, average hit rate, average closeness rate, average difference between overall depression levels), are sometimes needed to indicate the difference between the predicted severity and the actual severity in a dataset. Meanwhile, taking into account the timeliness of mental illness detection, where early detection is significant for early prevention, an error metric called early risk detection error was proposed to measure the delay in decision.
Discussion
Although promising results have been obtained using both machine and deep learning methods, several challenges remain for the mental illness detection task that require further research. Herein, we introduce some key challenges and future research directions:Data volume and quality: Most of the methods covered in this review used supervised learning models. The success of these methods is attributed to the number of training datasets available. These training datasets often require human annotation, which is usually a time-consuming and expensive process. However, in the mental illness detection task, there are not enough annotated public datasets. For training reliable models, the quality of datasets is concerning. Some datasets have annotation bias because the annotators can not confirm a definitive action has taken place in relation to a disorder (e.g., if actual suicide has occurred) and can only label them within the constraints of their predefined annotation rules. In addition, some imbalanced datasets have many negative instances (individuals without mental disorders), which is not conducive to training comprehensive and robust models. Therefore, it is important to explore how to train a detection model by using a small quantity of labeled training data or not using training data. Semi-supervised learning incorporates few labeled data and large amounts of unlabeled data into the training process, which can be used to facilitate annotation or improve classification performance when labeled data is scarce. Additionally, unsupervised methods can also be applied in mental disorders detection. For instance, unsupervised topic modeling increases the explainability of results and aids the extraction of latent features for developing further supervised models.,Performance and instability: There are some causes of model instability, including class imbalance, noisy labels, and extremely long or extremely short text samples text. Performance is not robust when training on the datasets from different data sources due to diverse writing styles and semantic heterogeneity. Thus, the performance of some detection models is not good. With the advances of deep learning techniques, various learning techniques have emerged and accelerated NLP research, such as adversarial training, contrastive learning, joint learning, reinforcement learning and transfer learning, which can also be utilized for the mental illness detection task. For example, pre-trained Transformer-based models can be transferred to anorexia detection in Spanish, and reinforcement networks can be used to find the sentence that best reflects the mental state. Other emerging techniques like attention mechanism, knowledge graph, and commonsense reasoning, can also be introduced for textual feature extraction. In addition, feature enrichment and data augmentation are useful to achieve comparable results. For example, many studies use multi-modal data resources, such as image–, and audio–, which perform better than the single-modal text-based model.Interpretability: The goal of representation learning for mental health is to understand the causes or explanatory factors of mental illness in order to boost detection performance and empower decision-making. The evaluation of a successful model does not only rely on performance, but also on its interpretability, which is significant for guiding clinicians to understand not only what has been extracted from text but the reasoning underlying some prediction–. Deep learning-based methods achieve good performance by utilizing feature extraction and complex neural network structures for illness detection. Nevertheless, they are still treated as black boxes and fail to explain the predictions. Therefore, in future work, the explainability of the deep learning models will become an important research direction.Ethical considerations: It is of greater importance to discuss ethical concerns when using mental health-related textual data, since the privacy and security of personal data is significant and health data is particularly sensitive. During the research, the researchers should follow strict protocols similar to the guidelines introduced by Bentan et al., to ensure the data is properly applied in healthcare research while protecting privacy to avoid further psychological distress. Furthermore, when using some publicly available data, researchers need to acquire ethical approvals from institutional review boards and human research ethics committees,.
Data volume and quality: Most of the methods covered in this review used supervised learning models. The success of these methods is attributed to the number of training datasets available. These training datasets often require human annotation, which is usually a time-consuming and expensive process. However, in the mental illness detection task, there are not enough annotated public datasets. For training reliable models, the quality of datasets is concerning. Some datasets have annotation bias because the annotators can not confirm a definitive action has taken place in relation to a disorder (e.g., if actual suicide has occurred) and can only label them within the constraints of their predefined annotation rules. In addition, some imbalanced datasets have many negative instances (individuals without mental disorders), which is not conducive to training comprehensive and robust models. Therefore, it is important to explore how to train a detection model by using a small quantity of labeled training data or not using training data. Semi-supervised learning incorporates few labeled data and large amounts of unlabeled data into the training process, which can be used to facilitate annotation or improve classification performance when labeled data is scarce. Additionally, unsupervised methods can also be applied in mental disorders detection. For instance, unsupervised topic modeling increases the explainability of results and aids the extraction of latent features for developing further supervised models.,
Performance and instability: There are some causes of model instability, including class imbalance, noisy labels, and extremely long or extremely short text samples text. Performance is not robust when training on the datasets from different data sources due to diverse writing styles and semantic heterogeneity. Thus, the performance of some detection models is not good. With the advances of deep learning techniques, various learning techniques have emerged and accelerated NLP research, such as adversarial training, contrastive learning, joint learning, reinforcement learning and transfer learning, which can also be utilized for the mental illness detection task. For example, pre-trained Transformer-based models can be transferred to anorexia detection in Spanish, and reinforcement networks can be used to find the sentence that best reflects the mental state. Other emerging techniques like attention mechanism, knowledge graph, and commonsense reasoning, can also be introduced for textual feature extraction. In addition, feature enrichment and data augmentation are useful to achieve comparable results. For example, many studies use multi-modal data resources, such as image–, and audio–, which perform better than the single-modal text-based model.
Interpretability: The goal of representation learning for mental health is to understand the causes or explanatory factors of mental illness in order to boost detection performance and empower decision-making. The evaluation of a successful model does not only rely on performance, but also on its interpretability, which is significant for guiding clinicians to understand not only what has been extracted from text but the reasoning underlying some prediction–. Deep learning-based methods achieve good performance by utilizing feature extraction and complex neural network structures for illness detection. Nevertheless, they are still treated as black boxes and fail to explain the predictions. Therefore, in future work, the explainability of the deep learning models will become an important research direction.
Ethical considerations: It is of greater importance to discuss ethical concerns when using mental health-related textual data, since the privacy and security of personal data is significant and health data is particularly sensitive. During the research, the researchers should follow strict protocols similar to the guidelines introduced by Bentan et al., to ensure the data is properly applied in healthcare research while protecting privacy to avoid further psychological distress. Furthermore, when using some publicly available data, researchers need to acquire ethical approvals from institutional review boards and human research ethics committees,.
There has been growing research interest in the detection of mental illness from text. Early detection of mental disorders is an important and effective way to improve mental health diagnosis. In our review, we report the latest research trends, cover different data sources and illness types, and summarize existing machine learning methods and deep learning methods used on this task.
We find that there are many applications for different data sources, mental illnesses, even languages, which shows the importance and value of the task. Our findings also indicate that deep learning methods now receive more attention and perform better than traditional machine learning methods.
We discuss some challenges and propose some future directions. In the future, the development of new methods including different learning strategies, novel deep learning paradigms, interpretable models and multi-modal methods will support mental illness detection, with an emphasis on interpretability being crucial for uptake of detection applications by clinicians.
Reporting summary
Further information on research design is available in the Nature Research Reporting Summary linked to this article.
References 239
- 1.
Rehm J, Shield KD. Global burden of disease and the impact of mental and addictive disorders. Curr. Psychiatry Rep. 2019;21:1-7.
Not in our library10.1007/s11920-019-0997-0
- 2.
- 3.
Nadkarni PM, Ohno-Machado L, Chapman WW. Natural language processing: an introduction. J. Am. Med. Inform. Assoc. 2011;18:544-551.
Not in our library10.1136/amiajnl-2011-000464
- 4.
Ive J. Generation and evaluation of artificial mental health records for natural language processing. NPJ Digital Med. 2020;3:1-9.
Not in our library10.1038/s41746-020-0267-x
- 5.
Mukherjee, S. S. et al. Natural language processing-based quantification of the mental state of psychiatric patients. Comput. Psychiatry4, 76–106 (2020).
Not in our library
- 6.
- 7.
Castillo-Sánchez G. Suicide risk assessment using machine learning and social networks: a scoping review. J. Med. Syst. 2020;44:1-15.
Not in our library10.1007/s10916-020-01669-5
- 8.
Franco-Martín MA. A systematic literature review of technologies for suicidal behavior prevention. J. Med. Syst. 2018;42:1-7.
Not in our library10.1007/s10916-018-0926-5
- 9.
Ji S. Suicidal ideation detection: a review of machine learning methods and applications. IEEE Trans. Comput. Soc. Syst. 2021;8:214-226.
Not in our library
- 10.
Giuntini FT. A review on recognizing depression in social networks: challenges and opportunities. J. Ambient Intell. Human. Comput. 2020;11:4713-4729.
Not in our library
- 11.
Mahdy, N., Magdi, D. A., Dahroug, A. & Rizka, M. A. Comparative study: different techniques to detect depression using social media. in Internet of Things-Applications and Future, pp. 441–452 (2020).
Not in our library
- 12.
Khan A, Husain MS, Khan A. Analysis of mental state of users using social media to predict depression! a survey. Int. J. Adv. Res. Comput. Sci. 2018;9:100-106.
Not in our library
- 13.
Skaik R, Inkpen D. Using social media for mental health surveillance: a review. ACM Comput. Surv. 2020;53:1-31.
Not in our library
- 14.
- 15.
Ríssola EA, Losada DE, Crestani F. A survey of computational methods for online mental state assessment on social media. ACM Trans. Comput. Healthc. 2021;2:1-31.
Not in our library
- 16.
Calvo RA, Milne DN, Hussain MS, Christensen H. Natural language processing in mental health applications using non-clinical texts. Nat. Lang. Eng. 2017;23:649-685.
Not in our library
- 17.
Przybyła P. Prioritising references for systematic reviews with robotanalyst: a user study. Res. Synth. Methods. 2018;9:470-488.
Not in our library10.1002/jrsm.1311
- 18.
- 19.
Miwa M, Thomas J, O’Mara-Eves A, Ananiadou S. Reducing systematic review workload through certainty-based screening. J. Biomed. Inform. 2014;51:242-253.
Not in our library10.1016/j.jbi.2014.06.005
- 20.
Kemp, S. Digital 2020: 3.8 billion people use social media. We Are Social30, (2020). https://wearesocial.com/uk/blog/2020/01/digital-2020-3-8-billion-people-use-social-media/.
Not in our library
- 21.
Sinha, P. P. et al. Suicidal-a multipronged approach to identify and explore suicidal ideation in twitter. In Proc. 28th ACM International Conference on Information and Knowledge Management, pp. 941–950 (2019).
Not in our library
- 22.
Hu, P. et al. Bluememo: depression analysis through twitter posts. In IJCAI, pp. 5252–5254 (2020).
Not in our library
- 23.
Golder S, Ahmed S, Norman G, Booth A. Attitudes toward the ethics of research using social media: a systematic review. J. Med. Internet Res. 2017;19:7082.
Not in our library10.2196/jmir.7082
- 24.
Yates, A., Cohan, A. & Goharian, N. Depression and self-harm risk assessment in online forums. In Proc. 2017 Conference on Empirical Methods in Natural Language Processing (2017).
Not in our library
- 25.
Naderi, N., Gobeill, J., Teodoro, D., Pasche, E. & Ruch, P. A baseline approach for early detection of signs of anorexia and self-harm in reddit posts. In CLEF (Working Notes) (2019).
Not in our library
- 26.
Saleem, S. et al. Automatic detection of psychological distress indicators in online forum posts. In Proc. 2012 Asia Pacific Signal and Information Processing Association Annual Summit and Conference, pp. 1–4 (2012).
Not in our library
- 27.
Franz PJ, Nook EC, Mair P, Nock MK. Using topic modeling to detect and describe self-injurious and related content on a large-scale digital platform. Suicide Life Threat. Behav. 2020;50:5-18.
Not in our library10.1111/sltb.12569
- 28.
Menachemi N, Collum TH. Benefits and drawbacks of electronic health record systems. Risk Manag. Healthc. Policy. 2011;4:47.
Not in our library10.2147/rmhp.s12985
- 29.
Kho AN. Practical challenges in integrating genomic data into the electronic health record. Genet. Med. 2013;15:772-778.
Not in our library10.1038/gim.2013.131
- 30.
Downs, J. et al. Detection of suicidality in adolescents with autism spectrum disorders: developing a natural language processing approach for use in electronic health records. In AMIA Annual Symposium Proceedings, vol. 2017, p. 641 (2017).
Not in our library
- 31.
Kshatriya, B. S. A. et al. Neural language models with distant supervision to identify major depressive disorder from clinical notes. Preprint at arXivhttps://arxiv.org/abs/2104.09644 (2021).
Not in our library
- 32.
Tran T, Kavuluru R. Predicting mental conditions based on “history of present illness" in psychiatric notes with deep neural networks. J. Biomed. Inform. 2017;75:138-148.
Not in our library10.1016/j.jbi.2017.06.010
- 33.
Morales, M. R. & Levitan, R. Speech vs. text: a comparative analysis of features for depression detection systems. In 2016 IEEE Spoken Language Technology Workshop (SLT), pp. 136–143 (2016).
Not in our library
- 34.
Arseniev-Koehler, A., Mozgai, S. & Scherer, S. What type of happiness are you looking for?-a closer look at detecting mental health from language. In Proc. Fifth Workshop on Computational Linguistics and Clinical Psychology: From Keyboard to Clinic, pp. 1–12 (2018).
Not in our library
- 35.
Ringeval, F. et al. Avec 2017: real-life depression, and affect recognition workshop and challenge. In Proc. 7th Annual Workshop on Audio/Visual Emotion Challenge, pp. 3–9 (2017).
Not in our library
- 36.
Valstar, M. et al. Avec 2014: 3d dimensional affect and depression recognition challenge. In Proc. 4th International Workshop on Audio/visual Emotion Challenge, pp. 3–10 (2014).
Not in our library
- 37.
Voleti, R. et al. Objective assessment of social skills using automated language analysis for identification of schizophrenia and bipolar disorder. In Proc. Interspeech, pp. 1433–1437 (2019).
Not in our library
- 38.
Tlachac, M., Toto, E. & Rundensteiner, E. You’re making me depressed: Leveraging texts from contact subsets to predict depression. In 2019 IEEE EMBS International Conference on Biomedical & Health Informatics (BHI), pp. 1–4 (2019).
Not in our library
- 39.
Stankevich, M., Smirnov, I., Kiselnikova, N. & Ushakova, A. Depression detection from social media profiles. In International Conference on Data Analytics and Management in Data Intensive Domains, pp. 181–194 (2019).
Not in our library
- 40.
Wongkoblap, A., Vadillo, M. A. & Curcin, V. A multilevel predictive model for detecting social network users with depression. In 2018 IEEE International Conference on Healthcare Informatics (ICHI), pp. 130–135 (2018).
Not in our library
Reads
Read by people on this page
None yet.
Checked or read by AI through naulon
None yet.
A person counts once a day per paper. We keep no cookie and no address: a reader is a hash that changes every day. Any month under five reads shows no number.
Are you an author?
Is this your paper?
Claim it to add your note and be paid when agents cite it. Free.