An emotion recognition method and system based on human motion gait and posture

By preprocessing and feature extraction of human gait and posture, an integrated model is constructed for emotion recognition, which solves the problem of low accuracy of gait emotion recognition in the existing technology and achieves higher recognition accuracy and wider applicability. scope.

CN115131876BActive Publication Date: 2024-10-29UNIV OF SCI & TECH OF CHINA
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210820943.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-13
Publication Date
2024-10-29
Estimated Expiration
2042-07-13

AI Technical Summary

Technical Problem

Existing Technology In emotion recognition based on human gait and posture, traditional machine learning classification methods such as random forests, multi-layer perceptrons and support vector machines have low classification accuracy. One of the reasons is that human emotions cannot be effectively considered. Layered movement and coordination expression in gait.

Method used

By preprocessing the human gait sequence data, construct a sample set, extract the position and speed information of the root joint and other joints, select the 5 features that can best distinguish different emotions among the 12 posture features, and build a gait emotion extraction module. , the model of gesture emotion extraction module and classifier uses joint convolution layer and LSTM to extract spatiotemporal features, and then inputs them into the classifier for emotion recognition after fusion.

Benefits of technology

The accuracy of emotion recognition based on gait and posture is improved, reaching a correct recognition rate of 90%. It has a wider range of applications, does not require high-resolution images, and is suitable for human-computer interaction and public safety monitoring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115131876B_ABST
    Figure CN115131876B_ABST
Patent Text Reader

Abstract

The present invention relates to an emotion recognition method and system based on human motion gait and posture, and the method comprises: S1: preprocessing a human gait sequence data set to construct a sample set; S2: preprocessing the gait data in the sample set to obtain the position and absolute speed of the root joint and the relative position and relative speed of other 20 joints relative to the root joint; S3: selecting 5 posture features that can best distinguish different emotions according to 12 predefined posture features; S4: constructing an emotion recognition model of human motion gait and posture, comprising: a gait emotion extraction module, a posture emotion extraction module and a classifier, inputting the relative position, relative speed and 5 posture features of the joints into the emotion recognition model of human motion gait and posture, and outputting the probabilities corresponding to various emotions. The method provided by the present invention can improve the accuracy of emotion recognition based on gait and posture, does not require high-resolution images, and has a wider range of applications.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence, and in particular to an emotion recognition method and system based on human body movement gait and posture. Background Art

[0002] Perceiving human emotions is an important part of intelligent interaction and affective computing, which involves multiple fields such as psychology, computer science, and cognitive behavior. Emotion recognition can be used in human-computer interaction, enabling intelligent systems to better understand human emotions and thus better cooperate with people. For example, intelligent robots can help autistic children better understand emotions by showing them different gaits and emotions they express. Security surveillance cameras can recognize emotions through pedestrians’ gaits and provide early warnings for intentional injuries caused by anger, which is conducive to reducing casualties and contributing to public safety.

[0003] In recent years, the development of machine learning and deep learning algorithms has provided reliable technical means for the study of emotion recognition based on gait and posture. For example, the movement process of a person can be captured by surveillance cameras, and gait information such as the real-time position of the joints of the whole body during the movement of the person can be extracted using deep learning algorithms. A variety of machine learning methods can be used to classify emotions based on the collected gait features. With the development of deep learning, automatic emotion recognition has attracted more and more attention and has become a hot topic for scholars at home and abroad.

[0004] However, the prior art has the following disadvantages:

[0005] Traditional machine learning classification methods such as random forests, multi-layer perceptrons (MLPs), and support vector machines (SVMs) often have low classification accuracy. Convolutional neural networks have the ability to self-learn and can learn the spatial information of human gait. Long short-term memory neural networks can process temporal features, but the accuracy of recognizing gait emotions by building a network architecture composed of convolution operators and long short-term memory operators without considering hierarchical attention (such as only at the joint level) is still low. One of the reasons is that the expression of human emotions in gait is achieved through the movement and coordination of various motion chains. Summary of the invention

[0006] In order to solve the above technical problems, the present invention provides an emotion recognition method and system based on human motion gait and posture.

