Skip to main content

A deep learning approach for identifying cancer survivors living with post-traumatic stress disorder on Twitter

Abstract

Background

Emotions after surviving cancer can be complicated. The survivors may have gained new strength to continue life, but some of them may begin to deal with complicated feelings and emotional stress due to trauma and fear of cancer recurrence. The widespread use of Twitter for socializing has been the alternative medium for data collection compared to traditional studies of mental health, which primarily depend on information taken from medical staff with their consent. These social media data, to a certain extent, reflect the users’ psychological state. However, Twitter also contains a mix of noisy and genuine tweets. The process of manually identifying genuine tweets is expensive and time-consuming.

Methods

We stream the data using cancer as a keyword to filter the tweets with cancer-free and use post-traumatic stress disorder (PTSD) related keywords to reduce the time spent on the annotation task. Convolutional Neural Network (CNN) learns the representations of the input to identify cancer survivors with PTSD.

Results

The results present that the proposed CNN can effectively identify cancer survivors with PTSD. The experiments on real-world datasets show that our model outperforms the baselines and correctly classifies the new tweets.

Conclusions

PTSD is one of the severe anxiety disorders that could affect individuals who are exposed to traumatic events, including cancer. Cancer survivors are at risk of short-term or long-term effects on physical and psycho-social well-being. Therefore, the evaluation and treatment of PTSD are essential parts of cancer survivorship care. It will act as an alarming system by detecting the PTSD presence based on users’ postings on Twitter.

Background

PTSD is a psychological disorder that occurs in some people after witnessing or experiencing traumatic events [1]. People who have suffered from war, a severe accident, a natural disaster, a sexual assault, and medical trauma are potentially at risk of developing PTSD. Almost half of the cancer fighters are diagnosed with a psychiatric disorder, with the majority of them having chronic depression [2]. Cancer diagnosis, treatments (chemotherapy and radiation), post-treatment care, and recovery could affect the patients’ psychological condition and cause anxiety or trauma. Unstable mental health among cancer survivors is hazardous because they are at high risk of self-destruction and may also harm others once they lose self-control of their behaviors [3].

The diagnostic procedure for mental illnesses is different from physical illnesses. Traditional mental illness diagnosis begins with patients’ self-reporting about unusual feelings and caregivers’ perception of the patients’ behavior to the doctor. To diagnose a patient, a doctor will conduct a physical examination, order lab tests, and perform a psychological evaluation that requires a period of observation of the symptoms. The psychological assessment will be conducted by a psychiatrist who has an extensive breadth of knowledge and experience not only in mental health but also in general medicine. This process of making a diagnosis is not easy, and it takes a lot of time and effort to find effective treatments. Thus, in this work, we want to capture the presence of PTSD symptoms in cancer survivors from online social media postings so they can have an early meeting with a doctor and receive immediate treatment to calm the stress.

Information about the user’s online activities has been used to identify several health problems in the previous work [4]. The growth of social media sites in recent years has made it a promising information source for investigating issues on mental health. For example, Twitter has a large user base with hundreds of millions of active users [5]. It has simple features that allow users to share their daily thoughts and feelings [6]. The online activities, especially postings on the timeline, may present an insight into emotional crash towards significant incidents that happened in life. Related studies have shown the potential of Twitter for detecting the early symptoms of mental illnesses [7].

Previous work in mental illness on social media aimed to examine the attitude of self- declared mentally ill patients based on their interactions with others and social aspects from their written comments and postings [8, 9]. The study conducted by De Choudhury et al. [7] used crowd-sourcing to access Twitter users who have been diagnosed with major depressive disorder by a psychiatrist. The Linguistic Inquiry Word Count (LIWC) was used to characterize linguistic styles in tweets. Most of the previous studies only focus on identifying mental illnesses in social media users generally.

In addition, some experimental procedures such as crowd-sourcing, Twitter Firehouse, manual labeling, and LIWC are expensive and time-consuming. Data collection, data pre-processing, and analysis are challenging due to the following reasons. First, there are no available techniques that can verify if a tweet contains elements about both cancer-free and PTSD. Second, the extracted information related to mental health is not fully utilized in developing psychological screening tools for cancer survivors.

