Health public opinion analysis method based on deep multi-word embedding Bi-LSTM residual network

By introducing multiple pre-trained word vectors and residual connections into the deep learning model, the problem of limited depth and feature space limitations of the deep learning model in public opinion analysis is solved, and higher classification accuracy and iterative stability are achieved.

CN109670164BInactive Publication Date: 2024-09-20GUANGDONG DITE SAIEN SOFTWARE TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201810319393.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-04-11
Publication Date
2024-09-20
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing deep learning models have gradient dispersion/explosion problems in public opinion analysis, resulting in limited network depth, and only using one pre-trained word vector limits the feature space, resulting in network degradation and increased errors.

Method used

The Bi-LSTM residual network based on deep multi-word embedding is used. By introducing multiple pre-trained word vectors and Attention mechanism, combined with the residual connection method, the depth and robustness of the network are enhanced and network degradation is prevented.

Benefits of technology

It significantly improves the classification accuracy and iterative stability of the public opinion analysis model, reduces the logarithmic loss value, and ensures that the model maintains excellent performance when increasing depth.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN109670164B
    Figure CN109670164B
Patent Text Reader

Abstract

The invention discloses a health public opinion analysis method based on a deep multi-word embedding Bi-LSTM residual network, and relates to the field of information technology. The health public opinion analysis method based on a deep multi-word embedding Bi-LSTM residual network improves the robustness of the network by improving the Bi-LSTM network, combining multi-word embedding and residual network methods, so that the network can process complex public opinion texts and obtain good results, thereby improving the classification accuracy of its classifier.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information technology, and in particular to a health public opinion analysis method based on a deep multi-word embedding Bi-LSTM residual network. Background Art

[0002] Online public opinion analysis is an emerging technology that combines Internet information monitoring, public opinion situation analysis, public opinion environment research, network crisis management and Internet information monitoring. It plays an important role in maintaining public order and stability by timely monitoring and collecting relevant public opinion information online and making decisions after analysis.

[0003] Research shows that the depth of the network is an important factor in achieving good results. However, gradient diffusion / explosion becomes an obstacle to training deep networks, resulting in failure to converge. There are some methods to compensate, such as normalized initialization and normalization of inputs at each layer, which increases the depth of the network that can converge by ten times. However, although it has converged, the network has begun to degenerate, that is, increasing the number of network layers leads to greater errors. In addition, most existing deep learning models only use a pre-trained word vector as network input, which limits the feature space that the network can learn. The pre-trained word vector is trained with a limited amount of corpus, so its performance will fluctuate greatly for different text corpora. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide a health public opinion analysis method based on a deep multi-word embedding Bi-LSTM residual network. By improving the Bi-LSTM model and introducing a deep residual network, the depth of the network can be greatly increased. By introducing multiple word vectors, the network can learn from multiple feature spaces at the same time, thereby improving the robustness of the network.

[0005] To achieve the above object, the present invention provides the following technical solutions:

[0006] The health public opinion analysis method based on deep multi-word embedding Bi-LSTM residual network collects a large amount of text corpus through various channels, obtains document and word data after preprocessing and word segmentation, uses new word vector training tools such as Word2Vec, Glove, FastText to train word vectors, and obtains multiple pre-trained word vectors. The entire deep neural network is composed of multiple sub-networks. For each sub-network, its structure is the same, but different pre-trained word vectors are used. The outputs of multiple sub-networks are extracted and spliced ​​through the Attention mechanism as the input of the fully connected layer, and at the end of the network, the output of the fully connected layer is used as the input of the sigmoid layer for the final classification. In addition, different from directly using the output of the previous Bi-LSTM layer as the input of the next Bi-LSTM layer, the output of the previous Bi-LSTM layer is added with the output of the previous Bi-LSTM layer, and the sum is used as the input of the next Bi-LSTM layer, so that the artificial neuron residual is transmitted with the network to prevent network degradation.

[0007] The specific steps of the health public opinion analysis method based on deep multi-word embedding Bi-LSTM residual network are as follows:

[0008] Step 1: Preprocess the public opinion text data and fill in missing values;

[0009] Step 2: Use different corpora to train multiple word vectors separately;

[0010] Step 3: Use keras to build a Bi-LSTM network suitable for text data;

[0011] Step 4: Use the residual connection method to deepen the Bi-LSTM network and introduce multiple word vectors for simultaneous training;

[0012] Step 5: Through experiments, the classification effects of the improved deep multi-word embedding Bi-LSTM residual network (ours) of this patent and the traditional word embedding Bi-LSTM, the deep Bi-LSTM network without residual connection, and the deep Bi-LSTM residual network without multi-word embedding on public opinion text data are compared to verify the effectiveness of the improved deep multi-word embedding Bi-LSTM residual network from the perspective of accuracy.