[0007] The technical solution of the present invention is: an emotion recognition method based on human body movement gait and posture, comprising:

[0008] Step S1: preprocessing the human gait sequence data set to construct a sample set;

[0009] Step S2: preprocessing the gait data in the sample set to obtain the position and absolute speed of the root joint and the relative positions and relative speeds of the other 20 joints relative to the root joint;

[0010] Step S3: Select 5 posture features that can best distinguish different emotions based on the predefined 12 posture features;

[0011] Step S4: construct an emotion recognition model for human motion gait and posture, comprising: a gait emotion extraction module, a posture emotion extraction module and a classifier; wherein the relative position and the relative speed of the joints are input into the gait emotion extraction module, and the gait spatiotemporal features are output; the posture features are input into the posture emotion extraction module, and the posture spatiotemporal features are output; the gait spatiotemporal features and the posture spatiotemporal features are input into the classifier, and the probabilities of various emotions are output.

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

[0013] The present invention discloses an emotion recognition method based on human movement gait and posture. From the perspective of integrating the spatial and temporal information of gait and posture, the accuracy of emotion recognition based on gait and posture can be improved, and compared with the method based on facial expression, high-resolution images are not required, and the scope of application is wider. The method provided by the present invention can be used for human-computer interaction, such as intelligent robots can help autistic children better understand emotions by showing them different gaits and emotions expressed, and security monitoring cameras can recognize emotions through the gait of pedestrians, and provide early warning for the occurrence of intentional injury accidents under anger, which is conducive to reducing casualties and helping public safety. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 is a flow chart of an emotion recognition method based on human motion gait and posture in an embodiment of the present invention;

[0015] Figure 2 Schematic diagram of human joints and corresponding kinematic chains in an embodiment of the present invention;

[0016] Figure 3 Schematic diagram of a flow chart for calculating the relative position and relative speed of a joint in an embodiment of the present invention;

[0017] Figure 4 Schematic diagram of the structure of the emotion recognition model of human body movement gait and posture in an embodiment of the present invention;

[0018] Figure 5 The figure is a structural block diagram of an emotion recognition system based on human motion gait and posture in an embodiment of the present invention. DETAILED DESCRIPTION

[0019] The present invention provides an emotion recognition method based on human movement gait and posture, which can improve the accuracy of emotion recognition based on gait and posture, does not require high-resolution images, and has a wider range of applications.

[0020] In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention is further described in detail below through specific implementations and in conjunction with the accompanying drawings.

[0021] Embodiment 1

[0022] like Figure 1 As shown, an embodiment of the present invention provides an emotion recognition method based on human body movement gait and posture, comprising the following steps:

[0023] Step S1: preprocessing the human gait sequence data set to construct a sample set;

[0024] Step S2: preprocessing the gait data in the sample set to obtain the position and absolute speed of the root joint and the relative positions and relative speeds of the other 20 joints relative to the root joint;

[0025] Step S3: Select 5 posture features that can best distinguish different emotions based on the predefined 12 posture features;

[0026] Step S4: construct an emotion recognition model for human motion gait and posture, including: a gait emotion extraction module, a posture emotion extraction module and a classifier; wherein the relative position and relative speed of the joints are input into the gait emotion extraction module, and the gait spatiotemporal features are output; the posture features are input into the posture emotion extraction module, and the posture spatiotemporal features are output; the gait spatiotemporal features and the posture spatiotemporal features are input into the classifier, and the probabilities of various emotions are output.

[0027] In one embodiment, the above step S1: preprocessing the human gait sequence data set to construct a sample set specifically includes:

[0028] Step S11: obtaining a human gait sequence data set, wherein each gait sequence has 48 joint positions at each moment and an emotion label of each gait sequence; deleting gait sequences containing three or more emotion labels;