To tackle these challenges, we propose a technique to classify cancer survivor and PTSD related tweets. To identify PTSD in cancer survivors, we first crawl the tweets using ‘cancer’ as a keyword. After that, we use a set of cancer survivor and PTSD keywords to filter out irrelevant tweets, which can reduce the time required for manual labeling. To create a ground truth dataset for this work, we make an effort to check the extracted tweets again manually. The primary purpose of the manual checkup is to make sure that the extracted tweets are correctly labeled as to whether the tweet contained a genuine statement of a cancer survivor with PTSD diagnosis. In this work, we used the Deep Neural Network (DNN) approach that learns to extract meaningful representations of texts and identify key features from the input dataset. The conference version of this work was previously published in [10]. More technical details on model derivation, applications, and experimental evaluations are provided in this extended paper. Specifically, we will answer the following research questions (RQs). RQ1: How to capture tweets that contain characteristics of cancer survivors living with PTSD (ground truth data collection)? RQ2: How to incorporate tweets into a deep-learning-based framework to construct a prediction model of cancer survivors living with PTSD? RQ3: How reliable is the extracted model for tweet classification of cancer survivors living with PTSD? Following these RQs, we present a framework that can automatically identify PTSD from cancer survivors based on their tweets. The major contributions of this work are summarized as follows:

  • We formally define the problem of data crawling and extracting techniques for retrieving the tweets that represent the cancer survivors with PTSD.

  • We present a framework and training the proposed CNN to identify cancer survivors living with PTSD based on phrases on Twitter.

  • We evaluate the model’s prediction performance by producing a label with associated probability for new tweets.

Related work

Researchers from diverse backgrounds, such as psychology and medical informatics, have proposed early models for detecting mental health issues. They explored different types of datasets, feature extraction approaches, and modeling methods to develop a reliable model. The physiological features, such as facial expression, vocal acoustic, blood flow, and nervous system responses can indicate the presence of a person’s current emotions [11]. Various sensor measurements in medical examination results such as electrocardiography (ECG), electroencephalography (EEG), electromyography (EMG), functional magnetic resonance imaging (fMRI), and respiratory transducer have been used to identify emotional changes in PTSD diagnosis [12]. Besides, some experts also considered speech audio, interview video, and questionnaire, in both formal and informal ways [13, 14]. Nevertheless, collecting this information with these techniques is time-consuming and labor-intensive.

The alternative approach is to crawl the public online postings on social media, which are accessible, expeditious, and provides boundless access to a broader population. Almost 60% of adults use online resources for searching and sharing information about health [15]. Compared to asking doctors or friends, people feel more open to communicate and ask questions on social media. They can also have a conversation with people with a similar background and those who are currently facing the same health concern on the forums. Previous work has shown that text posts, votes, and comments on Reddit, a popular online discussion board, can reveal early symptoms of mental health conditions [15]. In a previous study on public health, Paul and Dredze [6] showed the linguistic style of the users from their tweets. These previous studies have motivated us to use Twitter data to grasp the implicit and explicit information behind the language used by PTSD patients with a cancer history.

Cured cancer patients are often concerned about cancer recurrence, which can be even more stressful and upsetting compared to first-time diagnosis [16]. Patients reported that it is harder to decide the treatment, the side effects are more serious, and the fears of pain increase [17]. This psychological impact that may lead to PTSD problems is one of the most significant concerns in clinical oncology [18]. Receiving immediate attention to PTSD can help to improve the quality of life. Nevertheless, the lack of quantifiable data for PTSD is one of the main obstacles for making reliable diagnoses and providing effective treatment [19]. These issues have been our second research motivation to collect data for cancer survivors living with PTSD.

There are several techniques applied to uncover essential features from mental health datasets. Commonly, medical experts who conduct similar research analyze the collected dataset using statistical methods, such as t-test, chi-square tests, correlations, linear regression, and logistic regression [20,21,22]. The dataset for mental health is gathered using a questionnaire to collect sociodemographic information, clinical variables, medical comorbidity, and self-reported depression to identify mental illness signs or symptoms. The analyses report the characteristics of each item in the percentage or scale value. From there, they can identify the most correlated factors for mental health diagnosis.

Numerous analytical methods and techniques, including supervised and unsupervised learning algorithms, have been applied for monitoring mental health symptoms. Regression analysis and the support vector machine [23,24,25], decision tree, and neural network [26] performed well with high diagnostic accuracy. For the unsupervised models, a linear discriminant analysis model can generate the topics found in engagement content on social media to investigate the engagement implication on mentally ill people [27]. DNN, a deep belief network model, was trained to extract PTSD features from a speech dataset using a transfer learning approach [28]. The DNN has shown promising results in Natural Language Processing (NLP). In this work, we developed a model using the DNN approach that can learn from different levels of representation of text input. This approach can learn from the input data and has been used widely to make predictions in various areas of automatic speech recognition, image recognition, and NLP. DNN automatically learns the representations from the input data and uses them for classification [29]. In comparison, traditional machine learning requires labor-intensive feature engineering that may result in a biased set of features.

Methods

In this section, we will introduce the problem statements and the proposed framework, including feature extraction, knowledge transfer, and CNN architecture. Then, in the Experiments section, we will explain the data preparation process.

Problem statement

Problem

We consider a relation exists in n tweets with m characteristics of cancer survivors living with PTSD. Each relation between a tweet ti and characteristics pj is represented as eij = (ti, pj). In particular, in our setting, a relation is composed of textual information related to the tweet ti with characteristics of cancer survivors living with PTSD pj. Also, we assume that each tweet is associated with a label L(ti) = 1 if the tweet belongs to cancer survivor living with PTSD, otherwise L(ti) = 0. Throughout this paper, we will use italic characters x for scalars, bold characters h for vectors, and bold capital characters W for matrices.

