A multi-modal sentiment recognition method based on modal optimization adaptive expert routing

By adopting a hierarchical hybrid expert routing architecture and modality confidence mechanism, the problem of unstable modality fusion in multimodal emotion recognition is solved, and adaptive fusion and distribution alignment are achieved, thereby improving the accuracy and robustness of emotion recognition.

CN123139166APending Publication Date: 2026-11-20BEIJING INFORMATION SCI & TECH UNIV +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611356765.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-03
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing multimodal emotion recognition technologies suffer from fixed weights or static attention, which fail to reflect the pattern of modal contribution changing with samples. They also lack joint constraints on the average usage rate of experts and modal reliability, resulting in unstable modal fusion representations. Furthermore, the visual branches are not capable of modeling fine-grained temporal changes and lack explicit distribution alignment mechanisms.

Method used

A hierarchical hybrid expert routing architecture is adopted, introducing a modal confidence mechanism and teacher-student temporal distillation. Through modal consistency constraints and routing regularization, combined with Sinkhorn-KL distribution alignment, sample-level adaptive fusion weight allocation and stable representation are achieved.

Benefits of technology

It improves the accuracy and robustness of multimodal emotion recognition, enhances the ability to model fine-grained temporal changes, ensures stable fusion and distribution alignment of the model across different modalities, and improves the accuracy of emotion intensity prediction and category classification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123139166A_ABST
    Figure CN123139166A_ABST
Patent Text Reader

Abstract

The application provides a multimodal sentiment recognition method based on modal optimization adaptive expert routing, comprising: acquiring a video image sequence, a speech signal and a text sequence of the same interactive segment; adopting teacher-student distillation to enhance visual frame level semantics and time sequence change characteristics, and mapping the three modes to a unified semantic space; taking the text feature as an anchor point, performing hierarchical soft routing fusion through text-visual, text-speech and three-mode expert layers, estimating the available modal confidence of the inference stage according to the branch feature and the prediction result, and jointly determining the fusion weight with the routing weight; applying modal consistency, batch level expert load balancing and Sinkhorn-KL distribution alignment constraints during training, outputting a continuous sentiment intensity value, and obtaining a sentiment category according to a preset rule.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of artificial intelligence and multimodal signal processing technology, specifically to a multimodal emotion recognition method based on modality-optimized adaptive expert routing. Background Technology

[0002] Emotion is a crucial carrier of intentions, attitudes, and psychological states in interpersonal communication. The goal of emotion recognition is to perceive and analyze facial expressions, vocal tone, text semantics, and other behavioral cues, making it an important research area in affective computing and natural human-computer interaction. With the development of deep learning, Transformer, and multimodal fusion technologies, multimodal emotion recognition has been gradually applied in scenarios such as online education, driving safety, elderly care, mental health assessment, and social media analysis.

[0003] Early sentiment recognition methods primarily relied on a single modality. While the text modality possesses strong semantic expressive power, it struggles to fully capture irony, metaphors, and implied meanings. The speech modality can reflect pitch, energy, speech rate, and prosodic variations, but is susceptible to environmental noise and speaker differences. The visual modality provides information on facial expressions, posture, and movement, but is easily affected by occlusion, lighting, perspective, and head movements. Therefore, relying solely on a single modality can easily lead to semantic ambiguity and recognition bias. Tensor fusion networks and multimodal fusion methods, by explicitly modeling intramodal and intermodal interactions, have validated that jointly utilizing text, speech, and visual information can improve sentiment analysis performance.

[0004] To enhance interaction between heterogeneous modalities, existing technologies further introduce cross-modal attention and Transformer structures. MulT utilizes cross-modal attention to handle misaligned multimodal sequences; MISA alleviates representational discrepancies by decomposing modality-invariant and modality-specific representations; Self-MM employs self-supervised multi-task learning to enhance independent supervision of each modality; and MMIM leverages hierarchical mutual information maximization to promote multimodal information fusion. While these methods improve cross-modal interaction capabilities, most employ fixed fusion structures or uniform attention calculation methods, making it difficult to dynamically assess the reliability of information from different modalities for different samples.

[0005] In real-world applications, multimodal data commonly suffers from modal quality imbalance, missing information, modal conflicts, and redundant noise. Some studies have mitigated modal imbalance through dynamic expert structures, improved model robustness through dynamic fusion on low-quality data, or utilized uncertainty information bottlenecks and probabilistic causal mechanisms to evaluate modal contributions. However, existing dynamic fusion methods typically focus on the final fusion weights, paying insufficient attention to hierarchical differences in binary modal interactions and trimodal joint modeling processes; furthermore, they may exhibit long-term bias towards a minority of modalities or experts during training, resulting in dominant modality bias.

[0006] Furthermore, different modalities differ in feature dimensions, temporal scales, statistical distributions, and semantic representations. If only feature concatenation or local attention interactions are performed, the fused representation is prone to distribution shifts in the high-dimensional latent space, making it difficult to aggregate cross-modal features of the same emotion category. Video emotional cues also exhibit continuous evolutionary characteristics; single-frame expressions or simple temporal pooling cannot stably depict the changes in an expression from its initial state to its peak. Dynamic expression recognition methods such as MAE-DFER enhance video representations through self-supervised spatiotemporal modeling, but how to adaptively fuse stable visual temporal representations with text and speech features at the sample level remains a technical problem that needs to be solved.

