| Literature DB >> 35783806 |
Abstract
Text emotion analysis is an effective way for analyzing the emotion of the subjects' anomie behaviors. This paper proposes a text emotion analysis framework (called BCDF) based on word embedding and splicing. Bi-direction Convolutional Word Embedding Classification Framework (BCDF) can express the word vector in the text and embed the part of speech tagging information as a feature of sentence representation. In addition, an emotional parallel learning mechanism is proposed, which uses the temporal information of the parallel structure calculated by Bi-LSTM to update the storage information through the gating mechanism. The convolutional layer can better extract certain components of sentences (such as adjectives, adverbs, nouns, etc.), which play a more significant role in the expression of emotion. To take advantage of convolution, a Convolutional Long Short-Term Memory (ConvLSTM) network is designed to further improve the classification results. Experimental results show that compared with traditional LSTM model, the proposed text emotion analysis model has increased 3.3 and 10.9% F1 score on psychological and news text datasets, respectively. The proposed CBDM model based on Bi-LSTM and ConvLSTM has great value in practical applications of anomie behavior analysis.Entities:
Keywords: Bi-directional long short-term memory; convolutional neural network; deep learning; emotion analysis; legal anomie analysis; text emotion analysis
Year: 2022 PMID: 35783806 PMCID: PMC9247634 DOI: 10.3389/fpsyg.2022.909157
Source DB: PubMed Journal: Front Psychol ISSN: 1664-1078
The numbers of cells in different layers.
| Layer | The number of cells | Kernel size |
| 1 | 80 | (80,4) |
| 2 | 40 | (40,4) |
| Flatten | 40 | – |
| Dropout | 40 | – |
| Dense | 5 | Unit(5) |
The training parameter settings of BCDF.
| Parameter | Setting |
| Training epoch | 30 |
| Loss function | Sparse categorical cross-entropy |
| Optimizer | Adam |
| Learning rate | 0.001 |
| Dropout rate | 0.3 |
Emotional word recognition in different components of a sentence (%).
| Model | AVEC | GoEmotions | ||||
| Pre | Rec | F1 | Pre | Rec | F1 | |
| RNN | 61.8 | 71.2 | 64.3 | 62.1 | 67.9 | 63.2 |
| CNN + RNN | 70.4 | 72.6 | 71.7 | 75.6 | 57.2 | 62.7 |
| LSTM | 70.8 | 73.3 | 72.4 | 68.9 | 62.2 | 65.9 |
| CNN + LSTM | 72.2 | 74.7 | 73.5 | 68.7 | 64.5 | 66.9 |
| BCDF | 74.1 | 77.1 | 75.6 | 74.3 | 68.8 | 69.0 |
Psychological word recognition results based on datasets GoEmotions (%).
| Type | Model | Pre | Rec | F1 |
| AVEC | RNN | 67.3 | 75.2 | 69.6 |
| CNN + RNN | 72.4 | 77.5 | 75.8 | |
| LSTM | 71.8 | 79.4 | 78.3 | |
| CNN + LSTM | 72.8 | 77.4 | 75.4 | |
| BCDF | 82.1 | 84.2 | 81.6 | |
| GoEmotions | RNN | 66.5 | 74.8 | 72.3 |
| CNN + RNN | 76.9 | 79.8 | 77.4 | |
| LSTM | 72.4 | 73.3 | 73.0 | |
| CNN + LSTM | 73.5 | 76.5 | 74.7 | |
| BCDF | 85.6 | 89.2 | 88.3 |
Recognition of different parts of sentence based on GoEmotions dataset (%).
| Part of speech | Model | Pre | Rec | F1 |
| Noun | RNN | 68.4 | 73.2 | 71.5 |
| CNN + RNN | 72.3 | 76.3 | 73.8 | |
| LSTM | 74.5 | 76.2 | 75.5 | |
| CNN + LSTM | 73.1 | 76.7 | 74.5 | |
| BCDF | 84.1 | 87.1 | 85.6 | |
| Verb | RNN | 69.8 | 74.2 | 73.3 |
| CNN + RNN | 75.4 | 77.6 | 74.7 | |
| LSTM | 73.8 | 78.3 | 74.6 | |
| CNN + LSTM | 75.2 | 77.7 | 76.5 | |
| BCDF | 82.3 | 88.3 | 85.7 | |
| Adverb | RNN | 64.8 | 70.2 | 76.3 |
| CNN + RNN | 69.4 | 71.6 | 70.9 | |
| LSTM | 73.8 | 77.3 | 75.6 | |
| CNN + LSTM | 71.2 | 78.7 | 75.5 | |
| BCDF | 78.1 | 82.6 | 84.8 | |
| Adjective | RNN | 66.8 | 73.2 | 70.3 |
| CNN + RNN | 74.4 | 77.6 | 75.7 | |
| LSTM | 75.8 | 79.3 | 74.4 | |
| CNN + LSTM | 72.6 | 75.3 | 74.8 | |
| BCDF | 84.2 | 87.8 | 85.9 |
FIGURE 1Performance comparison between BCDF and LSTM-based model based on GoEmotions dataset. (A) Overall accuracy (B) F1 score.