[0029] The embodiment of the present invention selects the Emotion-Gait dataset, which contains 1835 gait sequences, each of which has joint position information at 48 moments and the emotional label of the sequence. According to the emotional label (only four emotions, happy, sad, angry and neutral, are involved in the dataset), samples containing three or more emotional components are eliminated, that is, samples without obvious emotional expression are eliminated, such as samples containing "happy, sad, angry" at the same time, or "happy, sad, neutral" at the same time, or "sad, angry, neutral" at the same time, or "happy, angry, neutral" at the same time, or "happy, sad, angry, neutral" at the same time. Samples.

[0030] Step S12: using the cubic spline interpolation method to enhance the gait sequences of the emotion types with insufficient data volume, so that the sample size of each emotion type is equal, and the final sample set is obtained.

[0031] Taking into account the periodic characteristics of human gait, the cubic spline interpolation method is used to enhance the samples of emotion types with insufficient data, so that the sample sizes of all emotion types are equal, preventing the model from only learning the prior distribution of category data.

[0032] In one embodiment, the above step S2: preprocessing the gait data in the sample set to obtain the position and absolute speed of the root joint and the relative position and relative speed of the other 20 joints relative to the root joint, specifically includes: step S21: defining 21 joints of the human body, and calculating the position coordinates D of the joints in the sample set in the camera coordinate system. t Convert to relative position coordinates relative to the root joint As shown in formula (1):

[0033]

[0034] Among them, D t (i) is the position of joint i in the camera coordinate system; D t (0) is the position of the root joint in the camera coordinate system, is the relative position of joint i relative to the root joint in the camera coordinate system;

[0035] like Figure 2 As shown in the figure, 21 joints of the human body are defined, among which joint 0 is defined as the root joint. The position information of each joint at each moment in each gait sequence in the sample set is extracted, and the relative position coordinates of each joint relative to the root joint at each moment are calculated;

[0036] Step S22: Calculate the absolute velocity V of the root joint by differentiating the joint positions at adjacent moments t The relative speed of the other 20 joints relative to the root joint As shown in formulas (2) to (3):

[0037]

[0038]

[0039] Among them, t is the time.

[0040] like Figure 3 As shown, a schematic diagram of the process of calculating the relative position and relative velocity of the joints is shown.

[0041] In one embodiment, the above step S3: selecting 5 posture features that can best distinguish different emotions based on the predefined 12 posture features, specifically includes:

[0042] Define 12 posture features that may reflect emotions, calculate the histogram of the frequency distribution of posture features under different emotions, and select 5 posture features that can best distinguish different emotions based on the histogram distribution.

[0043] Based on the existing research on gesture emotion, as shown in Table 1, 12 gesture features that may reflect emotions are selected.

[0044] Table 1: 12 gesture features that reflect emotions

[0045] Serial number attitude Serial number attitude 1 The angle between the root joint and the head and neck 7 The angle between the right knee and neck and the root joint 2 The angle between the root joint and the neck and lower back 8 Angle between left knee and neck and root joint 3 The angle between the left shoulder and left wrist and left elbow 9 The angle between the right hip and right heel and the right knee 4 The angle between the right shoulder and right wrist and the right elbow 10 The angle between the left hip and left heel and left knee 5 The angle between the left and right heels and the base of the foot 11 The angle between the left and right shoulders and the neck 6 The angle between the left and right wrists and the neck 12 Human body aspect ratio

[0046] The histogram distribution of the 12 posture features under different emotions is statistically analyzed, and 5 posture features that can best distinguish different emotions are selected according to the histogram distribution. For example, the embodiment of the present invention finally selects 5 posture features that can best distinguish different emotions: 3, 4, 7, 8 and 11. The Kruskal-Wallis (KW) test and the Dwass-Steel-Critchlow-Fligner (DSCF) method are used to verify whether the selected features have significant differences in different emotions. The test results of the KW test and the DSCF method are shown in Tables 2 and 3, indicating that the selected posture features 3, 4, 7, 8 and 11 have significant differences in at least two emotions, wherein H is the statistic in the KW test, P is the probability of rejecting the null hypothesis in the hypothesis test, and W represents the sum of the ranks of the posture feature values ​​of the two emotions arranged together.

[0047] Table 2: Statistical results of the Kruskal-Wallis (KW) test