[0007] Therefore, existing multimodal emotion recognition technologies have at least the following shortcomings: First, fixed weights or static attention are difficult to reflect the pattern of modal contribution changing with samples; second, there is a lack of joint constraints on the average usage rate of experts and modal reliability, which can easily lead to route collapse or long-term dominance of a few experts; third, there is a lack of explicit distribution alignment mechanisms that run through the two-modal interaction and three-modal joint stages; and fourth, the visual branch has insufficient ability to model fine-grained temporal changes. Summary of the Invention

[0008] This invention provides a multimodal sentiment recognition method based on modality optimization and adaptive expert routing. The method uses the semantics of the text modality as an anchor, employs a hierarchical Mixture-of-Experts (MoE) fusion architecture that first uses binary modalities and then trimodal ones, and introduces a modality confidence mechanism usable during the inference phase into the trimodal joint layer to achieve sample-level adaptive fusion weight allocation. Simultaneously, teacher-student temporal distillation is introduced in the visual branch, and hierarchical Sinkhorn-KL distribution alignment and routing regularization constraints are applied during the training phase.

[0009] The technical solution of the present invention is as follows: Step S1: Multimodal data acquisition and synchronous preprocessing Acquire video image sequences, speech signals, and text sequences of the same interactive segment; perform sentence-level or segment-level alignment of the three modalities with the start and end times of the segment as common boundaries; pad or truncate sequences of inconsistent lengths; and generate effective position masks.

[0010] Step S2, Visual Branch Teacher-Student Temporal Distillation A teacher network and a student network are constructed. The teacher network has temporal modeling capabilities, enabling it to extract frame-level features from videos and capture inter-frame variation trends. The student network is a lightweight encoder. The student network is trained using frame-level feature distillation loss, temporal difference distillation loss, and output distribution distillation loss, so that the temporal visual features output by the student network learn the frame-level semantics and dynamic evolution information of facial expressions from the teacher network. After distillation, the features output by the student network are pooled to obtain a video-level visual representation.

[0011] Step S3: Multimodal feature extraction and unified semantic mapping Speech signals and text sequences are encoded separately to extract acoustic statistical features and semantic context features. The obtained visual representations, speech features, and text features are mapped to a semantic space of the same dimension d through linear projection and layer normalization to obtain the modal representations under a unified semantic space.

[0012] Step S4: Expert route fusion guided by hierarchical text Adopting a hybrid expert fusion architecture that first adopts a binary approach and then a trimodal approach: 4.1 Constructing a text-visual expert layer: Using text representation as the anchor point, the text representation and visual representation are concatenated and then fed into a hybrid expert module consisting of multiple expert networks and a soft router. The outputs of each expert are weighted and summed by the soft router to obtain the text-visual fusion representation. 4.2 Constructing the text-speech expert layer: Similarly, the text representation and speech representation are concatenated and then fed into another hybrid expert module to obtain the text-speech fusion representation; 4.3 Constructing a confidence-guided trimodal joint expert layer: The obtained text-visual fusion representation, text-speech fusion representation, and visual representation from step S2 are treated as three parallel branches; an auxiliary sentiment prediction head and an uncertainty estimation network are set up for each branch. The uncertainty estimation network outputs the uncertainty of each branch and calculates the normalized confidence based on this; simultaneously, a trimodal router is set up to output a learnable route distribution based on the concatenation of the three branch representations; finally, the fusion weights are determined by a convex combination of the route distribution and the confidence distribution. ; in For route distribution, For confidence distribution, For routing distribution, each branch representation is input into the corresponding expert network, and the outputs of each expert are weighted and summed with combined weights w to obtain the three-modal fusion representation.

[0013] Step S5, Modal Consistency and Routing Regularization Constraints During model training, at least one of the following constraints shall be introduced: Modality consistency constraint: The modality fusion representations of the text-visual branch and the text-speech branch are mapped by probability distribution to maintain the semantic symmetry of the two binary branches; Batch-level expert load balancing constraint: Calculate the negative information entropy value for the average routing weight of each expert in each training batch to encourage balanced use of experts and prevent route collapse; Route-confidence consistency constraint: The route-confidence consistency loss is defined using the three-modal route distribution and confidence distribution, and the uncertainty supervision loss is incorporated into the route constraint.

[0014] Step S6: Hierarchical Sinkhorn-KL Distribution Alignment During training, distribution alignment loss is constructed at three levels: text-visual, text-speech, and trimodal fusion. The distribution alignment loss combines Sinkhorn distance and KL divergence, where Sinkhorn distance is used to align the geometric structure between the current distribution and the reference distribution generated by the text representation, and KL divergence is used to align the probabilistic patterns of the two. Through the joint constraints of these three levels, the fused representations of each layer are brought closer to the common semantic space with text semantics as the anchor.

[0015] Step S7, Joint Training and Inference During training, the model primarily supervises the regression loss of emotional intensity, and jointly optimizes it by combining temporal distillation loss, routing regularization loss, and hierarchical distribution alignment loss. During inference, the model outputs continuous emotional intensity values ​​based on the input trimodal data, and can convert continuous values ​​into emotional categories according to preset mapping rules.

