A multimodal emotion recognition method and system based on context awareness

By extracting facial expression, posture and gesture features, combined with the interaction information of the scene and the agent group, and using the graph attention network for feature fusion, the problems of low accuracy and insufficient robustness of emotion recognition in the existing technology are solved, and the implementation A more efficient emotion recognition effect.

CN113947702BActive Publication Date: 2024-09-27FUDAN UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111080047.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-15
Publication Date
2024-09-27
Estimated Expiration
2041-09-15

AI Technical Summary

Technical Problem

Existing multi-modal emotion recognition methods based on context awareness fail to make full use of human external behavioral performance modalities such as facial expressions, gait and gestures, and ignore the interactive context changes of human subjects and the environment in multi-person interaction situations. , resulting in reduced emotion recognition accuracy and insufficient robustness.

Method used

By collecting video and image data, we extract facial expression, posture and gesture features, combine the interaction information of the scene and agent groups, use the graph attention network and attention mechanism to perform feature cascade and weighted average, and perform feature fusion to enhance emotion recognition. ability.

Benefits of technology

It improves the accuracy and robustness of emotion recognition, can more effectively capture emotional changes in situations, enhances the ability to represent multi-modal emotional features, and improves the reliability of emotion recognition models.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113947702B
    Figure CN113947702B
Patent Text Reader

Abstract

The present invention relates to a multimodal emotion recognition method and system based on contextual perception, the system includes a multimodal information acquisition unit, an emotion processing unit based on multimodal behavior performance, an emotion analysis unit based on scene context, an emotion analysis unit based on agent group interaction, an emotion analysis unit based on agent and scene interaction, a feature fusion unit based on adaptive planning, a recognition unit based on discrete emotion, a prediction unit based on continuous emotion, and a display module, a part of the multimodal data comes from facial expression, gait and gesture information; the other part comes from the scene context in the scene, the agent group interaction context and the context information of the scene and agent interaction. Compared with the prior art, the present invention effectively solves the problems of low efficiency of emotion recognition in real scenes, low accuracy of emotion recognition of existing algorithms, and interference of external factors on robustness and generalization ability of recognition algorithms.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of emotion recognition technology, and in particular to a multimodal emotion recognition method and system based on context perception. Background Art

[0002] As the basis of human-computer emotional interaction, emotion recognition enables machines to understand human perceptual thinking, affects the continued development of machine intelligence, and becomes a key element of natural human-computer interaction. In recent years, multimodal emotion recognition technology has attracted more and more attention from researchers. This method is driven by the study of emotional psychology and aims to integrate multiple emotional signals such as facial expressions, voice, body gestures, and gait, and improve the accuracy and precision of emotion recognition through a variety of fusion modes.

[0003] As a hot topic in the field of computer vision, situational awareness plays a vital role in understanding human emotions in real scenes. Usually, the situational context in which humans are located contains rich semantic information. Through deep learning, we can perceive human emotions in different situational contexts and use the multimodal emotional features extracted from them to integrate the feature level and decision level. We can often obtain more emotional clues beyond the human subject to promote emotional expression and understanding.

[0004] The use of context-aware technology in real environments for multimodal emotion recognition is a new field of great research value. At present, there are no patented methods for multimodal emotion recognition based on context-awareness. Most of them adopt traditional emotion recognition methods using a single modality. Most of the current work is based on the network architecture of deep learning. Early research work aims to achieve emotion recognition by combining the intuitive emotional expression of facial expressions with the overall contextual information of the situation; subsequent work uses the region proposal network (RPN) to extract contextual elements from samples on this basis, and feeds them into the graph convolutional neural network (GCN) as nodes of the emotion graph to encode the contextual information, and finally achieves multimodal emotion recognition based on feature cascade. In recent work, some researchers regard all information other than the face as context, and extract contextual emotional expressions by masking human facial expressions from the image. There are also some well-known works starting from the perspective of psychology. After learning the representation of emotional features in the situation based on the attention mechanism, they explore the proximity and distance between human subjects in multi-person interaction situations in combination with heat maps to mine the emotional context information between groups, thereby improving the accuracy of emotion recognition.

[0005] Existing multimodal emotion recognition methods based on contextual awareness often only encode and extract features for the complete contextual semantic information collected in images and videos. The disadvantage of these methods is that they do not take into account the interference of changes in the emotional expressions of other subjects in the background environment on the emotion prediction of the emotion recognition subject, which greatly reduces the accuracy. At the same time, the encoding method for emotional information in multi-person interaction situations is simple, usually using graph convolutional networks or heat maps for modeling and analysis. Such methods regard the high-dimensional emotional distance between multiple people as an unchanging constant, and can only roughly measure the changes in emotional tension, making it difficult to capture the contextual representation related to the subject's emotional changes, which lacks rationality. At the same time, the interactive context changes between the human subject and the environment in the situation are rarely taken into account, which leads to redundancy and errors in the expression of most multimodal emotional features, and the robustness of the emotion recognition model cannot be guaranteed.