Goal

We aim to actively explore the cancer survivors living with PTSD on Twitter. In particular, given a tweet containing characteristics of cancer survivors living with PTSD E = {eij = (ti, pj)}, our goal is to produce a prediction \( \hat{L}\left({t}_i\right)\in \left[0,1\right] \) for each tweet and its probability score si.

The proposed framework for classifying tweets about cancer survivors living with PTSD

Figure 1 presents our proposed framework on classifying tweets about cancer survivors living with PTSD using CNN model. It involves two central parts. First, we extract a set of particular lexicons that are frequently mentioned by sufferers from previous studies on depression, which relates to PTSD. Second, the extracted lexicons are then used to capture tweets that contain PTSD symptoms in the cancer survivors dataset. The detailed process of our proposed framework will be explained in three subsections: (1) feature extraction, (2) knowledge transfer, and (3) CNN architecture.

Fig. 1
figure 1

The overview of our proposed framework for classifying tweets about cancer survivors living with PTSD using CNN model

Feature extraction

Feature extraction, also known as variable selection, aims to discover a small amount of valuable information that can best represent the whole large dataset. This process requires specific methods of extraction to be applied to the input data to create an accurate prediction model. The top section of Fig. 1 shows the overview of previous studies related to predicting depression on social media [7]. The crowd-sourcing approach has been employed to identify written postings, whether they are depression positive or depression negative.

Next, they used LIWC, a text analysis tool, to perceive the characteristics of linguistic style in both groups. It employed to count the psychological expression lexicon in the tweets and assess the proportions of words used in several linguistic categories. The given comprehensive list produced by the tool will automatically present the most frequently used lexicon by depressed people, and statistical methods are applied to visualize the analysis results. Table 1 shows the depression lexicon.

Table 1 The depression lexicon

Knowledge transfer

In this part, knowledge transfer can be interpreted as a task that uses depression lexicon in developing our PTSD positive dataset. This approach is similar to the transfer learning method in which the pre-trained models are used to reduce training time and to increase the performance of the model. Depression and PTSD often co-occur. Almost all PTSD patients also have a presence of depression in clinical and epidemiological samples. This co-occurrence reflects overlapping symptoms in both types of mental disorders [30]. The word ‘cancer’ is strongly correlated to negative emotions such as mortality, fear, and stigma [31]. The definition of PTSD in our context is a failure to recover from a traumatic event of cancer. Thus, any expression of negative sentiment related to cancer in a tweet posted by cancer survivor is considered as PTSD. Even though there is no existing PTSD lexicon available, we could use the depression lexicon as a proxy to remove irrelevant tweets. We first used the depression lexicon to labeled our ground truth. To ensure labelling accuracy, we manually reviewed these tweets to make sure they indeed represent cancer survivors with PTSD symptoms. Thus, we opted to utilize the depression lexicon taken from previous work to identify PTSD tweets to answer our RQ1.

The lower section of Fig. 1 presents our proposed framework to identify cancer survivors with PTSD. We crawled the raw dataset using ‘cancer’ as a keyword through Twitter’s Application Programming Interface (API) in a period of 3 months from August 2019–October 2019. We conducted the extraction process in two steps using two sets of keywords. First, we created the cancer survivor dataset using related hash-tags and terms such as ‘cancer survivor’, ‘cancer-free’, ‘I had cancer’, ‘post-cancer’, ‘survive from cancer’, and ‘free from cancer’. Second, we used the depression features from Table 1 to filter out tweets that are unrelated to PTSD signals. Next, in the annotation task, we checked the tweets manually to make sure the extracted tweets are correctly identified. The extraction process helped us save lots of time for the annotation task. The total data has decreased from 900,000 to only 5000 after we conducted the extraction process and the annotation task. Also, we added the word ‘PTSD’ in the Symptoms category to capture the word PTSD in tweets. Next, the extracted tweets were fed into CNN algorithms in the modeling phase.

CNN architecture

The architecture of our proposed CNN model is inspired by [32] for sentiment analysis of the text. We adopted one convolutional layer during network configuration for cancer survivors with PTSD tweets classification, as displayed in Fig. 2. The specific CNN configuration for classifying cancer survivors living with PTSD based on tweets has answered our RQ2. We trained the CNN with the embedding layer. It requires specifying the vocabulary size, the size of the real-valued vector space, and the maximum length of words in input tweets. For convolutional feature maps, we used word embedding with 200-dimension for text representation. Thirty-two filters were applied by referring to the conservative setting for word processing, with a kernel size of 8, and with a Rectified Linear Unit (ReLU) activation function. Followed by a pooling layer, the filters will generate feature maps and reduce the output by half. The last layer uses a sigmoid activation function to output a boolean, i.e., positive and negative, in the tweets based on the concatenation of the previous vectors. Then, the extracted model is saved for later evaluation. The following subsections present the critical elements involved during network configuration.