[0016] Compared with the prior art, the present invention has the following beneficial effects: A hierarchical text-guided expert routing architecture is adopted. First, a binary expert layer completes low-level semantic alignment between text and vision, and between text and speech. Then, a high-level trimodal fusion is performed, which reduces the optimization difficulty of direct fusion and enables the model to capture the complementary relationship between modalities more fully. Temporal distillation of the visual branch enhances the modeling ability of facial expression dynamic information. The synergistic effect of the three significantly improves the accuracy of emotion intensity prediction and category classification.

[0017] By learning the mapping of "branch features → prediction reliability" through uncertainty estimation network, the confidence of each branch can be generated without real labels during inference. When noise or quality degradation occurs in a certain modality, the model can automatically reduce the fusion weight of that branch to suppress the interference of low-quality information, and has strong robustness.

[0018] Batch-level expert load balancing constraints ensure that each expert receives a relatively balanced gradient update, preventing a few experts from dominating for a long time; modality consistency constraints maintain the symmetry of binary branches, and routing-confidence consistency constraints are guided by regularization. Together, these three constraints guarantee the training stability of the hybrid expert structure.

[0019] Applying Sinkhorn-KL distribution alignment at multiple levels, and shrinking the fused representation toward a unified semantic space with reference to textual semantics, effectively alleviates the distribution shift of heterogeneous modalities and enhances the intra-class compactness of samples of the same sentiment category and the separability between different categories. Attached Figure Description

[0020] Figure 1 This is a schematic diagram of the MoAE-MER model structure of the present invention; Figure 2 This is a diagram of the modal optimization adaptive expert routing mechanism of the present invention; Figure 3 This is a schematic diagram of the hierarchical distribution alignment strategy of the present invention; Figure 4 This is a t-SNE visualization distribution of the three-modal fusion features of the MoAE-MER model of this invention. Detailed Implementation

[0021] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below in conjunction with embodiments. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.

[0022] This invention proposes a MoAE-MER (Modality-Optimized Adaptive Experts for Multimodal Emotion Recognition) framework, the overall structure of which is as follows: Figure 1 As shown, this method includes multimodal data acquisition and synchronous preprocessing, video modal distillation enhancement, multimodal feature extraction and unified mapping, binary expert layer fusion, confidence-guided trimodal expert fusion, and joint training. The model input consists of video image sequences, speech signals, and text sequences of the same interaction segment, and the output is continuous emotion intensity values. When category results are required, the continuous values ​​are converted into binary, triadic, or septaccusatory classification results according to preset thresholds or dataset evaluation rules.

[0023] Specifically, the method embodiments of this application mainly include the following steps: Step S1: Multimodal data acquisition and synchronous preprocessing This embodiment uses the start and end times of the same statement or the same video segment as a common time boundary to acquire video image sequences, speech signals, and corresponding text. The text can be obtained through manual transcription provided by the dataset or by automatic speech recognition; the video is sampled into T frames at fixed intervals or in a uniform manner and the spatial size is unified; the speech is resampled to a uniform sampling rate, and frame-level acoustic features are extracted within the boundaries of the same segment.

[0024] The three modalities are aligned at the sentence or fragment level. For sequences of inconsistent length, short sequences are padded with zeros and long sequences are truncated, and an effective position mask is generated to prevent the padded positions from participating in attention or pooling. This embodiment assumes that video, speech, and text modalities are all available, and does not require missing modal recovery as a necessary technical feature; for missing modal samples, they can be padded before entering this method or removed from the training batch.

[0025] Step S2, Visual Branch Teacher-Student Temporal Distillation To improve the temporal representation stability of visual modalities, this invention incorporates a video branch distillation module before expert fusion. The teacher network includes frame-level visual embedding, local temporal interaction, global interaction aggregation, and a prediction head, which can employ LGI-Former or a dynamic facial expression encoder with equivalent temporal modeling capabilities. The student network includes a lightweight visual encoder, a dimensionality projection layer, and a temporal pooling layer. After the teacher network is pre-trained in the first stage, the teacher parameters are frozen, and the teacher's output is used to supervise the student network.

[0026] Given the input video sequence The outputs from the teacher network (LGI-Former) and the student visual encoder are as follows: , In the formula, This represents the image at frame t, where T is the number of video frames; The parameter is Teacher network, The parameter is Student visual encoder; and Let represent the teacher features and student features at frame t, respectively. The teacher parameters remain frozen during the distillation phase and the second phase of joint training, while the student parameters can be updated in both phases.

[0027] In one specific embodiment, the frame-level embedding of the teacher network extracts changes between adjacent frames through a local temporal interaction module, and then the global interaction module aggregates long-range dependencies to generate frame-level and video-level outputs. The student network employs a fewer-layer temporal visual encoder and maps features to a unified dimension through linear layers. The frame-level student output is then averaged to form a video-level representation.