[0048] feature H value P-value 3 24467.47 0.000 4 23076.963 0.000 7 4860.700 0.000 8 4851.945 0.000 11 2674.541 0.000

[0049] Table 3: Statistical results of the Dwass-Steel-Critchlow-Fligner (DSCF) test

[0050]

[0051] In one embodiment, the gait emotion extraction module in S4 specifically includes:

[0052] Step S411: input the relative positions and relative speeds of the 21 joints into the gait emotion extraction module, and use the joint convolution layer to extract the relative position spatial features and relative speed spatial features of each joint;

[0053] like Figure 4 As shown, the embodiment of the present invention inputs the relative positions and relative speeds of 21 joints into the gait emotion extraction module, wherein the root joint adopts the absolute position and absolute speed. Among them, half of the convolution kernels in the joint convolution layer (i.e., 21 3*3 convolution kernels) learn the spatial information of the relative position of each joint of the human body, and at the same time, the other half of the convolution kernels (i.e., 21 3*3 convolution kernels) are used to learn the spatial information of the relative speed of each joint of the human body.

[0054] Step S412: grouping the relative position spatial features and the relative velocity spatial features according to five kinematic chains, inputting them into five corresponding kinematic chain attention layers respectively, extracting five kinematic chain spatial features, wherein the five kinematic chains include: trunk, left arm, right arm, left leg and right leg; extracting the temporal features of the five kinematic chain spatial features through five LSTMs respectively, and obtaining the spatiotemporal features of the five kinematic chains;

[0055] like Figure 2 As shown, the present invention divides 21 joints into 5 different kinematic chains: trunk, left arm, right arm, left leg and right leg. After the 21 joints are grouped by kinematic chain, they are input into 5 kinematic chain attention layers respectively to extract the spatial features of the 5 kinematic chains, and then the temporal features are extracted through 5 2-layer LSTMs, and finally the spatiotemporal features of the 5 kinematic chains are obtained;

[0056] Step S413: The spatiotemporal features of the five motion chains are input into the fused motion chain attention layer for fusion, and then passed through five consecutive CNNs to output the spatiotemporal features of the gait of the entire human body.

[0057] Each convolutional layer of CNN has a 3*3 convolution kernel with a stride of 1. The kernel size of the first four pooling layers is 2*2 with a stride of 2. The kernel size of the fifth pooling layer is 3*3 with a stride of 3. BatchNorm and ReLu activation functions are used after each CNN and LSTM.

[0058] In one embodiment, the above-mentioned posture emotion extraction module specifically includes:

[0059] Step S421: input the five posture features into the posture emotion extraction module, and use LSTM to extract their time features to obtain posture time features;

[0060] For human body posture features, we first extract the time features of the posture through a 2-layer LSTM to obtain the posture time features;

[0061] Step S422: extracting spatial features from the posture temporal features through a convolutional layer to obtain posture spatiotemporal features;

[0062] The two convolution kernels of the convolution layer used in this step have a size of 3*3 and a stride of 1, which are used to extract the spatial information of the posture features. After the first convolution layer, there is a pooling layer with a kernel size of 4*4 and a stride of 4. After both convolution layers, there is a pooling layer with a kernel size of 4*4 and a stride of 4. After that, it is input into a pooling layer with a kernel size of 3*3 and a stride of 3 to reduce overfitting and improve the robustness of the model.

[0063] In one embodiment, the classifier in step S4 above specifically includes:

[0064] The spatiotemporal features of gait and posture are fused using the vector superposition method and input into the classifier. The 4-layer perceptron MLP is used for emotion recognition. The number of neurons in each layer of MLP is 16, 10, 7 and 4 respectively. The output result of the last layer is put into the SoftMax function to obtain the probabilities of four emotions (happy, sad, angry and neutral). The emotion with the highest probability is taken as the final recognition result.