[0006] Current multimodal forms often focus on extracting emotional clues other than human subjects in situations, while ignoring the use of external emotional behavioral features of humans. For example, facial expressions, gait, gestures and other modal signals that are closely related to the expression of emotional information are combined. In addition, the traditional emotion definition model based on discrete emotion models cannot scientifically and effectively describe the essence of emotional changes, resulting in the lack of effectiveness in the evaluation and analysis of emotion recognition results.

[0007] In summary, developing a new method based on contextual perception, making full use of human external behavioral expression modalities such as facial expressions, gait, and gestures, and combining a multimodal emotion recognition system with modeling and analysis of emotional interaction behaviors between human subjects and scenes as well as human groups has become an urgent problem to be solved by technicians in this research field. Summary of the invention

[0008] The purpose of the present invention is to overcome the defects of the above-mentioned prior art and to provide a multimodal emotion recognition method and system based on contextual awareness, which fully utilizes human external behavior expression modes such as facial expressions, gait, and gestures, and combines modeling and analysis of emotional interaction behaviors between human subjects and scenes as well as human groups.

[0009] The purpose of the present invention can be achieved by the following technical solutions:

[0010] A multimodal emotion recognition method based on context awareness comprises the following steps:

[0011] Multimodal information collection step: collecting videos and real-world images for emotion recognition, wherein the videos include human subjects and other agents for which emotion recognition is to be performed;

[0012] The emotion processing step based on multimodal behavior expression is as follows: extracting feature vectors of facial expression features, facial landmark points, human posture and human gesture according to the video, and generating an external behavior expression modality vector by initial feature cascade;

[0013] The emotion analysis step based on the scene context includes: obtaining a scene image by adding a mask to the human subject in each video frame in the real-world image and video, and then extracting the feature of the scene emotion semantics to obtain a first emotion feature vector;

[0014] The sentiment analysis step based on the interaction of the agent group is as follows: extracting the information of the human subject and other agents in each video frame in the real-world image and video, and then extracting the initial representation features, feeding each initial representation feature into the graph attention network as a sentiment node, and constructing a sentiment relationship graph; according to the sentiment relationship graph, calculating the intensity and degree of the sentiment influence of different other agents on the human subject, judging the weight of the sentiment feature vector generated by the interaction of other agents through the sentiment similarity coefficient, and performing a weighted average operation with the initial representation feature to obtain a second sentiment feature vector;

[0015] The sentiment analysis step based on the interaction between the agent and the situation is as follows: by adding masks to other agents in each video frame in the real-world image and the video, the scene image is obtained, and the initial features of the scene are extracted; according to the initial representation features of other agents, a basic feature map is established, and the initial features of the scene and the basic feature map are feature aggregated to obtain a third sentiment feature vector;

[0016] Feature fusion step: performing feature fusion on the external behavior performance modal vector, the first emotion feature vector, the second emotion feature vector and the third emotion feature vector to obtain a fused feature vector;

[0017] Emotion recognition step: performing emotion recognition based on the fused feature vector.

[0018] Furthermore, in the sentiment analysis step based on the scene context, the feature extraction of the scene sentiment semantics is specifically performed as follows: a residual neural network is selected as the backbone network of the main model, multiple residual connection blocks in the residual neural network are alternately embedded in sequence into channel-based and space-based attention mechanism modules to form a complete attention extraction network, and the scene image is loaded into the attention extraction network to perform feature extraction of the scene sentiment semantics.

[0019] Furthermore, the channel- and space-based attention mechanism module includes a channel attention mechanism and a spatial attention mechanism, and the channel attention mechanism includes: inferring a 1D channel attention map through global average pooling Then, features are merged in the output layer through channel-level multiplication;

[0020] The spatial attention mechanism includes: inferring a 2D spatial attention map through the global maximum pooling layer The features are then merged in the output layer through channel-level multiplication.

[0021] Furthermore, the feature fusion step is performed as follows:

[0022] Strongly correlated feature vectors and weakly correlated feature vectors are selected from the external behavior expression modal vector, the first emotional feature vector, the second emotional feature vector and the third emotional feature vector. Feature fusion is performed on the strongly correlated feature vectors through feature cascade operation, and feature fusion is performed on the weakly correlated feature vectors through multiplicative fusion.

[0023] Furthermore, the emotion recognition step specifically includes a discrete emotion recognition sub-step and a continuous emotion prediction sub-step;