[0028] To enable the student network to simultaneously learn frame-level semantic information and temporal expression trends from the teacher network, this invention defines feature distillation loss separately. Time-series differential distillation loss and output distribution distillation loss : , , , In the formula, For dimension alignment mapping layer, and These are the classification logits vectors for teachers and students, respectively; Temperature coefficient; Let represent the Kullback-Leibler divergence. Therefore, the total loss of video distillation is... After distillation, the temporal features output by the student network are pooled to obtain a video-level visual representation. : , , In the formula, , and This is a non-negative weighted hyperparameter. In this embodiment, we take... In this model, the feature distillation loss is given a high weight to ensure that the student network fully learns the frame-level visual semantics of the teacher network; the temporal difference distillation loss and the output distribution distillation loss use the same auxiliary weights to strengthen the modeling of dynamic changes in adjacent frames while constraining the consistency of the output distribution between the teacher and the student. The above parameters are determined based on the sentiment intensity prediction performance on the validation set. In this embodiment, average pooling along the time dimension is used; attention pooling or other pooling methods that maintain the output dimension d can also be used. The second stage of joint training continues to update the student network; in actual deployment and inference, only the student network is used, and the teacher network does not need to be invoked.

[0029] Step S3: Multimodal feature extraction and unified semantic mapping After video branch distillation, the model obtains a visual representation with general facial semantics and fine-grained temporal information. To achieve cross-modal collaborative modeling, this invention further extracts features from the speech and text modalities and maps them together with the distilled visual features to a unified semantic space. The speech branch encodes prosody and acoustic statistics, the text branch encodes semantic context and sentiment prior information, and the visual branch outputs the distilled and enhanced temporal representation.

[0030] Considering the differences in feature dimension, distribution pattern, and time scale among the three modalities, this invention employs a linear projection and normalization strategy to map each modal representation to a latent space of the same dimension, thereby reducing structural bias between heterogeneous features. Through this unified mapping process, the model retains modality-specific information while improving the comparability and optimizability of subsequent routing and fusion stages, laying a representational foundation for sample-level dynamic fusion.

[0031] Step S4: Expert route fusion guided by hierarchical text In a unified representation space, this invention introduces a modality-optimized adaptive expert routing mechanism (MoAE) to address the problem that a fixed fusion structure cannot adequately characterize sample differences. The router generates non-negative and normalized expert weights based on the current sample and performs a soft-weighted combination of multiple expert outputs, enabling different samples to form different expert contribution distributions.

[0032] This embodiment employs dense soft routing, allowing all experts to participate in the forward computation. The technical advantage lies in adjusting the contributions of different experts to the fused representation based on samples, rather than reducing computational load through Top-k sparse execution. To prevent a few experts from dominating the entire training batch for extended periods, this invention applies load balancing constraints to the average expert utilization rate within the batch, and combines modal consistency and route-confidence consistency constraints to stabilize the route distribution. This module corresponds to... Figure 1 The structure consists of three layers: TV MoE, TA MoE, and Tri-Modal MoE.

[0033] Let X be the three original inputs: visual, audio, and text. v X a and X t To reduce the differences in dimensionality and statistical distribution among heterogeneous modalities, each modality is first mapped to a unified d-dimensional semantic space through an encoder, linear projection, and layer normalization: , , In the formula For parameters Modal encoder, These are the encoded modal features; and These are the learnable projection matrix and the bias vector, respectively. This indicates that layer normalization is performed on the feature dimensions of a single sample. This transformation unifies the modal representation in the space. It ensures that the three modalities have compatible dimensions in subsequent concatenation, comparison, and routing calculations.

[0034] Considering the semantic stability of the text, this invention adopts a text-guided, layer-by-layer fusion expert structure, such as... Figure 2As shown, a text-visual and text-speech expert layer is first constructed, and then a three-modal joint modeling is performed to reduce the optimization difficulty and improve semantic consistency.

[0035] 1. Text-Visual Expert Layer (TV MoE) After obtaining the visual representation, cross-modal interaction modeling is performed between the visual representation and the semantic representation output by the text encoder. To improve the model's ability to express relationships between different modalities, this invention employs a Mixture-of-Experts (MoE) structure to construct a text-visual expert layer: , In the formula, K represents the number of experts; The soft route weights for the k-th text-visual expert satisfy the following conditions: Furthermore, the sum of the weights of each expert is 1; For the kth text-visual expert; Represented as text; This is a text-visual fusion representation. All expert outputs are included in a weighted summation.

[0036] 2. Text-to-Speech Expert Layer (TA MoE) Similarly, text representation With speech representation Building a text-speech expert layer: , In the formula, and These represent the soft route weights and the expert network for the k-th expert in the text-to-speech branch, respectively. This represents a text-to-speech fusion representation; each routing weight is non-negative and normalized, used to characterize the contribution of different experts to the current sample. Each expert learns the complementary relationship between text semantic information and speech prosodic information from different perspectives, and their outputs are weighted and summed according to their corresponding routing weights, so that the model can adaptively adjust the participation level of each expert for different samples, obtaining a more discriminative text-to-speech fusion representation.

