Multimodal sentiment analysis method and device for characterizing matching and routing interactions, electronic device and medium
By combining adversarial recurrent translation and dynamic routing interaction networks, the problems of inconsistency and homogenization of modal representations in multimodal sentiment analysis are solved, and more efficient sentiment information fusion and prediction are achieved.
Patent Information
- Application Number
- CN202411262099.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-09
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2044-09-09
AI Technical Summary
Existing multimodal sentiment analysis techniques face challenges such as distributional gaps between modal representations, insufficient information utilization, and homogenization of cross-modal interactions, which affect the accuracy and robustness of sentiment analysis.
By mapping audio and visual representations to a distribution space similar to text representations through an adversarial recurrent translation network, and combining this with a dynamic routing interaction network to mine sentiment information within and outside each modality, sentiment prediction is optimized through joint loss constraints.
It significantly improves the accuracy and robustness of multimodal sentiment analysis, enhances sentiment classification performance, overcomes the problems of inconsistency and homogenization in modal representation, and makes full use of sentiment information at all levels.
Smart Images

Figure CN119203029B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of multimodal sentiment analysis technology, specifically to a multimodal sentiment analysis method, apparatus, electronic device, and medium for representation matching and routing interactions. Background Technology
[0002] In the field of sentiment analysis, traditional Natural Language Processing (NLP)-based methods primarily focus on single text modalities to predict their implied sentiment polarity (e.g., negative, positive, neutral). However, with the rapid development of the internet and the widespread use of social media, users express emotions in increasingly diverse ways, encompassing multiple modalities such as text, audio, and video. This emergence of multimodal data presents new challenges to sentiment analysis because single-modal analysis often fails to comprehensively and accurately capture users' true emotional states. For example, seemingly neutral or positive text content, when paired with a sarcastic or mocking audio background, may actually convey negative emotions.
[0003] To address these challenges, multimodal sentiment analysis technology has emerged. This technology aims to integrate complementary information from different modalities (such as text, audio, and visual) to more accurately infer implicit emotions or opinions. Related technologies have attempted to mine and fuse sentiment information from these modalities by constructing complex multimodal models, thereby generating effective multimodal representations. While these efforts have achieved some success, they still face numerous technical bottlenecks.
[0004] First, the heterogeneity between different modalities leads to inconsistencies in the representation space. This inconsistency significantly hinders the extraction of effective sentiment information during modal interactions, thus affecting the quality of the fused representation. Second, existing methods often fail to fully utilize the complete representational information of each modality when processing multimodal data, including its low-level and high-level features, as well as the consistency and complementarity information between modalities. This incomplete utilization of information limits the model's ability to generate high-quality multimodal joint representations, thereby affecting the accuracy of sentiment polarity prediction.
[0005] Furthermore, cross-modal interaction modules based on advanced architectures such as Transformer face the problem of homogenization in cross-modal interactions in practice. As the number of network layers increases, the fused representations between different modalities tend to be similar, weakening the independence and complementarity between modalities, which is crucial for multimodal fusion. This homogenization phenomenon not only reduces the effectiveness of fused representations but also limits the model's generalization ability in complex emotional scenarios.
[0006] In summary, the main problems currently facing multimodal sentiment analysis technology are the distribution gap between modal representations, insufficient utilization of multimodal representation information, and homogenization of cross-modal interactions. These problems severely restrict the development and application of multimodal sentiment analysis technology. Therefore, there is an urgent need for a method that can effectively solve the above problems and improve the accuracy and robustness of multimodal sentiment analysis. Summary of the Invention
[0007] In view of this, the present disclosure provides a multimodal sentiment analysis method, apparatus, electronic device and medium for characterizing matching and routing interactions, which at least partially solves the problems existing in the prior art.
[0008] In a first aspect, embodiments of this disclosure provide a multimodal sentiment analysis method for characterizing matching and routing interactions, comprising:
[0009] Text modal representation, audio modal representation, and visual modal representation were extracted from the original video data.
[0010] The text modality representation, the audio modality representation, and the visual modality representation are mapped to a similar distribution space through an adversarial recurrent translation network to obtain uniformly distributed text modality representation, audio modality representation, and visual modality representation;
[0011] The uniformly distributed text modal representation, audio modal representation, and visual modal representation are input into the dynamic routing interaction network to obtain a multimodal representation;
[0012] Under the joint loss constraint of the uniformly distributed text modal representation, audio modal representation, and visual modal representation, the multimodal representation is fed into the sentiment prediction layer for sentiment prediction, and the final sentiment prediction value is output.
[0013] According to a specific implementation of a disclosed embodiment, the step of mapping the text modality representation, the audio modality representation, and the visual modality representation to a similar distribution space through an adversarial recurrent translation network to obtain uniformly distributed text modality representation, audio modality representation, and visual modality representation includes:
[0014] The audio representation distribution is transformed into a distribution similar to the text representation using an audio-text distribution transformation network to obtain a uniformly distributed audio modal representation. The specific formula is as follows: Among them, T a→t It is an audio-to-text distribution conversion network. These are the parameters of the audio-to-text distribution conversion network;
[0015] The visual representation distribution is transformed into a distribution similar to the text representation using a visual-text distribution transformation network to obtain a uniformly distributed visual modal representation. The specific formula is as follows: [Specific calculation formula follows].
[0016] Among them, T v→t It is a visual-to-text distribution transformation network. These are the parameters of the visual-to-text distribution transformation network;
[0017] The distribution matching transformation process of the audio representation and the visual representation is constrained by generator loss, discriminator loss and cyclic loss to obtain the uniformly distributed text modality representation, audio modality representation and visual modality representation.
[0018] According to a specific implementation of this disclosure, the uniformly distributed text modal representation, audio modal representation, and visual modal representation are input into a dynamic routing interaction network to obtain a multimodal representation.
[0019] include:
[0020] In the modal activation component, the uniformly distributed text modal representation, audio modal representation, and visual modal representation are processed by a feedforward neural network and activation function to preserve the low-level emotional semantics contained in the uniformly distributed text modal representation, audio modal representation, and visual modal representation.
[0021] In intramodal interaction components, the attention focus of intramodal interaction is adjusted through a multi-head self-attention mechanism.
[0022] And it uncovers high-level sentiment information associated within modalities;
[0023] The results from multiple attention heads are concatenated and then fed into the feedforward neural network for integration.
[0024] Intermodal interaction representations are obtained through a similarity-difference multi-head attention mechanism;
[0025] In the cross-modal interaction component, KL divergence and soft orthogonal constraints are used to optimize the fusion representation between the modes, wherein the fusion representation is part of the interaction representation;
[0026] The output results of the modal activation component, the intramodal interaction component, and the cross-modal interaction component are obtained through a routing strategy, and the multimodal representation is obtained by aggregating the output results.
[0027] According to a specific implementation of this disclosure, the distribution matching transformation process of the audio representation and the visual representation is constrained by generator loss, discriminator loss, and cyclic loss, as follows:
[0028] Among them, G n→t It is a text distribution generator used to transform non-textual distributions into textual distributions. G t→n Achieve a distributed transformation from textual representations to non-textual representations. (D) t and D t It is a discriminator used to determine whether the input is a non-textual representation or a textual representation, n∈{a,v}.
[0029] According to a specific implementation of this disclosure, the step of inputting the uniformly distributed text modal representation, audio modal representation, and visual modal representation into a dynamic routing interaction network to obtain a multimodal representation includes: each component of the dynamic routing network can receive signals from the component in the previous layer. Each component controls the path probability between each component in adjacent layers by using a routing mechanism.
[0030] According to a specific implementation of this disclosure, under the joint loss constraint of the uniformly distributed text modal representation, audio modal representation, and visual modal representation, the multimodal representation is input into the sentiment prediction layer for sentiment prediction, and the final sentiment prediction value is output. This includes: concatenating the text multimodal representation, audio multimodal representation, and visual multimodal representation, and feeding them into a multilayer perceptron under the joint loss constraint to obtain the final sentiment prediction value.
[0031] According to a specific implementation of this disclosure, the joint loss constraint includes: distribution matching loss, similarity loss, dissimilarity loss, and sentiment classification loss for the uniformly distributed text modality representation, audio modality representation, and visual modality representation. The specific joint loss constraint is as follows:
[0032] L = x e L ep +x r L rdm +x s L sim +x d L dis L ep It is the sentiment prediction loss, L rdm It is the distribution matching loss, L sim It is similarity loss, L dis It is the difference loss, x e ,x r ,x s ,x d This represents the weighting coefficient for each loss.
[0033] Secondly, embodiments of this disclosure provide a multimodal sentiment analysis apparatus for characterizing matching and routing interactions, comprising:
[0034] Multimodal representation extraction module: used to independently extract text modal representations, audio modal representations, and visual modal representations from raw video data;
[0035] Representation distribution mapping module: used to receive text modal representations, audio modal representations and visual modal representations from the multimodal representation extraction module, and map the text modal representations, the audio modal representations and the visual modal representations to similar distribution spaces through an adversarial recurrent translation network;
[0036] Dynamic routing interaction network module: It is used to receive uniformly distributed text modal representations, audio modal representations and visual modal representations as input, mine the emotional information within each modality, capture the emotional information across modalities, and finally output multimodal representations;
[0037] Sentiment Prediction and Optimization Module: This module receives multimodal representations from the Dynamic Routing Interaction Network Module, performs sentiment prediction under joint loss constraints, and outputs the final sentiment prediction value.
[0038] Thirdly, embodiments of this disclosure provide an electronic device, the electronic device comprising:
[0039] At least one processor; and,
[0040] The memory is communicatively connected to the at least one processor; wherein,
[0041] The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the multimodal sentiment analysis method described above for representation matching and routing interactions.
[0042] Fourthly, embodiments of this disclosure provide a non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform the aforementioned multimodal sentiment analysis method of representation matching and routing interaction.
[0043] In summary, compared with the prior art, this embodiment has the following advantages:
[0044] A multimodal sentiment analysis method based on representation distribution matching and dynamic routing interaction first transforms the distributions of audio and visual representations into distributions similar to those of text representations using a distribution transformation network. Then, a dynamic routing interaction network fully mines multi-level sentiment information within each modality's representations, including low- and high-level sentiment information within each modality and similarities and differences between modalities. Simultaneously, regularization constraints are used to improve the homogenization problem of fused representations in cross-modal interactions. The multimodal sentiment analysis model constructed using this method can fit the representation distribution gaps and fully utilize the various levels of sentiment information contained in the modal representations, significantly improving the model's sentiment classification performance. Attached Figure Description
[0045] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to specific embodiments and accompanying drawings. Here, the illustrative embodiments and descriptions of this invention are used to explain the invention, but are not intended to limit the invention.
[0046] The term "comprising" and its variations as used herein signify open inclusion, i.e., "including but not limited to". Unless otherwise stated, the term "or" means "and / or". The term "based on" means "at least partially based on". The terms "one example embodiment" and "one embodiment" mean "at least one example embodiment". The term "another embodiment" means "at least one additional embodiment". The terms "first", "second", etc., may refer to different or the same objects. Other explicit and implicit definitions may also be included below.
[0047] Figure 1A A flowchart illustrating the multimodal sentiment analysis method for representation matching and routing interaction provided in the first embodiment of the present invention;
[0048] Figure 1B This is a schematic diagram of a multimodal sentiment analysis model framework for representation matching and routing interaction provided in the first embodiment of the present invention;
[0049] Figure 2 A schematic diagram illustrating the process of implementing a representation distribution matching method;
[0050] Figure 3 A flowchart illustrating the implementation process of the routing component;
[0051] Figure 4 To optimize the implementation process for fusion representation;
[0052] Figure 5 A schematic diagram of the structure of the multimodal sentiment analysis device for representation matching and routing interaction provided in the second embodiment of the present invention;
[0053] Figure 6 An exemplary structural diagram of a device capable of implementing the method according to an embodiment of the present invention is shown. Detailed Implementation
[0054] The embodiments of this disclosure will now be described in detail with reference to the accompanying drawings.
[0055] The following specific examples illustrate the implementation of this disclosure. Those skilled in the art can easily understand other advantages and effects of this disclosure from the content disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of this disclosure, and not all of them. This disclosure can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of this disclosure. It should be noted that, in the absence of conflict, the following embodiments and features in the embodiments can be combined with each other. Based on the embodiments in this disclosure, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this disclosure.
[0056] It should be noted that various aspects of embodiments within the scope of the appended claims are described below. It will be apparent that the aspects described herein can be embodied in a wide variety of forms, and any particular structure and / or function described herein is merely illustrative. Based on this disclosure, those skilled in the art will understand that one aspect described herein can be implemented independently of any other aspect, and two or more of these aspects can be combined in various ways. For example, any number of aspects set forth herein can be used to implement the device and / or practice the method. Additionally, this device and / or method can be implemented using structures and / or functionalities other than one or more of the aspects set forth herein.
[0057] It should also be noted that the illustrations provided in the following embodiments are only schematic representations of the basic concept of this disclosure. The drawings only show the components related to this disclosure and are not drawn according to the number, shape and size of the components in actual implementation. In actual implementation, the form, quantity and proportion of each component can be arbitrarily changed, and the layout of the components may also be more complex.
[0058] Furthermore, specific details are provided in the following description to facilitate a thorough understanding of the examples. However, those skilled in the art will understand that the described aspects can be practiced without these specific details.
[0059] Please see Figure 1A-Figure 1B , Figure 1A A flowchart illustrating a multimodal sentiment analysis method for characterizing matching and routing interactions is provided. Figure 1B A schematic diagram of a multimodal sentiment analysis model framework for representing matching and routing interactions is provided. Figure 1AThe provided multimodal sentiment analysis method for representation matching and routing interactions can be executed by an electronic device, specifically by one or more processors within the electronic device, to achieve the following steps:
[0060] S101, extract text modality representation, audio modality representation and visual modality representation from the original video data respectively.
[0061] To overcome the limitations of traditional text feature extraction methods in handling polysemy, a word embedding method based on a BERT (Bidirectional Encoder Representations from Transformers) pre-trained model is introduced. Employing a BERT model with a bidirectional Transformer structure, this model, leveraging its contextual understanding capabilities, can capture the bidirectional contextual information and temporal dependencies of words in a sentence, thereby generating highly discriminative word embeddings. Based on this, the first word vector from the last layer of the model is selected as the overall representation of the text; for example, this representation vector has a dimension of 768, which can fully reflect the deep semantic information of the text content. Text Representation F t As shown in formula (1):
[0062]
[0063] in, xt This is the original text feature vector. These are the parameters of the BERT network.
[0064] For the audio modality, the raw audio data is sampled and framed. The Librosa library is used to extract features such as Zero Crossing Rate (ZCR), Mel-frequency cepstral coefficients (MFCC), and Constant-Q Chromagram (CQT) from the audio frames. These features are concatenated to obtain audio features closely related to the speaker's emotion. To obtain the temporal information of the audio frame sequence, Bi-LSTM is used to process the aforementioned audio features, thus obtaining a complete audio representation, F. a The dimension is 32 for example. The frequency representation is shown in formula (2):
[0065]
[0066] Where, x a This is the original audio feature vector. These are the parameters of the Bi-LSTM network.
[0067] For the visual modality, OpenFace 2.0 is used to identify facial features such as head movement, gaze direction, and expression in each video frame, and average pooling-based frame downsampling is used to reduce the amount of data. To obtain the temporal information of the video frame sequence, Bi-LSTM is used to process the aforementioned series of facial features, thereby obtaining a visual representation rich in emotional cues. The visual representation F... v The dimension is 64 for example. The visual representation is shown in formula (3):
[0068]
[0069] Where, x v The original visual feature vector, These are the parameters of the Bi-LSTM network.
[0070] S102, the text modality representation, the audio modality representation, and the visual modality representation are mapped to a similar distribution space through an adversarial recurrent translation network to obtain uniformly distributed text modality representation, audio modality representation, and visual modality representation.
[0071] In this embodiment, the distribution matching implementation process includes the following steps, see [link to documentation]. Figure 2 .
[0072] S201, using an audio-text distribution transformation network to represent audio F a The distribution is transformed into a text representation F. t The distribution of audio modalities is determined while preserving the original semantic information of the audio modalities, thus obtaining an audio transformation representation (a uniformly distributed audio representation). Specifically, as shown in formula (3):
[0073]
[0074] Among them, T a→t It is an audio-to-text distribution conversion network. These are the parameters of the audio-text distribution conversion network;
[0075] S202, using a visual text distribution transformation network to transform the visual representation F v The distribution is transformed into a text representation F. t The distribution of visual modalities is analyzed, and the original semantic information of the visual modality is preserved, thus obtaining a visual transformation representation (a uniformly distributed visual representation). Specifically, as shown in formula (4):
[0076]
[0077] Among them, T v→t It is a visual text distribution transformation network. These are the parameters of the visual text distribution transformation network;
[0078] S203, using generator loss L g Discriminator loss L d and cyclic loss L c The distribution matching transformation process of the audio representation and the visual representation is constrained, as shown in formula (5):
[0079] L rdm =L g +L d +L c
[0080] =log(1-D t (G n→t (F n )))+log(1-D n (G t→n (F t )))+log(D t (F t ))+log(D n (F n ))+||G n→t (G t→n (F t ))||1+||G t→n (G n→t (F n ))||1 (5)
[0081] Among them, G n→t It is a text distribution generator used to transform the distributions of non-textual representations (audio and video representations) into distributions of textual representations. G t→n Achieve a distributed transformation from textual representations to non-textual representations. (D) t and D t It is a discriminator used to determine whether the input is a non-textual representation or a textual representation, n∈{a,v}.
[0082] S103, the uniformly distributed text modal representation, audio modal representation and visual modal representation are input into the dynamic routing interaction network to obtain multimodal representation.
[0083] The routing component implementation process provided in this embodiment includes the following steps, see below. Figure 3 :
[0084] S301 utilizes a simple feedforward neural network and activation function in the modal activation component to process modal representations. This preserves the low-level emotional semantics contained in the representation. Modal activation representation F1 dSpecifically, as shown in formula (6):
[0085]
[0086] FFN stands for Feedforward Neural Network. ReLU It is a non-linear activation function, m∈{t,a,v}.
[0087] S302 employs a multi-head self-attention mechanism in the intramodal interaction component to dynamically adjust the attention focus of the intramodal interaction and mine high-level sentiment information associated within the modality. For a single attention head, a weight matrix is used to represent the modality. Convert to query key Sum Then through vectors sum vector Calculate the similarity score and sum it with vector V2. m The weighted summation yields the interaction information within the modality, as shown in formula (7):
[0088]
[0089] Among them W2 Q W2 K W2 V For the corresponding weight matrix, head i For a separate attention head, (*) T This is a transpose operation, where d is the vector dimension;
[0090] The results from multiple attention heads are concatenated and fed into a feedforward neural network for integration. Intramodal interaction representation F2. d Specifically, as shown in formula (8):
[0091]
[0092] Where h is the number of attention heads, concat(*) is concatenation, and Dropout and LN are the dropout layer and normalization layer, respectively;
[0093] S303 utilizes a similarity-difference multi-head attention mechanism to comprehensively mine the interactive representations between modalities. The following example uses text representation; the principles of audio and visual features are similar and will not be elaborated upon here.
[0094] Specifically, it simultaneously mines the similarities and differences in emotional information between text audio and text visual, and uses it to enhance text representation;
[0095] Using a weight matrix to represent the text F t r and audio representation Convert to query key Sum of values V3 a Then through vectors sum vector After calculating the similarity score, take its absolute value and then combine it with vector V3. a Weighted summation yields the interaction information between text and audio. Finally, the text-audio interaction representation F3 is obtained by integrating the results from multiple attention heads. d Specifically, as shown in formula (9):
[0096]
[0097] Among them W3 Q W3 K W3 V This is the corresponding weight matrix, and |*| is the absolute value operation;
[0098] F through text representation t r and audio representation F v r Get query key Sum of values V4 v And using the same calculation, the text visual interaction representation F4 was obtained. d Specifically, as shown in formula (10):
[0099]
[0100] Among them W4 Q W4 K W4 V It is the corresponding weight matrix.
[0101] Similarly, we can obtain audio-text interaction representations, audio-visual interaction representations, visual-text interaction representations, and visual-audio interaction representations. These will not be elaborated upon further here.
[0102] S304. In cross-modal interaction components, as the number of Transformer network layers increases, the fused representations of text-to-audio (AB) and audio-to-text (BA) become increasingly similar. Similarly, the fused representations of text-to-visual and visual-to-text, as well as audio-to-visual and visual-to-audio, also become increasingly similar. Therefore, two regularization methods, KL divergence and soft orthogonal constraints, are used to optimize the fused representations between modalities.
[0103] It should be noted that the fusion representation is a part of the interaction representation.
[0104] It should be noted that in the cross-modal interaction components, text audio and text visual are processed by two separate cross-modal interaction components.
[0105] Furthermore, KL divergence is used to maximize the mutual information between the fused representation and the individual modal representations, see [link to relevant documentation]. Figure 4 By constraining the KL divergence, the fused representation can retain the unique emotional information in the modal representation to the greatest extent. The KL regularization constraint is shown in Equation (11):
[0106] L sim =KL(F ta ,F t )+KL(F tv ,F t )+KL(F at ,F a )+KL(F av ,F a )+KL(F vt ,F v )+KL(F va ,F v (11)
[0107] Among them, F t ,F a ,F v It is a modal representation, F ta ,F tv ,F at ,F av ,F vt ,F va It is a fusion representation;
[0108] Soft orthogonal constraints are used to further enhance the difference between the two fused representations. The specific soft orthogonal constraints are shown in Equation (12):
[0109] L dis =SOC(F ta ,F at )+SOC(F tv ,F vt )+SOC(F av ,F va (12)
[0110] S305, the outputs of the modal activation component, the intramodal interaction component, and the cross-modal interaction component are obtained through a routing strategy, and then fused into a multimodal representation rich in emotional semantics using an aggregation operation. Specifically, as shown in formula (13):
[0111]
[0112] Furthermore, in the dynamic routing network, the dense connections between components at each layer ensure that each component has the opportunity to receive signals from the layer above. In addition, a routing mechanism is used within each component. This mechanism controls the path probability between each component in adjacent layers. Here, the input of the i-th component in the k-th layer... Specifically, as shown in formula (14):
[0113]
[0114] Where N represents the number of components in each layer. This represents the output of the j-th component in layer k-1. This represents the path probability from the j-th component in layer k-1 to the i-th component in layer k;
[0115] The specific calculation formula is shown in formula (15):
[0116]
[0117] in express The q-th vector,
[0118] S104, under the joint loss constraint of the uniformly distributed text modal representation, audio modal representation and visual modal representation, the multimodal representation is fed into the sentiment prediction layer for sentiment prediction, and the final sentiment prediction value is output.
[0119] In this embodiment, the text multimodal representation, audio multimodal representation, and visual multimodal representation are concatenated, and then fed into a multilayer perceptron (MLP) consisting of four fully connected layers under joint loss constraints to achieve multimodal sentiment prediction, as shown in formula (16):
[0120] y = MLP(concat(F) t d ,F a d ,F v d (16)
[0121] Where y∈R is a continuous value representing the predicted sentiment;
[0122] Specifically, the joint loss constraint is shown in Equation (17):
[0123] L = x e L ep +x r L rdm +x s L sim+x d L dis (17)
[0124] Where L ep It is the sentiment prediction loss, L rdm It represents the distribution matching loss, L sim It is similarity loss, L dis It is the difference loss, x e ,x r ,x s ,x d This represents the weighting coefficient for each loss.
[0125] To illustrate the effectiveness of the multimodal sentiment analysis method for characterization matching and routing interaction provided in this application embodiment, this application embodiment also provides a comparison of results from various representative methods, as shown in Table (1). Table (1) compares the results of the method provided in this invention embodiment with those of various representative methods. This comparison was conducted on the public dataset CMU-MOSI in the field of multimodal sentiment analysis, mainly testing the model's sentiment 2-classification performance, i.e., determining whether the sentiment category of a sample is "positive" or "negative". The test selected the accuracy and F1 score of sentiment 2-classification as evaluation indicators. Accuracy refers to the ratio of the number of correctly classified sentiments in the sample prediction results to the total number of samples; a higher value indicates a better prediction effect. The F1 score is the harmonic mean of precision and recall; a higher value indicates a better prediction effect. As shown in Table 1, compared with several classic models in the field of multimodal sentiment analysis, this invention embodiment achieved better performance in the sentiment 2-classification test, improving accuracy and F1 score by 1.9% and 2.0% respectively compared with the suboptimal model CJTF.
[0126] Table (1)
[0127]
[0128]
[0129] In summary, compared with the prior art, this embodiment has the following advantages:
[0130] 1. Multimodal Representation Space Alignment: By employing a multi-resistant recurrent translation network, the original audio and visual representations were successfully mapped to a high-dimensional space similar to the text representation. This not only reduced the differences in representation distribution among the three modalities (audio, visual, and text) but also achieved a uniform distribution of representations, laying the foundation for subsequent multimodal information interaction and fusion.
[0131] 2. Dynamic Sentiment Information Mining and Interaction: By introducing a dynamic routing interaction network, it is possible to deeply mine sentiment information within each modality (from low to high level) and capture the similarities and differences in sentiment information across modalities. This enriches the sentiment semantic connotations of each modality representation, making the model more nuanced and comprehensive in its sentiment understanding.
[0132] 3. Cross-modal fusion representation optimization: To address the homogenization problem in fusion representations that easily occurs when traditional Transformers are deeply stacked, similarity and difference losses are used as constraints to optimize the fusion representation during cross-modal interaction. This effectively avoids information redundancy and ensures the diversity and effectiveness of the fusion representation.
[0133] 4. Joint Loss Optimization Strategy: To further improve the accuracy of sentiment prediction, the classification loss of the sentiment prediction classification layer, the representation distribution matching loss, and the similarity and difference loss of the fused representations are combined to form a joint loss constraint. This joint loss constraint optimizes the training process, ultimately improving the sentiment prediction performance.
[0134] The second embodiment of the present invention provides a multimodal sentiment analysis device for representing matching and routing interactions (such as...). Figure 5 As shown), it includes:
[0135] Multimodal representation extraction module 510: used to independently extract text modal representation, audio modal representation and visual modal representation from raw video data, ensuring the integrity and accuracy of each modal information.
[0136] Representation Distribution Mapping Module 520: This module receives text modality representations, audio modality representations, and visual modality representations from the multimodal representation extraction module, and maps these representations to a similar distribution space through an adversarial recurrent translation network. This process aims to eliminate the distribution differences between representations of different modalities and obtain uniformly distributed and mutually compatible modal representations.
[0137] Dynamic Routing Interactive Network Module 530: This module receives uniformly distributed text modal representations, audio modal representations, and visual modal representations as input. Through its internal mechanisms, it delves into the emotional information (including low-level and high-level) within each modality and captures the similarities and differences in emotional information across modalities. Ultimately, this module outputs a multimodal representation containing rich emotional semantics.
[0138] Sentiment Prediction and Optimization Module 540: This module receives multimodal representations from the Dynamic Routing Interaction Network Module under the joint loss constraint of uniformly distributed text modal representations, audio modal representations, and visual modal representations. The sentiment prediction layer processes the multimodal representations and outputs the final sentiment prediction value.
[0139] The third embodiment of the present invention also provides an electronic device, the electronic device comprising:
[0140] At least one processor; and,
[0141] The memory is communicatively connected to the at least one processor; wherein,
[0142] The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the multimodal sentiment analysis method for representation matching and routing interactions of any of the foregoing embodiments.
[0143] The fourth embodiment of the present invention also provides a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute the multimodal sentiment analysis method for representation matching and routing interaction described in any of the foregoing embodiments.
[0144] The fifth embodiment of the present invention also provides a computer program product, which includes a computing program stored on a non-transitory computer-readable storage medium. The computer program includes program instructions that, when executed by a computer, cause the computer to perform the multimodal sentiment analysis method of representation matching and routing interaction of any of the foregoing embodiments.
[0145] The sixth embodiment of the present invention also provides a computer program, which includes program instructions that, when executed by a computer, cause the computer to perform the multimodal sentiment analysis method of representation matching and routing interaction of any of the foregoing embodiments.
[0146] Figure 6 The diagram illustrates a method or device 1000 that can implement embodiments of the present invention. In some embodiments, it may include more or fewer devices than illustrated. In some embodiments, it may be implemented using a single or multiple devices. In some embodiments, it may be implemented using cloud-based or distributed devices.
[0147] like Figure 6As shown, device 1000 includes a processor 1001, which can perform various appropriate operations and processes based on programs and / or data stored in read-only memory (ROM) 1002 or programs and / or data loaded from storage portion 1008 into random access memory (RAM) 1003. Processor 1001 may be a multi-core processor or may contain multiple processors. In some embodiments, processor 1001 may include a general-purpose main processor and one or more special coprocessors, such as a central processing unit (CPU), graphics processing unit (GPU), neural network processor (NPU), digital signal processor (DSP), etc. Various programs and data required for the operation of device 1000 are also stored in RAM 1003. Processor 1001, ROM 1002, and RAM 1003 are interconnected via bus 1004. Input / output (I / O) interface 1005 is also connected to bus 1004.
[0148] The processor and memory described above are used together to execute a program stored in the memory. When the program is executed by a computer, it can implement the methods, steps, or functions described in the above embodiments.
[0149] The following components are connected to I / O interface 1005: an input section 1006 including a keyboard, mouse, touchscreen, etc.; an output section 1007 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 1008 including a hard disk, etc.; and a communication section 1009 including a network interface card such as a LAN card, modem, etc. The communication section 1009 performs communication processing via a network such as the Internet. A drive 1010 is also connected to I / O interface 1005 as needed. A removable medium 1011, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on drive 1010 as needed so that computer programs read from it can be installed into storage section 1008 as needed. Figure 6 The diagram only shows a portion of the components and does not imply that the device 1000 only includes... Figure 6 The components shown.
[0150] The systems, devices, modules, or units described in the above embodiments can be implemented by a computer or its associated components. The computer may be, for example, a mobile terminal, smartphone, personal computer, laptop computer, in-vehicle human-machine interface device, personal digital assistant, media player, navigation device, game console, tablet computer, wearable device, smart TV, Internet of Things system, smart home, industrial computer, server, or a combination thereof.
[0151] Although not shown, in this embodiment of the invention, a computer-readable storage medium is provided having a computer program / instruction stored thereon, which, when executed by a processor, implements the multimodal sentiment analysis method for representation matching and routing interaction described in Embodiment 1.
[0152] Storage media in embodiments of the present invention include articles that are permanent or non-permanent, removable or non-removable, and can store information by any method or technology. Examples of storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transfer medium that can be used to store information that can be accessed by a computing device.
[0153] Although not shown, embodiments of the present invention also provide a computer program product, including: a computer program / instructions that, when executed by a processor, implement the multimodal sentiment analysis method for representation matching and routing interaction described in Embodiment 1.
[0154] The methods, programs, systems, apparatuses, etc., in embodiments of the present invention can be executed or implemented in one or more networked computers, or practiced in a distributed computing environment. In the embodiments of this specification, in these distributed computing environments, tasks can be performed by remote processing devices connected via a communication network.
[0155] Those skilled in the art will understand that the embodiments described in this specification can be provided as methods, systems, or computer program products. Therefore, those skilled in the art will realize that the functional modules / units or controllers and related method steps described in the above embodiments can be implemented in software, hardware, or a combination of both.
[0156] Unless explicitly stated otherwise, the actions or steps of the methods and procedures described in the embodiments of the present invention do not necessarily have to be performed in a specific order and can still achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0157] This document describes several embodiments of the present invention; however, for the sake of brevity, the descriptions of the embodiments are not exhaustive, and identical or similar features or parts between the embodiments may be omitted. In this document, "one embodiment," "some embodiments," "example," "specific example," or "some examples" refers to embodiments applicable to at least one, but not all, of the present invention. The above terms do not necessarily refer to the same embodiments or examples. Without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described herein, as well as the features of the different embodiments or examples.
[0158] The exemplary systems and methods of the present invention have been specifically shown and described with reference to the above embodiments, which are merely examples of the best mode for implementing the systems and methods. Those skilled in the art will understand that various changes can be made to the embodiments of the systems and methods described herein without departing from the spirit and scope of the invention as defined in the appended claims when implementing the systems and / or methods.
Claims
1. A multimodal sentiment analysis method for representing matching and routing interactions, characterized in that, include: Text modal representation, audio modal representation, and visual modal representation were extracted from the original video data. The text modality representation, the audio modality representation, and the visual modality representation are mapped to a similar distribution space through an adversarial recurrent translation network to obtain uniformly distributed text modality representation, audio modality representation, and visual modality representation; The uniformly distributed text modal representation, audio modal representation, and visual modal representation are input into the dynamic routing interaction network to obtain a multimodal representation; Under the joint loss constraint of the uniformly distributed text modal representation, audio modal representation, and visual modal representation, the multimodal representation is fed into the sentiment prediction layer for sentiment prediction, and the final sentiment prediction value is output. The step of mapping the text modality representation, the audio modality representation, and the visual modality representation to a similar distribution space through an adversarial recurrent translation network to obtain uniformly distributed text modality representation, audio modality representation, and visual modality representation includes: The audio modality representation is transformed into a distribution similar to the text modality representation using an audio-text distribution transformation network to obtain the uniformly distributed audio modality representation. The specific formula is as follows: ,in, It is a uniformly distributed audio modal representation. It is an audio modal representation. It is an audio-to-text distribution conversion network. These are the parameters of the audio-to-text distribution conversion network; The visual modality representation is transformed into a distribution similar to the text modality representation using a visual-text distribution transformation network to obtain a uniformly distributed visual modality representation. The specific formula is as follows: [Specific calculation formula follows]. ,in, It is a uniformly distributed visual modality representation. It is a visual modality representation. It is a visual-to-text distribution transformation network. These are the parameters of the visual-to-text distribution transformation network; Loss through generator Discriminator loss and cyclic loss The distribution matching transformation process of the audio modality representation and the visual modality representation is constrained to obtain the uniformly distributed text modality representation, audio modality representation, and visual modality representation, as follows: in, It is a characteristic of the distribution matching loss. It is a text distribution generator used to transform the distribution of non-text modal representations into the distribution of text modal representations. To achieve the distribution transformation from text modal representation to non-text modal representation, and It is a discriminator used to determine whether the input is a non-textual modal representation or a textual modal representation. It is a text modal representation. It is a non-textual modal representation. , It's audio. It's visual; The joint loss constraint includes: distribution matching loss, similarity loss, dissimilarity loss, and sentiment classification loss for the uniformly distributed text modality representation, audio modality representation, and visual modality representation. The specific joint loss constraint is as follows: ,in It is the loss of sentiment prediction. It is a characteristic of the distribution matching loss. It is similarity loss. It is a difference loss. This represents the weighting coefficient for each loss.
2. The multimodal sentiment analysis method for representation matching and routing interaction according to claim 1, characterized in that, The uniformly distributed text modal representation, audio modal representation, and visual modal representation are input into the dynamic routing interaction network to obtain a multimodal representation, including: In the modal activation component, the uniformly distributed text modal representation, audio modal representation, and visual modal representation are processed by a feedforward neural network and activation function to preserve the low-level emotional semantics contained in the uniformly distributed text modal representation, audio modal representation, and visual modal representation. In intramodal interaction components, the attention focus of intramodal interaction is adjusted through a multi-head self-attention mechanism, and high-level sentiment information associated within the modality is mined. The results from multiple attention heads are concatenated and then fed into the feedforward neural network for integration. Intermodal interaction representations are obtained through a similarity-difference multi-head attention mechanism; In the cross-modal interaction component, KL divergence and soft orthogonal constraints are used to optimize the fusion representation between the modes, wherein the fusion representation is part of the interaction representation; The output results of the modal activation component, the intramodal interaction component, and the cross-modal interaction component are obtained through a routing strategy, and the multimodal representation is obtained by aggregating the output results.
3. The multimodal sentiment analysis method for representation matching and routing interaction according to claim 1, characterized in that, The step of inputting the uniformly distributed text modal representation, audio modal representation, and visual modal representation into the dynamic routing interaction network to obtain multimodal representation includes: each component of the dynamic routing interaction network can receive signals from the component of the previous layer, and each component controls the path probability between each component of adjacent two layers by using a routing mechanism.
4. The multimodal sentiment analysis method for representation matching and routing interaction as described in claim 1, characterized in that, The process involves concatenating the text multimodal representation, audio multimodal representation, and visual multimodal representation under the joint loss constraint of the uniformly distributed text multimodal representation, audio multimodal representation, and visual multimodal representation, and then feeding them into a multilayer perceptron under the joint loss constraint to obtain the final sentiment prediction value.
5. A multimodal sentiment analysis device for representing matching and routing interactions, characterized in that, include: Multimodal representation extraction module: used to independently extract text modal representations, audio modal representations, and visual modal representations from raw video data; Representation distribution mapping module: used to receive text modal representations, audio modal representations and visual modal representations from the multimodal representation extraction module, and map the text modal representations, the audio modal representations and the visual modal representations to similar distribution spaces through an adversarial recurrent translation network; Dynamic routing interaction network module: It is used to receive uniformly distributed text modal representations, audio modal representations and visual modal representations as input, mine the emotional information within each modality, capture the emotional information across modalities, and finally output multimodal representations; Sentiment Prediction and Optimization Module: This module receives multimodal representations from the Dynamic Routing Interaction Network Module, performs sentiment prediction under joint loss constraints, and outputs the final sentiment prediction value. The representation distribution mapping module maps the text modality representation, the audio modality representation, and the visual modality representation to a similar distribution space through an adversarial recurrent translation network to obtain uniformly distributed text modality representation, audio modality representation, and visual modality representation, including: The audio modality representation is transformed into a distribution similar to the text modality representation using an audio-text distribution transformation network to obtain the uniformly distributed audio modality representation. The specific formula is as follows: ,in, It is a uniformly distributed audio modal representation. It is an audio modal representation. It is an audio-to-text distribution conversion network. These are the parameters of the audio-to-text distribution conversion network; The visual modality representation is transformed into a distribution similar to the text modality representation using a visual-text distribution transformation network to obtain a uniformly distributed visual modality representation. The specific formula is as follows: [Specific calculation formula follows]. ,in, It is a uniformly distributed visual modality representation. It is a visual modality representation. It is a visual-to-text distribution transformation network. These are the parameters of the visual-to-text distribution transformation network; The sentiment prediction and optimization module uses generator loss. Discriminator loss and cyclic loss The distribution matching transformation process of the audio modality representation and the visual modality representation is constrained to obtain the uniformly distributed text modality representation, audio modality representation, and visual modality representation, as follows: in, It is a characteristic of the distribution matching loss. It is a text distribution generator used to transform the distribution of non-text modal representations into the distribution of text modal representations. To achieve the distribution transformation from text modal representation to non-text modal representation, and It is a discriminator used to determine whether the input is a non-textual modal representation or a textual modal representation. It is a text modal representation. It is a non-textual modal representation. , It's audio. It's visual; The joint loss constraint includes: distribution matching loss, similarity loss, dissimilarity loss, and sentiment classification loss for the uniformly distributed text modality representation, audio modality representation, and visual modality representation. The specific joint loss constraint is as follows: ,in It is the loss of sentiment prediction. It is a characteristic of the distribution matching loss. It is similarity loss. It is a difference loss. This represents the weighting coefficient for each loss.
6. An electronic device, characterized in that, The electronic device includes: At least one processor; and, The memory is communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the multimodal sentiment analysis method for characterization matching and routing interactions as described in any one of claims 1 to 4.
7. A non-transitory computer-readable storage medium, characterized in that, The non-transitory computer-readable storage medium stores computer instructions for causing the computer to perform the multimodal sentiment analysis of representation matching and routing interactions as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Multi-modal sentiment analysis method and device, electronic equipment and storage medium
CN115019237A
Methods and systems for multimodal content analytics
US20210151034A1
