Driver emotion grading recognition method and device based on EmoNet model and computer device

By combining the EmoNet model with CNN and Bi-LSTM, using the hybrid attention module and I-MLP/SVM network, the hierarchical threshold interval of the two-dimensional emotion model is set, which solves the problem of low driver emotion recognition accuracy in the existing technology. Achieving more fine-grained driver emotion classification recognition and higher accuracy.

CN118736639APending Publication Date: 2024-10-01CHENGDU UNIVERSITY OF TECHNOLOGY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410715360.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

The existing technology lacks fine-grained research in driver emotion recognition, single-modal recognition is limited, multi-modal input data does not conform to actual emotional expressions, and there is a lack of research on the differential impact of driver emotional expressions, resulting in low accuracy. .

Method used

The driver emotion classification recognition method based on the EmoNet model is used to extract feature vectors through HOG and circular LBP algorithms, combined with CNN and Bi-LSTM to extract emotional features, using a hybrid attention module to process the feature vectors, and through I-MLP and SVM. The grading network performs grading recognition of driver emotions, and sets the grading threshold interval of the two-dimensional emotion model to perform multiple gradings.

Benefits of technology

It improves the accuracy of emotion classification recognition, captures subtle changes in emotion, constructs a driver emotion classification data set that conforms to the driving environment, and provides a more fine-grained driver emotion classification research framework.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118736639A_ABST
    Figure CN118736639A_ABST
Patent Text Reader

Abstract

The invention relates to the field of driver emotion recognition, in particular to a driver emotion grading recognition method and device based on an EmoNet model and a computer device. The method comprises the following steps: setting a grading threshold interval for mapping the driver emotion expression degree difference, and carrying out multiple grades on the driver emotion according to the grading threshold interval; the EmoNet model is trained, and the training process comprises the steps that feature vectors of a CK + data set are extracted through an HOG algorithm and a circular LBP algorithm respectively, and then the feature vectors are fused to form a fused feature vector; extracting an emotional feature vector from the fused feature vector through the CNN and the Bi-LSTM; processing the emotion feature vector through HAM to obtain a mixed attention feature vector; inputting the mixed attention feature vector into a grading network of I-MLP and SVM, and completing driver emotion grading recognition according to multiple grades of driver emotion; and performing hierarchical recognition on the driver emotion through the trained EmoNet model. The method is suitable for driver emotion recognition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of driver emotion recognition, and in particular to a driver emotion classification recognition method, device and computer device based on an EmoNet model. Background Art

[0002] In the actual driving environment, the driver's state and behavior are affected by multiple factors such as driving emotions and physical load, among which the driver's emotions are the key influencing factors of their state and behavior. The driver's emotional fluctuations will affect the brain's judgment and perception ability, bringing safety hazards to road traffic. Therefore, detecting the driver's emotions can help reduce the safety risks brought by negative emotions. At the same time, the driver's emotion classification recognition can study the impact of the differences in the degree of emotional expression on driving behavior, providing a more accurate analysis basis for a deeper understanding of the relationship between driver emotions and driving behavior.

[0003] The traditional method is to use machine learning algorithms for emotion recognition. With the improvement of computing power and the emergence of end-to-end deep learning models, more and more researchers have begun to apply deep learning to driver emotion recognition. For example, the driver static facial expression recognition system based on FaceNet and Inception-Resnet networks. Since emotion recognition is a complex process, in order to solve the limitations of using a single modality for driver emotion recognition, the use of multimodal data can improve the accuracy of emotion recognition, and compared with single-modality emotion recognition, multimodal emotion recognition has better robustness in complex situations. For example, the multimodal model CogEmoNet uses the driver's facial video and cognitive information (including age, gender, and driving age) as input to comprehensively analyze the driver's emotions.

[0004] Most existing technologies are based on the classification and recognition of driver emotions. They do not study the impact of differences in driver emotion expression on driving behavior. There is also a lack of an integrated driver emotion recognition model. Therefore, the accuracy of driver emotion recognition is not high. However, there are limitations to studying driver emotion recognition at a more fine-grained level. First, as a complex recognition process, a single modality has great limitations in practice. Second, multi-modal input data should conform to the actual expression of emotions. Second, most studies on driver negative emotions are based on a certain emotion. Finally, there is a lack of research focusing on differences in driver emotion expression. Summary of the invention