[0037] 3. Tri-Modal MoE (Tri-Modal Expert Layer) In a high-level semantic space, text-visual fusion representation Text-speech fusion representation and visual representation enhanced by distillation Joint modeling was performed. Text features were used in this process. and The generation of [something] serves as a semantic anchor to guide the two binary expert layers; This invention is used to supplement the three-modal joint expert layer with visual temporal information that has not been compressed by binary fusion. To enable the inference stage to obtain the confidence scores of each branch without real labels, this invention sets up auxiliary sentiment prediction heads and uncertainty estimation networks for each of the three branches. Let the branch set be... . For any branch Its auxiliary emotional intensity prediction value The calculation is as follows: , In the formula, Indicates the first Each branch corresponds to an auxiliary sentiment prediction head. The uncertainty estimation network... Output the nonnegative uncertainty based on the branching characteristics and their auxiliary prediction results: , In the formula, Indicates the first Uncertainty estimation network with branches, Used to guarantee During the training phase, an uncertainty supervision objective is constructed based on the error between the auxiliary predicted value and the true sentiment intensity label: , , In the formula, The true sentiment intensity labels for the training samples. Indicates the first Sample-by-sample prediction error for each branch This indicates that the gradient operation is stopped, making this supervision term primarily supervise the uncertainty estimation network. This is achieved by minimizing... This enables the uncertainty estimation network to learn to estimate the predictive reliability of a branch based on its characteristics and the results of auxiliary predictions.

[0038] Calculate the normalized confidence level based on the uncertainty of each branch: , And obtain the confidence distribution. Branches with lower uncertainty receive higher confidence levels, thus reducing the impact of low-reliability branches on the final fusion result. Simultaneously, the concatenated representations of the three branches are input into a three-modal router to obtain the routing distribution. : , In the formula, and These are the learnable weight matrix and bias vector of the router, respectively. The route distribution and confidence distribution are weighted and combined to obtain the final fusion weight: . In the formula, This is the balance coefficient between routing information and confidence information. The final trimodal fusion is expressed as: , In the formula, Indicates the relationship with the first Each branch corresponds to a three-modal expert network. This indicates the expert's final fusion weight. This represents the output trimodal fusion features. Training labels. It is only used to calculate the uncertainty supervision target and model training loss; in the inference stage, it is directly based on the branch features. and auxiliary predicted values Estimation uncertainty It does not use real labels or real branch loss.

[0039] Step S5, Modal Consistency and Routing Regularization Constraints In multimodal sentiment analysis tasks, there is often a certain degree of semantic consistency between different modalities. For example, when text expresses positive emotions, vocal tone and facial expressions usually show similar emotional tendencies. However, in real-world scenarios, semantic inconsistencies may arise between modalities due to noise interference, modality loss, or differences in information expression. This inconsistency between modalities affects the stability of the fused representation, thereby reducing the model's sentiment recognition performance. Therefore, to improve cross-modal semantic consistency and suppress routing bias, this invention introduces modality consistency constraints and routing regularization constraints.

[0040] First, a probability distribution mapping is performed on the fused representation of the two modalities. Then... The function transforms the feature vector into a probability distribution. and Then calculate the average distribution of both. The consistency loss is : , , , In the formula, This represents the Kullback-Leibler divergence. The smaller the value, the smaller the difference between the two binary fusion branches in the probabilistic semantic space. This consistency constraint does not require the two branches to have completely identical features, but rather restricts their sentiment prediction distributions from deviating excessively.

[0041] , . Simultaneously utilize trimodal routing distribution Confidence distribution available in the inference phase Define route-confidence consistency loss And monitor the loss of uncertainty. Incorporate routing constraints: . . In the formula, , , and These are non-negative weight hyperparameters. By constraining the overall expert utilization rate in a batch, rather than forcing a single sample to use all experts on average, this approach balances expert differentiation and overall training stability. In this embodiment... , , , ,in It is fixed at 1 and is not used as an independent parameter tuning term. All weights are non-negative real numbers; A relatively large value is used to enhance the semantic consistency between the two binary fusion branches. and A smaller value is used as an auxiliary regularization to avoid imposing excessive constraints on the main regression task. The specific value is determined based on the validation set performance and training stability.

[0042] Through the aforementioned modal consistency, batch-level load balancing, confidence supervision, and routing-confidence consistency constraints, the model optimizes the sentiment intensity prediction task while limiting excessive deviation between different fusion branches and avoiding long-term concentration of a few experts in training batches.

[0043] Step S6: Hierarchical Sinkhorn-KL Distribution Alignment Although MoAE can achieve sample-level soft-weight fusion, the statistical differences between different modalities in high-dimensional space can still lead to instability in the fused representation. Therefore, this invention employs a hierarchical distribution alignment strategy (HSCF) during the training phase, imposing distribution consistency constraints at three levels: text-visual, text-speech, and trimodal fusion. Figure 3 As shown.

[0044] For two discrete empirical distributions and First, we define the entropy-regularized optimal transmission cost. Its feasible transmission set and transmission cost are as follows: , , In the formula, It is a non-negative transfer matrix. and They are all-one vectors; constraints and Ensure that the row edges and column edges of the transfer matrix are equal to and ; This represents the set of all feasible transmission schemes that satisfy the above edge constraints. This is the Frobenius inner product. Cost matrix. The element is defined as ,in and There are two distributed support points; The entropy regularity coefficient is... This is the numerical stability constant. In this embodiment... Set to 0.1. Entropy regularization coefficient. The value range of is positive real numbers, and this embodiment uses 20 matrix scaling iterations. When the transmission plan is too small, it tends to be sharp and numerically sensitive; when it is too large, it will cause the transmission distribution to be overly smooth. Therefore, this embodiment makes a trade-off between transmission stability and geometric discrimination capability.

[0045] Entropy-regular optimal transport is solved iteratively by matrix scaling and is used to measure the difference in geometric structure between the support points of two feature distributions; this statement only relates to the solution of distribution alignment loss and does not claim that the entire model has a lower inference computation.