[0024] The discrete emotion recognition sub-step includes: mapping the fused feature vector to between 0 and 1, and then calculating the cross entropy loss function for each output node and the corresponding label, and predicting the expression label by calculating the probability of each type of possible output expression label.

[0025] Furthermore, the continuous emotion prediction sub-step includes data normalization, label difference summation, error amplitude calculation and continuous numerical prediction in sequence. The continuous emotion prediction sub-step is implemented by a pre-constructed and trained network model, which uses mean square error loss to calculate the sum of squares of the difference between the predicted value and the target value to train the network model.

[0026] Further, the expression labels in the discrete emotion recognition sub-step include happiness, surprise, sadness, disgust, excitement, peace, fear and anger;

[0027] The output of the continuous emotion prediction sub-step is a predicted value from 1 to 10 of a VAD continuous model of emotion, where the VAD continuous model refers to the arousal, control, and pleasure of emotion.

[0028] Furthermore, in the emotion processing step based on multimodal behavior expression, facial expression contours are extracted by a facial detector, and then a feature extraction operation is performed by a designed convolutional neural network to obtain a facial expression feature vector;

[0029] A facial detector is used to extract multiple facial landmark points, which are then acquired and converted into emotional feature vectors through a convolutional neural network.

[0030] The coordinate points of multiple human postures are extracted through the posture detector and fed into the encoder network for feature extraction to obtain the feature vector of the human posture;

[0031] The key points representing the human hand are extracted through the posture detector, and the feature vector of the human hand gesture is obtained using the convolutional neural network.

[0032] The present invention also provides a system using the above-mentioned multimodal emotion recognition method based on context perception, comprising:

[0033] A multimodal information acquisition unit, configured to perform the multimodal information acquisition step;

[0034] An emotion processing unit based on multimodal behavior expression, configured to perform the emotion processing step based on multimodal behavior expression;

[0035] A sentiment analysis unit based on scene context, configured to perform the sentiment analysis step based on scene context;

[0036] An agent group interaction-based sentiment analysis unit, configured to perform the agent group interaction-based sentiment analysis step;

[0037] A sentiment analysis unit based on agent and context interaction, configured to perform the sentiment analysis step based on agent and context interaction;

[0038] A feature fusion unit based on adaptive planning, configured to perform the feature fusion step;

[0039] The emotion recognition unit is configured to perform the emotion recognition step.

[0040] Furthermore, the system also includes a display module, which is configured to display the output results of the emotion recognition unit.

[0041] Compared with the prior art, the present invention has the following advantages:

[0042] (1) Different from the traditional multimodal emotion recognition method, the present invention proposes an emotion understanding and reasoning model based on contextual perception, and attempts to discriminate and analyze emotions through the assistance of multimodal semantics outside the emotion recognition subject. Specifically, the emotion analysis unit of the scene context extracts the contextual emotion semantic information contained in the objects and background environment in the real world, thereby strengthening the external representation of emotions and improving the discrimination ability of emotion recognition; the emotion analysis unit of the agent group interaction analyzes the emotion transmission relationship between the emotion recognition subject and other agents around it, and uses the advanced graph attention neural network to analyze the emotion intensity between different agents, so as to assist and enhance the emotion representation ability of the recognition subject; the emotion analysis unit of the agent and context interaction is committed to exploring the hidden emotional states triggered by other agents' social activities in the scene, and completes the emotion expression space of the recognition subject through feature aggregation.

[0043] (2) The emotion processing unit based on multimodal behavior fully combines the facial expression information of the emotion recognition subject, facial key point information, gesture signals, posture signals and other external emotion information. The multimodal information obtained based on external behavior effectively solves the problem of system performance degradation caused by the lack and abnormality of some modal information caused by occlusion and sensor noise in life. At the same time, facial expression information and facial key point information are used simultaneously in facial analysis, and feature extraction and fusion are performed through advanced convolutional neural networks, which maximizes the representation ability of external emotions.

[0044] (3) Different from the single feature splicing method in traditional feature fusion, the adaptive planning fusion unit proposed in the present invention can effectively and dynamically plan the fusion strategies of different modalities, adaptively consider the differences and correlations between heterogeneous modalities, and fully explore the potential emotional features through multiplicative fusion and feature cascade intelligent selection, and further enhance the classification and prediction capabilities of explicit emotional features.

[0045] (4) The multi-task learning model based on emotion classification and prediction proposed in the present invention can effectively reveal the evolution and expression process of emotions. This method redefines the emotion recognition rules. Unlike the traditional model, it only considers the classification of discrete emotions, but combines the discrete emotion nodes in the high-dimensional emotion space and the emotion states in the continuous space. The joint training and learning between the two effectively promotes the reliability and accuracy of the multimodal emotion recognition model. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 A principle block diagram of a multimodal emotion recognition system based on context awareness provided in an embodiment of the present invention;