[0005] The purpose of the present invention is to overcome the shortcomings of the prior art and provide a method, device and computer device for driver emotion classification recognition based on the EmoNet model, thereby improving the accuracy of emotion classification recognition.

[0006] The present invention adopts the following technical solutions to achieve the above-mentioned purpose. In a first aspect, the present invention provides a driver emotion classification recognition method based on the EmoNet model, comprising:

[0007] S1. Setting a grading threshold interval that maps the differences in the degree of driver's emotional expression, and performing multiple grading of the driver's emotions according to the grading threshold interval;

[0008] S2. Train the EmoNet model. The training process includes:

[0009] The feature vectors of the CK+ dataset are extracted by HOG and circular LBP algorithms respectively, and then the feature vectors are fused to form a fused feature vector;

[0010] Extract the emotion feature vector from the fused feature vector through CNN and Bi-LSTM;

[0011] The emotion feature vector is processed by HAM to obtain the mixed attention feature vector;

[0012] The mixed attention feature vector is input into the hierarchical network of I-MLP and SVM to complete the driver emotion classification recognition according to the multiple classifications of driver emotions;

[0013] S3. Use the trained EmoNet model to classify and identify the driver's emotions.

[0014] Furthermore, S1 specifically includes:

[0015] The pleasure and arousal values ​​of the AffectNet dataset are decoded and combined with a two-dimensional emotion model of the pleasure and arousal values. The two-dimensional emotion model consists of two dimensions, pleasure and arousal. Emotions are expressed in a two-dimensional space through these two dimensions. In the two-dimensional emotion space of pleasure and arousal, a grading threshold interval that maps the differences in the degree of driver emotion expression is set, and the driver's emotions are graded in multiple ways according to the grading threshold interval.

[0016] Furthermore, the emotion feature vector is processed by HAM to obtain the mixed attention feature vector, which specifically includes:

[0017] The input emotion feature vector is used to generate a channel attention vector through the channel attention module, and the generated channel attention vector is multiplied with the input emotion feature vector to obtain a channel attention feature vector;

[0018] In the spatial attention module, the channel separation technology is used to separate the channel attention feature vector into a key channel group vector and a sub-key channel group vector. The key channel group vector and the sub-key channel group vector are processed by nonlinear operation to obtain the key spatial attention vector and the sub-key spatial attention vector.

[0019] Multiply the key spatial attention vector with the key channel group vector to obtain a first mixed attention feature vector, multiply the sub-key spatial attention vector with the sub-key channel group vector to obtain a second mixed attention feature vector, and add the first mixed attention feature vector to the second mixed attention feature vector to obtain a mixed attention feature vector.

[0020] Furthermore, generating a channel attention vector from the input emotion feature vector through the channel attention module specifically includes:

[0021] Performing average pooling and maximum pooling operations on the input emotion feature vector to obtain an average pooling vector and a maximum pooling vector, and processing the average pooling vector and the maximum pooling vector through an adaptive mechanism module to obtain a first feature vector;

[0022] The channel attention vector is obtained by processing the first feature vector through a one-dimensional convolution block and an activation function.

[0023] Furthermore, obtaining the key space attention vector and the sub-key space attention vector specifically includes:

[0024] In the spatial attention module, channel separation technology is used to separate the channel attention feature vector into a key channel group vector and a sub-key channel group vector. Average pooling and maximum pooling operations are performed on the key channel group vector and the sub-key channel group vector. The output average pooling vector and maximum pooling vector are concatenated to form two pairs of feature descriptors. The feature descriptors are convolved with the shared convolutional layer to generate two pairs of attention vectors. The two pairs of attention vectors are processed by nonlinear operations to obtain the key spatial attention vector and the sub-key spatial attention vector.

[0025] In a second aspect, the present invention provides a driver emotion classification recognition device based on the EmoNet model, which is used to implement the driver emotion classification recognition method based on the EmoNet model as described above, comprising:

[0026] An emotion grading module is used to set a grading threshold interval that maps the differences in the degree of driver emotion expression, and to grade the driver's emotions in multiple ways according to the grading threshold interval;

[0027] The model training module is used to train the EmoNet model. The training process includes:

[0028] The feature vectors of the CK+ dataset are extracted by HOG and circular LBP algorithms respectively, and then the feature vectors are fused to form a fused feature vector;

[0029] Extract the emotion feature vector from the fused feature vector through CNN and Bi-LSTM;

[0030] The emotion feature vector is processed by HAM to obtain the mixed attention feature vector;

[0031] The mixed attention feature vector is input into the hierarchical network of I-MLP and SVM to complete the driver emotion classification recognition according to the multiple classifications of driver emotions;

[0032] The emotion recognition module is used to classify the driver's emotions through the trained EmoNet model.

[0033] Furthermore, the emotion grading module is specifically used to decode the pleasure and arousal values ​​of the AffectNet dataset, and combine the two-dimensional emotion model of the pleasure and arousal values. The two-dimensional emotion model is composed of two dimensions, pleasure and arousal. Emotions are expressed in a two-dimensional space through these two dimensions. In the two-dimensional emotion space of pleasure and arousal, a grading threshold interval is set to map the differences in the degree of driver emotion expression, and the driver's emotions are graded in multiple ways according to the grading threshold interval.

[0034] Furthermore, the model training module is specifically used to generate a channel attention vector from the input emotion feature vector through the channel attention module, and multiply the generated channel attention vector with the input emotion feature vector to obtain the channel attention feature vector;

[0035] In the spatial attention module, the channel separation technology is used to separate the channel attention feature vector into a key channel group vector and a sub-key channel group vector. The key channel group vector and the sub-key channel group vector are processed by nonlinear operation to obtain the key spatial attention vector and the sub-key spatial attention vector.

[0036] Multiply the key spatial attention vector with the key channel group vector to obtain a first mixed attention feature vector, multiply the sub-key spatial attention vector with the sub-key channel group vector to obtain a second mixed attention feature vector, and add the first mixed attention feature vector to the second mixed attention feature vector to obtain a mixed attention feature vector.

[0037] Furthermore, the model training module is specifically used to perform average pooling operations and maximum pooling operations on the input emotion feature vector to obtain an average pooling vector and a maximum pooling vector, process the average pooling vector and the maximum pooling vector through the adaptive mechanism module to obtain a first feature vector, and process the first feature vector through a one-dimensional convolution block and an activation function to obtain a channel attention vector;

[0038] In the spatial attention module, channel separation technology is used to separate the channel attention feature vector into a key channel group vector and a sub-key channel group vector. Average pooling and maximum pooling operations are performed on the key channel group vector and the sub-key channel group vector. The output average pooling vector and maximum pooling vector are concatenated to form two pairs of feature descriptors. The feature descriptors are convolved with the shared convolutional layer to generate two pairs of attention vectors. The two pairs of attention vectors are processed by nonlinear operations to obtain the key spatial attention vector and the sub-key spatial attention vector.

[0039] In a third aspect, the present invention provides a computer device, including a memory, wherein the memory stores program instructions, and when the program instructions are executed, the driver emotion classification recognition method based on the EmoNet model as described above is executed.

[0040] The beneficial effects of the present invention are:

[0041] In view of the lack of relevant datasets on the degree of driver emotional expression, the present invention proposes a graded threshold interval for mapping the differences in the degree of emotional expression based on the dimensional emotion theory and the continuous emotion label values ​​of the AffectNet dataset, combined with a two-dimensional emotion model of pleasure and arousal values, and constructs a driver emotion grading dataset that conforms to the driving environment.