Fig. 2
figure 2

The CNN architecture to classify tweets posted by cancer survivors living with PTSD

Text representation

After the data cleaning process, we applied the embedding layer that is initialized with random weights. It learned an embedding for all of the words in the training dataset. The first step embeds the vocabulary file V to check the validity of the tokens in tweets.

Each input tweet is presented as a sequence of individual word tokens: [t1,. .., tn] where n denotes the total number of tokens in the tweet. Tokens are represented by one-hot vectors t R× d to look up word embeddings T Rd × |V |. For every input tweet s, we built a string of words matrix S Rd × |s|, where every single column i represents a word embedding ti of position i in a string. The CNN applies multiple configurations to the input string of words matrix S using convolution, non-linear activation, and pooling operations. It learns how to capture and to reconstruct features of individual tokens in a given tweet from word embeddings into higher-level concepts.

Convolutional feature maps

The purpose of the convolutional layer is to extract meaningful patterns from the input dataset using a number of filters. During convolutional operation, the input matrix s R× |s| and a filter F Rd × m of the same dimensionality d with width m will produce a new vector of c R|s| + m1, where each function is computed as follows:

$$ {\boldsymbol{c}}_i={\left(\boldsymbol{S}\ast \boldsymbol{F}\right)}_i=\sum \limits_{k,j}{\left({\boldsymbol{S}}_{\Big[i-m+1:i}\bigotimes \boldsymbol{F}\right)}_{kj,} $$
(1)

where is the element-wise multiplication and S[:i − m + 1:i] is a matrix slice with m size along with the columns. From Fig. 2, we can see that the filter overlays across the row vectors in the dimension table of S, producing a vector c R|s| − m + 1 as the output. Each component ci is the result of computing an element-wise product between a row slice of S and a filter matrix F, which is then summed up to obtain a single value. To grab more features and to form richer representation from the dataset, a series of filter F Rn × d × m overlays the sentence matrix S and produces a feature map matrix C Rn × |s| − m + 1.

Activation functions

After the convolution step, we applied ReLU activation defined as max(0, x), which is the simplest non-linear activation function α() on the hidden layers. It has a lot of advantages. For example, it can generate a good result in a short time by reducing the training time for a large network.

Pooling

The output from the convolutional layer with ReLU activation function will be passed to the pooling layer. The goal of pooling is to control overfitting by combining the information and reducing the spatial size of the representation. In our model, we use max pooling to get the maximum value. It operates on columns of the feature map matrix C and returns the largest value: pool(ci): R|s| + mn − 1 → R.

The convolutional layer utilizes the activation function, and the pooling layer acts as a non- linear feature extractor. Given that multiple feature maps are used in parallel to process the input, CNN can build rich feature representations of the data. The output of the convolutional and pooling layers are passed to a fully connected sigmoid layer. The main reason for using a sigmoid function is that it pushes the output to be between 0 and 1. Since the likelihood of any class exists only between the range of 0 and 1, sigmoid is appropriate for this setting.

Experiment

We conducted the experiments to evaluate the proposed framework for classifying cancer survivors with PTSD diagnosis from tweets. First, we briefly describe the experiment setting and the dataset preparation process. Second, we introduce the baselines methods. Third, we report the experimental performances. Finally, we discuss our findings.

Experiment settings

In these experiments, the dataset with PTSD positive represents the diagnosed group, while PTSD negative represents the control group. For the diagnosed group, we retrieved tweets from users who publicly stated that they survived cancer and had PTSD symptoms. To construct the PTSD negative group, we mixed the tweets posted by cancer survivors with positive sentiment and tweets from the Kaggle dataset. We made use of tweets from the ‘Twitter User Gender Classification’ dataset from the Kaggle website.Footnote 1

We used this dataset because we want to make sure that the PTSD negative dataset not only contains about cancer survivors with positive sentiment tweets but also other topics. Both groups have the same total number of 5 k tweets to create balanced datasets. The data preparation phase has three steps: (1) applying 5-fold cross-validation for Multiple Layer Perceptron (MLP), CNN, and CNN n-gram algorithms; applying Term Frequency–Inverse Document Frequency (TD-IDF) for Naive Bayes Classifier (NBC) and Support Vector Machine (SVM) algorithms (2) cleaning the dataset to remove punctuation, stop words, and numbers; (3) defining vocabulary of preferred words from a training dataset by stepping through words and keeping only tokens with minimum occurrences of five. This setting reduces the vocabulary size because we want to use only frequent tokens that appear in the dataset. We used Keras API running on Tensorflow to train DNN models. All the models were trained with ten epochs through the training data. The efficient Adam implementation of stochastic gradient descent was used. We keep track of performance in addition to loss during training. Table 2 shows the details of our CNN network setting.

Table 2 CNN network setting

Baseline methods

We present the baseline methods used to evaluate our proposed algorithm. The input of our dataset was in a text format with positive and negative labels. Therefore, we chose four baselines that are capable of handling text dataset: NBC [33], SVM [34], MLP [35], and CNN n-gram [36]. NBC and SVM are considered as traditional machine learning algorithms. While MLP, CNN, and CNN n-gram are the DL algorithms.

NBC

NBC is based on the Bayes Theorem. For text classification, it will predict the membership probabilities for each class label, such as the probability that tweet belongs to a particular class label. The chosen class will have the highest probability value compared to other classes.

SVM

SVM is an algorithm that determines the best boundary between vectors that belong to a given group label and vectors that do not belong to the group. This technique can be applied to any vectors that encoded any data. Thus, for SVM text classification, we first must transform the texts into vectors.

MLP

The MLP is a feed-forward neural network that is frequently used for prediction models. The MLP used bag-of-words (BoW) to represent tweets. This technique can extract features from the text by measuring the occurrence of words within the documents. However, the BoW model suffers from sparse representation, which may have affected the space and time complexity. Moreover, it loses the semantics of the input sentences by ignoring the word order and grammar.

CNN n-gram

The kernel size in the convolutional layer defines the number of tokens that act as a group of the parameters. We set a model with two input channels for processing bi-grams and tri-grams of text in tweets due to the short length of words used in each tweet. This algorithm involves using multiple versions of the standard model with differently sized kernels for tweet classification. This setting allows tweets to be processed at a different number of contiguous words sequence, while the model learns how to integrate these interpretations best. The output from both channels was concatenated into a single vector and processed by a dense layer and an output layer.

Results

Experimental results

We ran the experiments using five different network settings. Our results indicate that CNN can effectively identify cancer survivors with PTSD. Experimental results in Table 3 show the 91.29% accuracy for CNN, which is higher than other baselines. We ran the experiments multiple times for MLP, CNN, and CNN n-gram algorithms due to the stochastic nature of DNN to get a reasonably accurate result.

Table 3 Experiment results of identifying cancer survivors with PTSD

Figure 3 presents the time taken during the DNN training process with MLP and CNN n-gram, which took slightly less time compared to CNN. Figure 4 shows the loss values in the training set of all models, where CNN and CNN n-gram display low losses. A model with the lowest loss value is better because loss value indicates errors made for examples during training. To test the CNN performance, we ran the experiment using only depression-lexicon as features. The experiment result is much worse, with 67.03% accuracy compared to our model. The results show that the model performed better with our set of vocabulary compared to a set of depression-lexicon taken from previous work. Even though we used depression-lexicon to help us to filter out unrelated tweets; however, our cancer survivor and PTSD tweets still contained unique characteristics and have different linguistic-style compared to depression users.

Fig. 3
figure 3

The learning time taken

Fig. 4
figure 4

The loss values

Case study

We constructed a simple prediction system using the CNN model. It will identify cancer survivors as either PTSD positive or PTSD negative together with probability value on new tweets. The tweet samples and the output results are shown in Table 4. Surprisingly, the system was able to classify tweets correctly and has answered our RQ3. For example, the second tweet is a statement that consists of negative sentiment but not related to the cancer survivor, and the system classified it as a PTSD negative. The right labeling with high probability value is essential for the diagnosis.

Table 4 Predictions for new tweets

Meanwhile, Table 5 shows two examples of misclassified tweets. To test the model reliability, we replaced the word ‘cancer’ with ‘tumor’ and ‘cyst’, which are highly correlated to cancer. Unfortunately, the model failed to detect the presence of cancer-free and PTSD in both tweets. For example, the first tweet contains self-mention about having a bladder tumor and feel depressed, but our system classified it as a PTSD positive, which is wrong. This is because our model should detect the presence of PTSD symptoms in someone who is currently free from cancer. However, the prediction outcome that has a probability rate lower than 90% thus is less convincing and can be ignored for diagnosis.

Table 5 Predictions for new tweets (misclassified)

Misclassified tweets may occur due to several reasons. First, it may be because the words ‘tumor’ and ‘cyst’ occasionally appeared in the dataset. Second, a small number of participants from this group were active in social media. To alleviate this problem, we need a larger dataset for training to leverage cancer-free with PTSD lexicon. Moreover, our model also should contain the information of diverse cancer types so the system will able to recognize them as a part of cancer rather than treating them as unknown words. To get special insights, we should make an effort to gather data from multiple sources. To the best of our knowledge, this is the first work that deployed the extracted model of cancer survivors living with PTSD into a prediction system that is capable of evaluating new tweets. The experimental results showed a high potential of a low-cost text classification technique that can be directly applied to other medical conditions that might affect patients’ mental health.

Discussion and conclusions

PTSD is one of the severe anxiety disorders that could affect individuals who are exposed to traumatic events, including cancer. Cancer survivors are at risk of short-term or long-term effects on physical and psycho-social well-being. Therefore, the evaluation and treatment of PTSD are essential parts of cancer survivorship care. In this work, we demonstrated that Twitter could be used to identify PTSD among internet users who had cancer. We propose a prediction model that can produce promising results in cancer survivors with PTSD diagnosis. Experimental results demonstrated that CNN is capable of capturing important signals from texts. The social media users with cancer history who suffer from PTSD will benefit from the prediction system. It will act as an alarming system by detecting the PTSD presence based on users’ postings.

Essentially, we hope that our proposed data collection approach can facilitate current trauma screening questionnaire-based methods instead of replacing them. With the high rise of social media and a massive number of active users around the world, we hope to encourage more untreated cancer survivors that affected by PTSD to seek medical attention immediately. Moreover, the World Health Organization (WHO) stated that psychological disorder is the second largest of disability in the world population. However, only 10% of them obtained proper treatment.

Furthermore, we identify a cancer survivor who experienced PTSD only with one tweet. In this work, we did not use historical tweets because cancer is so daunting that some of the cancer survivors are even afraid to say ‘the C word’ [37]. Many aspects of cancer events can lead to PTSD, such as various diagnostic testing, stressful waiting periods, the moment of bad news, and the painful treatments. For cancer survivors, PTSD can be triggered by continuous monitoring, follow-up visits, sudden physical pain, death of a public figure due to cancer, and fear of cancer recurrence. The traumatic event of cancer might not be as clear as a life-threatening car crash, but it can completely change someone’s life. They may feel grief for possible lost future opportunities and may impact self-esteem because of disfigurements due to their disease. Because of that, we can spot tweets with negative sentiment related to cancer history when they express saddens, fear, stress, and enraged in their posting. Moreover, from our experience, when we went through their timeline, we noticed that they do not always express how they feel every day. This situation has made it hard for us to identify PTSD after cancer cases using historical tweets.

On the other hand, our model was trained to solely utilize the textual postings. The users’ contextual information, such as gender, ages, etc., is not considered in this work. To better improve our model in the future, additional main keywords that represent ‘cancer-free’ such as ‘cyst’ and ‘malignant tumor’ should be included during data crawling. From the case study, we can conclude that our proposed model cannot provide the right diagnosis when we replaced the word ‘cancer’ with ‘cyst’ and ‘tumor’ in the sentence. It is important because those words are highly correlated with ‘cancer’. Hence, we also want to identify developing conditions such as suicidal ideation and the side effect of PTSD treatment. Besides, we plan to explore another modality in uncovering PTSD indicators such as audio, image, or combination of both, for better diagnosis.

PTSD can also affect cancer survivors’ caregivers. Witnessing a loved one having cancer and watching the little one in pain are traumatic events that caregivers have to face. The Cancer. Net website reported that almost 20% of families of childhood cancer survivors had a parent who was suffering from PTSD. They also found that this anxiety disorder is common among parents of children receiving cancer treatment to develop PTSD symptoms. Thus, we believe that our work also can be utilized to identify PTSD in cancer survivors’ caregivers. However, we must formally define the problem and identify the implicit and explicit characteristics of caregivers because some of them may have a difficult time admitting they are depressed.

Availability of data and materials

The dataset used and analyzed during the current study are not publicly available due to negative emotions statements given by the cancer survivors on Twitter but are available from the corresponding author on reasonable request.

Notes

  1. https://www.kaggle.com/crowdflower/twitter-user-gender-classification#gender-classifier-DFE-791531.csv

Abbreviations

PTSD:

Post-traumatic stress disorder

CNN:

Convolutional Neural Network

LIWC:

Linguistic Inquiry Word Count

DNN:

Deep Neural Network

RQ:

Research question

ECG:

Electrocardiography

EEG:

Electroencephalography

EMG:

Electromyography

fMRI:

Functional magnetic resonance imaging

NLP:

Natural Language Processing

API:

Application Programming Interface

ReLU:

Rectified Linear Unit

MLP:

Multiple Layer Perceptron

TD-IDF:

Term Frequency–Inverse Document Frequency

NBC:

Naive Bayes Classifier

SVM:

Support vector machine

BoW:

Bag-of-words

WHO:

World Health Organization

References

  1. Alkan A, et al. Breast cancer survivors suffer from persistent postmastectomy pain syndrome and posttraumatic stress disorder (ORTHUS study): a study of the palliative care working committee of the Turkish Oncology Group (TOG). Support Care Cancer. 2016;24:3747.

    Article  Google Scholar 

  2. Akechi T, et al. Major depression, adjustment disorders, and post-traumatic stress disorder in terminally ill cancer patients: associated and predictive factors. J Clin Oncol. 2004;22:1957.

    Article  Google Scholar 

  3. National Collaborating Centre for Mental Health. UK, Post-traumatic stress disorder: The management of PTSD in adults and children in primary and secondary care (Gaskell). 2005.

    Google Scholar 

  4. De Choudhury M, Counts S, Horvitz E. Social media as a measurement tool of depression in populations, Proceedings of the 5th Annual ACM Web Science Conference (ACM); 2013. p. 47–56.

    Google Scholar 

  5. De Choudhury M, Counts S, Horvitz E. Major life changes and behavioral markers in social media: case of childbirth, Proceedings of the 2013 conference on Computer supported cooperative work (ACM); 2013. p. 1431–42.

    Google Scholar 

  6. M. J. Paul, M. Dredze. You are what you tweet: analyzing twitter for public health. Fifth international AAAI conference on weblogs and social media. 2011.

    Google Scholar 

  7. M. De Choudhury, M. Gamon, S. Counts, E. Horvitz. Predicting depression via social media. Seventh international AAAI conference on weblogs and social media. 2013).

    Google Scholar 

  8. G. Coppersmith, C. Harman, M. Dredze. Measuring post traumatic stress disorder in twitter. Eighth international AAAI conference on weblogs and social media. 2014.

    Google Scholar 

  9. Coppersmith G, Dredze M, Harman C. Quantifying mental health signals in Twitter, Proceedings of the workshop on computational linguistics and clinical psychology: From linguistic signal to clinical reality; 2014. p. 51–60.

    Google Scholar 

  10. Ismail NH, Liu N, Du M, He Z, Hu X. Using deep neural network to identify cancer survivors living with post-traumatic stress disorder on social media. CEEUR-WS. 2019;2427.

  11. Krothapalli SR, Koolagudi SG. Characterization and recognition of emotions from speech using excitation source information. Int J Speech Technol. 2013;16:181.

    Article  Google Scholar 

  12. Balters S, Steinert M. Capturing emotion reactivity through physiology measurement as a foundation for affective engineering in engineering design science and engineering practices. J Intell Manuf. 2017;28:1585.

    Article  Google Scholar 

  13. S. Latif, R. Rana, S. Younis, J. Qadir, J. Epps. Cross corpus speech emotion classification-an effective transfer learning technique. arXiv preprint arXiv:1801.06353. 2018.

    Google Scholar 

  14. J. Gideon, S. Khorram, Z. Aldeneh, D. Dimitriadis, E. M. Provost. Progressive neural networks for transfer learning in emotion recognition. arXiv preprint arXiv:1706.03256. 2017.

    Book  Google Scholar 

  15. De Choudhury M, Morris MR, White RW. Seeking and sharing health information online: comparing search engines and social media, Proceedings of the 32nd annual ACM conference on Human factors in computing systems (ACM); 2014. p. 1365–76.

    Google Scholar 

  16. Fischer U, et al. Balancing our lives: a study of the married couple's experience with breast cancer recurrence. Eur Radiol. 2004;14:1725.

    Article  Google Scholar 

  17. Lewis FM, Deal LW. Balancing our lives: a study of the married couple's experience with breast cancer recurrence. Oncol Nurs Forum. 1995;22(6):943–56.

    CAS  PubMed  Google Scholar 

  18. Stuber ML, et al. Predictors of posttraumatic stress symptoms in childhood cancer survivors. Pediatrics. 1997;100:958.

    Article  CAS  Google Scholar 

  19. Salsman JM, Segerstrom SC, Brechting EH, Carlson CR, Andrykowski MA. Posttraumatic growth and PTSD symptomatology among colorectal cancer survivors: a 3-month longitudinal examination of cognitive processing. Psycho-Oncology. 2009;18:30.

    Article  Google Scholar 

  20. Chan CMH, et al. Course and predictors of post-traumatic stress disorder in a cohort of psychologically distressed patients with cancer: a 4-year follow-up study. Cancer. 2018;124:406.

    Article  Google Scholar 

  21. Moschopoulou E, Hutchison I, Bhui K, Korszun A. Post-traumatic stress in head and neck cancer survivors and their partners. Support Care Cancer. 2018;26:3003.

    Article  Google Scholar 

  22. James J, Harris YT, Kronish IM, Wisnivesky JP, Lin JJ. Exploratory study of impact of cancer-related posttraumatic stress symptoms on diabetes self-management among cancer survivors. Psycho-oncology. 2018;27:648.

    Article  Google Scholar 

  23. S. M. Brown, A. Webb, R. Mangoubi, J. Dy. A sparse combined regression-classification formulation for learning a physiological alternative to clinical post-traumatic stress disorder scores. Twenty-Ninth AAAI Conference on Artificial Intelligence. 2015.

    Google Scholar 

  24. Sharma E, De Choudhury M. Mental health support and its relationship to linguistic accommodation in online communities, Proceedings of the 2018 CHI conference on human factors in computing systems (ACM); 2018. p. 641.

    Google Scholar 

  25. S. Dutta, J. Ma, M. De Choudhury. Measuring the impact of anxiety on online social interactions. Twelfth international AAAI conference on web and social media. 2018.

    Google Scholar 

  26. D. Vergyri, et al. Speech-based assessment of PTSD in a military population using diverse feature classes. Sixteenth annual conference of the international speech communication association. 2015.

    Google Scholar 

  27. S. K. Ernala, et al. Characterizing audience engagement and assessing its impact on social media disclosures of mental illnesses. Twelfth international AAAI conference on web and social media. 2018.

    Google Scholar 

  28. Banerjee D, et al. A deep transfer learning approach for improved post-traumatic stress disorder diagnosis. Knowl Inf Syst. 2019;60:1693.

    Article  Google Scholar 

  29. Choi E, Schuetz A, Stewart WF, Sun J. Using recurrent neural network models for early detection of heart failure onset. J Am Med Inform Assoc. 2016;24:361.

    Article  Google Scholar 

  30. Flory JD, Yehuda R. Comorbidity between post-traumatic stress disorder and major depressive disorder: alternative explanations and treatment considerations. Dialogues Clin Neurosci. 2015;17:141.

    Article  Google Scholar 

  31. Leano A, Korman MB, Goldberg L, Ellis J. Are we missing PTSD in our patients with cancer? Part I. Can Oncol Nurs J. 2019;29:141.

    PubMed  PubMed Central  Google Scholar 

  32. Cui B, Li Y, Zhang Y, Zhang Z. Text coherence analysis based on deep neural network, Proceedings of the 2017 ACM on conference on information and knowledge management (ACM); 2017. p. 2027–30.

    Google Scholar 

  33. S. Raschka. Naive bayes and text classification. 2014. Retrieved from https://sebastianraschka.com/Articles/2014_naive_bayes_1.html.

    Google Scholar 

  34. Goudjil M, Koudil M, Bedda M, Ghoggali N. A novel active learning method using SVM for text classification. Int J Autom Comput. 2018;15:290.

    Article  Google Scholar 

  35. A. Padia, et al. UMBC at SemEval-2018 Task 8: Understanding text about malware. Proceedings of international workshop on semantic evaluation (SemEval- 2018). 2018.

    Google Scholar 

  36. Majumder N, Poria S, Gelbukh A, Cambria E. Deep learning-based document modeling for personality detection from text. IEEE Intell Syst. 2017;32:74.

    Article  Google Scholar 

  37. Wess M. Bringing hope and healing to grieving patients with cancer. J Am Osteopath Assoc. 2007;107:ES41.

    PubMed  Google Scholar 