[0013] The beneficial effect of adopting the above technical solution is that the classification accuracy of the deep multi-word embedding Bi-LSTM residual network model improved by the health public opinion analysis method based on deep multi-word embedding Bi-LSTM residual network is significantly higher than that of the other three models, and the logarithmic loss value is significantly lower. Moreover, as the number of iterations increases, the improved deep multi-word embedding Bi-LSTM residual network model is always better than the other three models. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] The specific implementation modes of the present invention are further described in detail below in conjunction with the accompanying drawings.

[0015] Figure 1 It is a schematic diagram of a recurrent neural network (RNN);

[0016] Figure 2 This is the structure diagram of Bi-LSTM;

[0017] Figure 3 It is the shortcut connection schematic diagram;

[0018] Figure 4 This is a comparison curve of the classification effects of five models;

[0019] Figure 5 This is the structure diagram of the deep multi-word embedding Bi-LSTM residual network. DETAILED DESCRIPTION

[0020] The preferred implementation scheme of the health public opinion analysis method based on the deep multi-word embedding Bi-LSTM residual network of the present invention is described in detail below with reference to the accompanying drawings.

[0021] Figures 1 to 5 The specific implementation method of the health public opinion analysis method based on the deep multi-word embedding Bi-LSTM residual network of the present invention is presented:

[0022] As the core link in online public opinion analysis, text sentiment classification plays a very important role in the analysis and prediction of public opinion. Especially when facing complex Chinese text public opinion, the accuracy of Chinese text sentiment classification directly affects the success or failure of public opinion analysis.

[0023] The research on Chinese text sentiment classification using traditional methods mainly focuses on dictionary modeling analysis and machine learning algorithm deduction based on shallow learning. It has two major defects: first, it does not have the ability to represent complex functions for limited data, so its generalization ability will be limited when complex classification is involved; second, it usually relies on manual extraction of sample features, but manual feature selection is very time-consuming and labor-intensive, and the quality of the features cannot be guaranteed.

[0024] Deep learning methods can solve many of the shortcomings of traditional methods. They have two major advantages: first, they construct a deep nonlinear network structure, which enables deep learning to autonomously learn the essential characteristics of a data set from a large number of sample sets, that is, they can combine complex Chinese data to fit text information and achieve the purpose of nonlinear extraction of text features; second, they make full use of massive training data. Under huge amounts of data, only models with complex structures can fully fit and analyze the data, and then mine the valuable information hidden in the data. In the field of text classification, deep learning can automatically learn text semantic information from a large number of samples and perform feature representation to achieve specific computing tasks. Therefore, the introduction of deep learning is another powerful tool for Chinese text sentiment classification and public opinion analysis.

[0025] like Figure 1 As shown in the figure, a recurrent neural network (RNN) is a neural network that models sequence data, that is, the current output of a sequence is also related to the previous output. The specific manifestation is that the network will remember the previous information and apply it to the calculation of the current output, that is, the nodes between the hidden layers are no longer disconnected but connected, and the input of the hidden layer includes not only the output of the input layer but also the output of the hidden layer at the previous moment. The difference between RNN and ordinary neural networks is that it allows us to operate on sequences of vectors: the input can be a sequence, the output can also be a sequence, and in the most general case, both the input and the output can be sequences.

[0026] Long Short-Term Memory Neural Network - generally called LSTM, is a special type of RNN. LSTM was proposed by Hochreiter & Schmidhuber (1997) and was recently improved and promoted by Alex Graves. LSTM has achieved considerable success in many problems and has been widely used. LSTM avoids the gradient vanishing problem through deliberate design and can remember long-term information. In practice, LSTM only needs to pay a small computational cost to achieve better results than RNN. Bi-directional LSTM (Bi-LSTM) is a network structure of LSTM, which enables the network to learn historical and future text dependency information at the same time, which can improve the performance of LSTM in practice. The structure diagram of Bi-LSTM is shown below. Figure 2 shown.

[0027] The deep residual network was first proposed in 2015. The author represents the layer as a learning residual function based on the input. Experiments show that the residual network is easier to optimize and can improve accuracy by increasing the depth. The core is to solve the side effect (degradation problem) brought by increasing the depth, so that the network performance can be improved by simply increasing the network depth. Compared with the traditional deep network, the residual network introduces shortcut connections in the structure, such as Figure 3 shown.

[0028] Traditional text processing methods generally use words as basic features and represent words as binary-coded vectors. The dimension of the vector is equal to the length of the vocabulary. Only one element in the vector has a value of 1, which represents the position of the word in the dictionary, and all other values ​​are 0. Word vectors represented in this way not only have high vector dimensions and sparse features, which are difficult to calculate, but also any two words are independent of each other, and cannot correctly capture the semantic and lexical associations implied between words. Moreover, due to the high dimension, it becomes very difficult or even impossible to use it for neural network training.