[0042] In addition, in view of the lack of research on the impact of differences in the degree of emotional expression on driving behavior and the lack of an integrated driver emotion recognition research framework, the present invention proposes a driver emotion grading model EmoNet, and innovatively proposes a more fine-grained driver emotion grading recognition research framework in a non-contact driving scenario. First, CNN is used to extract features with high emotion correlation and retain global information; then, the emotion feature vector extracted by the CNN network is transferred to the Bi-LSTM network, which can capture the dependency relationship and sequence temporal relationship between these features; secondly, in order to enhance the ability to extract key emotional features, a hybrid attention module is introduced to extract hybrid feature vectors with high emotion correlation; finally, through the fully connected layer, a hierarchical network neural layer based on I-MLP and SVM is added, and a higher-level feature representation is learned using the I-MLP network, and then the feature space mapping and nonlinear classification are processed by SVM to complete the driver emotion grading recognition task, thereby better capturing subtle changes in emotions and improving the accuracy of emotion grading. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 is a schematic diagram of the mapping distribution of driver emotion classification provided by an embodiment of the present invention;

[0044] Figure 2is a flowchart of driver emotion classification recognition based on the EmoNet model provided by an embodiment of the present invention;

[0045] Figure 3 It is a schematic diagram of the CNN+Bi-LSTM network structure provided by an embodiment of the present invention;

[0046] Figure 4 is a schematic diagram of vector splicing provided by an embodiment of the present invention;

[0047] Figure 5 is a schematic diagram of the network structure of the hybrid attention mechanism provided by an embodiment of the present invention;

[0048] Figure 6 Schematic diagram of the network structure of the channel attention mechanism provided by an embodiment of the present invention;

[0049] Figure 7 is a schematic diagram of the network structure of the spatial attention mechanism provided by an embodiment of the present invention;

[0050] Figure 8 is a schematic diagram of the I-MLP neural network structure provided by an embodiment of the present invention;

[0051] Fig. 9 is a schematic diagram of the structure of a multi-layer perceptron provided by an embodiment of the present invention;

[0052] Fig.10 Schematic diagram of a linear SVM provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0053] To make the purpose, technical solution and advantages of the embodiments of the present invention more clear, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0054] Based on the dimensional emotion theory, the present invention decodes the pleasure and arousal values ​​of the AffectNet dataset, combines the two-dimensional emotion model of the pleasure and arousal values, and sets the graded threshold interval that maps the differences in the degree of emotional expression of drivers.

[0055] The two-dimensional emotion model consists of two dimensions: pleasure and arousal. Emotions are expressed in a two-dimensional space through these two dimensions. The present invention achieves nine levels of driver emotions by setting emotion boundary thresholds in the two-dimensional emotion space of pleasure and arousal. Figure 1 The mapping distribution of emotion grades in the two-dimensional emotion space is shown. The horizontal axis in the figure is pleasure (Valence), and the vertical axis represents arousal (Arousal). The pleasure from left to right represents emotions from negative emotions to positive emotions, and the vertical axis from bottom to top represents emotions from low intensity to high intensity.

[0056] Table 1 describes in detail the two-dimensional threshold intervals of the pleasantness and arousal of nine different levels of driver emotions.

[0057] Table 1 Driver emotion classification threshold range

[0058] mood Pleasure range Arousal range Alert status Mild sadness (-1.0,0.7] (0.1,0.5] Driving reminder Severe sadness (-1.0,0.7] (0.5,1.0] Driving warning Mild fear (-0.7,0.3] (0.6,1.0] Driving reminder Severe fear (-1.0,0.7] (-0.5,0.1] Driving warning Mild anger (-0.6,0.1] (-0.3,0.3] Driving reminder Severe anger (-1.0,0.7] (-1.0,-0.5] Driving warning Mildly happy (0.5,0.7] (0.3,0.6] Driving safety Severely happy (0.7,1.0] (0.6,1.0] Driving warning neutral (-0.1,0.1] (-0.1,0.1] Driving safety

[0059] The present invention performs driver emotion classification recognition based on the EmoNet model, such as Figure 2 As shown in the figure, in the feature extraction network, the feature vectors of the CK+ dataset are firstly extracted by the HOG and circular LBP algorithms respectively, and then the feature vectors are fused at the feature layer to form a fused feature vector; secondly, the fused feature vector is used to extract the emotion feature vector through CNN+Bi-LSTM, and then the emotion feature vector is used to obtain the mixed attention feature vector through HAM; in the hierarchical network neural layer, the mixed attention feature vector is used to complete the driver emotion grading recognition task according to the driver emotion grading threshold setting through the hierarchical network of I-MLP and SVM.

