Fantastic speech recognition method based on BERT and generative adversarial network
Through methods based on BERT and generative adversarial networks, the data features of inflammatory speeches are extracted and adversarial training is performed, which solves the data imbalance and adversarial sample interference problems of traditional methods in identifying inflammatory speeches, and improves the recognition accuracy and robustness.
Patent Information
- Application Number
- CN202410787167.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-10-18
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional text classification and sentiment analysis methods are not effective in identifying inflammatory speeches and are easily interfered by data imbalance and adversarial samples, resulting in reduced recognition accuracy.
The recognition method based on BERT and generative adversarial network is adopted to train the generator and discriminator through adversarial training, extract data features and optimize the model to improve the recognition ability of adversarial samples.
It improves the accuracy and robustness of identifying inflammatory speech, solves the problem of data imbalance, and enhances the ability to identify complex and obscure speech.
Smart Images

Figure CN118798210A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a method and system for identifying inflammatory speech based on BERT and a generative adversarial network. Background Art
[0002] With the rapid development of information technology, the Internet has become an important platform for people to obtain information and exchange ideas. However, it also provides a hotbed for some bad elements to spread inflammatory remarks. These remarks not only undermine the harmony and stability of society, but also may pose a threat to national security. Therefore, how to effectively identify and filter these bad remarks has become an urgent problem to be solved.
[0003] Traditional text classification and sentiment analysis methods have certain limitations in identifying inflammatory speech. Traditional methods for identifying inflammatory speech often rely only on surface features of the text, such as keywords, word frequency, etc., while ignoring the deep semantic information and contextual relationships of the text. This results in poor performance of the model in identifying complex and obscure inflammatory speech. In practical applications, there is often less data on inflammatory speech, while data on normal speech is relatively abundant. This data imbalance problem will cause the model to favor the recognition of normal speech during training, thereby reducing the ability to recognize inflammatory speech. At the same time, some bad elements may deliberately create adversarial samples to interfere with and deceive the recognition model. Traditional recognition methods often have difficulty dealing with such interference, resulting in a decrease in recognition accuracy.
[0004] In summary, traditional text classification and sentiment analysis methods are not effective in identifying inflammatory speech, especially complex and obscure inflammatory speech. They are easily affected by data imbalance, which causes the model to be biased towards the recognition of normal speech during training, making it difficult to deal with adversarial samples, thereby reducing the ability to recognize inflammatory speech. Summary of the invention
[0005] In order to solve the technical problems that traditional text classification and sentiment analysis methods are not effective in identifying complex and obscure inflammatory speeches, are easily affected by data imbalance, cause the model to be biased towards the recognition of normal speeches during training, are difficult to deal with adversarial samples, and reduce the ability to recognize inflammatory speeches, the present invention provides an inflammatory speech recognition method and system based on BERT and generative adversarial networks.
[0006] The technical solution provided by the embodiment of the present invention is as follows:
[0007] A first aspect of an embodiment of the present invention provides a method for identifying inflammatory speech based on BERT and a generative adversarial network, comprising:
[0008] S1: Obtain sample data of inflammatory speech;
[0009] S2: Build an inflammatory speech recognition model based on BERT and generative adversarial network;
[0010] S3: extracting data features from the sample data of inflammatory speech through the BERT model;
[0011] S4: According to the data features, training a generator and a discriminator in a generative adversarial network through adversarial training;
[0012] S5: Obtaining data to be identified;
[0013] S6: extracting features of the data to be identified from the data to be identified by using the BERT model;
[0014] S7: According to the features of the data to be identified, the inflammatory speech in the data to be identified is identified by using the trained discriminator.
[0015] A second aspect of an embodiment of the present invention provides an inflammatory speech recognition device based on BERT and a generative adversarial network, including:
[0016] An acquisition module, used to obtain sample data of inflammatory speech;
[0017] Building a module for building an inflammatory speech recognition model based on BERT and generative adversarial networks;
[0018] An extraction module, used to extract data features from the inflammatory speech sample data through a BERT model;
[0019] A training module, used for training a generator and a discriminator in a generative adversarial network through adversarial training according to the data features;
[0020] The acquisition module is also used to acquire the data to be identified;
[0021] The extraction module is further used to extract features of the data to be identified from the data to be identified through a BERT model;
[0022] The identification module is used to identify inflammatory speech in the data to be identified based on the characteristics of the data to be identified through a trained discriminator.
[0023] A third aspect of an embodiment of the present invention provides an inflammatory speech recognition system based on BERT and a generative adversarial network, including:
[0024] A processor, which includes one or more processing cores, drives the terminal device to process a large amount of data and perform a variety of tasks by reading and executing instructions, programs, code sets or instruction sets stored in the memory, and calling corresponding data;
[0025] A memory having computer-readable instructions stored thereon, wherein when the computer-readable instructions are executed by the processor, the method for identifying inflammatory speech based on BERT and a generative adversarial network as described in the first aspect is implemented.
[0026] A fourth aspect of an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for identifying inflammatory speech based on BERT and a generative adversarial network as described in the first aspect.
[0027] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:
[0028] In the present invention, an inflammatory speech recognition model based on BERT and generative adversarial is constructed. By generating adversarial data and optimizing adversarial training, the data imbalance problem is solved and the recognition ability of adversarial samples is improved. Through the BERT model, the features of the data to be identified are accurately extracted from the data to be identified, and then the inflammatory speech is accurately identified through the trained discriminator, thereby improving the recognition accuracy and robustness of inflammatory speech. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0030] Figure 1 A flowchart of a method for identifying inflammatory speech based on BERT and a generative adversarial network provided in an embodiment of the present invention;
[0031] Figure 2 A schematic diagram of the structure of an inflammatory speech recognition device based on BERT and a generative adversarial network provided in an embodiment of the present invention;
[0032] Figure 3 A schematic diagram of the structure of an inflammatory speech recognition system based on BERT and a generative adversarial network provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0033] The technical solution of the present invention is described below in conjunction with the accompanying drawings.
[0034] In the embodiments of the present invention, words such as "exemplarily" and "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "example" in the present invention should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of the word "example" is intended to present the concept in a specific way. In addition, in the embodiments of the present invention, the meaning expressed by "and / or" can be both, or it can be either of the two.
[0035] In the embodiments of the present invention, "image" and "picture" can sometimes be used interchangeably. It should be noted that when the difference between them is not emphasized, the meanings they intend to express are the same. "of", "corresponding, relevant" and "corresponding" can sometimes be used interchangeably. It should be noted that when the difference between them is not emphasized, the meanings they intend to express are the same.
[0036] In the embodiments of the present invention, sometimes a subscript such as W1 may be written as a non-subscript such as W1. When the difference is not emphasized, the meanings to be expressed are the same.
[0037] In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.
[0038] Reference Manual Attached Figure 1 , showing a flow chart of a method for identifying inflammatory speech based on BERT and a generative adversarial network provided by an embodiment of the present invention.
[0039] The embodiment of the present invention provides a method for identifying inflammatory speech based on BERT and a generative adversarial network. The method can be implemented by an inflammatory speech identification device based on BERT and a generative adversarial network. The inflammatory speech identification device based on BERT and a generative adversarial network can be a terminal or a server. The processing flow of the method for identifying inflammatory speech based on BERT and a generative adversarial network can include the following steps:
[0040] S1: Obtain sample data of inflammatory speech.
[0041] In a possible implementation, S1 specifically includes: crawling sample data of inflammatory speech from Twitter through a crawler script, and automatically cleaning, organizing and saving the sample data.
[0042] Furthermore, during the crawling process, the tweet data is cleaned and organized. The data cleaning includes converting emoticons to text, deleting @ forwarding content information, converting traditional Chinese to simplified Chinese, and translating English to Chinese. The saved data is labeled and divided into five categories according to the content of the speech. 0: normal speech, 1: territorial inflammatory speech, 2: ethnic inflammatory speech, 3: economic inflammatory speech, 4: cultural inflammatory speech, forming model training data.
[0043] Specifically, the crawler script is written based on the Twitter API, simulating real users' requests to Twitter, crawling all the user's tweets according to the user ID and crawling tweets containing inflammatory remarks in two ways: crawling related tweets according to keywords.
[0044] S2: Build an inflammatory speech recognition model based on BERT and generative adversarial network.
[0045] Specifically, the present invention combines the BERT model with the Generative Adversarial Network (GAN) to construct an efficient model for identifying inflammatory speech. The BERT model is responsible for extracting rich contextual information from the text and generating high-quality text representations. The GAN model generates adversarial samples and conducts adversarial training on the model to enhance its ability to identify inflammatory speech.
[0046] The inflammatory speech model based on BERT and generative adversarial network includes: pre-trained BERT model and generative adversarial network;
[0047] The pre-trained BERT model adopts a pre-trained BERT benchmark model and adopts a bidirectional Transformer structure;
[0048] The generative adversarial network implementation adopts the SS-GAN architecture to achieve semi-supervised learning, and uses CNN to build a generator and a discriminator.
[0049] In the GAN architecture, CNN is used to implement the generator and discriminator construction, and the generator and discriminator loss functions are optimized.
[0050] Optionally, in a GAN framework, the SS-GAN architecture is implemented to achieve semi-supervised learning, where the discriminator is trained on a (k+1)-class target: “real” examples are classified into the target (1; :::; K) class, while generated samples are classified into the K+1 class.
[0051] S201: arranging data containing inflammatory speech and normal speech to form an inflammatory speech dataset, and using the dataset to train and fine-tune a BERT benchmark pre-trained model to form a benchmark BERT pre-trained model of the present invention;
[0052] S202: Optionally, construct a generator using a transposed convolutional network;
[0053] The generator is constructed in sequence by input layer, fully connected layer, transpose convolutional layer, batch normalization layer, activation function layer and other modules, decoding the random noise vector representation into realistic data samples.
[0054] Input Layer:
[0055] The input of the generator is a low-dimensional noise vector, which is sampled from a uniform distribution or a Gaussian distribution. This vector is used as a random seed to control the generator to generate simulated real data samples.
[0056] Fully Connected Layer:
[0057] The input vector of the generator first passes through a fully connected layer to map it to a suitable dimension for subsequent convolutional layers to process. This fully connected layer converts the low-dimensional noise vector into a feature representation with a certain dimension.
[0058] Convolutional Transpose Layer:
[0059] The generator uses transposed convolution (also called deconvolution or upsampling) to gradually upsample the feature vector from a low dimension to a high dimension. The convolutional transposed layer is similar to a normal convolutional layer, but it performs an upsampling operation to increase the size of the feature vector. These layers are used with batch normalization and activation functions such as ReLU to speed up training and enhance the expressiveness of features. Optionally, a generator is constructed with 4 transposed convolutional layers to perform upsampling operations.
[0060] Batch Normalization: After each transposed convolution layer, a batch normalization layer is added to speed up the training process and improve the performance of the model. It calculates the mean and standard deviation of each mini-batch data to normalize the feature vector, and then scales and offsets the normalized feature map through learnable parameters to prevent the gradient vanishing and exploding problems and make the model easier to train.
[0061] Activation function: After each transposed convolution layer (but after the batch normalization layer), an activation function is applied to increase the nonlinearity of the model. Use the ReLU (Rectified Linear Unit) activation function to speed up the training process and prevent the gradient vanishing problem. The mathematical expression of the ReLU (Rectified Linear Unit) activation function is f(x) = max(0,x). When the input x is greater than 0, the output is equal to the input; when the input is less than or equal to 0, the output is 0.
[0062] Output Layer:
[0063] The last layer of the generator is a transposed convolution layer (i.e., the output layer), whose output is a feature vector of the same size as the target data. After the appropriate tanh activation function, this feature vector is mapped to the range of [-1,1] to match the vector value range of the real data and serve as the simulated sample generated by the generator. The mathematical expression of the Tanh activation function is as follows:
[0064]
[0065] Where e is the base of the natural logarithm. The Tanh function is nonlinear and helps neural networks learn complex nonlinear relationships. The output of the Tanh function is zero-centered (i.e. the average value of the output value is 0), which helps to accelerate the training process of the neural network and alleviate the gradient vanishing problem.
[0066] In general, the generator consists of a series of convolutional transpose layers, which gradually map low-dimensional noise vectors to high-dimensional feature representations similar to real data. The goal of the generator is to learn the distribution of real data so that it can generate realistic data samples. By training the generator, it gradually improves the quality and diversity of generated data.
[0067] S203: Optionally, construct a discriminator using a convolutional network (CNN);
[0068] The discriminator is constructed in sequence by modules such as word input layer (Input Layer), convolutional network layer (CNNLayer), batch normalization layer (BatchNormalization), activation function layer, etc., so as to capture the long-term dependencies in the sequence data and then perform classification.
[0069] Input Layer:
[0070] The simulated data vector generated by the generator and the real inflammatory speech data are input into the pre-trained BERT model. After being processed by the pre-trained BERT model, the semantic information, contextual information, hidden state information and other information of the inflammatory speech are extracted and high-level abstracted, and the final high-level abstracted vector of the inflammatory speech is obtained. The two vectors are alternately used as the input vector in the discriminator.
[0071] Convolutional Network Layer (CNN Layer):
[0072] Each neuron in the convolutional layer of a convolutional neural network (CNN) is connected only to a local region (receptive field) of the input data, rather than to the entire input data to capture local features of the data. In the convolution operation, the same filter (convolution kernel) is applied to the entire region of the input text data (or called a sliding window), thereby achieving parameter sharing, and performing element-by-element multiplication and accumulation operations on the filter and the local region of the input data to generate each element in the feature map. In particular, the convolutional layer is designed to contain multiple convolution kernels, each of which learns and extracts different types of features from the input text data. These convolution kernels are optimized during the training process through the back-propagation algorithm to minimize the loss function of the network on a specific task.
[0073] Batch Normalization: After each convolutional layer, add a batch normalization layer to speed up the training process and improve the performance of the model. It calculates the mean and standard deviation of each small batch of data to normalize the feature vector, and then scales and offsets the normalized feature map through learnable parameters to prevent the gradient vanishing and exploding problems and make the model easier to train.
[0074] Activation function: In the discriminator, the Leaky ReLU function is used as the activation function to avoid the "dead ReLU" problem caused by the ReLU function when the input is negative, that is, the neuron no longer responds to any data during training.
[0075] The mathematical expression of the Leaky ReLU function is: f(x) = max(αx, x), where α is a small positive number. When the input x is less than 0, the function output is αx, instead of directly outputting 0 like the ReLU function. Leaky ReLU still has non-zero output when the input is negative, which can effectively prevent neurons from losing response during training. The introduction of nonlinearity enables neural networks to learn and represent complex functional relationships. Leaky ReLU can converge faster during training, thereby accelerating the training process of the entire model.
[0076] S3: Extract data features from inflammatory speech sample data through the BERT model.
[0077] It should be noted that the inflammatory speech data is real inflammatory speech crawled and annotated from Twitter. The real inflammatory speech data is input into the pre-trained BERT model. First, the real inflammatory speech data is mapped to the corresponding token vector. The token vector is processed by the pre-trained BERT model to extract the semantic information, context information, hidden state information and other information of the inflammatory speech and perform high-level abstraction. Then, it is output in the hidden layer vector. We take the hidden state vector of the last layer in the hidden layer vector as the final vector after high-level abstraction of inflammatory speech and input it into the discriminator to classify the inflammatory speech category.
[0078] In a possible implementation, S3 specifically includes sub-steps S301 to S303:
[0079] S301: Extracting token embeddings, segment embeddings, and position embeddings from sample data of inflammatory speech.
[0080] Among them, the word vector is the vector representation of each word (or subword) and is used to capture the semantic information of the word. The WordPiece word segmentation algorithm is used to split the input text into subword units, and each subword unit has a corresponding embedding vector. Text vectors (also called sentence vectors) are used to distinguish different text paragraphs. The position vector is used to capture the position information of the word in the sentence. Since the Transformer structure itself does not contain position information, the position vector is added to the embedding vector to help the model understand the order of words.
[0081] S302: Add the word vector, text vector and position vector as input of the BERT model.
[0082] S303: Input the input vector into the pre-trained BERT model, process it through a multi-layer Transformer encoder, encode the input text sequence, learn the relationship between tokens in the sequence, thereby extracting the semantic information, context information, and hidden state information of the sequence, and output the embedded representation of the inflammatory speech sample data.
[0083] The input vector is processed through a multi-layer Transformer encoder. Each Transformer encoder consists of two sub-layers: a multi-head self-attention mechanism and a fully connected feedforward neural network. Each sub-layer is followed by a residual connection layer and a normalization layer. The input text sequence is encoded, and the relationship between tokens in the sequence is learned, thereby extracting the context information of the sequence.
[0084] Multi-head self-attention layer: It is composed of multiple self-attentions. Self-attention means that the tensors used to calculate attention are obtained by multiplying the same input by different matrices. Each self-attention can learn context information independently, so that it can learn different context information, allowing the multi-head self-attention layer to capture richer context information. When calculating self-attention, the scaled dot multiplication attention formula is used:
[0085]
[0086] Among them, tensors Q and K are respectively the input X multiplied by the matrix W q and W k Get. And K T is the transpose of the tensor K. And d k is the dimension of Embedding. Softmax converts the calculation result into probability, and its formula is:
[0087]
[0088] and The role of is to scale the results to a certain range to avoid the calculated results being too large or too small, so that when using Softmax to calculate the probability, there will be problems of too large or too small probabilities, making the model easier to learn.
[0089] Feedforward neural network layer: It consists of two fully connected layers, which further increases the number of network parameters and makes the encoder more powerful in learning. It uses the ReLU activation function, which is max(x,0).
[0090] Residual connection: Residual connection adds the input to the output as the new output, making the model learning goal become learning the difference between the input and output, while also reducing the amplitude of the change between the input and output, and also avoiding gradient explosion and gradient disappearance, thereby reducing the difficulty of model learning. This accelerates the convergence speed of the model and reduces the training time, so that more network layers can be designed and trained.
[0091] Layer Normalization (LayerNorm): Layer normalization scales the input and output so that the input and output of each layer follow the same distribution, reducing the learning difficulty of the model and increasing the convergence speed of the model.
[0092] Layer normalization is calculated based on the last dimension, which is the feature dimension. Each input word is represented as a high-dimensional vector that contains information about the word's semantics, grammar, context, etc. We normalize based on the feature dimension to ensure that the feature vectors of each word have the same distribution, thereby improving the stability and generalization ability of the model.
[0093] The formula for layer normalization is:
[0094]
[0095] Parameter description: x is the input tensor, γ and β are the scaling factor and offset factor, μ and σ 2 is the mean and variance calculated along the last dimension, and ε is a small positive number used to prevent division by zero.
[0096] S303: Output the embedded representation of the inflammatory speech sample data through the BERT model.
[0097] It should be noted that the first task of the BERT model is to train the language model using the MaskLM method. In layman's terms, when a sentence is input, some words to be predicted are randomly selected, and then replaced with a special symbol [MASK], and then the model is allowed to learn the words to fill in these places based on the given labels. The second task is to add a sentence-level continuity prediction task on the basis of the bidirectional language model, that is, to predict whether the two texts input into BERT are continuous texts. Introducing this task can better enable the model to learn the relationship between continuous text fragments.
[0098] In one possible implementation, the BERT model is trained by minimizing a loss function, which includes the loss of the masked language model MLM and the loss of the next sentence prediction NSP. The loss function consists of two parts, namely the loss of the masked language model (MLM) and the loss of the next sentence prediction (NSP). Both losses are calculated using cross entropy, but the specific calculation methods are different. Cross entropy is used to measure the degree of difference between two distributions, and is used to measure the degree of difference between the true value and the predicted value.
[0099] The loss of the Masked Language Model (MLM) refers to the loss incurred when predicting the masked words. Specifically, for each word of the input, a probability distribution is output, indicating the probability of that word being each word in the vocabulary. Then, the cross entropy loss is calculated based on the true word and the predicted probability distribution. Since only 15% of the words are masked, only the losses of these words will be calculated, and the losses of other words will be ignored. Finally, the losses of all masked words are averaged to obtain the loss of MLM. The loss of MLM is expressed by the following formula:
[0100]
[0101] Where N is the number of masked words, w i is the i-th masked word, C i is the context of the i-th masked word, P(w i |C i ) is the probability distribution predicted by the model.
[0102] The next sentence prediction (NSP) loss refers to the loss incurred when judging whether two sentences are continuous. Specifically, for each sentence pair input, a binary probability distribution is output, indicating the possibility that the sentence pair is continuous (IsNext) or discontinuous (NotNext). Then, the cross entropy loss is calculated based on the true label and the predicted probability distribution. Finally, the losses of all sentence pairs are averaged to obtain the NSP loss. The NSP loss is expressed by the following formula:
[0103]
[0104] Where M is the number of sentence pairs, y j is the true label of the j-th sentence pair (0 for NotNext, 1 for IsNext), S j is the j-th sentence pair, and P(yj|Sj) is the probability distribution predicted by the model.
[0105] The total loss of BERT is the weighted sum of the loss of MLM and the loss of NSP. The loss function is expressed as follows:
[0106] L BERT =L MLM +λL NSP
[0107] Here, λ is a hyperparameter that controls the relative importance of the two losses. In the original BERT paper, λ was set to 1, indicating that the two losses are given the same weight.
[0108] In the present invention, the BERT model can effectively capture the contextual semantic information of the text and generate high-quality embedded representations. Specifically, BERT uses a bidirectional Transformer structure to read text from both the left and right directions at the same time to understand the different contexts of words in sentences. In this way, the extracted features can better reflect the true meaning and contextual relationship of the text. At the same time, the feature vector (embedding) extracted by BERT contains not only the semantic information of the word itself, but also its position and contextual relationship in the entire sentence. This high-dimensional vector representation can better characterize complex language phenomena and make it easier for the model to distinguish different types of speech.
[0109] S4: According to the data characteristics, the generator and discriminator in the generative adversarial network are trained through adversarial training.
[0110] In this framework, we train two models simultaneously, namely a generative model G that can capture the data distribution and a discriminative model D that can estimate the probability that the data comes from real samples.
[0111] In each iteration, the parameters of the generator are first fixed, and the discriminator is trained to minimize the gap between real data and generated fake data by optimizing the parameters of the discriminator. The goal of the discriminator is to maximize the judgment of real data and minimize the judgment of generated fake data.
[0112] Then, the parameters of the discriminator are fixed and the generator is trained to maximize the probability that the generated fake data can be identified as real data by optimizing the parameters of the generator. The goal of the generator is to generate fake data that can "fool" the discriminator.
[0113] The generator and the discriminator are trained alternately until the convergence condition is reached (the maximum number of iterations is reached and the loss function value tends to be stable). The ultimate goal is to make the distribution of the fake data generated by the generator and the real data as close as possible, and at this time the discriminator can also judge the category of the real data as much as possible.
[0114] Therefore, the generator and the discriminator play a minimax game. Through the minimax game, the generative adversarial network can continuously improve the performance of the generator and the discriminator.
[0115] It should be noted that the generator G is a transposed convolutional neural network that accepts a 100-dimensional random noise vector as input and then generates an output vector as generated data. The discriminator is another convolutional neural network that receives the generated data vector generated by the generator and the last layer of hidden state vectors output by BERT processing of the labeled and unlabeled data from the real distribution. The discriminator alternately uses the generated data vectors generated by the generator and the last layer of hidden state vectors output by BERT processing for iterative training.
[0116] Furthermore, during model training, we train the model using both labeled and unlabeled data. In the forward step, we sample real inflammatory speech data, which the discriminator should classify as one of the k classes; when we sample generated data, the discriminator should classify it as the k+1 class. During backpropagation, when unlabeled data are incorrectly classified as the k+1 class, they are taken into account in the loss calculation. In all other cases, their contribution to the loss is masked. Therefore, labeled data contributes to the discriminator's loss calculation. Finally, the examples generated by the generator contribute to both the generator and discriminator loss calculations, that is, if the examples generated by the generator are not found, the discriminator will be penalized, and vice versa. When updating the discriminator, we also change the BERT weights to fine-tune its internal representation and improve its ability to extract inflammatory speech information.
[0117] Optionally, after training, only the fine-tuned BERT model and the discriminator are retained for inference, with no additional cost at inference relative to the standard BERT model.
[0118] In a possible implementation, S4 specifically includes:
[0119] S401: Construct the value function V(G, D) of the generator and the discriminator. The discriminator D and the generator G play a minimax game on the value function V(G, D) and continuously improve their respective capabilities in adversarial training. The value function V(G, D) is as follows:
[0120]
[0121] Among them, min means minimization, max means maximization, V() means value function, G means generator, D means discriminator, E[] means mathematical expectation, x means true inflammatory speech, Pdata(x) means the distribution of true inflammatory speech, D(x) means the identification result of the discriminator for true inflammatory speech x, z means the noise input to the generator, P(z) means the distribution of noise, G(z) means the false inflammatory speech generated by the generator according to the noise z, and D(G(z)) means the identification result of the discriminator for false inflammatory speech G(z).
[0122] S402: With the goal of minimizing the first objective function, it can be seen from the properties of the log function that the following formula can only have a minimum value when the value of D(G(z)) is close to 1. D(G(z)) = 1 means that the discriminant model D judges the image generated by the generative model G as a real image, so minimizing this function can enable the generative model G to generate images close to the distribution of real images through continuous training. With the goal of minimizing the first objective function, the generator is trained by the small batch stochastic gradient descent method. The first objective function is specifically:
[0123]
[0124] Among them, F1() represents the first objective function, θ G Represents a generator parameter.
[0125] Among them, Stochastic Gradient Descent (SGD) is a basic method in optimization algorithms. Compared with the traditional gradient descent method, SGD does not use the entire training data set to calculate the gradient, but only uses one sample (or a small batch of samples) to calculate the gradient in each iteration, and then updates the model parameters. SGD is widely used in machine learning and deep learning to minimize the loss function. The gradient descent method iteratively adjusts the model parameters so that the loss function gradually decreases and eventually finds the local minimum or the global minimum.
[0126] S403: Given a generator G, maximize V(D,G) to obtain the optimal discriminator D. With the goal of maximizing the second objective function, we always expect that the larger D(x) is, the smaller D(G(z)) is. Therefore, we maximize the following formula, constrain the relationship between them with the log function, and continuously adjust the weights of the network through training to achieve our expectation of obtaining the optimal discriminator.
[0127] The discriminator is trained by mini-batch stochastic gradient descent method with the goal of maximizing the second objective function. The second objective function is specifically:
[0129]
[0130] Among them, F2() represents the second objective function, θ D Represents the discriminator parameters.
[0131] In the present invention, an adversarial training strategy is adopted to continuously improve the ability of the generator network to generate inflammatory speech through adversarial training between the generator network and the discriminator network, while strengthening the discriminator network's ability to identify true and false speech, thereby achieving a more accurate inflammatory speech recognition effect.
[0132] S404: Introduce multi-scale training and progressive training to optimize adversarial training;
[0133] Multi-scale training and progressive training are introduced to help improve the stability and generation quality of GAN.
[0134] Multi-Scale Training:
[0135] Multi-scale training is introduced to train GAN at different scales so that the generator can generate text data with different lengths and categories, thereby generating more realistic simulation data.
[0136] step:
[0137] Initialize the parameters of the generator G and the discriminator D networks.
[0138] During the training process, text data of various lengths and categories are used as input.
[0139] The generator G tries to generate fake data that matches these multi-scale data, while the discriminator D tries to distinguish between real and fake data.
[0140] At each scale, the generator G and the discriminator D are trained to optimize their performance.
[0141] Eventually, the generator G will be able to generate realistic data with multiple scales.
[0142] Progressive Training:
[0143] Introducing progressive training gradually increases the complexity of the GAN during training. This helps stabilize the training process and allows the generator to gradually learn how to generate text data of higher complexity.
[0144] step:
[0145] Initialize a GAN with short text and a small number of categories.
[0146] Train on this low-scale GAN until the generator G can generate data of good quality.
[0147] Gradually increase the complexity of the GAN (usually increase the number of neural network layers) and increase the length and category of speech texts.
[0148] To avoid large impacts on previously trained layers, new layers can be added to the network gradually, with a control parameter (such as alpha) to control the impact of the new layers.
[0149] Continue training the GAN on this new data complexity until the generator G is able to generate more complex realistic data.
[0150] You can continue to increase the complexity of the speech and repeat the above steps until you achieve the desired resolution effect.
[0151] Through multi-scale training and progressive training, GAN can be trained more stably and generate higher quality data.
[0152] S5: Obtain the data to be identified.
[0153] S6: Extract the features of the data to be identified from the data to be identified through the trained and fine-tuned BERT model.
[0154] S7: Based on the features of the data to be identified, the trained discriminator is used to identify inflammatory remarks in the data to be identified.
[0155] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:
[0156] In the present invention, an inflammatory speech recognition model based on BERT and generative adversarial is constructed. By generating adversarial data and optimizing adversarial training, the data imbalance problem is solved and the recognition ability of adversarial samples is improved. Through the BERT model, the features of the data to be identified are accurately extracted from the data to be identified, and then the inflammatory speech is accurately identified through the trained discriminator, thereby improving the recognition accuracy and robustness of inflammatory speech.
[0157] Reference Manual Attached Figure 2 , showing a structural schematic diagram of an inflammatory speech identification device based on BERT and a generative adversarial network provided by the present invention.
[0158] The embodiment of the present invention provides an inflammatory speech recognition device 20 based on BERT and a generative adversarial network, comprising:
[0159] An acquisition module 201 is used to acquire sample data of inflammatory speech;
[0160] Building module 202, for building an inflammatory speech recognition model based on BERT and a generative adversarial network;
[0161] An extraction module 203, configured to extract data features from the inflammatory speech sample data by using a BERT model;
[0162] A training module 204 is used to train a generator and a discriminator in a generative adversarial network through adversarial training according to the data features;
[0163] The acquisition module 201 is also used to acquire the data to be identified;
[0164] The extraction module 203 is further used to extract features of the data to be identified from the data to be identified through a BERT model;
[0165] The identification module 205 is used to identify inflammatory speech in the data to be identified based on the characteristics of the data to be identified by using a trained discriminator.
[0166] In a possible implementation, the acquisition module 201 is specifically used to crawl sample data of inflammatory speech from Twitter through a crawler script, and automatically clean, organize and save the sample data.
[0167] In a possible implementation, the inflammatory speech model based on BERT and a generative adversarial network includes: a pre-trained BERT model and a generative adversarial network;
[0168] The pre-trained BERT model adopts a pre-trained BERT benchmark model and adopts a bidirectional Transformer structure;
[0169] The generative adversarial network implementation adopts the SS-GAN architecture to achieve semi-supervised learning, and uses CNN to build a generator and a discriminator.
[0170] In a possible implementation, the extraction module 203 is specifically used to:
[0171] Extracting word vectors, text vectors, and position vectors from the inflammatory speech sample data;
[0172] Adding the word vector, the text vector, and the position vector as input to the BERT model;
[0173] The input vector is input into the pre-trained BERT model, processed by a multi-layer Transformer encoder, the input text sequence is encoded, and the relationship between tokens in the sequence is learned, so as to extract the semantic information, contextual information, and hidden state information of the sequence, and output the embedded representation of the inflammatory speech sample data.
[0174] In one possible implementation,
[0175] The BERT model is trained by minimizing a loss function, wherein the loss function includes the loss of the masked language model MLM and the loss of the next sentence prediction NSP;
[0176] The loss of the masked language model MLM is specifically:
[0177]
[0178] Where N is the number of masked words, w i is the i-th masked word, C i is the context of the i-th masked word, P(w i |C i ) is the probability distribution predicted by the model.
[0179] The next sentence predicts the loss of NSP as follows:
[0180]
[0181] Where M is the number of sentence pairs, y j is the true label of the jth sentence pair, S j is the jth sentence pair, P(y j |S j ) is the probability distribution predicted by the model.
[0182] The loss function is specifically:
[0183] L BERT =L MLM +λL NSP
[0184] Among them, λ represents a hyperparameter, which is used to control the relative importance of the two losses.
[0185] In a possible implementation, the training module 204 is specifically used for:
[0186] Construct the value function V(G,D) of the generator and discriminator. The discriminator D and the generator G play a minimax game on the value function V(G,D) and continuously improve their respective capabilities in adversarial training. The value function V(G,D) is as follows:
[0187]
[0188] Wherein, min means minimization, max means maximization, V() means value function, G means generator, D means discriminator, E[] means mathematical expectation, x means true inflammatory speech, Pdata(x) means the distribution of true inflammatory speech, D(x) means the identification result of the discriminator for true inflammatory speech x, z means the noise input to the generator, P(z) means the distribution of noise, G(z) means the false inflammatory speech generated by the generator according to the noise z, and D(G(z)) means the identification result of the discriminator for false inflammatory speech G(z);
[0189] The generator is trained by minimizing the first objective function through the small batch stochastic gradient descent method. The first objective function is specifically:
[0190]
[0191] Among them, F1() represents the first objective function, θ G Represents generator parameters;
[0192] The discriminator is trained by mini-batch stochastic gradient descent method with the goal of maximizing the second objective function. The second objective function is specifically:
[0193]
[0194] Among them, F2() represents the second objective function, θ D Represents the discriminator parameters.
[0195] The inflammatory speech identification device 20 based on BERT and generative adversarial network provided by the present invention can execute the above-mentioned inflammatory speech identification method based on BERT and generative adversarial network, and achieve the same or similar technical effects. To avoid repetition, the present invention will not go into details.
[0196] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:
[0197] In the present invention, an inflammatory speech recognition model based on BERT and a generative adversarial network is constructed. By generating adversarial data and optimizing adversarial training, the data imbalance problem is solved and the recognition ability of adversarial samples is improved. Through the BERT model, the features of the data to be identified are accurately extracted from the data to be identified, and then through the trained discriminator, inflammatory speech is accurately identified, thereby improving the recognition accuracy and robustness of inflammatory speech.
[0198] Reference Manual Attached Figure 3 , showing a structural schematic diagram of an inflammatory speech identification system based on BERT and a generative adversarial network provided by the present invention.
[0199] The present invention further provides an inflammatory speech recognition system 30 based on BERT and a generative adversarial network, which is applied to the above-mentioned inflammatory speech recognition method based on BERT and a generative adversarial network, comprising:
[0200] Processor 301, processor 301 includes one or more processing cores, which drives the terminal device to process large amounts of data and perform various tasks by reading and executing instructions, programs, code sets or instruction sets stored in the memory and calling corresponding data.
[0201] The memory 302 stores computer-readable instructions. When the computer-readable instructions are executed by the processor 301, the method for identifying inflammatory speech based on BERT and a generative adversarial network as in the method embodiment is implemented.
[0202] The inflammatory speech identification system 30 based on BERT and generative adversarial network provided by the present invention can execute the above-mentioned inflammatory speech identification method based on BERT and generative adversarial network, and achieve the same or similar technical effects. To avoid repetition, the present invention will not go into details.
[0203] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:
[0204] In the present invention, an inflammatory speech recognition model based on BERT and generative adversarial is constructed. By generating adversarial data and optimizing adversarial training, the data imbalance problem is solved and the recognition ability of adversarial samples is improved. Through the BERT model, the features of the data to be identified are accurately extracted from the data to be identified, and then the inflammatory speech is accurately identified through the trained discriminator, thereby improving the recognition accuracy and robustness of inflammatory speech.
[0205] It should be understood that the processor in the embodiment of the present invention may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0206] It should also be understood that the memory in the embodiments of the present invention may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct rambus RAM (DR RAM).
[0207] The above embodiments can be implemented in whole or in part by software, hardware (such as circuits), firmware or any other combination. When implemented by software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state hard disk.
[0208] It should be understood that the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. A and B can be singular or plural. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship, but it may also indicate an "and / or" relationship. Please refer to the context for specific understanding.
[0209] In the present invention, "at least one" means one or more, and "more than one" means two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can be represented by: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.
[0210] It should be understood that in various embodiments of the present invention, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0211] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0212] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described equipment, devices and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0213] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0214] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0215] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0216] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0217] An embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, characterized in that when the program is executed by a processor, the method for identifying inflammatory speech based on BERT and a generative adversarial network as described in the method embodiment is implemented.
[0218] A computer-readable storage medium provided by the present invention can implement the steps and effects of the method for identifying inflammatory speech based on BERT and a generative adversarial network in the above-mentioned method embodiment. To avoid repetition, the present invention will not go into details.
[0219] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:
[0220] In the present invention, an inflammatory speech recognition model based on BERT and a generative adversarial network is constructed. By generating adversarial data and optimizing adversarial training, the data imbalance problem is solved and the recognition ability of adversarial samples is improved. Through the BERT model, the features of the data to be identified are accurately extracted from the data to be identified, and then through the trained discriminator, inflammatory speech is accurately identified, thereby improving the recognition accuracy and robustness of inflammatory speech.
[0221] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
[0222] There are a few points to note:
[0223] (1) The drawings of the embodiments of the present invention only relate to the structures related to the embodiments of the present invention, and other structures may refer to the general design.
[0224] (2) For the sake of clarity, in the drawings used to describe the embodiments of the present invention, the thickness of the layers or regions is exaggerated or reduced, that is, these drawings are not drawn according to the actual scale. It is understood that when an element such as a layer, film, region or substrate is referred to as being "on" or "under" another element, the element may be "directly" "on" or "under" the other element or there may be intermediate elements.
[0225] (3) In the absence of conflict, the embodiments of the present invention and the features therein may be combined with each other to obtain new embodiments.
[0226] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. The protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A method for identifying inflammatory speech based on BERT and generative adversarial networks, It is characterized in that include: S1: Obtain sample data of inflammatory speech; S2: Build an inflammatory speech recognition model based on BERT and generative adversarial network; S3: extracting data features from the sample data of inflammatory speech through the BERT model; S4: According to the data features, training a generator and a discriminator in a generative adversarial network through adversarial training; S5: Obtaining data to be identified; S6: extracting features of the data to be identified from the data to be identified by using the BERT model; S7: According to the features of the data to be identified, the inflammatory speech in the data to be identified is identified by using the trained discriminator.
2. The method for identifying inflammatory speech based on BERT and generative adversarial network according to claim 1, It is characterized in that The S1 is specifically: Through the crawler script, we crawled sample data of inflammatory speech from Twitter, and automatically cleaned, organized and saved the sample data.
3. The method for identifying inflammatory speech based on BERT and generative adversarial network according to claim 1, It is characterized in that The inflammatory speech model based on BERT and a generative adversarial network includes: a pre-trained BERT model and a generative adversarial network; The pre-trained BERT model adopts a pre-trained BERT benchmark model and adopts a bidirectional Transformer structure; The generative adversarial network implementation adopts the SS-GAN architecture to achieve semi-supervised learning, and uses CNN to build a generator and a discriminator.
4. The method for identifying inflammatory speech based on BERT and generative adversarial network according to claim 1, It is characterized in that The S3 specifically includes: S301: extracting word vectors, text vectors and position vectors from the inflammatory speech sample data; S302: Add the word vector, the text vector and the position vector as input of the BERT model; S303: Input the input vector into the pre-trained BERT model, process it through a multi-layer Transformer encoder, encode the input text sequence, learn the relationship between tokens in the sequence, thereby extracting the semantic information, context information, and hidden state information of the sequence, and output the embedded representation of the inflammatory speech sample data.
5. The method for identifying inflammatory speech based on BERT and generative adversarial network according to claim 1, It is characterized in that The BERT model is trained by minimizing a loss function, wherein the loss function includes the loss of the masked language model MLM and the loss of the next sentence prediction NSP; The loss of the masked language model MLM is specifically: Where N is the number of masked words, w i is the i-th masked word, C i is the context of the i-th masked word, P(w i |C i ) is the probability distribution predicted by the model; The next sentence predicts the loss of NSP as follows: Where M is the number of sentence pairs, y j is the true label of the jth sentence pair, S j is the jth sentence pair, P(y j |S j ) is the probability distribution predicted by the model; The loss function is specifically: THE BERT =L MLM +λL NSP Among them, λ represents a hyperparameter, which is used to control the relative importance of the two losses.
6. The method for identifying inflammatory speech based on BERT and generative adversarial network according to claim 1, It is characterized in that The S4 specifically includes: S401: Construct the value function V(G, D) of the generator and the discriminator. The discriminator D and the generator G play a minimax game on the value function V(G, D) and continuously improve their respective capabilities in adversarial training. The value function V(G, D) is as follows: Wherein, min means minimization, max means maximization, V() means value function, G means generator, D means discriminator, E[] means mathematical expectation, x means true inflammatory speech, Pdata(x) means the distribution of true inflammatory speech, D(x) means the identification result of the discriminator for true inflammatory speech x, z means the noise input to the generator, P(z) means the distribution of noise, G(z) means the false inflammatory speech generated by the generator according to the noise z, and D(G(z)) means the identification result of the discriminator for false inflammatory speech G(z); S402: The generator is trained by a small batch stochastic gradient descent method with the goal of minimizing a first objective function, wherein the first objective function is specifically: Among them, F 1 () represents the first objective function, θ G Represents generator parameters; S403: The discriminator is trained by a small batch stochastic gradient descent method with the goal of maximizing a second objective function, wherein the second objective function is specifically: Among them, F 2 () represents the second objective function, θ D Represents the discriminator parameters.
7. A device for identifying inflammatory speech based on BERT and generative adversarial networks. It is characterized in that include: An acquisition module, used to obtain sample data of inflammatory speech; Building a module for building an inflammatory speech recognition model based on BERT and generative adversarial networks; An extraction module, used to extract data features from the inflammatory speech sample data through a BERT model; A training module, used for training a generator and a discriminator in a generative adversarial network through adversarial training according to the data features; The acquisition module is also used to acquire the data to be identified; The extraction module is further used to extract features of the data to be identified from the data to be identified through a BERT model; The identification module is used to identify inflammatory speech in the data to be identified based on the characteristics of the data to be identified through a trained discriminator.
8. The inflammatory speech recognition device based on BERT and generative adversarial network according to claim 7, It is characterized in that The acquisition module is specifically used for: Through the crawler script, we crawled sample data of inflammatory speech from Twitter, and automatically cleaned, organized and saved the sample data.
9. The inflammatory speech recognition device based on BERT and generative adversarial network according to claim 7, It is characterized in that The inflammatory speech model based on BERT and generative adversarial network includes: pre-trained BERT model and generative adversarial network; The pre-trained BERT model adopts a pre-trained BERT benchmark model and adopts a bidirectional Transformer structure; The generative adversarial network implementation adopts the SS-GAN architecture to achieve semi-supervised learning, and uses CNN to build a generator and a discriminator.
10. The inflammatory speech recognition device based on BERT and generative adversarial network according to claim 7, It is characterized in that The extraction module is specifically used for: Extracting word vectors, text vectors, and position vectors from the inflammatory speech sample data; Adding the word vector, the text vector, and the position vector as input to the BERT model; The input vector is input into the pre-trained BERT model, processed by a multi-layer Transformer encoder, the input text sequence is encoded, and the relationship between tokens in the sequence is learned, so as to extract the semantic information, contextual information, and hidden state information of the sequence, and output the embedded representation of the inflammatory speech sample data.
Citation Information
Patent Citations
Language representation model pre-training method based on generator-discriminator architecture
CN116049405A
Event detection method fusing multi-modal features
CN116089644A
Cited By
Semi-supervised text classification method and system based on multi-encoder generative adversarial learning
CN119475126A
Customer service interface docking management system
CN120030135A
