Multi-modal emotion recognition method and device, computer equipment and storage medium
The feature bridging method is used to perform cross-modal alignment and information fusion in multi-modal emotion recognition, which solves the problem of insufficient feature integration caused by direct input of single-modal representation in the existing technology, and improves the accuracy and efficiency of emotion recognition.
Patent Information
- Application Number
- CN202410754278.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-10-08
AI Technical Summary
Existing multi-modal emotion recognition models directly input single-modal representation into the cross-modal encoder, which simplifies the fusion process, making it difficult to effectively integrate different modal features and unable to conduct comprehensive and effective multi-modal emotion recognition. .
The feature bridging method is used to bridge the global feature representation of text information and image information with the single-modal feature representation to achieve bottom-up cross-modal alignment and information fusion, and perform cross-modal feature interaction through feature bridging representation. Extract feature information related to emotion recognition.
It improves the accuracy and efficiency of emotion recognition, achieves full perception and fusion of text and image feature information, and enhances the accuracy of emotion recognition.
Smart Images

Figure CN118747348A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of emotion recognition, and in particular to a multimodal emotion recognition method, apparatus, computer equipment and storage medium. Background Art
[0002] With the surge in text and image data on social platforms, graph social networking platforms have become the main channel for individuals to express their personal opinions. The purpose of multimodal sentiment analysis is to identify users' emotions and positions on specific topics or events by utilizing different data forms. In recent years, multimodal sentiment recognition has attracted more and more research attention because understanding multimodal emotions has considerable research significance and potential value for public safety and industry.
[0003] The current models used for multimodal emotion recognition include a multi-layer fusion emotion detection network based on label and data comparison learning methods, an interactive network based on the interactive relationship between images and texts, and a sentiment consistency constraint network based on a text-guided fusion module that uses text modal data as the dominant one. Although the above models have achieved improvements to varying degrees, they all directly input single-modal representations into the cross-modal encoder, simplifying the fusion process without fully fusing the features, making it difficult to effectively integrate complex tasks involving features of different modalities, and unable to perform comprehensive and effective multimodal emotion recognition. Summary of the invention
[0004] Based on this, the purpose of the present invention is to provide a multimodal emotion recognition method, apparatus, computer equipment and storage medium, which adopts a feature bridging method to perform feature bridge on a global feature representation containing text information and image information and a unimodal feature representation to obtain a feature bridge representation, thereby realizing bottom-up cross-modal alignment and information fusion, performing cross-modal feature interaction on a feature bridge representation constructed based on a unimodal feature representation, fully perceiving text feature information and image feature information, extracting feature information related to emotion recognition, and using it for emotion recognition, thereby improving the accuracy and efficiency of emotion recognition.
[0005] In a first aspect, an embodiment of the present application provides a multimodal emotion recognition method, comprising the following steps:
[0006] Obtaining document data to be tested and a preset emotion recognition model, wherein the document data to be tested includes text to be tested and an image to be tested, and the emotion recognition model includes a global feature extraction module, a unimodal feature extraction module, a feature bridging module, a feature interaction module, a feature fusion module and an emotion recognition module;
[0007] Inputting the document data to be tested into the feature extraction module to perform global feature extraction, and obtaining a text global feature representation corresponding to the text to be tested and an image global feature representation corresponding to the image to be tested;
[0008] Inputting the text global feature representation and the image global feature representation into the unimodal feature extraction module respectively to perform unimodal feature extraction, and obtaining unimodal feature representations output by several layers of the unimodal feature extraction module;
[0009] Inputting the text global feature representation, the image global feature, the text unimodal feature representation in the unimodal feature representations output by several layers of the unimodal feature extraction module, and the image unimodal feature representation into the feature bridging module for feature bridging to obtain a bridging feature representation;
[0010] Inputting the text bridging feature representation and the image bridging feature representation in the bridging feature representation into the feature interaction module for feature interaction to obtain a text cross-modal feature representation and an image cross-modal feature representation;
[0011] Inputting the text unimodal feature representation, the image unimodal feature representation, the text cross-modal feature representation and the image cross-modal feature representation in the unimodal feature representation output by the last layer of the unimodal feature extraction module into the feature fusion module for feature fusion to obtain a multimodal feature fusion representation;
[0012] The multimodal feature fusion representation is input into the emotion recognition module for emotion recognition to obtain emotion recognition probability data, and based on the emotion recognition probability data, the emotion polarity with the largest dimension is obtained as the emotion recognition result of the document data to be tested.
[0013] In a second aspect, an embodiment of the present application provides a multimodal emotion recognition device, comprising:
[0014] A data acquisition module, used to obtain document data to be tested and a preset emotion recognition model, wherein the document data to be tested includes text to be tested and an image to be tested, and the emotion recognition model includes a global feature extraction module, a unimodal feature extraction module, a feature bridging module, a feature interaction module, a feature fusion module and an emotion recognition module;
[0015] A global feature acquisition module, used for inputting the document data to be tested into the feature extraction module to perform global feature extraction, and obtaining a text global feature representation corresponding to the text to be tested and an image global feature representation corresponding to the image to be tested;
[0016] A unimodal feature acquisition module, used for inputting the text global feature representation and the image global feature representation into the unimodal feature extraction module respectively to perform unimodal feature extraction, and obtaining unimodal feature representations of several layers of output of the unimodal feature extraction module;
[0017] A bridging feature acquisition module, used for inputting the text global feature representation, the image global feature, the text unimodal feature representation in the unimodal feature representations output by several layers of the unimodal feature extraction module, and the image unimodal feature representation into the feature bridging module for feature bridging to obtain a bridging feature representation;
[0018] A cross-modal feature acquisition module, used for inputting the text bridging feature representation and the image bridging feature representation in the bridging feature representation into the feature interaction module for feature interaction, so as to obtain the text cross-modal feature representation and the image cross-modal feature representation;
[0019] A multimodal feature acquisition module, used for inputting the text unimodal feature representation, the image unimodal feature representation, the text cross-modal feature representation and the image cross-modal feature representation in the unimodal feature representation output by the last layer of the unimodal feature extraction module into the feature fusion module for feature fusion, so as to obtain a multimodal feature fusion representation;
[0020] The emotion recognition result acquisition module is used to input the multimodal feature fusion representation into the emotion recognition module for emotion recognition, obtain emotion recognition probability data, and obtain the emotion polarity with the largest dimension based on the emotion recognition probability data as the emotion recognition result of the document data to be tested.
[0021] In a third aspect, an embodiment of the present application provides a computer device comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the multimodal emotion recognition method as described in the first aspect are implemented.
[0022] In a fourth aspect, an embodiment of the present application provides a storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the multimodal emotion recognition method as described in the first aspect are implemented.
[0023] In an embodiment of the present application, a multimodal emotion recognition method, apparatus, device and storage medium are provided, which adopts a feature bridging method to perform feature bridging on a global feature representation containing text information and image information and a unimodal feature representation to obtain a feature bridging representation, thereby realizing bottom-up cross-modal alignment and information fusion, performing cross-modal feature interaction on a feature bridging representation constructed based on a unimodal feature representation, fully perceiving text feature information and image feature information, extracting feature information related to emotion recognition, and using it for emotion recognition, thereby improving the accuracy and efficiency of emotion recognition.
[0024] For better understanding and implementation, the present invention is described in detail below with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 A schematic diagram of a multimodal emotion recognition method provided in one embodiment of the present application;
[0026] Figure 2 A schematic diagram of S2 in the process of a multimodal emotion recognition method provided by an embodiment of the present application;
[0027] Figure 3 A schematic diagram of S3 in the process of a multimodal emotion recognition method provided by an embodiment of the present application;
[0028] Figure 4 A schematic diagram of S4 in the process of a multimodal emotion recognition method provided by an embodiment of the present application;
[0029] Figure 5 A schematic diagram of S5 in the process of a multimodal emotion recognition method provided by an embodiment of the present application;
[0030] Figure 6 A schematic diagram of S6 in the process of a multimodal emotion recognition method provided by an embodiment of the present application;
[0031] Figure 7 A schematic diagram of S7 in the process of a multimodal emotion recognition method provided by an embodiment of the present application;
[0032] Figure 8 A schematic diagram of the structure of a multimodal emotion recognition device provided in one embodiment of the present application;
[0033] Fig. 9 A schematic diagram of the structure of a computer device provided for one embodiment of the present application. DETAILED DESCRIPTION
[0034] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0035] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0036] It should be understood that, although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" / "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determination".
[0037] See also Figure 1 , Figure 1 A schematic diagram of a multimodal emotion recognition method provided in one embodiment of the present application, wherein the method comprises the following steps:
[0038] S1: Obtain the document data to be tested and the preset emotion recognition model.
[0039] The executor of the multimodal emotion recognition method is a recognition device of the multimodal emotion recognition method (hereinafter referred to as the recognition device). In an optional embodiment, the recognition device can be a computer device, a server, or a server cluster composed of multiple computer devices.
[0040] In this embodiment, the recognition device obtains document data to be tested and a preset emotion recognition model, wherein the document data to be tested includes text to be tested and an image to be tested, and the emotion recognition model includes a global feature extraction module, a single-modal feature extraction module, a feature bridging module, a feature interaction module, a feature fusion module, and an emotion recognition module.
[0041] S2: Inputting the document data to be tested into the feature extraction module to perform global feature extraction, and obtaining a text global feature representation corresponding to the text to be tested and an image global feature representation corresponding to the image to be tested.
[0042] In this embodiment, the recognition device inputs the document data to be tested into the feature extraction module to perform global feature extraction, and obtains the text global feature representation corresponding to the text to be tested and the image global feature representation corresponding to the image to be tested.
[0043] The feature extraction module includes a word embedding module, a target detection module and a dimension transformation module; see Figure 2 , Figure 2 The schematic diagram of S2 in the process of the multimodal emotion recognition method provided in one embodiment of the present application includes steps S21 to S23, which are specifically as follows:
[0044] S21: Input the text to be tested into the word embedding module for encoding processing to obtain an initial text feature representation of the text to be tested.
[0045] The word embedding module adopts the BERT (Bidirectional Encoder Representation from Transformers) word embedding model, which is used to convert the vectors of several words in the test text into corresponding state vectors.
[0046] In this embodiment, the detection device inputs the text to be tested into the word embedding module for encoding processing to obtain the initial text feature representation of the text to be tested.
[0047] Specifically, the recognition device inputs the text to be tested into the BERT word embedding model, maps each word in the text to be tested into a low-dimensional vector space, obtains hidden layer vectors of several words of the text to be tested output by the BERT word embedding model by querying the pre-trained BERT matrix, and performs encoding processing to obtain the initial text feature representation, wherein the initial text feature representation is:
[0048] X=(x0,x1…,x i …,x n-1 )
[0049] Where X is the initial text feature representation, x i is the hidden layer vector of the i-th word, x n-1 is the hidden layer vector of the n-1th word.
[0050] T=(t0,t1,…,t i …,t n-1 )
[0051] Where T is the initial text feature representation, t i is the hidden layer vector of the i-th word, t n-1 is the hidden layer vector of the n-1th word, and n is the total number of words.
[0052] S22: Divide the image to be tested into a plurality of image sub-regions, input the plurality of image sub-regions into the target detection module for target detection, and obtain an initial image feature representation of the image to be tested.
[0053] The target detection module uses the Vision Transformer model for multi-target detection and can determine predefined objects related to entities in the image.
[0054] In this embodiment, the detection device divides the image to be tested into a plurality of image sub-regions according to preset region size data, inputs the plurality of image sub-regions into the target detection module for target detection, and obtains an initial image feature representation of the image to be tested, wherein the initial image feature representation is:
[0055] V=[v0,v1,...,v j ,…,v m-1 ]
[0056] Where V is the initial image feature representation, v j is the detection vector of the jth image sub-region, v m-1 is the detection vector of the m-1th image sub-region, and m is the total number of image sub-regions.
[0057] S23: Inputting the initial text feature representation and the initial image feature representation into the dimension transformation module for dimension transformation and feature extraction to obtain the text global feature representation and the image global feature representation.
[0058] The dimension transformation module adopts an MLP (Multilayer Perceptron) multilayer perceptron model, which is a feedforward artificial neural network model that maps multiple input data sets to a single output data set.
[0059] In this embodiment, the detection device uses two multi-layer perceptron models with different parameters to map the initial text feature representation and the initial image feature representation to the same dimensional space according to the initial text feature representation and the initial image feature representation, performs dimensional transformation and feature extraction, and obtains the text global feature representation and the image global feature representation, wherein the text global feature representation is:
[0060]
[0061] In the formula, is the global feature representation of the text, norm() is the normalization function, and MLP() is the multi-layer perceptron function.
[0062] The global feature of the image is expressed as:
[0063]
[0064] In the formula, is the global feature representation of the image.
[0065] S3: Inputting the text global feature representation and the image global feature representation into the unimodal feature extraction module respectively to perform unimodal feature extraction, and obtaining unimodal feature representations output by several layers of the unimodal feature extraction module.
[0066] In this embodiment, the recognition device inputs the text global feature representation and the image global feature representation into the unimodal feature extraction module respectively to perform unimodal feature extraction, and obtains unimodal feature representations of several layers of output of the unimodal feature extraction module.
[0067] See also Figure 3 , Figure 3 The schematic diagram of S3 in the process of the multimodal emotion recognition method provided by one embodiment of the present application includes step S31, which is as follows:
[0068] S31: respectively using the text global feature representation and the image global feature representation as input vectors of the first layer of the unimodal feature extraction module, and obtaining unimodal feature representations of several layers of outputs of the unimodal feature extraction module according to a preset unimodal feature extraction algorithm.
[0069] The recognition device uses a unimodal encoder (self-Transformer) as the unimodal feature extraction module to extract unimodal feature representation.
[0070] In this embodiment, the recognition device uses the text global feature representation and the image global feature representation as the input vector of the first layer of the unimodal feature extraction module, and obtains the unimodal feature representation of several layers of output of the unimodal feature extraction module according to a preset unimodal feature extraction algorithm, wherein the unimodal feature extraction algorithm is:
[0071]
[0072] In the formula, is the unimodal feature representation output by the lth layer of the unimodal feature extraction module, is the unimodal feature representation output by the l-1th layer of the unimodal feature extraction module, softmax(·) is the normalized activation function, and dQ is the dimension parameter.
[0073] S4: Input the text global feature representation, the image global feature, the text unimodal feature representation in the unimodal feature representation output by several layers of the unimodal feature extraction module, and the image unimodal feature representation into the feature bridging module for feature bridging to obtain a bridging feature representation.
[0074] In this embodiment, the recognition device inputs the text global feature representation, the image global feature, the text unimodal feature representation in the unimodal feature representations output by several layers of the unimodal feature extraction module, and the image unimodal feature representation into the feature bridging module for feature bridging to obtain a bridging feature representation.
[0075] See also Figure 4 , Figure 4 The schematic diagram of S4 in the process of the multimodal emotion recognition method provided in one embodiment of the present application includes steps S41 to S42, which are specifically as follows:
[0076] S41: Input the unimodal feature representations output by several layers of the unimodal feature extraction module, the text global feature representation and the image global feature into the feature bridging module, respectively use the text global feature representation and the text unimodal feature representation of the first layer as the input vectors of the first layer of the feature bridging module, use the image global feature representation and the image unimodal feature representation of the first layer as the input vectors of the first layer of the feature bridging module, perform layer normalization processing, and obtain the bridging feature representation output by the first layer of the feature bridging module.
[0077] In this embodiment, the recognition device inputs the unimodal feature representations output by several layers of the unimodal feature extraction module, the text global feature representation, and the image global feature into the feature bridging module, and uses the text global feature representation and the first layer of text unimodal feature representation as input vectors of the first layer of the feature bridging module, and uses the image global feature representation and the first layer of image unimodal feature representation as input vectors of the first layer of the feature bridging module, respectively, and performs layer normalization processing to obtain the bridging feature representation output by the first layer of the feature bridging module.
[0078] S42: Based on the bridging feature representation output by the first layer of the feature bridging module and the unimodal feature representations output by several layers of the unimodal feature extraction module, according to a preset feature bridging algorithm, the bridging feature representation output by the current layer of the feature bridging module and the corresponding unimodal feature representation output by the next layer of the unimodal feature extraction module at the same layer are layer-normalized to obtain the result output by the last layer of the feature bridging module as the bridging feature representation.
[0079] The feature bridging algorithm is:
[0080]
[0081] In the formula, is the bridge feature representation output by the lth layer of the feature bridge module, is the bridge feature representation output by the l-1th layer of the feature bridge module, and layerNorm(·) is the layer normalization function.
[0082] In this embodiment, the recognition device performs layer normalization processing on the bridging feature representation output by the current layer of the feature bridging module and the corresponding unimodal feature representation output by the next layer of the unimodal feature extraction module at the same layer based on the bridging feature representation output by the first layer of the feature bridging module and the unimodal feature representations output by several layers of the unimodal feature extraction module according to a preset feature bridging algorithm, and obtains the result of the last layer output of the feature bridging module as the bridging feature representation, wherein the bridging feature representation includes a text bridging feature representation and an image bridging feature representation.
[0083] By utilizing the unimodal feature representations output by several layers of the unimodal feature extraction module and normalizing them with the bridging feature representations output by each layer of the feature bridging module, a bridging feature representation is obtained for cross-modal interaction, thereby integrating the unimodal expressions of different semantic levels of each layer of the unimodal feature extraction module into the cross-modal interaction, which helps to achieve bottom-up cross-modal alignment and fusion and improve the accuracy of the model's emotion recognition.
[0084] S5: Inputting the text bridging feature representation and the image bridging feature representation in the bridging feature representation into the feature interaction module for feature interaction to obtain a text cross-modal feature representation and an image cross-modal feature representation.
[0085] The cross-modal feature interaction module is a cross-modal encoder (Key-Sparse Transformer). In this embodiment, the recognition device inputs the text bridging feature representation and the image bridging feature representation in the bridging feature representation into the feature interaction module for feature interaction to obtain the text cross-modal feature representation and the image cross-modal feature representation.
[0086] See also Figure 5 , Figure 5 The schematic diagram of S5 in the process of the multimodal emotion recognition method provided in one embodiment of the present application includes steps S51 to S53, which are specifically as follows:
[0087] S51: Using a linear mapping method, construct a matrix set corresponding to the text bridging feature representation and the image bridging feature representation.
[0088] In this embodiment, the recognition device adopts a linear mapping method to construct a matrix set corresponding to the text bridging feature representation and the image bridging feature representation, wherein the matrix set includes a query matrix, a key matrix, and a value matrix.
[0089] S52: According to the query matrix corresponding to the text bridging feature representation, the key matrix and the value matrix corresponding to the image bridging feature representation, and the preset cross-modal feature calculation algorithm, a cross-modal multiplication result is obtained as the text-image cross-modal feature interaction representation; according to the query matrix, the key matrix and the value matrix corresponding to the text-image cross-modal feature interaction representation, and the cross-modal feature calculation algorithm, a cross-modal multiplication result is obtained as the text cross-modal feature representation;
[0090] For the text-image cross-modal feature interaction representation, in this embodiment, the recognition device obtains a cross-modal multiplication result as the text-image cross-modal feature interaction representation according to the query matrix corresponding to the text bridging feature representation, the key matrix and the value matrix corresponding to the image bridging feature representation, and a preset cross-modal feature calculation algorithm, wherein the cross-modal feature calculation algorithm is:
[0091]
[0092] X attn =Weight×V
[0093] Where Weight is the feature weight matrix, Q is the query matrix, K is the key matrix, T is the transposition symbol, and X attn is the result of cross-modal multiplication, and V is the value matrix.
[0094] Specifically, the recognition device calculates the feature weight matrix using the attention mechanism based on the query matrix corresponding to the text bridging feature representation and the key matrix corresponding to the image bridging feature representation. It can identify the most relevant part of the image bridging feature representation to the text bridging feature representation, fully perceive the information related to the text modality in the image bridging feature representation, and obtain the feature weight matrix.
[0095] In order to reduce computational redundancy, retain key feature weights, and improve computational efficiency, the recognition device sets the value of the feature weight matrix to 1 based on the feature weight matrix and a preset feature weight threshold. If the feature weight matrix is greater than or equal to the feature weight threshold, the value of the feature weight matrix is set to 0. If the feature weight matrix is less than the feature weight threshold, the value of the feature weight matrix is set to 0.
[0096] The recognition device multiplies the feature weight matrix with the value matrix corresponding to the image bridging feature representation to generate a representation that combines information from the text modality and the image modality, obtains a cross-modal multiplication result, and uses the product result as the text-image cross-modal feature interaction representation.
[0097] For the text cross-modal feature representation, in this embodiment, the recognition device obtains a cross-modal multiplication result as the text cross-modal feature representation based on the query matrix, key matrix and value matrix corresponding to the text-image cross-modal feature interaction representation and the cross-modal feature calculation algorithm. The specific implementation example can refer to the above-mentioned steps of calculating the text-image cross-modal feature interaction representation, which will not be repeated here.
[0098] S53: According to the query matrix corresponding to the image bridging feature representation, the key matrix and the value matrix corresponding to the text bridging feature representation, and the preset cross-modal feature calculation algorithm, a cross-modal multiplication result is obtained as the image-text cross-modal feature interaction representation; according to the query matrix, the key matrix and the value matrix corresponding to the image-text cross-modal feature interaction representation, and the cross-modal feature calculation algorithm, a cross-modal multiplication result is obtained as the image cross-modal feature representation.
[0099] In this embodiment, the recognition device obtains a cross-modal multiplication result as an image-text cross-modal feature interaction representation based on the query matrix corresponding to the image bridging feature representation, the key matrix and the value matrix corresponding to the text bridging feature representation, and a preset cross-modal feature calculation algorithm.
[0100] The recognition device obtains a cross-modal multiplication result as the image cross-modal feature representation based on the query matrix, key matrix and value matrix corresponding to the image-text cross-modal feature interaction representation and the cross-modal feature calculation algorithm, identifies the most relevant part of the text bridging feature representation to the image bridging feature representation, fully perceives the information related to the image modality in the text bridging feature representation, and improves the accuracy of the image cross-modal feature representation extraction. For specific embodiments, please refer to the content of step S52, which will not be repeated here.
[0101] S6: Input the text unimodal feature representation, the image unimodal feature representation, the text cross-modal feature representation and the image cross-modal feature representation in the unimodal feature representation output by the last layer of the unimodal feature extraction module into the feature fusion module for feature fusion to obtain a multimodal feature fusion representation.
[0102] The feature fusion module adopts a hybrid feature fusion network (MFFN). In this embodiment, the recognition device inputs the text unimodal feature representation, the image unimodal feature representation, the text cross-modal feature representation and the image cross-modal feature representation in the unimodal feature representation output by the last layer of the unimodal feature extraction module into the feature fusion module for feature fusion to obtain a multimodal feature fusion representation.
[0103] The feature fusion module includes a feature weight calculation unit and a feature fusion unit; see Figure 6 , Figure 6 The schematic diagram of S6 in the process of the multimodal emotion recognition method provided in one embodiment of the present application includes steps S61 to S62, which are specifically as follows:
[0104] S61: Concatenate the text unimodal feature representation and the text cross-modal feature representation, and concatenate the image unimodal feature representation and the image cross-modal feature representation to obtain a text concatenation feature representation and an image concatenation feature representation; respectively use the text concatenation feature representation and the image concatenation feature representation as input vectors of the feature weight calculation unit, and obtain a feature weight representation according to a preset feature weight calculation algorithm.
[0105] In this embodiment, the recognition device concatenates the text unimodal feature representation with the text cross-modal feature representation, and concatenates the image unimodal feature representation with the image cross-modal feature representation to obtain a text concatenation feature representation and an image concatenation feature representation.
[0106] The recognition device uses the text splicing feature representation and the image splicing feature representation as input vectors of the feature weight calculation unit, and obtains the feature weight representation according to a preset feature weight calculation algorithm to learn the importance weights of different types of features and improve the accuracy of the emotion recognition of the model, wherein the feature weight representation includes a text feature weight representation and an image feature weight representation, and the feature weight calculation algorithm is:
[0107] H x =Tanh(W1(ReLu(X cat W2))
[0108] In the formula, H X is the feature weight representation, X cat is the input vector of the feature weight calculation unit, W1 is the first weight parameter, W2 is the second weight parameter, Tanh(·) is the hyperbolic tangent function, and ReLu(·) is the nonlinear activation function.
[0109] S62: Input the text feature weight representation, image feature weight representation, text cross-modal feature representation and image cross-modal feature representation into the feature fusion unit, multiply the text feature weight representation and the text cross-modal feature representation to obtain a text feature fusion representation, multiply the image feature weight representation and the image cross-modal feature representation to obtain an image feature fusion representation, and splice the text feature fusion representation and the image feature fusion representation to obtain the multimodal feature fusion representation.
[0110] In this embodiment, the recognition device inputs the text feature weight representation, image feature weight representation, text cross-modal feature representation and image cross-modal feature representation into the feature fusion unit, multiplies the text feature weight representation and the text cross-modal feature representation, and obtains a text feature fusion representation.
[0111] The recognition device multiplies the image feature weight representation and the image cross-modal feature representation to obtain an image feature fusion representation, and concatenates the text feature fusion representation and the image feature fusion representation to obtain the multimodal feature fusion representation, wherein the multimodal feature fusion representation is:
[0112] F=[H T *T cross ;H V *V cross ]
[0113] In the formula, F is the multimodal feature fusion representation, H T is the text feature weight representation, T cross is the cross-modal feature representation of text, H Vis the image feature weight representation, V cross Cross-modal feature representation for images.
[0114] S7: Input the multimodal feature fusion representation into the emotion recognition module for emotion recognition, obtain emotion recognition probability data, and obtain the emotion polarity with the largest dimension based on the emotion recognition probability data as the emotion recognition result of the document data to be tested.
[0115] In this embodiment, the recognition device inputs the multimodal feature fusion representation into the emotion recognition module for emotion recognition, obtains emotion recognition probability data, and obtains the emotion polarity with the largest dimension based on the emotion recognition probability data as the emotion recognition result of the document data to be tested.
[0116] Specifically, when the emotion recognition probability data Y=[Ypositive, Ynegative, Yneutral]=[0.1, 0.7, 0.2] is calculated, the maximum probability is Ynegative, and the emotion polarity corresponding to the dimension with the maximum probability is negative. The emotion polarity is used as the emotion recognition result of the document data to be tested.
[0117] See also Figure 7 , Figure 7 The schematic diagram of S7 in the process of the multimodal emotion recognition method provided in one embodiment of the present application includes steps S71 to S72, which are specifically as follows:
[0118] S71: Obtain attention weight data according to the multimodal feature fusion representation and a preset attention weight calculation algorithm.
[0119] The emotion recognition probability calculation algorithm is:
[0120]
[0121] In the formula, p i is the attention weight parameter of the i-th feature vector, F i 、F j are the i-th feature vector and the j-th feature vector in the multimodal feature fusion representation, respectively, n t is the sequence length of the text feature fusion representation in the multimodal feature fusion representation, n v is the sequence length of the image feature fusion representation in the multimodal feature fusion representation.
[0122] In this embodiment, the recognition device obtains attention weight data based on several feature vectors in the multimodal feature fusion representation and a preset attention weight calculation algorithm, wherein the attention weight data includes attention weight parameters of several feature vectors in the multimodal feature fusion representation.
[0123] S72: Obtain emotion recognition probability data according to the multimodal feature fusion representation, attention weight data and a preset emotion recognition probability calculation algorithm.
[0124] The emotion recognition probability calculation algorithm is:
[0125]
[0126] Where R is the emotion recognition probability data.
[0127] In this embodiment, the recognition device obtains emotion recognition probability data based on the multimodal feature fusion representation, attention weight data and a preset emotion recognition probability calculation algorithm.
[0128] The feature bridging method is adopted to bridge the global feature representation containing text information and image information and the unimodal feature representation to obtain the feature bridging representation, realizing bottom-up cross-modal alignment and information fusion. The feature bridging representation constructed based on the unimodal feature representation is used for cross-modal feature interaction, fully perceiving the text feature information and image feature information, extracting the feature information related to emotion recognition, and using it for emotion recognition, thereby improving the accuracy and efficiency of emotion recognition.
[0129] In an optional embodiment, the method further includes the step of training the emotion recognition model, specifically as follows:
[0130] The recognition device obtains a number of sample document data, inputs the sample document data into the emotion recognition model, obtains emotion recognition probability data of the sample document data, obtains loss values of the sample document data according to the emotion recognition probability data of the sample document data and a preset loss function, and trains the emotion recognition model according to the loss values of the sample document data, wherein the loss function is:
[0131] Loss=Cross Entropy(GELU(R′W+b))
[0132] Where Loss is the loss function, Cross Entropy(·) is the cross entropy function, GELU(·) is the linear activation function, R′ is the sentiment recognition probability data of the sample document data, W is the preset learnable weight parameter, and b is the bias parameter.
[0133] Please refer to Figure 8 , Figure 8 A schematic diagram of the structure of a multimodal emotion recognition device provided in one embodiment of the present application. The device can implement all or part of the multimodal emotion recognition device through software, hardware, or a combination of both. The device 8 includes:
[0134] A data acquisition module, used to obtain document data to be tested and a preset emotion recognition model, wherein the document data to be tested includes text to be tested and an image to be tested, and the emotion recognition model includes a global feature extraction module, a unimodal feature extraction module, a feature bridging module, a feature interaction module, a feature fusion module and an emotion recognition module;
[0135] A global feature acquisition module, used for inputting the document data to be tested into the feature extraction module to perform global feature extraction, and obtaining a text global feature representation corresponding to the text to be tested and an image global feature representation corresponding to the image to be tested;
[0136] A unimodal feature acquisition module, used for inputting the text global feature representation and the image global feature representation into the unimodal feature extraction module respectively to perform unimodal feature extraction, and obtaining unimodal feature representations of several layers of output of the unimodal feature extraction module;
[0137] A bridging feature acquisition module, used for inputting the text global feature representation, the image global feature, the text unimodal feature representation in the unimodal feature representations output by several layers of the unimodal feature extraction module, and the image unimodal feature representation into the feature bridging module for feature bridging to obtain a bridging feature representation;
[0138] A cross-modal feature acquisition module, used for inputting the text bridging feature representation and the image bridging feature representation in the bridging feature representation into the feature interaction module for feature interaction, so as to obtain the text cross-modal feature representation and the image cross-modal feature representation;
[0139] A multimodal feature acquisition module, used for inputting the text unimodal feature representation, the image unimodal feature representation, the text cross-modal feature representation and the image cross-modal feature representation in the unimodal feature representation output by the last layer of the unimodal feature extraction module into the feature fusion module for feature fusion, so as to obtain a multimodal feature fusion representation;
[0140] The emotion recognition result acquisition module is used to input the multimodal feature fusion representation into the emotion recognition module for emotion recognition, obtain emotion recognition probability data, and obtain the emotion polarity with the largest dimension based on the emotion recognition probability data as the emotion recognition result of the document data to be tested.
[0141] In an embodiment of the present application, the document data to be tested and the preset emotion recognition model are obtained through a data acquisition module, wherein the document data to be tested includes a text to be tested and an image to be tested, and the emotion recognition model includes a global feature extraction module, a unimodal feature extraction module, a feature bridging module, a feature interaction module, a feature fusion module and an emotion recognition module; through the global feature acquisition module, the document data to be tested is input into the feature extraction module for global feature extraction to obtain a text global feature representation corresponding to the text to be tested and an image global feature representation corresponding to the image to be tested; through the unimodal feature acquisition module, the text global feature representation and the image global feature representation are respectively input into the unimodal feature extraction module for unimodal feature extraction to obtain unimodal feature representations of several layers of outputs of the unimodal feature extraction module; through the bridging feature acquisition module, the text global feature representation, the image global feature, and the unimodal feature representations of several layers of outputs of the unimodal feature extraction module are combined into a unimodal feature extraction module. The text unimodal feature representation and the image unimodal feature representation are input into the feature bridging module for feature bridging to obtain a bridging feature representation; through the cross-modal feature acquisition module, the text bridging feature representation and the image bridging feature representation in the bridging feature representation are input into the feature interaction module for feature interaction to obtain a text cross-modal feature representation and an image cross-modal feature representation; through the multimodal feature acquisition module, the text unimodal feature representation, the image unimodal feature representation, the text cross-modal feature representation and the image cross-modal feature representation in the unimodal feature representation output by the last layer of the unimodal feature extraction module are input into the feature fusion module for feature fusion to obtain a multimodal feature fusion representation; through the emotion recognition result acquisition module, the multimodal feature fusion representation is input into the emotion recognition module for emotion recognition to obtain emotion recognition probability data, and according to the emotion recognition probability data, the emotion polarity with the largest dimension is obtained as the emotion recognition result of the document data to be tested. The feature bridging method is adopted to bridge the global feature representation containing text information and image information and the unimodal feature representation to obtain the feature bridging representation, realizing bottom-up cross-modal alignment and information fusion. The feature bridging representation constructed based on the unimodal feature representation is used for cross-modal feature interaction, fully perceiving the text feature information and image feature information, extracting the feature information related to emotion recognition, and using it for emotion recognition, thereby improving the accuracy and efficiency of emotion recognition.
[0142] Please refer to Fig. 9 , Fig. 9The computer device 9 is a schematic diagram of a structure of a computer device provided in an embodiment of the present application. The computer device 9 includes: a processor 91, a memory 92, and a computer program 93 stored in the memory 92 and executable on the processor 91; the computer device may store a plurality of instructions, which are suitable for being loaded and executed by the processor 91 Figures 1 to 7 The method steps of the embodiment shown in the figure can be found in the specific implementation process. Figures 1 to 7 The specific description of the illustrated embodiment will not be repeated here.
[0143] Among them, the processor 91 may include one or more processing cores. The processor 91 uses various interfaces and lines to connect various parts in the server, and executes various functions and processes data of the multimodal emotion recognition device 8 by running or executing instructions, programs, code sets or instruction sets stored in the memory 92, and calling the data in the memory 92. Optionally, the processor 91 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programble Logic Array, PLA). The processor 91 can integrate one or a combination of a central processing unit 91 (Central Processing Unit, CPU), a graphics processor 91 (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the touch display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 91, and it can be implemented by a single chip.
[0144] Among them, the memory 92 may include a random access memory 92 (Random Access Memory, RAM), and may also include a read-only memory 92 (Read-Only Memory). Optionally, the memory 92 includes a non-transitory computer-readable storage medium. The memory 92 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 92 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch instructions, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 92 may also be optionally at least one storage device located away from the aforementioned processor 91.
[0145] The present application also provides a storage medium that can store multiple instructions, which are suitable for the processor to load and execute the above-mentioned Figures 1 to 7 The method steps of the embodiment shown in the figure can be found in the specific implementation process. Figures 1 to 7 The specific description of the illustrated embodiment will not be repeated here.
[0146] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0147] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0148] 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 constraint algorithm 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.
[0149] In the embodiments provided by the present invention, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are only schematic. For example, the division of the modules or 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 system, 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.
[0150] 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.
[0151] 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. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0152] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above-mentioned method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc.
[0153] The present invention is not limited to the above-mentioned embodiments. If various changes or modifications to the present invention do not depart from the spirit and scope of the present invention, and if these changes and modifications fall within the scope of the claims and equivalent technologies of the present invention, the present invention is also intended to include these changes and modifications.
Claims
1. A multimodal emotion recognition method, characterized in that: The following steps are involved: Obtaining document data to be tested and a preset emotion recognition model, wherein the document data to be tested includes text to be tested and an image to be tested, and the emotion recognition model includes a global feature extraction module, a unimodal feature extraction module, a feature bridging module, a feature interaction module, a feature fusion module and an emotion recognition module; Inputting the document data to be tested into the feature extraction module to perform global feature extraction, and obtaining a text global feature representation corresponding to the text to be tested and an image global feature representation corresponding to the image to be tested; Inputting the text global feature representation and the image global feature representation into the unimodal feature extraction module respectively to perform unimodal feature extraction, and obtaining unimodal feature representations output by several layers of the unimodal feature extraction module; Inputting the text global feature representation, the image global feature, the text unimodal feature representation in the unimodal feature representations output by several layers of the unimodal feature extraction module, and the image unimodal feature representation into the feature bridging module for feature bridging to obtain a bridging feature representation; Inputting the text bridging feature representation and the image bridging feature representation in the bridging feature representation into the feature interaction module for feature interaction to obtain a text cross-modal feature representation and an image cross-modal feature representation; Inputting the text unimodal feature representation, the image unimodal feature representation, the text cross-modal feature representation and the image cross-modal feature representation in the unimodal feature representation output by the last layer of the unimodal feature extraction module into the feature fusion module for feature fusion to obtain a multimodal feature fusion representation; The multimodal feature fusion representation is input into the emotion recognition module for emotion recognition to obtain emotion recognition probability data, and based on the emotion recognition probability data, the emotion polarity with the largest dimension is obtained as the emotion recognition result of the document data to be tested.
2. The multimodal emotion recognition method according to claim 1, characterized in that: The feature extraction module includes a word embedding module, a target detection module and a dimension transformation module; The step of inputting the document data to be tested into the feature extraction module to extract global features, and obtaining the text global feature representation corresponding to the text to be tested and the image global feature representation corresponding to the image to be tested, comprises the following steps: Inputting the text to be tested into the word embedding module for encoding processing to obtain an initial text feature representation of the text to be tested; Dividing the image to be tested into a plurality of image sub-regions, inputting the plurality of image sub-regions into the target detection module for target detection, and obtaining an initial image feature representation of the image to be tested; The initial text feature representation and the initial image feature representation are input into the dimension transformation module for dimension transformation and feature extraction to obtain the text global feature representation and the image global feature representation.
3. The multimodal emotion recognition method according to claim 1 or 2, characterized in that: The text global feature representation and the image global feature representation are respectively input into the unimodal feature extraction module for unimodal feature extraction, and the unimodal feature representations of several layers of output of the unimodal feature extraction module are obtained, including the steps of: The text global feature representation and the image global feature representation are respectively used as the input vector of the first layer of the unimodal feature extraction module, and the unimodal feature representations of several layers of output of the unimodal feature extraction module are obtained according to a preset unimodal feature extraction algorithm, wherein the unimodal feature extraction algorithm is: In the formula, is the unimodal feature representation output by the lth layer of the unimodal feature extraction module, is the unimodal feature representation output by the l-1th layer of the unimodal feature extraction module, softmax(·) is the normalized activation function, and dQ is the dimension parameter.
4. The multimodal emotion recognition method according to claim 3, characterized in that: The step of inputting the text global feature representation, the image global feature, the text unimodal feature representation in the unimodal feature representations output by several layers of the unimodal feature extraction module, and the image unimodal feature representation into the feature bridging module for feature bridging to obtain a bridging feature representation comprises the following steps: The unimodal feature representations output by several layers of the unimodal feature extraction module, the text global feature representation and the image global feature are input into the feature bridging module, the text global feature representation and the text unimodal feature representation of the first layer are used as the input vectors of the first layer of the feature bridging module, and the image global feature representation and the image unimodal feature representation of the first layer are used as the input vectors of the first layer of the feature bridging module, and layer normalization is performed to obtain the bridge feature representation output by the first layer of the feature bridging module; Based on the bridging feature representation output by the first layer of the feature bridging module and the unimodal feature representations output by several layers of the unimodal feature extraction module, according to a preset feature bridging algorithm, the bridging feature representation output by the current layer of the feature bridging module and the corresponding unimodal feature representation output by the next layer of the unimodal feature extraction module of the same layer are subjected to layer normalization processing to obtain the result output by the last layer of the feature bridging module as the bridging feature representation, wherein the feature bridging algorithm is: In the formula, is the bridge feature representation output by the lth layer of the feature bridge module, is the bridge feature representation output by the l-1th layer of the feature bridge module, and layerNorm(·) is the layer normalization function.
5. The multimodal emotion recognition method according to claim 4, characterized in that: The step of inputting the text bridging feature representation and the image bridging feature representation in the bridging feature representation into the feature interaction module for feature interaction to obtain the text cross-modal feature representation and the image cross-modal feature representation comprises the following steps: A linear mapping method is used to construct a matrix set corresponding to the text bridging feature representation and the image bridging feature representation, wherein the matrix set includes a query matrix, a key matrix, and a value matrix; According to the query matrix corresponding to the text bridging feature representation, the key matrix and the value matrix corresponding to the image bridging feature representation, and the preset cross-modal feature calculation algorithm, a cross-modal multiplication result is obtained as a text-image cross-modal feature interaction representation; according to the query matrix, the key matrix and the value matrix corresponding to the text-image cross-modal feature interaction representation, and the cross-modal feature calculation algorithm, a cross-modal multiplication result is obtained as the text cross-modal feature representation; According to the query matrix corresponding to the image bridging feature representation, the key matrix and the value matrix corresponding to the text bridging feature representation, and the preset cross-modal feature calculation algorithm, a cross-modal multiplication result is obtained as the image-text cross-modal feature interaction representation; according to the query matrix, the key matrix and the value matrix corresponding to the image-text cross-modal feature interaction representation, and the cross-modal feature calculation algorithm, a cross-modal multiplication result is obtained as the image cross-modal feature representation, wherein the cross-modal feature calculation algorithm is: X attn =Weight×V Where Weight is the feature weight matrix, Q is the query matrix, K is the key matrix, T is the transposition symbol, and X attn is the result of cross-modal multiplication, and V is the value matrix.
6. The multimodal emotion recognition method according to claim 5, characterized in that: The feature fusion module includes a feature weight calculation unit and a feature fusion unit; The step of inputting the text unimodal feature representation, the image unimodal feature representation, the text cross-modal feature representation and the image cross-modal feature representation in the unimodal feature representation output by the last layer of the unimodal feature extraction module into the feature fusion module for feature fusion to obtain a multimodal feature fusion representation comprises the following steps: The text unimodal feature representation and the text cross-modal feature representation are spliced together, and the image unimodal feature representation and the image cross-modal feature representation are spliced together to obtain a text splicing feature representation and an image splicing feature representation; the text splicing feature representation and the image splicing feature representation are respectively used as input vectors of the feature weight calculation unit, and a feature weight representation is obtained according to a preset feature weight calculation algorithm, wherein the feature weight representation includes a text feature weight representation and an image feature weight representation, and the feature weight calculation algorithm is: H X =Tanh(W1(ReLu(X cat W2)) In the formula, H X is the feature weight representation, X cat is the input vector of the feature weight calculation unit, W1 is the first weight parameter, W2 is the second weight parameter, Tanh(·) is the hyperbolic tangent function, and ReLu(·) is the nonlinear activation function; The text feature weight representation, image feature weight representation, text cross-modal feature representation and image cross-modal feature representation are input into the feature fusion unit, the text feature weight representation is multiplied by the text cross-modal feature representation to obtain a text feature fusion representation, the image feature weight representation is multiplied by the image cross-modal feature representation to obtain an image feature fusion representation, the text feature fusion representation and the image feature fusion representation are spliced to obtain the multimodal feature fusion representation.
7. The multimodal emotion recognition method according to claim 6, characterized in that: The step of inputting the multimodal feature fusion representation into the emotion recognition module for emotion recognition to obtain emotion recognition probability data comprises the following steps: Attention weight data is obtained according to the multimodal feature fusion representation and the preset attention weight calculation algorithm, wherein the attention weight data includes attention weight parameters of several feature vectors in the multimodal feature fusion representation, and the emotion recognition probability calculation algorithm is: In the formula, p i is the attention weight parameter of the i-th feature vector, F i 、F j are the i-th feature vector and the j-th feature vector in the multimodal feature fusion representation, respectively, n t is the sequence length of the text feature fusion representation in the multimodal feature fusion representation, n v is the sequence length of the image feature fusion representation in the multimodal feature fusion representation; According to the multimodal feature fusion representation, the attention weight data and the preset emotion recognition probability calculation algorithm, the emotion recognition probability data is obtained, wherein the emotion recognition probability calculation algorithm is: Where R is the emotion recognition probability data.
8. A multimodal emotion recognition device, characterized in that: include: A data acquisition module, used to obtain document data to be tested and a preset emotion recognition model, wherein the document data to be tested includes text to be tested and an image to be tested, and the emotion recognition model includes a global feature extraction module, a unimodal feature extraction module, a feature bridging module, a feature interaction module, a feature fusion module and an emotion recognition module; A global feature acquisition module, used for inputting the document data to be tested into the feature extraction module to perform global feature extraction, and obtaining a text global feature representation corresponding to the text to be tested and an image global feature representation corresponding to the image to be tested; A unimodal feature acquisition module, used for inputting the text global feature representation and the image global feature representation into the unimodal feature extraction module respectively to perform unimodal feature extraction, and obtaining unimodal feature representations of several layers of output of the unimodal feature extraction module; A bridging feature acquisition module, used for inputting the text global feature representation, the image global feature, the text unimodal feature representation in the unimodal feature representations output by several layers of the unimodal feature extraction module, and the image unimodal feature representation into the feature bridging module for feature bridging to obtain a bridging feature representation; A cross-modal feature acquisition module, used for inputting the text bridging feature representation and the image bridging feature representation in the bridging feature representation into the feature interaction module for feature interaction, so as to obtain the text cross-modal feature representation and the image cross-modal feature representation; A multimodal feature acquisition module, used for inputting the text unimodal feature representation, the image unimodal feature representation, the text cross-modal feature representation and the image cross-modal feature representation in the unimodal feature representation output by the last layer of the unimodal feature extraction module into the feature fusion module for feature fusion, so as to obtain a multimodal feature fusion representation; The emotion recognition result acquisition module is used to input the multimodal feature fusion representation into the emotion recognition module for emotion recognition, obtain emotion recognition probability data, and obtain the emotion polarity with the largest dimension based on the emotion recognition probability data as the emotion recognition result of the document data to be tested.
9. A computer device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the multimodal emotion recognition method as described in any one of claims 1 to 7 are implemented.
10. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the multimodal emotion recognition method as described in any one of claims 1 to 7 are implemented.