[0060] Specifically, convolutional neural networks (CNNs) are widely used in fields such as image processing. They can effectively extract local features and retain global information when processing video sequence data. When the long short-term memory network (LSTM) models the input of sequence features, it is unable to perform reverse information encoding. The bidirectional long short-term memory network (Bi-LSTM) can solve the limitation that LSTM cannot simultaneously obtain the contextual information of sequence features, and can learn the potential temporal patterns and semantic information of sequence features, and can also capture the temporal information of sequence features.

[0061] The driver emotion classification task adopts a combination of CNN and Bi-LSTM networks. The CNN network extracts the driver emotion feature vector from the video sequence data, and then transmits the driver emotion feature vector to the Bi-LSTM network. The Bi-LSTM can capture the temporal dependency between the driver emotion feature vectors.

[0062] like Figure 3 As shown, the input features are divided into (x1, x2…x t ), the divided (x1, x2…x t ) Input features are passed through the convolutional neural network to obtain local features and retain the vector of global information (y′1, y′2…y′ t ), the resulting vector (y′1, y′2…y′ t ) obtains a vector with context information (y1, y2...y t ).

[0063] In one embodiment of the present invention, CNN adopts Resnet152.

[0064] Specifically, input feature x t The feature vector is obtained through the bottleneck layer 1 In the bottleneck layer 1, the input feature x t Perform a 7×7 convolution operation, batch normalization operation, ReLU activation function operation, and 3×3 maximum pooling operation.

[0065] Eigenvector The feature vector is obtained by passing the bottleneck layer 2×3 In the bottleneck layer 2, the feature vector Perform 1×1 convolution, batch normalization, 3×3 convolution, batch normalization, 1×1 convolution, batch normalization, and ReLU activation. The bottleneck layer 2 operation will be performed three times, and when the bottleneck layer 2 operation is performed for the first time, The dimension is increased, a residual connection is made with the output of the first bottleneck layer 2, and then a batch normalization operation is performed.

[0066] Eigenvector The feature vector is obtained by passing the bottleneck layer 3×8 At the bottleneck layer 3, the feature vector Perform 1×1 convolution, batch normalization, 3×3 convolution, batch normalization, 1×1 convolution, batch normalization, and ReLU activation. The bottleneck layer 3 operation will be performed 8 times, and when the bottleneck layer 3 operation is performed for the first time, The dimension is increased, a residual connection is made with the output of the first bottleneck layer 3, and then a batch normalization operation is performed.

[0067] Eigenvector The feature vector is obtained by passing the bottleneck layer 4×36 In the bottleneck layer 4, the feature vector Perform 1×1 convolution, batch normalization, 3×3 convolution, batch normalization, 1×1 convolution, batch normalization, and ReLU activation. The bottleneck layer 4 operation will be performed 36 times, and when the bottleneck layer 4 operation is performed for the first time, The dimension is increased, a residual connection is made with the output of the first bottleneck layer 4, and then a batch normalization operation is performed.

[0068] Eigenvector The feature vector is obtained by passing the bottleneck layer 5×3 At the bottleneck layer 5, the feature vector Perform 1×1 convolution, batch normalization, 3×3 convolution, batch normalization, 1×1 convolution, batch normalization, and ReLU activation. The bottleneck layer 5 operation will be performed 36 times, and when the bottleneck layer 5 operation is performed for the first time, The dimension is increased, a residual connection is made with the output of the first bottleneck layer 5, and then a batch normalization operation is performed.

[0069] Eigenvector Perform an adaptive average pooling operation to change the size of the feature map to 1×1, and then perform a fully connected layer connection to obtain the feature vector y′ t .

[0070] like Figure 4 As shown, the obtained eigenvector (y′1, y′2…y′ t ) Through the bidirectional long short-term memory network, the feature vector (y′1, y′2…y′) is processed in the forward direction. t ), the actual input format is (y′1, y′2…y′ t ) will get the positive eigenvector (y1, y2...y t ), and then the forward eigenvector (y1, y2...y t ) is weighted summed to obtain the forward vector y r ; According to the reverse processing feature vector (y′1, y′2…y′ t ), its actual input form is (y′ t ...y′2, y′1), we will get the reverse eigenvector (y1, y2...y t ), and then the reverse eigenvector (y1, y2...y t ) is weighted summed to obtain the reverse vector y l ; Finally, for the forward vector y r and the reverse vector y l Make splicing.