[0029] The emergence of distributed word vectors makes it possible to use word vectors for deep network learning. Distributed word vectors represent words as a dense, low-dimensional real-valued vector, each dimension of which represents a characteristic attribute of the word. A simple cosine calculation between the vectors is all that is needed to mine the various associations between words. This method was originally promoted by Bengio in the United States. It uses a three-layer neural network to build a language model. The model is optimized by calculating the conditional probability of the N+1th word in a sentence appearing under the known first N words, and minimizing the error term between it and the true probability distribution value. Due to the existence of hidden layers, this method takes a long time to train.

[0030] like Figure 5 As shown in the figure, there are differences in corpus and model in the pre-training of word vectors, and these differences are the key to improving the robustness of the model. First, a large amount of text corpus is collected through various channels, and after pre-processing and word segmentation, document and word data are obtained. Word vector training is performed using new word vector training tools such as Word2Vec, Glove, and FastText to obtain multiple pre-trained word vectors.

[0031] The entire deep neural network is composed of multiple sub-networks. For each sub-network, the structure is the same, but different pre-trained word vectors are used. The outputs of multiple sub-networks are extracted and spliced ​​through the Attention mechanism and used as the input of the fully connected layer. At the end of the network, the output of the fully connected layer is used as the input of the sigmoid layer for the final classification.

[0032] In addition, unlike directly using the output of the previous Bi-LSTM layer as the input of the next Bi-LSTM layer, the output of the previous Bi-LSTM layer is added to the output of the previous Bi-LSTM layer, and the sum is used as the input of the next Bi-LSTM layer, so that the artificial neuron residual is transmitted along with the network, thereby achieving the purpose of preventing network degradation.

[0033] The specific steps are as follows:

[0034] Step 1: Preprocess the public opinion text data and fill in missing values.

[0035] Step 2: Use different corpora to train multiple word vectors separately.

[0036] Step 3: Use keras to build a Bi-LSTM network suitable for text data.

[0037] Step 4: Use the residual connection method to deepen the Bi-LSTM network and introduce multiple word vectors for simultaneous training.

[0038] Step 5: Through experiments, the classification effects of the improved deep multi-word embedding Bi-LSTM residual network (ours) of this patent and the traditional word embedding Bi-LSTM, the deep Bi-LSTM network without residual connection, and the deep Bi-LSTM residual network without multi-word embedding on public opinion text data are compared to verify the effectiveness of the improved deep multi-word embedding Bi-LSTM residual network from the perspective of accuracy.

[0039] Table 1 Comparison of classification effects of five models

[0040]

[0041] From Table 1 and Figure 4 It can be seen that under the same data set, the classification accuracy of the improved deep multi-word embedding Bi-LSTM residual network model of this patent is significantly higher than that of the other three models, and the logarithmic loss value is significantly lower. As the number of iterations increases, the improved deep multi-word embedding Bi-LSTM residual network model is always better than the other three models.

[0042] The above are only preferred embodiments of the present invention. It should be pointed out that a person skilled in the art can make several modifications and improvements without departing from the inventive concept of the present invention, and these all fall within the protection scope of the present invention.

Claims

1. A health public opinion analysis method based on deep multi-word embedding Bi-LSTM residual network, characterized by: The health public opinion analysis method based on the deep multi-word embedding Bi-LSTM residual network collects a large amount of text corpus through various channels, obtains document and word data after preprocessing and word segmentation, uses new word vector training tools including Word2Vec, Glove, and FastText to train word vectors, and obtains multiple pre-trained word vectors. The entire deep neural network is composed of multiple sub-networks. For each sub-network, the structure is the same, but different pre-trained word vectors are used. The outputs of the multiple sub-networks are extracted and spliced ​​through the Attention mechanism as the input of the fully connected layer, and the output of the fully connected layer is used as the input of the sigmoid layer at the end of the network for the final classification. In addition, different from directly using the output of the previous Bi-LSTM layer as the input of the next Bi-LSTM layer, the output of the previous Bi-LSTM layer is added and calculated with the output of the previous Bi-LSTM layer, and the sum result is used as the input of the next Bi-LSTM layer, so that the artificial neuron residual is transmitted with the network to achieve the purpose of preventing network degradation.

2. The health public opinion analysis method based on deep multi-word embedding Bi-LSTM residual network according to claim 1 is characterized by: The specific steps of the health public opinion analysis method based on deep multi-word embedding Bi-LSTM residual network are as follows: Step 1: Preprocess the public opinion text data and fill in missing values; Step 2: Use different corpora to train multiple word vectors separately; Step 3: Use keras to build a Bi-LSTM network suitable for text data; Step 4: Use the residual connection method to deepen the Bi-LSTM network and introduce multiple word vectors for simultaneous training; Step 5: Through experiments, we compare the classification effects of the improved deep multi-word embedding Bi-LSTM residual network in Step 4 with the traditional word embedding Bi-LSTM, the deep Bi-LSTM network without residual connection, and the deep Bi-LSTM residual network without multi-word embedding on the public opinion text data, and verify the effectiveness of the improved deep multi-word embedding Bi-LSTM residual network from the perspective of accuracy.