[0065] The present invention discloses an emotion recognition method based on human movement gait and posture. From the perspective of integrating the spatial and temporal information of gait and posture, the accuracy of emotion recognition based on gait and posture can be improved. The emotion recognition method provided by the present invention can achieve a correct recognition accuracy of 90%, and compared with the method based on facial expression, it does not require high-resolution images and has a wider range of applications. The method provided by the present invention can be used for human-computer interaction, such as intelligent robots showing autistic children different gaits and expressed emotions to help autistic children better understand emotions, and security monitoring cameras can recognize emotions through the gait of pedestrians, and provide early warnings for the occurrence of intentional injury accidents under angry emotions, which is conducive to reducing casualties and contributing to public safety.

[0066] Embodiment 2

[0067] like Figure 5 As shown, the embodiment of the present invention provides an emotion recognition system based on human body movement gait and posture, including the following modules:

[0068] A sample set construction module is used to preprocess the human gait sequence data set and construct a sample set;

[0069] Extract joint relative position and relative speed module, used to pre-process the gait data in the sample set, and obtain the position and absolute speed of the root joint and the relative position and relative speed of the other 20 joints relative to the root joint;

[0070] A posture feature determination module is used to select 5 posture features that are most capable of distinguishing different emotions based on 12 predefined posture features;

[0071] The emotion recognition model training module is used to construct an emotion recognition model for human gait and posture, and includes: a gait emotion extraction module, a posture emotion extraction module and a classifier; wherein the relative position and relative speed of the joints are input into the gait emotion extraction module, and the gait spatiotemporal features are output; the posture features are input into the posture emotion extraction module, and the posture spatiotemporal features are output; the gait spatiotemporal features and the posture spatiotemporal features are input into the classifier, and the probabilities of various emotions are output.

[0072] The above embodiments are provided only for the purpose of describing the present invention, and are not intended to limit the scope of the present invention. The scope of the present invention is defined by the appended claims. Various equivalent substitutions and modifications made without departing from the spirit and principles of the present invention should all be included within the scope of the present invention.

Claims

1. An emotion recognition method based on human motion gait and posture, It is characterized in that include: Step S1: preprocessing the human gait sequence data set to construct a sample set; Step S2: preprocessing the gait data in the sample set to obtain the position and absolute speed of the root joint and the relative positions and relative speeds of the other 20 joints relative to the root joint; Step S3: Select 5 posture features that can best distinguish different emotions based on the predefined 12 posture features; Step S4: constructing an emotion recognition model for human motion gait and posture, comprising: a gait emotion extraction module, a posture emotion extraction module and a classifier; wherein the relative position and the relative speed of the joint are input into the gait emotion extraction module, and the gait spatiotemporal features are output; the posture features are input into the posture emotion extraction module, and the posture spatiotemporal features are output; the gait spatiotemporal features and the posture spatiotemporal features are input into the classifier, and the probabilities of various emotions are output; The gait emotion extraction module specifically includes: Step S411: inputting the relative positions and relative speeds of the 21 joints into a gait emotion extraction module, and using a joint convolution layer to extract relative position spatial features and relative speed spatial features of each joint; Step S412: grouping the relative position spatial features and the relative velocity spatial features according to five kinematic chains, inputting them into five corresponding kinematic chain attention layers respectively, extracting five kinematic chain spatial features, wherein the five kinematic chains include: torso, left arm, right arm, left leg and right leg; extracting the temporal features of the five kinematic chain spatial features through five LSTMs respectively, and obtaining the spatiotemporal features of the five kinematic chains; Step S413: input the spatiotemporal features of the five kinematic chains into the fused kinematic chain attention layer for fusion, and then pass through five consecutive CNNs to output the spatiotemporal features of the gait of the entire human body; The posture emotion extraction module specifically includes: Step S421: input the five posture features into a posture emotion extraction module, and use LSTM to extract their time features to obtain posture time features; Step S422: extracting the spatial features of the posture temporal features through a convolutional layer to obtain posture spatiotemporal features.