[0047] Figure 2A principle block diagram of an emotion processing unit based on multimodal behavior expression provided in an embodiment of the present invention;

[0048] Figure 3 A principle block diagram of a sentiment analysis unit based on scene context provided in an embodiment of the present invention;

[0049] Figure 4 This is a principle block diagram of a sentiment analysis unit based on agent group interaction provided in an embodiment of the present invention;

[0050] Figure 5 A principle block diagram of a sentiment analysis unit based on agent and context interaction provided in an embodiment of the present invention;

[0051] Figure 6 It is a principle block diagram of a feature fusion unit based on adaptive planning provided in an embodiment of the present invention;

[0052] Figure 7 A block diagram of the principle of a discrete emotion recognition unit provided in an embodiment of the present invention;

[0053] Figure 8 This is a principle block diagram of a prediction unit based on continuous emotion provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0054] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.

[0055] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0056] Example 1

[0057] This embodiment provides a multimodal emotion recognition method based on context awareness, comprising the following steps:

[0058] Multimodal information collection step: collecting videos and real-world images for emotion recognition, where the videos include human subjects and other agents to be emotion recognized;

[0059] Emotion processing steps based on multimodal behavior expression: extract the feature vectors of facial expression features, facial landmark points, human posture and human gestures according to the video, and generate the external behavior expression modality vector by initial feature cascade;

[0060] The emotion analysis step based on the scene context is as follows: by adding masks to the human subjects in each video frame in the real-world image and video, the scene image is obtained, and then the feature extraction of the scene emotion semantics is performed to obtain the first emotion feature vector;

[0061] The steps of sentiment analysis based on agent group interaction are as follows: extract the information of human subject and other agents in each video frame in real-world images and videos, then extract the initial representation features, feed each initial representation feature into the graph attention network as a sentiment node, and construct a sentiment relationship graph; according to the sentiment relationship graph, calculate the intensity and degree of the sentiment influence of different other agents on the human subject, judge the weight of the sentiment feature vector generated by the interaction of other agents through the sentiment similarity coefficient, and perform a weighted average operation with the initial representation feature to obtain the second sentiment feature vector;

[0062] The steps of sentiment analysis based on the interaction between agents and situations are as follows: by adding masks to other agents in each video frame in real-world images and videos, the scene images are obtained and the initial features of the scene are extracted; according to the initial representation features of other agents, a basic feature map is established, and the initial features of the scene and the basic feature map are feature aggregated to obtain the third sentiment feature vector;

[0063] Feature fusion step: fusing the external behavior performance modal vector, the first emotion feature vector, the second emotion feature vector and the third emotion feature vector to obtain a fused feature vector;

[0064] Emotion recognition step: Emotion recognition is performed based on the fused feature vector.

[0065] Each step is described in detail below.

[0066] 1.1 Emotional processing steps based on multimodal behavioral expressions

[0067] In the emotion processing step based on multimodal behavior expression, the facial expression contour is extracted by the face detector, and then the feature extraction operation is performed through the designed convolutional neural network to obtain the facial expression feature vector;

[0068] A facial detector is used to extract multiple facial landmark points, which are then acquired and converted into emotional feature vectors through a convolutional neural network.

[0069] The coordinate points of multiple human postures are extracted through the posture detector and fed into the encoder network for feature extraction to obtain the feature vector of the human posture;

[0070] The key points representing the human hand are extracted through the posture detector, and the feature vector of the human hand gesture is obtained using the convolutional neural network.

[0071] 1.2. Sentiment analysis steps based on scene context

[0072] In the sentiment analysis step based on the scene context, the feature extraction of the scene sentiment semantics is performed as follows: the residual neural network is selected as the backbone network of the main model, and multiple residual connection blocks in the residual neural network are alternately embedded in the channel-based and space-based attention mechanism modules in sequence to form a complete attention extraction network, and the scene image is loaded into the attention extraction network to extract the feature of the scene sentiment semantics.

[0073] The channel- and space-based attention mechanism modules include channel attention mechanism and spatial attention mechanism. The channel attention mechanism includes: inferring a 1D channel attention map through global average pooling Then, features are merged in the output layer through channel-level multiplication;

[0074] The spatial attention mechanism includes: inferring a 2D spatial attention map through the global maximum pooling layer The features are then merged in the output layer through channel-level multiplication.

[0075] 1.3 Feature Fusion Steps

[0076] The feature fusion step is as follows:

[0077] Strongly correlated feature vectors and weakly correlated feature vectors are selected from the external behavior expression modal vector, the first emotion feature vector, the second emotion feature vector and the third emotion feature vector. Feature fusion is performed on the strongly correlated feature vectors through feature concatenation operation, and on the weakly correlated feature vectors through multiplicative fusion.

[0078] 1.4 Emotion Recognition Steps

[0079] The emotion recognition step specifically includes a discrete emotion recognition sub-step and a continuous emotion prediction sub-step;

[0080] The discrete emotion recognition sub-step includes: mapping the fused feature vector to between 0 and 1, and then calculating the cross entropy loss function for each output node and the corresponding label, and predicting the obtained expression label by calculating the probability of each type of possible output expression label.

[0081] The continuous emotion prediction sub-step includes data normalization, label difference summation, error amplitude calculation and continuous numerical prediction in sequence. The continuous emotion prediction sub-step is implemented through a pre-built and trained network model. The network model uses mean square error loss to calculate the sum of the squares of the differences between the predicted value and the target value to train the network model.

[0082] The expression labels in the discrete emotion recognition sub-step include happiness, surprise, sadness, disgust, excitement, peace, fear, and anger;

[0083] The output of the continuous emotion prediction sub-step is a predicted value from 1 to 10 of the VAD continuous model of emotion, which refers to the arousal, control and pleasure of emotion.

[0084] This embodiment also provides a system using the above multimodal emotion recognition method based on context perception, including:

[0085] A multimodal information acquisition unit, configured to perform a multimodal information acquisition step;

[0086] An emotion processing unit based on multimodal behavior performance, configured to perform an emotion processing step based on multimodal behavior performance;

[0087] A sentiment analysis unit based on scene context, configured to perform a sentiment analysis step based on scene context;

[0088] An agent group interaction-based sentiment analysis unit, configured to perform an agent group interaction-based sentiment analysis step;

[0089] The sentiment analysis unit based on the interaction between the agent and the situation is configured to perform a sentiment analysis step based on the interaction between the agent and the situation;

[0090] A feature fusion unit based on adaptive programming is configured to perform a feature fusion step;

[0091] An emotion recognition unit, configured to perform an emotion recognition step;

[0092] Specifically, the emotion recognition unit in this embodiment includes a recognition unit based on discrete emotions and a prediction unit based on continuous emotions.

[0093] Preferably, the system further comprises a display module, which is configured to display the output result of the wiring harness emotion recognition unit.

[0094] Specifically, multimodal data comes from facial, posture and gesture information of human external performance on the one hand, and from complete scene information, all agent interaction information and scene and agent interaction information obtained from images or videos during preprocessing on the other hand. Then, different emotional speech features are extracted in different emotion processing and analysis units through different neural networks and processing technologies. In the feature fusion unit of adaptive planning, in order to resist the signal interference and redundant information generated in the multimodal data acquisition unit, the unit adopts an adaptive method combining multiplication and cascade strategies to perform feature fusion to ensure the integrity and effectiveness of multimodal emotional features. Then, it is fed to the discrete emotion recognition unit to train the network with multi-label classification loss and output the emotion category. Specifically, the emotion categories include happiness, surprise, sadness, disgust, excitement, peace, fear and anger. After training the network with mean square error loss in the continuous emotion prediction unit, the predicted value of the VAD continuous model of emotion from 1 to 10 is output. Specifically, the VAD model refers to the arousal, control and pleasure of emotion, which measures the changes in the emotional space in the continuous state, and can more vividly portray the intensity of emotion and characterize the emotional difference. Subsequently, the results of discrete sentiment analysis and continuous sentiment prediction can be presented through a display unit.

[0095] The specific implementation process of each unit of the system is described in detail below.

[0096] 2.1 Emotional processing unit based on multimodal behavioral expression

[0097] Figure 2The principle block diagram of the emotion processing unit based on multimodal behavior performance provided in this embodiment includes four sub-feature extraction units, namely, a facial expression extraction unit, a facial key point extraction unit, an emotional posture extraction unit, and an emotional gesture extraction unit. For the facial expression extraction unit, the facial expression contour is first extracted by the OpenFace facial detector to obtain a facial image of size 224*224, and then the feature extraction operation is performed by the designed five-layer convolutional neural network. The neural network head includes five convolutional layers and a batch normalization layer and a ReLu activation layer connected thereto, and the tail includes two layers of maximum pooling layers for feature dimensionality reduction and scaling, and finally obtains a feature vector of size 26*1*1. For the facial key point extraction unit, 68 facial landmark points are first extracted by the OpenFace facial detector, and then converted into an initial feature vector of size 136*1*1. The vector passes through two one-dimensional convolutional layers and a batch normalization layer and a ReLu activation layer connected thereto, and finally passes through a fully connected layer to obtain a feature vector of size 26*1*1. For the emotional gesture extraction unit, the AlphaPose gesture detector is used to extract the coordinate points of 26 human gestures, which are converted into 26*2*1 feature vectors and fed to the encoder network for feature extraction, and finally a 26*1*1 feature vector is obtained. For the emotional gesture extraction unit, the AlphaPose gesture detector is used to extract the key points of human hand representation, and a 512*1*1 feature vector is obtained by using three layers of transposed convolutional layers and connected batch normalization layers and ReLu activation layers, and then a 26*1*1 feature vector is obtained by three layers of convolutional layers. Then, a 104*1*1 external behavior expression modal vector is obtained through the initial feature cascade for modal output.