[0071] Specifically, in driver emotion recognition, different types of features such as voice and facial expression may each have their own importance. The Hybrid Attention Mechanism (HAM) can flexibly adjust the weights of different features to enhance the perception of key features. Figure 5 The network structure diagram of hybrid attention is shown. First, the input feature F generates a channel attention vector A through the channel attention module (CAM module) C ∈R 1×1×C , the generated channel attention vector A C ∈R 1×1×CMultiplying the input feature F to obtain the channel attention feature F′; then, in the spatial attention module (SAM module), the channel attention feature F′ uses channel separation technology to form a key channel group F1′ and a sub-key channel group F2′. The key channel group F1′ and the sub-key channel group F2′ are used to obtain the key spatial attention vector A through a series of nonlinear operations. s,1 (F1′) and the sub-key space attention vector A s,2 (F2′), then the key space attention vector A s,1 (F1′) is multiplied by the key channel group F1′ to obtain F″1, the secondary key spatial attention vector A s,2 (F2′) is multiplied with the secondary key channel group F2′ to obtain F″2; finally, F″1 and F″2 are added to obtain the mixed attention feature F″.

[0072] Figure 6 The network structure diagram of the channel attention mechanism is shown. First, the input feature F is average pooled and max pooled to produce the average pooled vector and the maximum pooling vector Then, the average pooling vector and the maximum pooling vector Get richer feature vectors quickly through adaptive mechanisms Get the feature vector The calculation process is Among them, α and β are learnable parameters; finally, Through the one-dimensional convolution block and then the sigmoid activation function, we finally get the channel attention vector A C .

[0073] Figure 7 The network structure diagram of the spatial attention mechanism is shown. First, the channel separation technique is used to divide the channel attention feature F′ into the key channel group F1′ and the sub-key channel group F2′. Secondly, the key channel group F1′ and the sub-key channel group F2′ are averaged and max pooled, and the output average pooled vector and max pooled vector are concatenated to form two pairs of feature descriptors. Subsequently, the feature descriptors are convolved with the shared convolutional layer (kernel size is 7×7) to generate two pairs of attention vectors, one pair is and The other pair is and Then, the two pairs of two-dimensional attention vectors are processed by a series of nonlinear operations to obtain the key space attention vector A s,1 (F1') and the sub-key space attention vector A s,2 (F2').

[0074] Figure 8The I-MLP neural network structure is shown. The Dropout mechanism is introduced into the MLP to construct the I-MLP neural network. At the same time, the ReLu function is used to prevent the gradient from disappearing. Dropout is equivalent to using one of the sub-networks each time a training task is performed. When the number of network nodes is large, the sub-network used will change every time a training is performed, which can greatly reduce the complex relationship between neurons. The dotted box in the figure represents the neuron that has been processed by Dropout.

[0075] like Fig. 9 As shown in the figure, I-MLP is a multi-layer perceptron that uses the relu activation function and uses dropout, whose value is = 0.8. Dropout is equivalent to using one of the sub-networks each time a training task is performed. When the number of network nodes is large, the sub-network used will change each time a training is performed, which can greatly reduce the complex relationship between neurons. Each node in the hidden layer 1 After that, each node in the hidden layer The value of the output layer is Where g is the activation function.

[0076] Fig.10 The linear SVM is shown. The AffectNet-DGS dataset is more inclined to be approximately linearly separable, but the two levels of the severity of the driver's emotions can be regarded as a continuous quantization process rather than a strict nonlinear distribution. In this case, the linear SVM is a suitable choice because there is a certain linear relationship or linear boundary between the different levels of driver emotion, so that the data can be approximately separated by a linear hyperplane in the feature space.

