TL;DR
This paper introduces Cost-sensitive Boosting Pruning Trees (CBPT), a novel ensemble learning method for detecting depression on Twitter. CBPT combines a unique pruning technique for decision trees with a cost-sensitive boosting approach to improve accuracy and robustness, outperforming existing methods on Twitter depression detection datasets.
What Problem Does This Paper Address?
Depression is a widespread mental health issue with significant consequences, including suicide. Many individuals suffering from depression do not seek professional help due to shame or lack of awareness, leading to delayed diagnosis and treatment. Social media, particularly Twitter, offers a rich source of data reflecting users' online behaviors, which can potentially signal depression. However, accurately identifying depression from this noisy and complex data is challenging. Existing methods often rely on extensive feature engineering or lack interpretability. This paper aims to develop a more accurate, robust, and interpretable model for early depression detection using Twitter data.
Methods
The proposed approach, Cost-sensitive Boosting Pruning Trees (CBPT), consists of two main phases:
Phase 1: Data Preprocessing and Feature Extraction
* Data Cleaning: Minimizing the impact of noisy samples by removing users with fewer than five posts.
* Text Normalization: Using Textblob API to correct spelling errors and abbreviations.
* Stemming: Employing SnowballStemmer to unify word representations.
* Feature Engineering: Extracting three categories of features:
* User Profile Features: total_favourites, listed_count, friends, followers.
* Social Interaction Features: favourites_count, retweet_count, mention_count, posting_number, time_distribution.
* Linguistic Features: negative_words, positive_words, emoji_number, emoticons, and LDA topics (Latent Dirichlet Allocation) for topic modeling.
Phase 2: CBPT Classifier * Resampling Weighted Pruning Algorithm: A novel method to dynamically determine optimal tree depths and leaves. This algorithm prunes decision trees based on a cost-complexity criterion, aiming to improve generalization and robustness. * Cost-sensitive Boosting Structure: An enhanced boosting framework that incorporates cost items. This structure prioritizes samples with higher identification importance, effectively biasing learning towards more critical instances. This is achieved by introducing depth penalty and impurity penalty terms that influence sample weight updates in subsequent iterations. * Ensemble Learning: CBPT combines multiple pruned decision trees using a boosting mechanism, similar to Adaboost, to create a strong predictive model.
Datasets
The authors evaluated their CBPT model on the following datasets:
- Twitter Depression Detection Datasets:
- Tsinghua Twitter Depression Dataset (TTDD): Collected between 2009-2016, with users labeled as depressed if their anchor tweets contained phrases like "(I'm/I was/I am/I've been) diagnosed depression."
- CLPsych 2015 Twitter Dataset (CLPsych2015): Collected for a depression detection task, with users labeled based on self-diagnosis statements like "I was just diagnosed with depression or PTSD...". This dataset includes depression, PTSD, and control users.
- UCI Machine Learning Repository Datasets:
- LSVT Dataset: Clinical information from speech signals (128 samples, 309 features).
- Statlog Dataset: Information from statlog (6435 samples, 37 features).
- Glass Dataset: Information of glasses left at crime scenes (214 samples, 10 features).
Key Insights and Ideas
- Social Media as a Depression Indicator: The study reinforces the idea that online behavior on social media platforms like Twitter can be a valuable indicator of mental health conditions like depression.
- Feature Importance Beyond Raw Counts: While basic features like posting frequency are considered, the study highlights the significance of linguistic features (LDA topics, sentiment words) and social interaction patterns in detecting depression.
- Pruning for Robustness: The novel pruning technique for decision trees is crucial for improving the generalization ability of the model, preventing overfitting, and making it more robust to variations in data.
- Cost-Sensitive Learning for Imbalanced Data: The cost-sensitive boosting mechanism is designed to handle the inherent imbalance and varying "hardness" of misclassified samples, leading to more focused learning on difficult cases.
- Interpretability Matters: The paper emphasizes the importance of understanding why a model makes a prediction, using TreeSHAP to identify key features and their influence on depression risk.
Key Results
- Superior Performance on Twitter Datasets: CBPT achieved the best performance on the TTDD dataset, with 88.39% accuracy and 86.90% F1-score. It also showed competitive results on the CLPsych 2015 dataset.
- Outperforming State-of-the-Art: CBPT surpassed existing methods like Shen et al. [7] by 3.39% in accuracy and 1.69% in F1-score on the TTDD dataset.
- Generalization Across Datasets: CBPT demonstrated strong performance on various UCI datasets, often outperforming other boosting algorithms.
- Faster Convergence: CBPT showed faster convergence rates compared to other boosting methods on several datasets, indicating efficiency.
- Feature Importance Insights: Analysis using TreeSHAP revealed that topics related to "politics" (topic2) and "emojis" were significant predictors. For instance, posting about politics was associated with a decreased depression risk, while fewer emojis were linked to a higher risk. Linguistic features like negative words and social interaction features like retweet count also played crucial roles.
Limitations and Future Work
- Small-Scale Datasets: The cost-sensitive boosting structure was less effective on very small datasets (LSVT and Glass), suggesting potential limitations in its applicability to extremely limited data.
- Future Work: The authors plan to develop more robust topic model methodologies to summarize posting text content of depressed users with clearly explainable topics. They also intend to explore mining similar information from other social networks (e.g., Facebook, Instagram, Tumblr) for sentiment analysis.
Summary updated