[0046] In multimodal fusion, simply using Sinkhorn distance to align the geometry is insufficient to fully describe the information differences between distributions. This invention further incorporates Kullback–Leibler (KL) divergence to construct a Sinkhorn–KL dual-constraint loss function to align the geometric structure and probabilistic patterns of the feature distributions. Its formal definition is: , In the formula, for and Entropy regularization transmission cost between them and The self-transmission cost for each of the two distributions; The symmetrical debiasing distance is obtained by subtracting the self-transmission term.

[0047] Probability distributions are constructed for the three levels: text-visual, text-audio, and final trimodal fusion. , where b∈{vt,ta,vta}. The current distribution is Reference distribution . It is a two-layer multilayer perceptron with input and output dimensions of d and intermediate layer dimensions of d / 2; it minimizes the time-varying speed on the training set. Pre-training is performed for the target, and then the parameters are frozen. The reference distribution is generated from text semantic anchors and does not depend on the test label.

[0048] Reference Decoder It pre-trains using only the training set and does not access the test set labels. After pre-training, the parameters are fixed, and the joint training phase only uses the current distribution. Receive gradients; do not call during inference phase. And not calculated .

[0049] , In the formula, Used for aligning geometry Used to constrain probabilistic patterns The weights are defined between the two items. HSCF is used only as a training constraint; the trained encoder, expert layer, and prediction head are used directly during the testing and deployment phases, without needing to run the optimal transport iteration or reference distribution decoder. In this embodiment... . The feasible range of values ​​for is non-negative real numbers, and its function is to adjust the relative strength of geometric alignment and probabilistic pattern alignment; taking 0.5 makes the KL term participate in the optimization as an auxiliary constraint, so as to avoid it becoming too dominant on the Sinkhorn geometric term.

[0050] . In the formula, The final fused representation obtained from the representation model, The reference representation generated by the three-modal reference decoder for frozen text anchors. This term represents the alignment weights. It, along with the three levels of Sinkhorn-KL terms, is used for hierarchical distribution constraints during the training phase. In this embodiment... . The feasible range of values ​​is non-negative real numbers; a smaller weight is used to align the reference representation as an auxiliary constraint in training, so as to avoid it covering the sentiment intensity regression target and the three-level Sinkhorn-KL distribution alignment target.

[0051] Step S7, Joint Training and Inference Training employs a two-stage strategy. In the first stage, the teacher network is frozen or pre-determined, and the student visual encoder is trained using frame-level features, temporal differences, and output distribution distillation. In the second stage, the teacher network remains frozen, and the student visual encoder, text and speech encoders, unified projection layer, expert layers, uncertainty estimation network, and sentiment intensity regression head are jointly updated. Let the main regression head output... The overall optimization objective is: . . In the formula, The mean squared error loss is for continuous emotional intensity. For video distillation loss, For routing constraint loss, For hierarchical distribution alignment loss, These are trainable parameters. The model does not need to set an independent classification head: when evaluation or application requires class output, CMU-MOSI and CMU-MOSEI convert continuous values ​​into binary or seven-class classification according to the label range [-3,3] and the corresponding evaluation protocol; CH-SIMS converts them into binary or three-class classification according to the label range [-1,1] and the corresponding evaluation protocol.

[0052] Results analysis: The proposed network was trained on NVIDIA GPUs using the PyTorch framework. Experiments were conducted on three publicly available multimodal sentiment analysis datasets: CMU-MOSI, CMU-MOSEI, and CH-SIMS, to evaluate the model's sentiment recognition performance in different linguistic contexts. A two-stage optimization strategy was employed during training: the first stage involved pre-training the visual branch using teacher-student knowledge distillation, followed by end-to-end joint optimization using the pre-trained model. The model utilized the Adam optimizer, with a learning rate of 5 × 10⁻⁶ for the text encoder. -5 The learning rate for visual, audio, and other modules is 1×10⁻⁶. -3 The batch size was set to 32, and the number of training rounds was 25. To further verify the effectiveness of the proposed method, this embodiment was quantitatively compared with current mainstream multimodal emotion recognition methods, and the results are shown in Tables 1, 2, and 3.

[0053] The experiment used Acc-2, F1-Score, Acc-7 (or Acc-3), MAE, and Corr as evaluation metrics. The model directly outputs continuous sentiment intensity values, from which MAE and Corr are calculated. Acc-2 and F1-Score classify continuous values ​​into binary categories according to the evaluation protocols of each dataset. CMU-MOSI and CMU-MOSEI further map continuous values ​​to seven levels within the range of [-3,3] to calculate Acc-7, while CH-SIMS maps continuous values ​​to three levels: negative, neutral, and positive to calculate Acc-3. Higher values ​​for Acc-2, F1-Score, Acc-7 (or Acc-3), and Corr are better, while lower values ​​for MAE are better.

[0054]

[0055]

[0056]