[0098] 2.2. Sentiment Analysis Unit Based on Scene Context

[0099] Figure 3The principle block diagram of the emotion analysis unit based on scene context provided in this embodiment mainly includes data preprocessing, channel-based attention feature extraction, space-based attention feature extraction, heat map generation, and feature extraction and output stages. Specifically, in the data preprocessing stage, a mask is added to the human agent subject to be emotionally recognized in the input real-world image and the video frame captured by the video to obtain a scene image that only retains the scene information, and then the ResNet-18 of the residual neural network is selected as the backbone network of the main model, and the 8 residual connection blocks contained therein are alternately embedded in sequence with the channel-based and space-based attention mechanism modules to form a complete attention extraction network for feature extraction of scene emotional semantics. For the channel attention mechanism, a 1D channel attention map is inferred by global average pooling, and then the features are merged by channel-level multiplication in the output layer; for the spatial attention mechanism, a 2D spatial attention map is inferred by the global maximum pooling layer, and then the features are merged by channel-level multiplication in the output layer. With the help of the attention mechanism, the system can focus more on the emotional clues related to the corresponding agent and further generate an attention heat map. In the attention heat map, this embodiment can visualize and annotate scene semantics with greater weights, which is convenient for analyzing the correlation and coupling relationship between scene information and emotions. Finally, feature extraction is performed to obtain an emotional feature vector of size 26*1*1.

[0100] 2.3 Sentiment Analysis Unit Based on Agent Group Interaction

[0101] Figure 4 The principle block diagram of the sentiment analysis unit based on agent group interaction provided in this embodiment mainly includes four steps: data preprocessing, feature pre-extraction, sentiment relationship graph construction and sentiment feature output. Specifically, in the data preprocessing stage, the human subject I to be emotion recognized is extracted from the input real-world image and the video frame captured by the video as I. agent and other agent informationI p , through the deep residual network ResNet-18, the initial features of the two parties are first extracted and recorded as f agent and f p Then, different features are fed into the Graph Attention Network as sentiment nodes to construct a sentiment relationship graph. Then, considering that different other agents have different emotional influences on the identified subject, the sentiment similarity coefficient between them is calculated and recorded as n ij =α([Wf agent ||Wf p]). Where W represents the weight parameter, α(.) represents the feature mapping relationship, and || represents the connection operation. In order to enhance the relationship learning of sentiment transmission, this embodiment simultaneously uses a multi-head attention mechanism to realize the fusion of domain node features, that is, the sentiment relationship coefficient is calculated three times between two adjacent feature nodes. Finally, based on the obtained other agent features and the original recognition subject features under different weights, a weighted average operation is performed to output a sentiment feature vector h3 of size 26*1*1.

[0102] 2.4 Sentiment Analysis Unit Based on Agent and Context Interaction

[0103] Figure 5 The principle block diagram of the sentiment analysis unit based on agent and context interaction provided in this embodiment. This unit aims to explore the emotional impact of the emotional clues generated during the interaction between other agents and scenes on the identification of the main agent. It includes four steps: data preprocessing, agent feature map construction, feature aggregation, and modal output. Specifically, by adding masks to the input real-world image and the video frame captured by the video, the image I that only retains the scene information is obtained. s , first extract the initial features f of the scene through the deep residual network ResNet-18 s , and then use the f obtained in the sentiment analysis unit of the agent group interaction agent The two layers of graph convolutional neural network are fed to build the basic feature map. Then the long short-term memory network is used to implement f s and f agent The feature aggregation is performed to obtain the sentiment feature vector h4 of size 26*1*1.

[0104] 2.5. Feature Fusion Unit Based on Adaptive Planning

