| Literature DB >> 36203508 |
Jing Zhou1, Quanju Liu1.
Abstract
Aiming at the problems of poor emotional tendency prediction effect and low utilization of syntactic information, this study proposes a big data sentiment analysis method based on neural network. First, the BERT model is used to vectorize the input data to reduce the semantic loss when the data is vectorized; then the word vector is input into the bidirectional LSTM encoder to obtain data features. Finally, the representation of the attention layer is used as the final feature vector for sentiment classification, reducing the influence of irrelevant data. The experimental results show that the method has high accuracy, recall, and F1 value and can effectively improve the accuracy of fine-grained sentiment classification of ambiguous texts.Entities:
Mesh:
Year: 2022 PMID: 36203508 PMCID: PMC9532102 DOI: 10.1155/2022/7123079
Source DB: PubMed Journal: J Environ Public Health ISSN: 1687-9805
Figure 1Structure diagram of RNN neural unit.
Figure 2LSTM neural network diagram.
Figure 3BERT model diagram.
Experiment text setting.
| Emotional types | Number of training texts/unit | Number of test texts/unit |
|---|---|---|
| Joy | 350 | 150 |
| Sad | 350 | 150 |
| Surprise | 350 | 150 |
| Anger | 350 | 150 |
| Fear | 350 | 150 |
| Hate | 350 | 150 |
Figure 4Comparison results of accuracy rate.
Figure 5Comparison results of recall rate.
Figure 6Comparison results of F1 values.