[0057] As shown in Tables 1 to 3, the proposed MoAE-MER model demonstrates excellent multimodal emotion recognition performance on the CMU-MOSI, CMU-MOSEI, and CH-SIMS datasets. On the CMU-MOSI dataset, this method achieves superior results in MAE, Corr, Acc-7, Acc-2, and F1 scores, indicating that the model effectively improves emotion polarity discrimination and fine-grained emotion prediction capabilities. On the CMU-MOSEI dataset, this method achieves high Corr, Acc-7, Acc-2, and F1 scores, demonstrating strong feature fusion and generalization capabilities even in large-scale multimodal data scenarios. On the CH-SIMS dataset, our method achieves the best results in the table for MAE, Corr, Acc-3, Acc-2, and F1 metrics, verifying the model's adaptability to Chinese multimodal sentiment information. The experimental results show that the modality-optimized adaptive expert routing mechanism can dynamically adjust the contributions of different modalities and experts according to sample features, and the hierarchical distribution alignment strategy can alleviate the semantic offset between visual, speech, and text features, thereby improving the stability and discriminativeness of the fused representation.

[0058] To further observe the spatial structure of the fusion features, this embodiment performs t-SNE visualization, such as... Figure 4As shown in the figure, to further analyze the emotional representation ability of the proposed model from the perspective of feature space structure, this embodiment performs t-SNE visualization on the trimodal fusion features extracted by the complete MoAE-MER model on the test set. In the figure, blue dots, orange triangles, and green squares represent negative, neutral, and positive emotional samples, respectively. It can be observed that the fusion features form two arc-shaped distribution regions with obvious polarity differences. Negative emotional samples are mainly concentrated in the left feature region, while positive emotional samples are mainly distributed in the right feature region. The two show a relatively clear separation trend in most of the space, indicating that the proposed model can effectively capture discriminative information between different emotional polarities. Neutral samples are relatively few in number and are mainly distributed in the transition region between positive and negative emotional features, consistent with the relatively blurred semantic boundaries of neutral emotions. Meanwhile, there is still a certain degree of overlap between positive and negative samples in the lower arc-shaped region, indicating that some samples with weak emotional or inconsistent multimodal information are more difficult to identify. Overall, the fusion features learned by the complete MoAE-MER model exhibit a relatively obvious emotional polarity structure, which can enhance the separability between different emotional categories while maintaining the continuity of intra-class distribution. This reflects the promoting effect of modal optimization adaptive expert routing mechanism and hierarchical distribution alignment strategy on multimodal emotional representation learning.

[0059] In addition to the above embodiments, this invention does not impose unique limitations on the specific hyperparameter values ​​and teacher network forms. While maintaining the overall technical process of "visual temporal distillation—hierarchical expert routing—distribution alignment," the number of experts K and the overall weight of the distillation loss remain unchanged. Distillation temperature and the routing and confidence balance coefficient All of these can be adjusted according to the specific task. For example, the number of experts K can be selected within the range of 2 to 32, and the overall weight of distillation loss can be adjusted accordingly. The distillation temperature can be selected within the range of 0 to 5. The routing and confidence balance coefficient can be selected within the range of 1 to 10. The parameter range can be selected from 0 to 1. Model performance varies under different parameter settings; specific values ​​should be determined considering data size, computational resources, training stability, and validation set performance. The above parameter range is used to illustrate the adjustability and alternative implementation methods of the present invention and does not imply that all parameter combinations within the range have the same or optimal performance.

[0060] To further illustrate the impact of key hyperparameters on model performance, this embodiment conducts parameter sensitivity experiments on the CMU-MOSI dataset, using Acc-2 as the evaluation metric, to examine the number of experts K and the overall distillation weights. Distillation temperature and the routing and confidence balance coefficient The changes in are shown in Table 4.

[0061]

[0062] As shown in Table 4, when the number of experts K increases from 2 to 8, Acc-2 gradually increases, and then slightly decreases after further increasing to 16 and 32. This indicates that appropriately increasing the number of experts is beneficial for learning differentiated fusion patterns, but an excessive number of experts does not continuously bring performance gains. (Distillation overall weight) Performance gradually improves as the value increases from 0 to 1.0, but decreases with further increases, indicating that moderate distillation constraints are beneficial for visual temporal representation learning, while excessively strong distillation constraints may affect the optimization of the main task. Distillation temperature A relatively high Acc-2 was achieved initially, but performance declined with further increases in temperature, indicating that excessive smoothing of the teacher output distribution is detrimental to effective knowledge transfer. Routing and confidence balance coefficient. It has high performance, and or The performance of both methods decreased, indicating that the routing distribution and confidence distribution are complementary in the fusion process. The above experiments are used to illustrate the changing trends of the main hyperparameters. The parameters of the final embodiment are determined by comprehensively considering multiple evaluation indicators, training stability, and computational cost, and are not based solely on the highest point of Acc-2.

[0063] The above embodiments are merely illustrative of the technical concept of the present invention and should not be construed as limiting the scope of protection of the present invention. Any equivalent substitutions or improvements made based on the technical concept of the present invention should be considered as falling within the scope of protection of the present invention.

Claims