[0077] Under the same data processing and the same data set, the present invention conducted a comparative experiment on the driver emotion classification recognition task, among which the accuracy of the CNN+Bi-LSTM+HAM+I-MLP model reached 0.6759, the accuracy of the CNN+Bi-LSTM+HAM+SVM model reached 0.6923, and the accuracy of the EmoNet model reached 0.7135. The accuracy results of the comparative experiments of each model are shown in Table 2.

[0078] Table 2 Comparison of accuracy results of each model

[0079] Model Accuracy CNN+Bi-LSTM+HAM+I-MLP 67.59% CNN+Bi-LSTM+HAM+SVM 69.23% EmoNet 71.35%

[0080] By comparing the test results, we can see the excellent performance of the EmoNet model, which fully verifies the feasibility and effectiveness of the scheme proposed in this paper in driver emotion classification recognition.

[0081] The above is only a preferred embodiment of the present invention. It should be understood that the present invention is not limited to the form disclosed herein, and should not be regarded as excluding other embodiments, but can be used in various other combinations, modifications and environments, and can be modified within the scope of the concept described herein through the above teachings or the technology or knowledge of the relevant field. The changes and modifications made by those skilled in the art shall not deviate from the spirit and scope of the present invention, and shall be within the scope of protection of the claims attached to the present invention.

Claims

1. The driver emotion classification recognition method based on the EmoNet model is characterized by: include: S1. Setting a grading threshold interval that maps the differences in the degree of driver's emotional expression, and performing multiple grading of the driver's emotions according to the grading threshold interval; S2. Train the EmoNet model. The training process includes: The feature vectors of the CK+ dataset are extracted by HOG and circular LBP algorithms respectively, and then the feature vectors are fused to form a fused feature vector; Extract the emotion feature vector from the fused feature vector through CNN and Bi-LSTM; The emotion feature vector is processed by HAM to obtain the mixed attention feature vector; The mixed attention feature vector is input into the hierarchical network of I-MLP and SVM to complete the driver emotion classification recognition according to the multiple classifications of driver emotions; S3. Use the trained EmoNet model to classify and identify the driver's emotions.

2. The driver emotion classification recognition method based on the EmoNet model according to claim 1 is characterized in that: S1 specifically includes: The pleasure and arousal values ​​of the AffectNet dataset are decoded and combined with a two-dimensional emotion model of the pleasure and arousal values. The two-dimensional emotion model consists of two dimensions, pleasure and arousal. Emotions are expressed in a two-dimensional space through these two dimensions. In the two-dimensional emotion space of pleasure and arousal, a grading threshold interval that maps the differences in the degree of driver emotion expression is set, and the driver's emotions are graded in multiple ways according to the grading threshold interval.

3. The driver emotion classification recognition method based on the EmoNet model according to claim 1 is characterized in that: The emotional feature vector is processed by HAM to obtain the mixed attention feature vector, which specifically includes: The input emotion feature vector is used to generate a channel attention vector through the channel attention module, and the generated channel attention vector is multiplied with the input emotion feature vector to obtain a channel attention feature vector; In the spatial attention module, the channel separation technology is used to separate the channel attention feature vector into a key channel group vector and a sub-key channel group vector. The key channel group vector and the sub-key channel group vector are processed by nonlinear operation to obtain the key spatial attention vector and the sub-key spatial attention vector. Multiply the key spatial attention vector with the key channel group vector to obtain a first mixed attention feature vector, multiply the sub-key spatial attention vector with the sub-key channel group vector to obtain a second mixed attention feature vector, and add the first mixed attention feature vector to the second mixed attention feature vector to obtain a mixed attention feature vector.

4. The driver emotion classification recognition method based on the EmoNet model according to claim 3 is characterized in that: The channel attention module generates a channel attention vector from the input emotion feature vector, which specifically includes: Performing average pooling and maximum pooling operations on the input emotion feature vector to obtain an average pooling vector and a maximum pooling vector, and processing the average pooling vector and the maximum pooling vector through an adaptive mechanism module to obtain a first feature vector; The channel attention vector is obtained by processing the first feature vector through a one-dimensional convolution block and an activation function.