2. The method for emotion recognition based on human motion gait and posture according to claim 1, It is characterized in that The step S1: preprocessing the human gait sequence data set to construct a sample set, specifically includes: Step S11: obtaining a human gait sequence data set, wherein each gait sequence has 48 joint positions at each moment and an emotion label of each gait sequence; deleting gait sequences containing three or more emotion labels; Step S12: using the cubic spline interpolation method to enhance the gait sequences of the emotion types with insufficient data, so that the sample size of each emotion type is equal, and the final sample set is obtained.

3. The method for emotion recognition based on human motion gait and posture according to claim 2, It is characterized in that The step S2: preprocessing the gait data in the sample set to obtain the position and absolute speed of the root joint and the relative position and relative speed of the other 20 joints relative to the root joint, specifically includes: Step S21: define 21 joints of the human body and calculate the position coordinates of the joints in the sample set in the camera coordinate system Convert to relative position coordinates relative to the root joint , as shown in formula (1): ; (1) in, For joints Position in the camera coordinate system; is the position of the root joint in the camera coordinate system, For joints The relative position with respect to the root joint in the camera coordinate system; Step S22: Calculate the absolute velocity of the root joint by differentiating the joint positions at adjacent moments The relative speed of the other 20 joints relative to the root joint , as shown in formulas (2) to (3): (2) (3) Among them, t is the time.

4. The method for emotion recognition based on human motion gait and posture according to claim 1, It is characterized in that The step S3: selecting 5 posture features that can best distinguish different emotions based on the predefined 12 posture features, specifically including: 12 posture features that may reflect emotions are defined, and a histogram of the frequency distribution of posture features under different emotions is statistically analyzed. Five posture features that can best distinguish different emotions are selected based on the histogram distribution.

5. The method for emotion recognition based on human motion gait and posture according to claim 4, It is characterized in that The classifier in step S4 specifically includes: After the gait spatiotemporal features and the posture spatiotemporal features are fused, they are input into the classifier, and emotion recognition is performed using a 4-layer perceptron, and finally the probabilities of various emotions are output.

6. An emotion recognition system based on human movement gait and posture, It is characterized in that Includes the following modules: A sample set construction module is used to preprocess the human gait sequence data set and construct a sample set; A joint relative position and relative speed extraction module is used to pre-process the gait data in the sample set to obtain the position and absolute speed of the root joint and the relative positions and relative speeds of the other 20 joints relative to the root joint; A posture feature determination module is used to select 5 posture features that are most capable of distinguishing different emotions based on 12 predefined posture features; The emotion recognition model training module is used to construct an emotion recognition model for human motion gait and posture, comprising: a gait emotion extraction module, a posture emotion extraction module and a classifier; wherein the relative position and the relative speed of the joint are input into the gait emotion extraction module, and the gait spatiotemporal features are output; the posture features are input into the posture emotion extraction module, and the posture spatiotemporal features are output; the gait spatiotemporal features and the posture spatiotemporal features are input into the classifier, and the probabilities of various emotions are output; The gait emotion extraction module specifically includes: Step S411: inputting the relative positions and relative speeds of the 21 joints into a gait emotion extraction module, and using a joint convolution layer to extract relative position spatial features and relative speed spatial features of each joint; Step S412: grouping the relative position spatial features and the relative velocity spatial features according to five kinematic chains, inputting them into five corresponding kinematic chain attention layers respectively, extracting five kinematic chain spatial features, wherein the five kinematic chains include: torso, left arm, right arm, left leg and right leg; extracting the temporal features of the five kinematic chain spatial features through five LSTMs respectively, and obtaining the spatiotemporal features of the five kinematic chains; Step S413: input the spatiotemporal features of the five kinematic chains into the fused kinematic chain attention layer for fusion, and then pass through five consecutive CNNs to output the spatiotemporal features of the gait of the entire human body; The posture emotion extraction module specifically includes: Step S421: input the five posture features into a posture emotion extraction module, and use LSTM to extract their time features to obtain posture time features; Step S422: extracting the spatial features of the posture temporal features through a convolutional layer to obtain posture spatiotemporal features.

Citation Information

Patent Citations

  • User identity recognition method and system in combination with user gait information

    CN112101176A

  • Individual emotion recognition method fusing expressions and postures

    CN114170540A