| Literature DB >> 35115990 |
Abstract
Depression has become one of the most common mental illnesses, and the widespread use of social media provides new ideas for detecting various mental illnesses. The purpose of this study is to use machine learning technology to detect users of depressive patients based on user-shared content and posting behaviors in social media. At present, the existing research mostly uses a single detection method, and the unbalanced class distribution often leads to a low recognition rate. In addition, a large number of irrelevant or redundant features in high-dimensional data sets interfere with the accuracy of recognition. To solve this problem, this paper proposes a hybrid feature selection and stacking ensemble strategy for depression user detection. First, recursive elimination method and extremely randomized trees method are used to calculate feature importance and mutual information value, calculate feature weight vector, and select the optimal feature subset according to the feature weight. Second, naive bayes, k-nearest neighbor, regularized logistic regression and support vector machine are used as base learners, and a simple logistic regression algorithm is used as a combination strategy to build a stacking model. Experimental results show that compared with other machine learning algorithms, the proposed hybrid method, which integrates feature selection and ensemble, has a higher accuracy of 90.27% in identifying online patients. We believe this study will help develop new methods to identify depressed people in social networks, providing guidance for future research.Entities:
Keywords: depression; ensemble learning; feature selection; machine learning; social media
Year: 2022 PMID: 35115990 PMCID: PMC8803736 DOI: 10.3389/fpsyg.2021.802821
Source DB: PubMed Journal: Front Psychol ISSN: 1664-1078
Description of user characteristics.
|
|
|
|
|
|---|---|---|---|
| Textual features | The part of speech | Percentage of 20 parts of speech in all posts by users | Islam et al., |
| Emotional words | The number of 7 types of emotional words classified according to the Chinese sentiment dictionary | Leis et al., | |
| Personal pronoun | The frequency of singular/plural first-person pronouns, and the frequency of other pronouns | Vedula and Parthasarathy, | |
| The specific words | Mainly include the number of negative words and interrogative pronouns | Leis et al., | |
| Polarity | The emotional orientation of the post, 0 means negative, 1 means neutral, 2 means positive | Sadeque et al., | |
| Posting behavior | Posting habits | Proportion of original posts, posts with pictures and display positioning | Chen et al., |
| Posting time | The frequency of users post over a week and over a 24-h period | De Choudhury et al., |
Figure 1Data preprocessing and feature extraction.
Figure 2Depression user identification framework.
Example of stack integration.
|
|
|
|
| ||||
|---|---|---|---|---|---|---|---|
|
|
|
|
|
|
| ||
| X1 | S1 | K1 | N1 | LA1 | R1 | Y1 | |
| X2 | S2 | K2 | N2 | LA2 | R2 | Y2 | |
| X3 | S3 | K3 | N3 | LA3 | R3 | Y3 | |
| X4 | S4 | K4 | N4 | LA4 | R4 | Y4 | |
| X5 | S5 | K5 | N5 | LA5 | R5 | Y5 | |
| X6 | S6 | K6 | N6 | LA6 | R6 | Y6 | |
| X7 | S7 | K7 | N7 | LA7 | R7 | Y7 | |
| X8 | S8 | K8 | N8 | LA8 | R8 | Y8 | |
| X9 | S9 | K9 | N9 | LA9 | R9 | Y9 | |
| X10 | S10 | K10 | N10 | LA10 | R10 | Y10 | |
| X11 | S11 | K11 | N11 | LA11 | R11 | L11 | Y11 |
Figure 3Relative importance of features.
Performance measurements of each method on different models.
|
|
|
|
|
|
|
|
|
|---|---|---|---|---|---|---|---|
| Model1 (textual) | Precision | 0.7339 | 0.8068 | 0.8750 | 0.8444 | 0.8462 | 0.8750 |
| Recall | 0.9999 | 0.8875 | 0.9625 | 0.95 | 0.9625 | 0.9625 | |
| F1-measure | 0.8465 | 0.8452 | 0.9166 | 0.8941 | 0.9006 | 0.9166 | |
| Accuracy | 0.7434 | 0.7699 | 0.8761 | 0.8407 | 0.8496 | 0.8761 | |
| Model2 (posting behavior) | Precision | 0.7080 | 0.8434 | 0.8256 | 0.8202 | 0.8242 | 0.8256 |
| Recall | 1.0000 | 0.8750 | 0.8875 | 0.9125 | 0.9375 | 0.8875 | |
| F1-measure | 0.8290 | 0.8589 | 0.8554 | 0.8639 | 0.8772 | 0.8554 | |
| Accuracy | 0.7080 | 0.7965 | 0.7876 | 0.7965 | 0.8141 | 0.7876 | |
| Model3 (textual + posting behavior) | Precision | 0.8478 | 0.8142 | 0.8750 | 0.8539 | 0.8556 | 0.8791 |
| Recall | 0.9750 | 0.9000 | 0.9625 | 0.9500 | 0.9625 | 1.0000 | |
| F1-measure | 0.9070 | 0.8727 | 0.9166 | 0.8994 | 0.9059 | 0.9357 | |
| Accuracy | 0.8584 | 0.8142 | 0.8761 | 0.8496 | 0.8584 | 0.9027 |
Figure 4Pairwise compares each classifier and ensemble method in terms of accuracy and f1-measure.
Prediction accuracy of classifiers before and after eliminating class imbalance.
|
|
|
| |
|---|---|---|---|
| SVM | 0.8584 | 0.8688 | 1.04% |
| NB | 0.8142 | 0.8875 | 7.33% |
| KNN | 0.8761 | 0.8938 | 1.77% |
| LG1 | 0.8496 | 0.9313 | 8.17% |
| LG2 | 0.8584 | 0.8750 | 1.66% |
| Stacking | 0.9027 | 0.9563 | 5.36% |
Figure 5Accuracy of integration method before and after feature selection.