Multimodal sentiment analysis method based on joint domain separation representation hierarchical graph fusion network
Through the joint domain separation representation hierarchical graph fusion network, the problem of inter-modal heterogeneity in multi-modal sentiment analysis is solved, efficient multi-modal representation learning and interpretability fusion are achieved, and the performance of sentiment analysis is improved.
Patent Information
- Application Number
- CN202111106277.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-22
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2041-09-22
AI Technical Summary
Existing multimodal sentiment analysis methods have limited performance under the influence of the heterogeneous gap between modalities, making it difficult to minimize redundant information and fuse interpretability.
A multi-modal sentiment analysis method based on joint domain separation representation hierarchical graph fusion network is adopted. Through manual feature extraction, joint domain separation network, hierarchical graph fusion network and emotion prediction network, combined with grid search algorithm and constrained regular loss function, Design efficient multimodal representation learning and interpretability fusion strategies.
It achieves efficient multi-modal sentiment analysis, improves model performance and interpretability, and is significantly better than the classic multi-modal sentiment analysis model.
Smart Images

Figure CN113837265B
Abstract
Description
Technical Field
[0001] The present invention relates to a multimodal sentiment analysis method based on data fusion, and more specifically, to a multimodal sentiment analysis method based on a joint domain separation representation hierarchical graph fusion network. Background Art
[0002] As an emerging field in natural language processing (NLP), multimodal sentiment analysis (MSA) aims to identify the speaker's emotions by mining clues in multimodal signals (such as language text, video, and audio). Compared with unimodal sentiment analysis, which only focuses on analyzing human emotions through a single emotional channel, MSA can represent and learn different modal features according to the needs of different application scenarios. Most methods in MSA, such as the recurrent attention fusion model (MARN) and the memory fusion network (MFN), focus on exploring complex fusion mechanisms. Although this has improved the performance of MSA, these fusion techniques are often affected by the heterogeneity gap between modalities. A common method to solve this problem is to project heterogeneous features into a shared subspace during the representation learning process. In addition, it is hoped that complementary information between modalities can be used to minimize redundant information, and an interpretable modal dynamics fusion mechanism can be established to merge different information sets. Therefore, the present invention mainly explores a sentiment analysis framework based on a multimodal representation learning method and an interpretable fusion method. Summary of the invention
[0003] In view of the above problems, the present invention provides a multimodal sentiment analysis method based on a joint domain separation representation hierarchical graph fusion network, aiming to explore advanced multimodal representation learning methods and explainable fusion strategies.
[0004] To achieve the above object, the present invention adopts the following technical solutions:
[0005] S1. Establish a multimodal sentiment analysis framework;
[0006] S2, manual feature extraction of multimodal data (text, video, audio);
[0007] S3, input the processed data into the joint domain separation network to obtain the joint domain separation representation features;
[0008] S4, input the joint domain separation representation of each modality into the hierarchical graph fusion network to obtain an interpretable fusion representation;
[0009] S5, the fusion representation is input into the prediction network (Pre) for sentiment prediction;
[0010] S6. Combined with the grid search optimization algorithm, the network is trained using a new joint loss function to obtain the optimal model.
[0011] Furthermore, in step S1, the multimodal sentiment analysis framework includes five modules, namely, a multimodal data manual feature extraction module, a joint domain separation network module, a hierarchical graph fusion network module, a sentiment prediction network module, and a network learning module, which are connected in sequence.
[0012] Furthermore, in step S2, the manual feature extraction module extracts manual features of the video and audio sequences respectively through the Facet and COVAREP toolkits.
[0013] Furthermore, in step S3, the manual features are input into the joint domain separation network to obtain the joint domain separation representation. The process is as follows: (1) The text, video, and audio manual features are respectively input into the BERT model and two different long short-term memory networks (LSTM) to obtain discourse-level features; (2) The discourse-level features of the three modalities are input into different multi-layer perceptrons (MLPs) to obtain a unified mapping representation; (3) The unified representation is input into the joint domain separation network (JDSN) to obtain the joint representation of the specificity-invariance representations of each modality.
[0014] Furthermore, in step S4, the joint representation of each modality is input into the hierarchical graph fusion network for interpretable fusion.
[0015] Furthermore, in step S5, the fused features are input into the prediction network for emotion state analysis.
[0016] Furthermore, in step S6, the grid search algorithm is combined to train the network using the new constrained regularized loss function, and the optimal model is saved.
[0017] The beneficial effects of the present invention are as follows: a multimodal sentiment analysis framework is established; a new constraint regularized loss function is designed to guide the network to learn the corresponding features; a grid search algorithm is used to obtain network hyperparameters and loss function weight parameters, thereby obtaining the optimal model. Finally, experiments show that the present invention has obvious advantages over the classic multimodal sentiment analysis model and has fusion interpretability. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 Schematic diagram of the multimodal sentiment analysis framework;
[0019] Figure 2 The network topology diagram is a graph fusion diagram;
[0020] Figure 3 It is the network structure topology diagram;
[0021] Figure 4 Visualize the spectrogram of the graph fusion network on the test set;
[0022] Figure 5 This is a T-SNE hierarchical visualization of the clustering fusion effect of the network on the test set;
[0023] Figure 6 Comparison chart of the network's similarity loss performance (accuracy) on the test set.
[0024] Figure 7 Comparison chart of the network's similarity loss performance (other indicators) on the test set. DETAILED DESCRIPTION
[0025] For ease of understanding of the present invention, preferred embodiments of the present invention are provided below. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present invention more thorough and comprehensive.
[0026] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification are only for describing specific implementation purposes and are not intended to limit the present invention.
[0027] A multimodal sentiment analysis method based on joint domain separation representation hierarchical graph fusion network:
[0028] S1. Establish a multimodal sentiment analysis framework.
[0029] like Figure 1 As shown in the figure, the multimodal sentiment analysis framework includes five modules, namely, a multimodal data manual feature extraction module, a joint domain separation network module, a hierarchical graph fusion network module, a sentiment prediction network module, and a network learning module, which are connected in sequence. The data are the popular multimodal datasets CMU-MOSI and CMU-MOSEI. In addition, in order to facilitate the use of multimodal data to detect emotions in videos, the speech data is divided into a sequence of N segments S, each of which contains three low-level feature sequences of language (l), vision (v), and hearing (a).
[0030] S2. Manual feature extraction of multimodal data (text, video, audio).
[0031] The Facet and COVAREP toolkits are used to extract manual features of video and audio sequences respectively, and the CMU-Multimodal SDK development library is used to semantically align the manual features of text, video, and audio.
[0032] S3. Input the processed data into the joint domain separation network to obtain the joint domain separation representation features. The process is as follows.
[0033] Discourse-level feature representation:
[0034] First, a bidirectional long short-term memory neural network LSTM is used to map the feature sequence S of the visual (v) and auditory (a) modalities. v , S a , to obtain the utterance-level features of the sequence, whose output is the LSTM terminal state hidden representation F v 、F a :
[0035]
[0036] in, and They are the network parameters of the bidirectional long and short cycle memory neural network for visual (v) and auditory (a) modalities respectively.
[0037] Secondly, for the text sequence S of language (l) modality l , obtained through the pre-trained BERT model, is expressed as follows:
[0038]
[0039] in, is the network parameter of the BERT model, F l Represents text modality utterance-level representation.
[0040] Feature unified mapping representation:
[0041] Since the underlying feature map represents F v ,F a and F l The feature dimensions of the different sizes are different. In order to facilitate the encoding-decoding operation of the back-end network, a multi-layer perceptron (MLP) is used to uniformly map the underlying features and represent them as O m :
[0042]
[0043] Among them, F m is the utterance-level representation of m-mode, are the parameters of the multi-layer perceptron network of different modalities; the MLP consists of a dense connection layer activated by the Relu function and a normalization layer.
[0044] Joint domain separation means:
[0045] In this section, the unified mapping representation of each modality is first decomposed into two parts: modality invariance and modality specificity through an extended domain separation network (DSN). c Learning invariant representations in a common subspace to bridge the heterogeneity gap between modalities. It is used to capture the special representation in the special subspace. Then, the joint representation is obtained by combining the invariant-special representation. The specific representation process is as follows:
[0046] First, after obtaining the uniform mapping vector O for each mode m After that, use the modal shared encoder E c (weight sharing) to obtain modality invariant representation By modal special encoder To extract the modality-specific representation
[0047]
[0048] Among them, θ c represents the modality-shared encoder network parameters, Represents the mode-specific encoder network parameters. E c and The structure is the same, consisting of densely connected layers activated by the function Sigmoid.
[0049] Then, 6 hidden layer vectors are generated through the neural network feedforward propagation and And obtain the joint domain separation representation by vector addition '+':
[0050]
[0051] Among them, h m It represents the joint domain separation representation of the modality m, which has both the characteristics of the shared subspace and the characteristic representation of the special subspace.
[0052] S4. The joint domain separation representation of each modality is input into the hierarchical graph fusion network to obtain an interpretable fused representation.
[0053] like Figure 2 As shown, the network is a three-layer network consisting of vertices and edges. The first layer is a single-mode dynamics layer, which consists of three single-mode vertices V m ,(m∈{l,v,a}), and its information vector is represented by M l ,M v and M a , which correspond to the joint domain separation representation h of the three modalities. l ,h v and h a Considering that each modality has different contributions, we first use the attention network Each modal vertex information is processed to obtain the importance of each mode. Then, the final unimodal dynamics representation is obtained by calculating the weighted average of all unimodal vertex information as follows:
[0054]
[0055] in, is a single-mode dynamic representation, α m is the vertex V m The importance weight, MAN is a parameter θ MAN And the fully connected layer activated by the Sigmoid function.
[0056] In the second layer, the bimodal dynamics layer, through a simple multi-layer neural fusion network: Fuse the vertex information of each two unimodal states to obtain the vertex information of each bimodal state:
[0057]
[0058] in, represents vector concatenation, is the vertex The information vector, θ MLF is the parameter matrix of the network MLF. In fact, MLF consists of two dense layers, activated by Leaky Relu and Tanh respectively.
[0059] For obtaining similarity weights, in order to reduce computing power costs, it is assumed that the more similar the two information vectors are, the less important the bimodal interaction is. Therefore, for the similarity of the edges connecting the first layer and the second layer, the inner product is used to measure the similarity of each two unimodal information vectors in the first layer. The similarity of two information vectors is defined as follows:
[0060]
[0061] in, To represent the vertex The scalar of similarity, is the information vector normalized by Softmax (used to ensure that the calculated similarity ranges between 0 and 1), and T represents the transpose operation of the vector.
[0062] Further, the first layer vertices will be connected and the second level vertices The edge weight is defined as To meet the previous assumptions. Considering the interaction between vertices, the vertex The weight is defined as:
[0063]
[0064]
[0065] in, It represents the vertex A scalar weight (the value 0.5 in the denominator is used to control the similarity The relative importance of the second layer), equation (10) is the Softmax normalization operation of the second layer weight vector (which helps the weighted average output of the second layer vertex information). The second layer output is the weighted average of the bimodal vertex information, as shown below:
[0066]
[0067] in, It is a bimodal dynamics layer representation.
[0068] In the third layer, the trimodal dynamics layer, an MLF network with the same structure as the second layer (with no shared parameters) is used to further fuse every two bimodal vertices to obtain three trimodal vertex information (such as M allv In addition, in order to effectively utilize the information of each vertex, each bimodal vertex is fused with the vertices in the unimodal dynamics layer that do not contribute to the formation of this vertex, generating another three trimodal vertex information (such as M alv ). Therefore, if Figure 2 As shown in Figure 2, a total of 6 trimodal vertex information is generated in the trimodal dynamics layer. In addition, this experiment also uses the same edge weight calculation method as the second layer to determine the weight of the third layer edge, and weighted sums each trimodal vertex information to obtain the final trimodal dynamics representation.
[0069] S5. The fused representation is input into the prediction network (Pre) for sentiment prediction.
[0070] The output of the hierarchical neural network is represented as the concatenation of three layers of dynamics representation, defined as: Then, the prediction neural network (Pre) is used to make predictions:
[0071] Prediction = Pre(Z; θ Pre ) (12)
[0072] in, (C is the number of categories, C = 1 for regression problems); is the prediction network, which includes a normalization layer and a fully connected layer activated by Tanh, Tanh and Softmax respectively; θ Pre In order to predict the network parameters, in addition, the specific parameters of the model will be described in detail in the experimental part.
[0073] S6. Use the new constrained regularized loss function to train the network and save the optimal model.
[0074] The specificity-invariance and other relevant features in the joint domain separation representation are obtained through the loss function. The loss function of this method is expressed as follows:
[0075] L total =L task +αL diff +βL sim +γL recon +ηL trip (13)
[0076] Among them, α, β, γ, η are the interaction weights, which determine each loss L diff , L sim , L recon and L trip The total loss L total The contribution of L task , L diff , L sim , L recon , L trip They are task loss, specificity loss, similarity loss, reconstruction loss, and triplet loss, and their definitions are as follows.
[0077] Mission loss:
[0078] This task aims to predict continuous dense variables, so the mean square error loss (MSE) is used as the task loss of the network. b For each utterance, the loss is calculated as follows:
[0079]
[0080] Among them, y i For real emotional labels, is the predicted value of the network.
[0081] Loss of specificity:
[0082] The non-redundancy effect can be achieved by imposing a soft orthogonality constraint on the two representation vectors. Therefore, the present invention uses this constraint to force the shared encoder E c and special encoders Different aspects are encoded, namely, modal invariance and modal specificity. The definition of soft orthogonal constraints is as follows:
[0083] When training a batch of data, assume and are two matrices, whose rows correspond to the modal invariance representation of mode m in each data batch. and specificity representation Then the orthogonal constraint for the modal vector is calculated as follows:
[0084]
[0085] in, Represents the squared Frobenius norm.
[0086] Similarity loss:
[0087] Using similarity loss (L sim ) to constrain the shared subspace is conducive to reducing the heterogeneity differences between the shared representations of each modality. Central Moment Discrepancy (CMD) measures the difference between the distributions of the two by matching the order-wise moment differences of the two representations. Compared with other methods (such as MMD and DANN), it is a more efficient and concise distance measurement method. Therefore, this method selects CMD as the similarity loss, which is defined as follows:
[0088] Let X and Y be bounded random samples in the tight interval [a,b] N With their own probability distributions p and q, the center distance deviation regularizer CMD K The empirical estimate defined as the CMD metric is as follows:
[0089]
[0090] Among them C k and E(X) are expressed as follows:
[0091]
[0092] Where: E(X) is the empirical expectation vector of sample X, C k (X) is the vector of the central moments of all k-order samples in the X coordinate. In order to enable the network to learn the invariance representations between all modalities, the present invention calculates the CMD distance between the invariance representations between each two modalities:
[0093]
[0094] In addition, the choice of similarity loss will be discussed later as to why CMD is chosen.
[0095] Reconstruction loss:
[0096] When soft orthogonality constraints are enforced, there is a risk that the particular encoder learns trivial representations. However, this problem can be addressed by adding a reconstruction loss to ensure that the encoder captures the details of each modality. First, the modality decoder D m The joint domain separation representation vector h of the remodeled state m m , the reconstructed output is Then, the reconstruction loss is expressed as h m and The mean square error loss between is expressed as:
[0097]
[0098] in, Represents the squared L2-norm.
[0099] Triplet loss:
[0100] In order to ensure the high-level similarity between all items when fusion representation of joint domain separation representation vectors is performed, this method uses the cosine triple boundary constraint loss L trip To minimize the distance between utterances with similar semantics in different modalities, and maximize the distance between different utterances.
[0101] Taking language and visual modalities as an example, establish a triple representation The visual representation Semantically related to the language representation h l Positive correlation, while visual representation So the cosine triplet boundary loss for the language modality is as follows:
[0102]
[0103] Among them, h m is the joint domain separation representation vector of mode m, and margin=1 is the boundary parameter.
[0104] In the same way, the cosine triplet boundary loss between visual and auditory modalities can be formulated as follows:
[0105]
[0106]
[0107] Combined with formula (20-22), the total cosine triple boundary loss is expressed as follows:
[0108]
[0109] Experimental analysis:
[0110] Dataset:
[0111] The datasets used in the experiment are the popular multi-sentiment analysis datasets CMU-MOSI and CMU-MOSEI:
[0112] CMU-MOSI dataset: This dataset is a collection of YouTube monologues, including 93 opinion videos from different speakers, which are divided into 2199 subjective speech-video clips. These utterances are manually labeled with a continuous opinion score between [-3,3], where -3 / +3 represent strong negative and positive emotions, respectively. The experiment uses 1283 clip samples for training, 229 clips for verification, and 686 clips for testing.
[0113] CMU-MOSEI dataset: An improved version of MOSI, containing 23,453 annotated speech segments from 5,000 videos, 1,000 different speakers, and 250 different topics. The experiment still uses 1,283 segment samples for training, 229 segments for validation, and 686 segments for testing.
[0114] Evaluation Metrics:
[0115] Since this experiment is a regression task, the mean absolute error (MAE) and Pearson correlation coefficient (Corr) are used to measure the test results. In addition, classification indicators are also considered in the experiment, including the 5-category accuracy (Acc-5) of the sentiment range [-2,2], the positive and negative sentiment (p / g) binary classification accuracy (Acc-2) and the F1 value (F1-Score).
[0116] Experimental details:
[0117] The proposed method is tested on Pytorch. In order to find the appropriate hyperparameters, a grid search of hyperparameters is performed on the data validation set, and the model and hyperparameters with the best results are saved. In the grid search, the limited set of options for setting hyperparameters is as follows: α∈{0.3,0.4}, β∈{0.7,0.8,0.9,1.0}, γ∈{0.1,0.2,0.3,0.4,0.5}, η∈{0.01,0.1}, drop∈{0,0.1,0.2,0.3,0.4}, which correspond to the loss function weights and random dropout rate; the hidden layer size of the representation part and prediction network is divided into the following ranges: Hid∈{128,256}, P_h∈{50,64}. In the iterative optimization process, the network is trained using the Adam optimizer with max epoch=20, batch size=16 and learning rate 0.0001. Table 1 shows the grid search results for each dataset and the results are shown in Table 1 according to the settings of the hyperparameters. Figure 3 The structure diagram of the model components mentioned above is shown in Figure .
[0118] Table 1 Network hyperparameters
[0119]
[0120]
[0121] In order to verify the superiority and effectiveness of the present invention, experiments such as baseline model comparison, fusion strategy research, loss function ablation research, and similarity loss selection research were designed, and each experiment was discussed in combination with visualization and quantitative analysis methods.
[0122] Baseline model comparison experiment:
[0123] In the comparative experiment, classic baseline models such as TFN, LMF, MFN, Gragh-MFN, MARM, etc. were reproduced, and the derivative fusion model based on the long short-term memory hybrid network (LSTHM) and the excellent MISA model were considered for comparative study with the proposed framework JDS-HGFN. The results are shown in Tables 2 and 3.
[0124] Table 2 Comparison experiments on the baseline on the MOSI dataset
[0125] method MAE(↓) Acc2(↑) Acc5(↑) Corr(↑) F1_Score(p / g)(↑) TFN 1.01645 0.76524 0.3863 0.60404 0.76492 LMF 1.00872 0.76676 0.36152 0.6044 0.76891 MFN 1.00688 0.77286 0.32945 0.63179 0.77315 Gragh-MFN 1.00276 0.78353 0.36006 0.62323 0.78544 MARM 1.02765 0.75609 0.35131 0.62504 0.75464 Lsthm+AttFusion 1.08672 0.74542 0.37464 0.60785 0.7444 Lsthm+Concat 1.05599 0.75 0.37026 0.58069 0.75239 Lsthm+DFG 0.99249 0.75762 0.40087 0.62635 0.75714 Lsthm+Out_Product 1.09157 0.76371 0.33236 0.56947 0.76415 MISA 0.82685 0.81859 0.44023 0.72598 0.81947 JDS-HGFN(Ours) 0.79766 0.83384 0.46793 0.73401 0.83621
[0126] Table 3. Comparison experiments on the MOSEI dataset with baselines
[0127] method MAE(↓) Acc2(↑) Acc5(↑) Corr(↑) F1_Score(p / g)(↑) TFN 0.71445 0.75984 0.44267 0.50723 0.76054 LMF 0.72904 0.76089 0.43584 0.51955 0.7598 MFN 0.71537 0.77305 0.43171 0.52995 0.7719 Gragh-MFN 0.71427 0.76486 0.44826 0.52618 0.76636 MARM 0.70774 0.77225 0.4493 0.52988 0.77346 Lsthm+AttFusion 0.85166 0.73321 0.38338 0.40317 0.73277 Lsthm+Concat 0.86144 0.70417 0.38338 0.38271 0.72095 Lsthm+DFG 0.83679 0.74773 0.39067 0.43661 0.74846 Lsthm+Out_Product 0.90523 0.72232 0.38338 0.40471 0.72347 MISA 0.59996 0.85823 0.5379 0.77608 0.85732 JDS-HGFN(Ours) 0.59139 0.87547 0.54082 0.78074 0.87543
[0128] As shown in Tables 2 and 3, the model JDS-HGFN achieves the best performance under two data (MOSI, MOSEI), that is, it exceeds the baseline model and MISA model in comprehensive indicators such as mean absolute error (MAE), Pearson correlation coefficient (Corr), and accuracy score (Acc). From the above results, it can be seen that the proposed model outperforms some complex fusion mechanisms (such as TFN, MFN, Gragh-MFN) in performance. This may be because these methods ignore the exploration of the modality invariant space, while JDS-HGFN learns a joint representation feature that is both modality invariant and specific before fusion through the joint domain separation representation method.
[0129] The reason why the present invention uses the BERT pre-trained model instead of the Glove method to extract language modal discourse-level features. From the results of Tables 2 and 3, it can be observed that the models using BERT (JDS-HGF, MISA) have significant improvements in various evaluation indicators compared to the baseline model based on the Glove word embedding method and the LSTHM derived fusion model. This proves that the use of the BERT method is reasonable. In addition, compared with the MISA model that also uses BERT, the proposed model still has a slight advantage, which may be due to the fusion strategy. In order to further discuss the effectiveness of the fusion strategy of the proposed model, a comparative experiment of the fusion strategy will be carried out later.
[0130] Fusion strategy experiment:
[0131] In order to demonstrate the superiority of the proposed fusion strategy, a fusion comparison experiment was designed on the MOSI dataset. In the experiment, the joint domain separation representation part is kept unchanged, and the fusion components are replaced with fusion strategies such as MultiAttention Fusion, Concate, and Dynamic Fusion Graph (DFN). The results are shown in Table 4.
[0132] Table 4 Fusion strategy comparison experiment
[0133] method MAE(↓) Acc2(↑) Acc5(↑) Corr(↑) F1_Score(p / g)(↑) JDS-AttFusion 0.99864 0.78353 0.35131 0.7231 0.78249 JDS-Concat 0.8394 0.81402 0.44315 0.72356 0.81336 MISA 0.82549 0.81554 0.45918 0.72675 0.81656 JDS-HGFN(Ours) 0.79766 0.83384 0.46793 0.73401 0.83621
[0134] From the results in Table 4, we can infer that HGFN has a significant performance improvement over other fusion methods. The above results are obtained because HGFN not only explicitly models the single-modal, bi-modal, and tri-modal layers dynamically, but also obtains a more comprehensive tri-modal fusion representation by splicing each modal layer. In addition, in order to verify the interpretability of the graph fusion network, the experiment visualizes the weight changes of the fusion process.
[0135] like Figure 4As shown, each row represents the iteration order, and each column represents the interaction vertex in the dynamic layer. Observing the vertical axis, we can see that the contribution of different speech fragment samples to the same modal interaction vertex is almost unchanged. This is because before fusion, the modal data is affected by the similarity constraint in the domain separation representation learning, which reduces the volatility of the difference between the representations of each sample. Observing the horizontal axis, for the unimodal vertex weights (the first 3 columns), it can be clearly found that the language modality contributes the most to the prediction results. This is because the language text is usually the most important information in MSA. For the bimodal vertex weights (columns 4 to 6), the weight α tv and α ta Close to, and significantly larger than the weight α va This may be because the language modality plays a greater role in bimodal fusion than other modalities; observing the trimodal vertex weights (columns 7 to 12), it can be found that the vertex weights obtained by fusing a bimodal vertex and a unimodal vertex are basically close to 0, but the vertex weights obtained by fusing two bimodal vertices dominate the trimodal information, which shows that it is necessary to model the interaction process between every two bimodal vertices.
[0136] From the above analysis, we can conclude that an explainable, comprehensive, and hierarchical fusion strategy is the key factor to improve the performance of JDS-HGFN.
[0137] Since the loss function plays a crucial role in achieving the joint domain separation representation, the experiment analyzes and discusses the loss function through ablation study combined with visualization and quantitative analysis.
[0138] Ablation studies:
[0139] In the ablation study, the basic task loss L task After setting the loss weights of other components (α, β, γ, η) to zero, the network is retrained and the best performance model parameters are saved. In addition, in order to intuitively observe the impact of various loss functions on the model results, the fusion representation of the MOSI test sample is visualized by T-SNE, as shown in the figure below: Figure 5 shown.
[0140] like Figure 5 As shown in the figure, the red dots represent positive emotions, and the blue dots represent negative emotions. It can be observed that under different loss function training, the T-SNE graph of the test data fusion representation will show different distribution characteristics. Among them, when all component losses exist, the model has the best semantic clustering effect; when the reconstruction loss L recon When the weight γ is zero, it has a suboptimal clustering effect; when the similarity loss L sim When it does not exist, the model clustering effect is the most divergent; the other two losses L diff and Ltrip The impact of is between similarity loss and reconstruction loss. Further, in order to explore the impact of each loss more specifically, the evaluation indicators of the best model in each experiment are recorded in Table 5 for quantitative analysis.
[0141] Table 5 Ablation research experiments
[0142] method MAE(↓) Acc2(↑) Acc5(↑) Corr(↑) F1_Score(p / g)(↑) <![CDATA[Without L diff ]]> 0.86755 0.81097 0.40379 0.72774 0.81596 <![CDATA[Without L sim ]]> 0.99864 0.78353 0.35131 0.7231 0.78249 <![CDATA[Without L recon ]]> 0.83308 0.81707 0.46356 0.71106 0.81641 <![CDATA[Without L trip ]]> 0.85682 0.79878 0.46939 0.70479 0.79765 Without None 0.79766 0.83384 0.46793 0.73401 0.83621
[0143] As shown in Table 5, the model achieves the best performance when all losses are involved, which means that the loss of each component designed by the invention is effective. sim and L diff It is relatively sensitive, which shows that decomposing the modes into independent spaces is beneficial to improving the performance of the model. The impact of cosine multi-group boundary loss on the model is greater than that of L sim and L diff This is smaller than L, which may be due to the fact that the process of acquiring modality similarity features also has a semantic clustering effect, so the effect of this loss is weakened. In addition, it can be observed that the model is less tolerant to the reconstruction loss. This is because in the absence of reconstruction loss, the trivial representation features of the specific encoder can be represented by L task It is worth noting that the model is most sensitive to similarity loss, which makes the choice of similarity loss very important. Therefore, this will be analyzed in depth in the next section.
[0144] Similarity loss experiment:
[0145] In the experiment, the domain adversarial loss (DANN), maximum mean square metric (MMD), center distance deviation metric (CMD) and their combined forms were used for network training and testing respectively. The results are shown in Figure 2. Figure 6 , 7 As shown in the figure. It can be observed from the first three columns that in the single form, the performance of CMD is better than that of MMD and DANN in various indicators. The reasons are summarized as follows: (i) CMD can directly perform accurate matching of high-order moments without expensive distance and kernel matrix calculations. (ii) Compared with CMD, DANN obtains modal similarity through the minimax game between the discriminator and the shared encoder, but adversarial training will increase the additional parameters of the discriminator and may encounter problems such as fluctuations during training. In addition, observing the joint form (the last three columns), although the similarity loss with the CMD term is better than the loss without the CMD term, it is worse than the single CMD loss. This shows that increasing the computational cost when performing metric calculations will lead to a decrease in network learning efficiency, and further verifies the rationality of choosing CMD as the similarity loss.
[0146] The embodiments described in the present invention are merely descriptions of the preferred implementation modes of the present invention, and are not intended to limit the concept and scope of the present invention. Without departing from the design concept of the present invention, various modifications and improvements made to the technical solutions of the present invention by those skilled in the art should fall within the protection scope of the present invention. The technical contents for which protection is sought in the present invention have all been recorded in the claims.
Claims
1. A multimodal sentiment analysis method based on a joint domain separation representation hierarchical graph fusion network, characterized in that The following steps are involved: S1. Establish a multimodal sentiment analysis framework; the multimodal sentiment analysis framework includes a multimodal data manual feature extraction module, a joint domain separation network module, a hierarchical graph fusion network module, a sentiment prediction network module and a network learning module connected in sequence; S2, manual feature extraction of multimodal data; S3. Input the processed data into the joint domain separation network to obtain the joint domain separation representation features. Then input the manual features into the joint domain separation network to obtain the joint domain separation representation. The process is as follows: (1) Input the text, video, and audio manual features into the BERT model and two different bidirectional long short-term memory networks to obtain discourse-level features. (2) Input the utterance-level features of the three modalities into different multi-layer perceptrons to obtain a unified mapping representation; (3) Input the unified representation into a joint domain separation network to obtain a joint representation of the specificity-invariance representations of each modality; Speech-level feature representation: First, a bidirectional long short-term memory neural network LSTM is used to map the feature sequence S of the visual v and auditory a modalities. v , S a , to obtain the utterance-level features of the sequence, whose output is the LSTM terminal state hidden representation F v 、F a : Among them, θ v lstm and θ a lstm are the network parameters of the bidirectional long and short cycle memory neural network for the visual v and auditory a modalities respectively; Secondly, for the calculation formula F v 、F a Modal text sequence S l , obtained through the pre-trained BERT model, is expressed as follows: Among them, θ l bert is the network parameter of the BERT model, F l Represents the text modality discourse-level representation; Unified feature mapping representation: Since the underlying feature mapping representation F v , F a and F l The feature dimensions are different. In order to facilitate the encoding-decoding operation of the back-end network, a multi-layer perceptron MLP is used to uniformly map the underlying features and represent them as m : Among them, F m is the utterance-level representation of the m-mode, θ m mlp are the parameters of multi-layer perceptron networks of different modalities; MLP consists of densely connected layers activated by Relu functions and normalized layers; Joint domain separation representation: In this part, the unified mapping representation of each modality is first decomposed into two parts: modality invariance and modality specificity through an extended domain separation network DSN; among them, a shared encoder E c Learning invariant representations in a common subspace to bridge the heterogeneity gap between modalities, the special encoder E p m It is used to capture the special representation in the special subspace; then, the joint representation is obtained by joint invariant-special representation. The specific representation process is as follows: First, after obtaining the uniform mapping vector O for each mode m After that, use the modal shared encoder E c To obtain the modal invariance representation By modal special encoder E m p To extract the modality-specific representation Among them, θ c represents the modality-shared encoder network parameters, represents the modality-specific encoder network parameters, E c and The structure is the same, consisting of densely connected layers activated by the function Sigmoid; Then, 6 hidden layer vectors are generated through the neural network feedforward propagation and And obtain the joint domain separation representation by vector addition '+': Among them, h m The joint domain separation representation of the modality m has both the characteristics of the shared subspace and the characteristic representation of the special subspace; S4, input the joint domain separation representation of each modality into the hierarchical graph fusion network to obtain an interpretable fusion representation; The network is a three-layer network consisting of vertices and edges. The first layer is a single-mode dynamics layer, which consists of three single-mode vertices V m , m∈{l,v,a}, and its information vector is represented by M l , M v and M a , which correspond to the joint domain separation representation h of the three modalities. l ,h v and h a ; Considering that each modality has different contributions, we first use the attention network MAN∈R k →R 1 Each modal vertex information is processed to obtain the importance of each mode; then, the final unimodal dynamics representation is obtained by calculating the weighted average of all unimodal vertex information as follows: a m =MAN(M m ;θ MAN ) Among them, U∈R k is a single-mode dynamic representation, α m is the vertex V m The importance weight of MAN is a parameter θ MAN And the fully connected layer activated by the function Sigmoid; In the second layer, the bimodal dynamics layer, a simple multi-layer neural fusion network: MLF∈R 2k →R k Fuse the vertex information of each two unimodal states to obtain the vertex information of each bimodal state: m1,m2∈{l,v,a},m1≠m2, where represents vector concatenation, is the vertex The information vector, θ MLF is the parameter matrix of the network MLF; in fact, MLF consists of two dense layers, activated by Leaky Relu and Tanh respectively; For obtaining similarity weights, in order to reduce computing power costs, it is assumed that the more similar the two information vectors are, the less important the bimodal interaction is; therefore, for the similarity of the edges connecting the first layer and the second layer, the inner product is used to measure the similarity of each two unimodal information vectors in the first layer; the similarity of two information vectors is defined as follows: in, To represent the vertex A scalar of similarity, is the information vector normalized by Softmax T represents the transpose operation of the vector; Further, the first layer vertices will be connected and the second level vertices The edge weight is defined as To meet the previous assumptions; considering the interaction between vertices, the vertex The weight is defined as: in, It represents the vertex Scalar weight, calculated as is the Softmax normalization operation of the second layer weight vector; the second layer output is the weighted average of the bimodal vertex information, as shown below: Among them, B∈R k It is a bimodal dynamic layer representation; In the third layer, i.e., the trimodal dynamics layer, an MLF network with the same structure as the second layer is used to further fuse every two bimodal vertices to obtain three trimodal vertex information; in addition, in order to effectively utilize the information of each vertex, each bimodal vertex is fused with the vertex that does not contribute to the formation of the vertex in the unimodal dynamics layer to generate another three trimodal vertex information; therefore, a total of six trimodal vertex information is generated in the trimodal dynamics layer; in addition, this experiment also uses the same edge weight calculation method as the second layer to determine the weight of the edge connecting the third layer, and weighted sums each trimodal vertex information to obtain the final trimodal dynamics representation T∈R k ; S5, the fused representation is input into the prediction network for sentiment prediction; The output of the hierarchical neural network is represented as the concatenation of three layers of dynamics representation, defined as: Then, use the prediction neural network Pre to make predictions: Prediction=Pre(Z;θ Pre ), Among them, Prediction∈R C Where C is the number of categories, C = 1 for regression problems; P:R 3k →R C is the prediction network, which includes a normalization layer and a fully connected layer activated by Tanh, Tanh and Softmax respectively; θ Pre To predict network parameters; S6. Combined with the grid search optimization algorithm, the network is trained using a new joint loss function to obtain the optimal model.
2. The multimodal sentiment analysis method based on the joint domain separation representation hierarchical graph fusion network according to claim 1 is characterized in that: In step S2, manual feature extraction uses Facet and COVAREP toolkits to extract manual features of video and audio sequences respectively.
3. The multimodal sentiment analysis method based on joint domain separation representation hierarchical graph fusion network according to claim 1 is characterized in that: In step S4, the joint representation of each modality is input into the hierarchical graph fusion network for interpretable fusion.
4. The multimodal sentiment analysis method based on joint domain separation representation hierarchical graph fusion network according to claim 1 is characterized in that: In step S5, the fused features are input into the prediction network for emotional state analysis.
5. The multimodal sentiment analysis method based on joint domain separation representation hierarchical graph fusion network according to claim 1 is characterized in that: In step S6, the network is trained using the new constraint regularization loss function in combination with the grid search algorithm, and the optimal model is saved.