1. A multimodal emotion recognition method based on modality optimization adaptive expert routing, characterized in that, Includes the following steps: Step S1, Multimodal Data Acquisition and Synchronous Preprocessing: Acquire video image sequences, audio signals, and text sequences of the same interactive segment, and perform synchronous preprocessing on the three modalities; Step S2, Visual Branch Teacher-Student Temporal Distillation: The visual encoder is trained using teacher-student knowledge distillation. The frame-level features and inter-frame variation information output by the teacher network are used to apply multi-level supervision to the student network to obtain a visual representation with temporal enhancement characteristics. Step S3, Multimodal Feature Extraction and Unified Semantic Mapping: The text sequence and speech signal are encoded separately, and together with the visual representation, they are mapped to a unified d-dimensional semantic space through linear projection and normalization to obtain text features, speech features and visual features; Step S4, Hierarchical text-guided expert route fusion: Construct a text-visual expert layer and a text-speech expert layer respectively. Concatenate the text features with the visual features and speech features respectively and send them to a hybrid expert module containing routers and multiple expert networks. The text-visual fusion representation and text-speech fusion representation are obtained by weighting by soft route weights. A three-modal joint expert layer is constructed, with the text-visual fusion representation, text-speech fusion representation, and visual features as three parallel branches. An auxiliary sentiment prediction head and an uncertainty estimation network are set up for each branch. The routing distribution of the branches is obtained by using a three-modal router. The routing distribution and confidence distribution are combined to form a fusion weight. The expert outputs of the three branches are weighted and summed to obtain the three-modal fusion representation. Step S5, Modality Consistency and Routing Regularization Constraints: Apply modality consistency constraints to the outputs of the text-visual expert layer and the text-speech expert layer, apply batch-level expert load balancing constraints to the expert weights in at least one expert layer, and / or apply routing-confidence consistency constraints to the routing distribution and the confidence distribution of the three-modality joint expert layer. Step S6, Hierarchical Sinkhorn-KL Distribution Alignment: Apply joint distribution alignment constraints of Sinkhorn distance and KL divergence targeting the reference distribution generated from text features to at least two of the text-visual layer, text-speech layer and trimodal fusion layer. Step S7, Joint Training and Inference: Output continuous emotion intensity values ​​based on the trimodal fusion representation, and convert the continuous emotion intensity values ​​into emotion categories according to preset rules.

2. The method according to claim 1, characterized in that, The multi-level supervision in the teacher-student knowledge distillation includes frame-level feature distillation loss, temporal difference distillation loss, and output distribution distillation loss.

3. The method according to claim 1, characterized in that, The uncertainty estimation network takes the concatenation of the fusion representation of the corresponding branch and the auxiliary prediction value as input and outputs non-negative uncertainty; the normalized confidence is determined by the ratio of the exponential negative uncertainty of each branch; during training, the error between the real sentiment label and the auxiliary prediction value is used for supervision, and the gradient is not backpropagated to the auxiliary sentiment prediction head.

4. The method according to claim 1 or 3, characterized in that, The fusion weights are obtained using the following formula: ; in For route distribution, For confidence distribution, For route distribution.

5. The method according to claim 1, characterized in that, The batch-level expert load balancing constraint is achieved by calculating the information entropy of the average routing weight of each expert within the batch, in order to maximize this information entropy.

6. The method according to claim 1, characterized in that, The hierarchical distribution alignment constraint specifically includes: pre-training and freezing a reference decoder, which generates a reference representation for the corresponding level with text features as input; for each level to which the constraint is applied, mapping the fusion representation of the current layer to a probability distribution, calculating the geometric structure loss represented by Sinkhorn distance and the probabilistic pattern loss represented by KL divergence with the reference probability distribution obtained by mapping the reference representation, and using the sum of the two as the distribution alignment loss for that level.

7. The method according to claim 6, characterized in that, The Sinkhorn distance is the entropy-normalized optimal transmission distance and is a symmetric distance after bias correction.

8. The method according to claim 1, characterized in that, The modal consistency constraint is to calculate the Jensen-Shannon divergence between the probability distributions of the text-visual expert layer and the text-speech expert layer outputs.

9. The method according to claim 1, characterized in that, In step S7, the continuous emotion intensity values ​​obtained based on the trimodal fusion representation are converted into emotion category labels according to a preset mapping rule; the preset mapping rule includes interval division based on emotion intensity threshold and / or maximization operation based on probability distribution, and the emotion category labels are used to supervise the classification loss in training.

10. A multimodal emotion recognition system based on modality optimization adaptive expert routing, characterized in that, include: Data preprocessing module: used to acquire video image sequences, audio signals and text sequences of the same interactive segment, and to perform synchronous preprocessing on the three modalities; Visual distillation module: used to train the visual encoder using teacher-student knowledge distillation, and obtains visual representations with temporal enhancement characteristics through multi-level supervision including frame-level feature distillation and temporal differential distillation; Multimodal feature mapping module: used to encode text sequences and speech signals, and together with the visual representation, map them to a unified semantic space through linear projection and normalization to obtain text features, speech features and visual features; The hierarchical expert fusion module includes a text-visual expert submodule, a text-speech expert submodule, and a trimodal joint expert submodule. The text-visual and text-speech expert submodules use text features as anchors to perform hybrid expert fusion with visual and speech features, respectively. The trimodal joint expert submodule uses two binary fusion representations and the visual features as branches, and is configured with an auxiliary prediction head, an uncertainty estimation network, and a trimodal router to perform fusion by combining confidence and routing weights. Training constraint module: used to apply at least some of the following constraints during training: modality consistency constraint, batch-level expert load balancing constraint, route-confidence consistency constraint, and hierarchical Sinkhorn-KL distribution alignment constraint. Output module: Used to output continuous sentiment intensity values ​​or sentiment categories based on trimodal fusion representation.