Download references

Acknowledgements

Not applicable.

About this supplement

This article has been published as part of BMC Medical Informatics and Decision Making Volume 20 Supplement 4 2020: Selected articles from the Fourth International Workshop on Semantics-Powered Data Analytics (SEPDA 2019). The full contents of the supplement are available at https://bmcmedinformdecismak.biomedcentral.com/articles/supplements/volume-20-supplement-4.

Funding

This work, in part, is supported by the Ministry of Higher Education Malaysia, University Malaysia Pahang (UMP) and DARPA grant N66001–17-2-4031. This project was also partially supported by the University of Florida Clinical and Translational Science Institute, which is supported in part by the NIH National Center for Advancing Translational Sciences under award number UL1TR001427. The content is solely the responsibility of the authors and does not necessarily represent the official views of the NIH. The publication cost will be covered by the DARPA grant N66001–17-2-4031.

Author information

Authors and Affiliations

Authors

Contributions

XH and NH conceptualized and designed the study. NH analyzed the dataset and was a major contributor in writing the manuscript. NL, MD, and ZH revised the manuscript iteratively for important intellectual content. All authors have provided feedback and edited the manuscript. NH takes primary responsibility for the research reported here. All authors read and approved the final manuscript.

Corresponding author

Correspondence to Nur Hafieza Ismail.

Ethics declarations

Ethics approval and consent to participate

Texas A&M University Institutional Review Board has reviewed the protocol and determined that this project is not research involving human subjects as defined by DHHS and FDA regulations (IRB ID: IRB2020–0755).

Consent for publication

Not applicable.

Competing interests

The authors declare that they have no competing interests.

Additional information

Publisher’s Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/. The Creative Commons Public Domain Dedication waiver (http://creativecommons.org/publicdomain/zero/1.0/) applies to the data made available in this article, unless otherwise stated in a credit line to the data.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Ismail, N.H., Liu, N., Du, M. et al. A deep learning approach for identifying cancer survivors living with post-traumatic stress disorder on Twitter. BMC Med Inform Decis Mak 20 (Suppl 4), 254 (2020). https://doi.org/10.1186/s12911-020-01272-1

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1186/s12911-020-01272-1

Keywords