[0105] Figure 6 The principle block diagram of the feature fusion unit based on adaptive planning provided for this embodiment. Specifically, the unit will adaptively perform feature screening and fusion according to the characteristics of the multimodal features obtained by the above-mentioned sentiment analysis and recognition unit. When the input features are based on strongly correlated feature vectors such as facial expressions and facial key points, in order to ensure the completeness and strong expressiveness of the emotional feature space, the system will automatically perform feature cascade operations to perform feature fusion; when the input features are based on weakly correlated feature vectors such as emotional information transmitted between agents and emotional semantic information of the scene, in order to fully explore and enhance the representation ability of emotional information, the system will automatically execute a multiplicative fusion method, and perform feature penetration and complementation by keeping the original dimensions unchanged, thereby maximizing the differences between features. Finally, the fused features are output.

[0106] 2.6. Discrete emotion based recognition unit

[0107] Figure 7 The principle block diagram of the discrete emotion recognition unit provided in this embodiment, in which the obtained fused emotion feature vector is first normalized, and then the output feature value is mapped to between 0 and 1 using the Sigmoid function, and then the cross entropy loss function is calculated for each output node and the corresponding label, and the probability of each type of possible output expression label is calculated, and the sum of all eight probabilities is 1. Then the label output with the maximum probability is selected, which is the expression label predicted by the system.

[0108] 2.7 Prediction Unit Based on Continuous Sentiment

[0109] Figure 8 The principle block diagram of the prediction unit based on continuous emotion provided for this embodiment mainly includes the steps of data normalization, label difference summation, error amplitude calculation and final continuous numerical prediction. Specifically, the unit uses mean square error loss to calculate the sum of squares of the difference between the predicted value and the target value. Due to the reliability of data collection in this embodiment, it is robust to predicting outliers. Therefore, the model will strive to reduce the error caused by outliers, thereby improving the overall performance of the model.

[0110] Optimizing the mean square error loss can get the mean of all observations. Therefore, in the process of neural network training, its gradient will have a large jump at the extreme point, and the error amplitude calculation has good characteristics at the extreme point. At the same time, with the strategy of dynamically adjusting the learning rate, the gradient of the mean square error decreases as the loss function decreases. This feature enables more accurate results to be obtained in the final training process.

[0111] After obtaining the emotional information through the discrete emotion recognition unit and the continuous emotion prediction unit, the results are further displayed and presented in a visual manner in the display unit.

[0112] The multimodal emotion recognition system based on contextual awareness demonstrated in this embodiment introduces for the first time the scene semantics in contextual awareness, agent interaction, and the emotional features contained in the interaction between agents and scenes, which effectively promotes the development of multimodal emotion recognition in the real world. At the same time, by fully collecting the facial expression information of the emotion recognition subject, facial key point information, gesture signals, posture signals and other external emotional information, combining different recognition units to pre-process and extract features of heterogeneous modal information, and further using the feature fusion method of adaptive planning to achieve the organic fusion of multimodal features. Finally, the multi-task learning model based on emotion classification and prediction greatly enhances the accuracy of multimodal emotion recognition and improves the generalization performance and accuracy of the model. The method proposed in this embodiment can provide a complete and effective emotion discrimination feature space, providing reliable guarantee for the subsequent understanding of human natural emotions and the emotional representation of the open world.

[0113] The preferred specific embodiments of the present invention are described in detail above. It should be understood that a person skilled in the art can make many modifications and changes based on the concept of the present invention without creative work. Therefore, any technical solution that can be obtained by a person skilled in the art through logical analysis, reasoning or limited experiments based on the concept of the present invention on the basis of the prior art should be within the scope of protection determined by the claims.

Claims

1. A multimodal emotion recognition method based on context awareness, It is characterized in that The following steps are involved: Multimodal information collection step: collecting videos and real-world images for emotion recognition, wherein the videos include human subjects and other agents for which emotion recognition is to be performed; The emotion processing step based on multimodal behavior expression is as follows: extracting feature vectors of facial expression features, facial landmark points, human posture and human gesture according to the video, and generating an external behavior expression modality vector by initial feature cascade; The emotion analysis step based on the scene context includes: obtaining a scene image by adding a mask to the human subject in each video frame in the real-world image and video, and then extracting the feature of the scene emotion semantics to obtain a first emotion feature vector; The sentiment analysis step based on the interaction of the agent group is as follows: extracting the information of the human subject and other agents in each video frame in the real-world image and video, and then extracting the initial representation features, feeding each initial representation feature into the graph attention network as a sentiment node, and constructing a sentiment relationship graph; according to the sentiment relationship graph, calculating the intensity and degree of the sentiment influence of different other agents on the human subject, judging the weight of the sentiment feature vector generated by the interaction of other agents through the sentiment similarity coefficient, and performing a weighted average operation with the initial representation feature to obtain a second sentiment feature vector; The sentiment analysis step based on the interaction between the agent and the situation is as follows: by adding masks to other agents in each video frame in the real-world image and the video, the scene image is obtained and the initial features of the scene are extracted; According to the initial representation features of other agents, a basic feature map is established, and the initial features and the basic feature map of the scene are subjected to feature aggregation to obtain a third emotion feature vector; Feature fusion step: performing feature fusion on the external behavior performance modal vector, the first emotion feature vector, the second emotion feature vector and the third emotion feature vector to obtain a fused feature vector; Emotion recognition step: performing emotion recognition based on the fused feature vector.