5. The driver emotion classification recognition method based on the EmoNet model according to claim 3 is characterized in that: Obtaining the key space attention vector and the sub-key space attention vector specifically includes: In the spatial attention module, channel separation technology is used to separate the channel attention feature vector into a key channel group vector and a sub-key channel group vector. Average pooling and maximum pooling operations are performed on the key channel group vector and the sub-key channel group vector. The output average pooling vector and maximum pooling vector are concatenated to form two pairs of feature descriptors. The feature descriptors are convolved with the shared convolutional layer to generate two pairs of attention vectors. The two pairs of attention vectors are processed by nonlinear operations to obtain the key spatial attention vector and the sub-key spatial attention vector.

6. A driver emotion classification recognition device based on the EmoNet model, used to implement the driver emotion classification recognition method based on the EmoNet model as described in any one of claims 1 to 5, characterized in that: include: An emotion grading module is used to set a grading threshold interval that maps the differences in the degree of driver emotion expression, and to grade the driver's emotions in multiple ways according to the grading threshold interval; The model training module is used to train the EmoNet model. The training process includes: The feature vectors of the CK+ dataset are extracted by HOG and circular LBP algorithms respectively, and then the feature vectors are fused to form a fused feature vector; Extract the emotion feature vector from the fused feature vector through CNN and Bi-LSTM; The emotion feature vector is processed by HAM to obtain the mixed attention feature vector; The mixed attention feature vector is input into the hierarchical network of I-MLP and SVM to complete the driver emotion classification recognition according to the multiple classifications of driver emotions; The emotion recognition module is used to classify the driver's emotions through the trained EmoNet model.

7. The driver emotion classification recognition device based on the EmoNet model according to claim 6 is characterized in that: The emotion grading module is specifically used to decode the pleasure and arousal values ​​of the AffectNet dataset, and combine them with a two-dimensional emotion model of the pleasure and arousal values. The two-dimensional emotion model consists of two dimensions, pleasure and arousal. Emotions are expressed in a two-dimensional space through these two dimensions. In the two-dimensional emotion space of pleasure and arousal, a grading threshold interval is set to map the differences in the degree of driver emotion expression, and the driver's emotions are graded in multiple ways according to the grading threshold interval.

8. The driver emotion classification recognition device based on the EmoNet model according to claim 6, characterized in that: The model training module is specifically used to generate a channel attention vector from the input emotion feature vector through the channel attention module, and multiply the generated channel attention vector with the input emotion feature vector to obtain the channel attention feature vector; In the spatial attention module, the channel separation technology is used to separate the channel attention feature vector into a key channel group vector and a sub-key channel group vector. The key channel group vector and the sub-key channel group vector are processed by nonlinear operation to obtain the key spatial attention vector and the sub-key spatial attention vector. Multiply the key spatial attention vector with the key channel group vector to obtain a first mixed attention feature vector, multiply the sub-key spatial attention vector with the sub-key channel group vector to obtain a second mixed attention feature vector, and add the first mixed attention feature vector to the second mixed attention feature vector to obtain a mixed attention feature vector.

9. The driver emotion classification recognition device based on the EmoNet model according to claim 8, characterized in that: The model training module is specifically used to perform average pooling operations and maximum pooling operations on the input emotion feature vector to obtain an average pooling vector and a maximum pooling vector, process the average pooling vector and the maximum pooling vector through the adaptive mechanism module to obtain a first feature vector, and process the first feature vector through a one-dimensional convolution block and an activation function to obtain a channel attention vector; In the spatial attention module, channel separation technology is used to separate the channel attention feature vector into a key channel group vector and a sub-key channel group vector. Average pooling and maximum pooling operations are performed on the key channel group vector and the sub-key channel group vector. The output average pooling vector and maximum pooling vector are concatenated to form two pairs of feature descriptors. The feature descriptors are convolved with the shared convolutional layer to generate two pairs of attention vectors. The two pairs of attention vectors are processed by nonlinear operations to obtain the key spatial attention vector and the sub-key spatial attention vector.

10. A computer device comprising a memory, wherein the memory stores program instructions, characterized in that: When the program instructions are executed, the driver emotion classification recognition method based on the EmoNet model as described in any one of claims 1 to 5 is executed.