2. According to the context-aware multimodal emotion recognition method of claim 1, It is characterized in that In the sentiment analysis step based on the scene context, the feature extraction of the scene sentiment semantics is specifically performed as follows: a residual neural network is selected as the backbone network of the main model, multiple residual connection blocks in the residual neural network are alternately embedded in sequence into the channel-based and space-based attention mechanism modules to form a complete attention extraction network, and the scene image is loaded into the attention extraction network to perform feature extraction of the scene sentiment semantics.

3. The multimodal emotion recognition method based on context awareness according to claim 2, It is characterized in that The channel- and space-based attention mechanism module includes a channel attention mechanism and a spatial attention mechanism. The channel attention mechanism includes: inferring a 1D channel attention map through global average pooling Then, features are merged in the output layer through channel-level multiplication; The spatial attention mechanism includes: inferring a 2D spatial attention map through the global maximum pooling layer The features are then merged in the output layer through channel-level multiplication.

4. The multimodal emotion recognition method based on context awareness according to claim 1, It is characterized in that The feature fusion step is specifically performed as follows: Strongly correlated feature vectors and weakly correlated feature vectors are selected from the external behavior expression modal vector, the first emotional feature vector, the second emotional feature vector and the third emotional feature vector. Feature fusion is performed on the strongly correlated feature vectors through feature cascade operation, and feature fusion is performed on the weakly correlated feature vectors through multiplicative fusion.

5. The multimodal emotion recognition method based on context awareness according to claim 1, It is characterized in that The emotion recognition step specifically includes a discrete emotion recognition sub-step and a continuous emotion prediction sub-step; The discrete emotion recognition sub-step includes: mapping the fused feature vector to between 0 and 1, and then calculating the cross entropy loss function for each output node and the corresponding label, and predicting the expression label by calculating the probability of each type of possible output expression label.

6. The multimodal emotion recognition method based on context awareness according to claim 5, It is characterized in that The continuous emotion prediction sub-step includes data normalization, label difference summation, error amplitude calculation and continuous numerical prediction in sequence. The continuous emotion prediction sub-step is implemented by a pre-built and trained network model. The network model uses mean square error loss to calculate the sum of the squares of the differences between the predicted value and the target value to train the network model.

7. The method for multimodal emotion recognition based on context awareness according to claim 5, It is characterized in that The expression labels in the discrete emotion recognition sub-step include happiness, surprise, sadness, disgust, excitement, peace, fear and anger; The output of the continuous emotion prediction sub-step is a predicted value from 1 to 10 of a VAD continuous model of emotion, where the VAD continuous model refers to the arousal, control, and pleasure of emotion.

8. The multimodal emotion recognition method based on context awareness according to claim 1, It is characterized in that In the emotion processing step based on multimodal behavior expression, facial expression contours are extracted by a facial detector, and then a feature extraction operation is performed by a designed convolutional neural network to obtain a facial expression feature vector; A facial detector is used to extract multiple facial landmark points, which are then acquired and converted into emotional feature vectors through a convolutional neural network. The coordinate points of multiple human postures are extracted through the posture detector and fed into the encoder network for feature extraction to obtain the feature vector of the human posture; The key points representing the human hand are extracted through the posture detector, and the feature vector of the human hand gesture is obtained using the convolutional neural network.

9. A system using a context-aware multimodal emotion recognition method as claimed in any one of claims 1 to 8, It is characterized in that include: A multimodal information acquisition unit, configured to perform the multimodal information acquisition step; An emotion processing unit based on multimodal behavior expression, configured to perform the emotion processing step based on multimodal behavior expression; A sentiment analysis unit based on scene context, configured to perform the sentiment analysis step based on scene context; An agent group interaction-based sentiment analysis unit, configured to perform the agent group interaction-based sentiment analysis step; A sentiment analysis unit based on agent and context interaction, configured to perform the sentiment analysis step based on agent and context interaction; A feature fusion unit based on adaptive planning, configured to perform the feature fusion step; The emotion recognition unit is configured to perform the emotion recognition step.

10. The system according to claim 9, It is characterized in that The system further comprises a display module configured to display an output result of the emotion recognition unit.