A dynamic expression recognition model acquisition method, recognition method and device

By adopting a dual-stream CNN model based on motion attention transfer network in dynamic expression recognition, capturing the appearance and motion characteristics of dynamic videos and performing feature interaction, the problem of low accuracy of dynamic expression recognition in the existing technology is solved, and the recognition accuracy is significantly improved. and reliability.

CN112699772BInactive Publication Date: 2024-09-06CHANGZHOU CODEBASE DATA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011577690.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-28
Publication Date
2024-09-06
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

When the existing technology uses the classic CNN-RNN network structure for dynamic expression recognition, it cannot effectively capture the dynamic changes and muscle movement areas between expression video frames, resulting in low recognition accuracy.

Method used

A dual-stream CNN model based on the motion attention transfer network is used to capture the appearance features and motion features of dynamic videos through the spatial flow convolutional neural network and the temporal flow convolutional neural network, and feature interaction is performed through the motion attention transfer network to enhance the spatial flow features. Deep movement information.

Benefits of technology

The recognition accuracy and result reliability of dynamic expression recognition are improved, and the accuracy of dynamic expression recognition is ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112699772B
    Figure CN112699772B
Patent Text Reader

Abstract

The present invention discloses a dynamic expression recognition model acquisition method, recognition method and device, belonging to the field of dynamic expression recognition technology. The model acquisition method comprises the following steps: preprocessing the dynamic expression data to obtain a static face image and an optical flow data image; constructing a dual-stream CNN expression recognition model based on a motion attention transfer network; inputting the static face image and the optical flow data image obtained by preprocessing into the dual-stream CNN expression recognition model for model training to obtain a final dynamic expression recognition model. The present invention can use the motion attention transfer network to interact with the spatial features and temporal features contained in the dual-stream network, promote the spatial stream to learn deeper motion features, improve the recognition accuracy of dynamic expression recognition, and make the recognition result more reliable.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of dynamic expression recognition, and in particular to a dynamic expression recognition model acquisition method, a recognition method and a device. Background Art

[0002] With the rapid development of artificial intelligence and the popularization of smart devices, the field of human-computer interaction is undergoing unprecedented changes. Facial expressions, as a universal language that transcends race and culture, are one of the main ways for humans to express emotions. Expression recognition technology has attracted the attention of many researchers, and dynamic expression recognition, as an important expression recognition method, has also received more and more attention.

[0003] However, there are still some problems in dynamic expression recognition. When using the classic CNN-RNN network structure for dynamic expression recognition, the network cannot detect the dynamic changes between expression video frames, and cannot highlight the muscle movement area of ​​the expression, resulting in low accuracy of dynamic expression recognition. Summary of the invention

[0004] The purpose of the present invention is to overcome the deficiencies in the prior art and provide a method for acquiring a dynamic expression recognition model, a recognition method and a device, which can improve the recognition accuracy of dynamic expression recognition and make the recognition result more reliable.

[0005] To achieve the above object, the present invention is implemented by adopting the following technical solutions:

[0006] In a first aspect, the present invention provides a method for acquiring a dynamic expression recognition model, comprising the following steps:

[0007] Perform data preprocessing on dynamic expression data to obtain static face images and optical flow data images;

[0008] Construct a two-stream CNN expression recognition model based on motion attention transfer network;

[0009] The static face image and optical flow data image obtained through preprocessing are input into the dual-stream CNN expression recognition model for model training to obtain the final dynamic expression recognition model.

[0010] Furthermore, the method for preprocessing the dynamic expression data set includes the following steps:

[0011] Use the open source software ffmpeg to split the video data into RGB image data to obtain each frame image;

[0012] Perform face detection on each frame of image, remove the interfering background environment, and normalize the scale of each frame of image to obtain a static image of the face;

[0013] The FlowNet 2.0 model trained with the Sintel database is used to successively extract the optical flow between adjacent expression frame images, and the optical flow is decomposed into the x and y directions in the rectangular coordinate system to obtain the corresponding optical flow map;

[0014] The plurality of optical flow maps are constituted into an optical flow group as a group of optical flow data.

[0015] Furthermore, the dual-stream CNN expression recognition model based on the motion attention transfer network includes a dual-stream CNN network and a motion attention transfer network, wherein the dual-stream CNN network includes a spatial stream convolutional neural network and a temporal stream convolutional neural network;

[0016] The spatial stream convolutional neural network is used to capture the appearance features of dynamic videos;

[0017] The temporal stream convolutional neural network is used to capture the motion characteristics of dynamic videos;

[0018] The motion attention transfer network is used to interact the appearance features and motion features of the dynamic expression data so that the appearance features are enhanced by the motion features;

[0019] Spatial stream convolutional neural network learns deeper motion information in dynamic expression data.

[0020] Furthermore, the motion attention transfer network is added after each layer of the dual-stream CNN network;

[0021] The appearance features enhanced by motion features in the motion attention transfer network are input into the next layer of the spatial stream convolutional neural network to continue spatial stream feature extraction, and the motion features remain unchanged;

[0022] After the appearance features and motion features are extracted, the dual-stream CNN network obtains the prediction results of the spatial stream features and the temporal stream features respectively; the average of the prediction results of the spatial stream features and the temporal stream features is taken as the final dynamic expression prediction result.

[0023] Furthermore, both the spatial stream convolutional neural network and the temporal stream convolutional neural network adopt a trained VGG-Face model, and the dimension of the first convolutional layer of the temporal stream convolutional neural network is 3*3*2L.

[0024] Further, the motion attention transfer network includes a soft attention unit and an attention conversion unit;

[0025] The soft attention unit includes a 1×1 convolutional layer, and the attention conversion unit includes a multimodal bilinear model.

[0026] In a second aspect, the present invention provides a method for dynamic expression recognition, comprising the following steps:

[0027] Obtain the dynamic expression target image to be recognized and perform data preprocessing;

[0028] The pre-processed dynamic expression target image is input into the dynamic expression recognition model obtained by any method described in the first aspect to perform dynamic expression recognition.

[0029] Furthermore, the method for performing dynamic expression recognition using the dynamic expression recognition model comprises the following steps:

[0030] The pre-processed dynamic expression target image is split into a single-frame human face static image and a set of optical flow data at the spatial and temporal levels, and the spatial stream convolutional neural network and the temporal stream convolutional neural network of the dual-stream CNN network respectively capture the appearance characteristics and motion characteristics of the dynamic expression;

[0031] The appearance features are interacted with the motion features through the motion attention transfer network, so that the appearance features are enhanced by the motion features, and the spatial stream convolutional neural network learns deeper motion features in the dynamic expression data;

[0032] The appearance features enhanced by motion features in the motion attention transfer network are input into the next layer of the spatial stream convolutional neural network to continue spatial stream feature extraction, and the motion features remain unchanged;

[0033] After the appearance features and motion features are extracted, the dual-stream CNN network obtains the prediction results of the spatial stream features and the temporal stream features respectively;

[0034] The prediction results of the spatial stream features and the prediction results of the temporal stream features are averaged, and the average is used as the final dynamic expression recognition result.

[0035] In a third aspect, the present invention provides a device for acquiring a dynamic expression recognition model, comprising the following modules:

[0036] A preprocessing module is used to preprocess the dynamic expression data to obtain a static face image and an optical flow data image;

[0037] Model building module, used to build a two-stream CNN expression recognition model based on motion attention transfer network;

[0038] The model training module is used to input the static face image and optical flow data image obtained through preprocessing into the dual-stream CNN expression recognition model for model training to obtain a final dynamic expression recognition model.

[0039] In a fourth aspect, the present invention provides a dynamic expression recognition device, comprising the following modules:

[0040] The data acquisition module is used to acquire the dynamic expression target image to be recognized and perform data preprocessing;

[0041] The expression recognition module is used to input the preprocessed dynamic expression target image into the dynamic expression recognition model obtained by any method described in the first aspect to perform dynamic expression recognition.

[0042] Compared with the prior art, the present invention has the following beneficial effects:

[0043] The present invention makes full use of the motion characteristics of dynamic expressions, uses a two-stream network to model dynamic expressions, captures the appearance characteristics and motion characteristics of dynamic expressions, and makes the recognition results of dynamic expression recognition more reliable;

[0044] In order to solve the problem that information interaction between the two-stream networks is prone to disorder, a motion attention transfer network is used to interact the spatial and temporal features contained in the two-stream network, promote the spatial stream to learn deeper motion features, and improve the recognition accuracy of dynamic expression recognition. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 is a flow chart of a method for acquiring a dynamic expression recognition model provided by an embodiment of the present invention;

[0046] Figure 2 is a flow chart of a dynamic expression recognition method provided by an embodiment of the present invention;

[0047] Figure 3 It is a block diagram of a dynamic expression recognition model acquisition device provided by an embodiment of the present invention;

[0048] Figure 4 is a block diagram of a dynamic expression recognition device provided by an embodiment of the present invention;

[0049] Figure 5 It is a structural diagram of a two-stream convolutional neural network based on a motion attention transfer network provided by an embodiment of the present invention;

[0050] Figure 6 It is a structural diagram of a motion attention transfer network provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0051] The present invention will be further described below in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and cannot be used to limit the protection scope of the present invention.

[0052] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and the like are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first", "second", and the like may explicitly or implicitly include one or more of the features. In the description of the present invention, unless otherwise specified, "multiple" means two or more.

[0053] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood by specific circumstances.

[0054] Example 1

[0055] like Figure 1 As shown, an embodiment of the present invention provides a method for acquiring a dynamic expression recognition model, which adopts a two-stream convolutional neural network based on a motion attention transfer network. The method for acquiring a dynamic expression recognition model specifically includes the following steps:

[0056] Step 1: Create a video expression data set and perform data processing on the created video expression data set, wherein the video expression data set refers to dynamic expression data.

[0057] In this embodiment, the method for preprocessing the dynamic expression data set includes the following steps:

[0058] The open source software ffmpeg is used to divide the video data into RGB image data to obtain each frame of the image; face detection is performed on each frame of the image to remove the interference of the background environment, and the scale is normalized to obtain a static face image. In this embodiment, the scale normalization is specifically an image of 224*224 size;

[0059] However, since the muscle movement range of facial expressions is relatively small, if you want to extract a detailed optical flow map, you need a more accurate optical flow calculation algorithm. In this embodiment, the FlowNet2.0 model trained with the Sintel database is used.

[0060] The FlowNet 2.0 model is used to extract the optical flow between adjacent expression frames one by one and decompose it into the x and y directions in the rectangular coordinate system; then multiple optical flow maps are combined into an optical flow group as the input of the temporal flow convolutional neural network, that is, a set of optical flow data.

[0061] Step 2: Build a two-stream CNN expression recognition model based on motion attention transfer network.

[0062] The two-stream CNN expression recognition model based on the motion attention transfer network includes a spatial stream convolutional neural network, a temporal stream convolutional neural network and a motion attention transfer network (MAT). The two-stream CNN network includes a spatial stream convolutional neural network and a temporal stream convolutional neural network. The structure of the two-stream CNN expression recognition model is as follows: Figure 5 shown.

[0063] When video data is input, the network splits it into a single-frame static face image and a set of optical flow sequences at the spatial and temporal levels as a set of optical flow data. The static face image and the optical flow sequence are modeled separately through two independent CNNs and finally fused, thereby capturing the appearance motion information of the expression video.

[0064] In this embodiment, the spatial stream convolutional neural network and the temporal stream convolutional neural network are responsible for capturing the appearance characteristics and motion characteristics of dynamic video data respectively.

[0065] The role of the motion attention transfer network is to interact the temporal stream information with the spatial stream information, and promote the spatial stream to learn deeper motion features.

[0066] Since the temporal stream convolutional neural network contains a large amount of facial motion information, if the motion information and spatial information can interact deeply, it will undoubtedly greatly improve the feature extraction quality of the two-stream network. However, the two-way interaction of the two-stream network can easily cause information disorder, which will reduce the performance of the two-stream network.

[0067] To this end, an embodiment of the present invention uses a motion attention transfer network to perform unidirectional information interaction on the dual-stream network, interacts with the spatial stream information (appearance features) through the temporal stream information (motion features), and promotes the spatial stream to learn deeper motion features.

[0068] In this embodiment, the motion attention transfer network consists of two units: a soft attention unit and an attention conversion unit. The specific structure is as follows: Figure 6 shown.

[0069] The soft attention unit aims to focus on important regions of the input, while the attention transfer unit transfers the attention motion features to promote the learning of superficial features to deeper motion features.

[0070] The soft attention unit consists of a 1×1 convolutional layer, which first performs an input temporal stream feature V m (or spatial flow feature V a ) is input into the convolutional layer, and then normalized using softmax to obtain a soft attention map A m , then the soft attention map is element-wise multiplied with the original feature to obtain the attention feature

[0071] With sports features V m As input, the soft attention unit will output a motion attention feature The process is as follows:

[0072] A m =softmax(w m *V m ) (1)

[0073]

[0074] Among them, w m ∈R 1×1×C Is a V m The 1×1 conv kernel mapped to the saliency matrix is ​​normalized using softmax to obtain a soft attention map A m ∈R W×H , * indicates conv operation, represents the attention-aware feature map, and represent the c-th channel and V m is a two-dimensional feature slice of , and ⊙ represents element-wise multiplication.

[0075] Similarly, given the appearance feature V a , we can get the appearance attention feature The result is as follows:

[0076]

[0077] Among them, A a Soft attention map representing appearance features, and represent the c-th channel and V ais a two-dimensional feature slice of , and ⊙ represents element-wise multiplication.

[0078] The function of the attention conversion unit is to convert the motion attention features Pay attention to the appearance characteristics To transfer, we first use a multimodal bilinear model to capture and The relationship between , the process is shown in formula 3:

[0079]

[0080] Where W∈R C×C is a trainable weight matrix that can effectively capture the pairwise relationship between two feature spaces. However, it also introduces a large number of parameters, increases the computational cost, and creates the risk of overfitting.

[0081] To overcome this problem, W can be approximately decomposed into two low-rank matrices: and Where d (d>1) is a reduction ratio. Then, Formula 3 can be rewritten as:

[0082]

[0083] This operation is equivalent to applying the channel feature transformation to the and This not only significantly reduces the number of parameters by a factor of 2 / d, but also generates a compact channel feature representation for each modality.

[0084] Then, it is normalized to obtain an attention map based on motion features and interacted with the appearance features to obtain the motion-enhanced appearance features U a ∈R W×H×C , the process is shown as follows:

[0085] S r =softmax r (S) (5)

[0086]

[0087] Among them, softmax r Represents row-wise softmax.

[0088] Finally, in order to extract multi-level motion appearance features, we add a motion attention transfer network after each layer of the two-stream network model. The motion-enhanced appearance features are input into the spatial stream network for further feature extraction, while the temporal stream features remain unchanged.

[0089] After feature extraction, the dual-stream network obtains the prediction results of the spatial stream and the temporal stream respectively. The average of their results is taken as the final dynamic expression prediction result.

[0090] Step 3: Input the static face image and optical flow data image obtained in step 1 into the dual-stream CNN expression recognition model based on motion attention transfer network for training;

[0091] Specifically, in order to reduce the training pressure of the VGG-Face network, static face images and optical flow data images are input into the spatial stream network and the temporal stream network for training respectively, and then the networks are jointly trained on this basis.

[0092] At the same time, since the input of the time stream is a stacked optical flow map, we need to change the dimension of the first convolutional layer of the time stream CNN to 3*3*2L. At the same time, in order to use the trained VGG-Face model weights, the original 3-channel convolutional layer parameters need to be repeatedly copied along the channel dimension into a 2L channel convolutional layer.

[0093] Example 2

[0094] like Figure 2 As shown, an embodiment of the present invention provides a method for dynamic expression recognition, comprising the following steps:

[0095] Obtain the dynamic expression target image to be recognized and perform data preprocessing;

[0096] The pre-processed dynamic expression target image is input into the dynamic expression recognition model obtained by the method described in Example 1 to perform dynamic expression recognition.

[0097] In this embodiment, the method for performing dynamic expression recognition using the dynamic expression recognition model comprises the following steps:

[0098] The pre-processed dynamic expression target image is split into a single-frame human face static image and a set of optical flow sequences at the spatial and temporal levels, and the spatial stream convolutional neural network and the temporal stream convolutional neural network of the two-stream CNN network respectively capture the appearance characteristics and motion characteristics of the dynamic expression;

[0099] The appearance features are interacted with the motion features through the motion attention transfer network, so that the appearance features are enhanced by the motion features, and the spatial stream convolutional neural network learns deeper motion features in the dynamic expression data;

[0100] The appearance features enhanced by motion features in the motion attention transfer network are input into the next layer of the spatial stream convolutional neural network to continue spatial stream feature extraction, and the motion features remain unchanged;

[0101] After the appearance features and motion features are extracted, the dual-stream CNN network obtains the prediction results of the spatial stream features and the prediction results of the temporal stream features respectively;

[0102] The prediction results of the spatial stream features and the prediction results of the temporal stream features are averaged, and the average is used as the final dynamic expression recognition result.

[0103] Example 3

[0104] like Figure 3 As shown, an embodiment of the present invention provides a dynamic expression recognition model acquisition device, including the following modules:

[0105] A preprocessing module is used to preprocess the dynamic expression data to obtain a static face image and an optical flow data image;

[0106] Model building module, used to build a two-stream CNN expression recognition model based on motion attention transfer network;

[0107] The model training module is used to input the static face image and optical flow data image obtained through preprocessing into the dual-stream CNN expression recognition model for model training to obtain a final dynamic expression recognition model.

[0108] Example 4

[0109] like Figure 4 As shown, an embodiment of the present invention provides a dynamic expression recognition device, including the following modules:

[0110] The data acquisition module is used to acquire the dynamic expression target image to be recognized and perform data preprocessing;

[0111] The expression recognition module is used to input the pre-processed dynamic expression target image into the dynamic expression recognition model obtained by the method described in Example 1 to perform dynamic expression recognition.

[0112] Example 5

[0113] The embodiment of the present invention provides a system, comprising the dynamic expression recognition model acquisition device described in embodiment 3 and the dynamic expression recognition device described in embodiment 4;

[0114] The dynamic expression recognition device can perform dynamic expression recognition using the dynamic expression recognition model acquired by the dynamic expression recognition model acquisition device.

[0115] Example 6

[0116] An embodiment of the present invention provides a device, including a processor and a storage medium, wherein the storage medium is used to store instructions;

[0117] The processor is used to operate according to the instruction to execute the method described in Example 1, or to execute the method described in Example 2.

[0118] Example 7

[0119] The present invention provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the method described in Embodiment 1 is implemented, or the method described in Embodiment 2 is executed.

[0120] In summary, the present invention makes full use of the motion characteristics of dynamic expressions, uses a two-stream network to model dynamic expressions, captures the appearance characteristics and motion characteristics of dynamic expressions, and makes the recognition results of dynamic expression recognition more reliable;

[0121] In order to solve the problem that information interaction between the two-stream networks is prone to disorder, a motion attention transfer network is used to interact the spatial and temporal features contained in the two-stream network, promote the spatial stream to learn deeper motion features, and improve the recognition accuracy of dynamic expression recognition.

[0122] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A method for acquiring a dynamic expression recognition model, characterized in that: The steps include: Perform data preprocessing on dynamic expression data to obtain static face images and optical flow data images; Construct a two-stream CNN expression recognition model based on motion attention transfer network; Inputting the pre-processed static face image and optical flow data image into the dual-stream CNN expression recognition model for model training to obtain a final dynamic expression recognition model; The dual-stream CNN expression recognition model based on the motion attention transfer network includes a dual-stream CNN network and a motion attention transfer network, wherein the dual-stream CNN network includes a spatial stream convolutional neural network and a temporal stream convolutional neural network; The spatial stream convolutional neural network is used to capture the appearance features of dynamic videos; The temporal stream convolutional neural network is used to capture the motion characteristics of dynamic videos; The motion attention transfer network is used to interact the appearance features and motion features of the dynamic expression data so that the appearance features are enhanced by the motion features; The motion attention transfer network is added after each layer of the two-stream CNN network; The appearance features enhanced by motion features in the motion attention transfer network are input into the next layer of the spatial stream convolutional neural network to continue spatial stream feature extraction, and the motion features remain unchanged; After the appearance features and motion features are extracted, the dual-stream CNN network obtains the prediction results of the spatial stream features and the temporal stream features respectively; The average of the prediction results of spatial stream features and temporal stream features is taken as the final dynamic expression prediction result.

2. The method for acquiring a dynamic expression recognition model according to claim 1, wherein: The method for data preprocessing of dynamic expression dataset includes the following steps: Use the open source software ffmpeg to split the video data into RGB image data to obtain each frame image; Perform face detection on each frame of image, remove the interfering background environment, and normalize the scale of each frame of image to obtain a static image of the face; The FlowNet 2.0 model trained with the Sintel database is used to successively extract the optical flow between adjacent expression frame images, and the optical flow is decomposed into the x and y directions in the rectangular coordinate system to obtain the corresponding optical flow map; A plurality of the optical flow maps are formed into an optical flow group as a group of optical flow data.

3. The method for acquiring a dynamic expression recognition model according to claim 1, wherein: The spatial stream convolutional neural network and the temporal stream convolutional neural network both adopt a trained VGG-Face model, and the dimension of the first convolutional layer of the temporal stream convolutional neural network is 3*3*2L.

4. The method for acquiring a dynamic expression recognition model according to claim 3, wherein: The motion attention transfer network includes a soft attention unit and an attention conversion unit; The soft attention unit includes a 1×1 convolutional layer, and the attention conversion unit includes a multimodal bilinear model.

5. A method for dynamic expression recognition, characterized in that: The steps include: Obtain the dynamic expression target image to be recognized and perform data preprocessing; The pre-processed dynamic expression target image is input into the dynamic expression recognition model obtained by the method described in any one of claims 1 to 4 to perform dynamic expression recognition.

6. The method for dynamic expression recognition according to claim 5, characterized in that: The method for performing dynamic expression recognition using the dynamic expression recognition model comprises the following steps: The pre-processed dynamic expression target image is split into a static face image and a set of optical flow data at the spatial and temporal levels, and the spatial stream convolutional neural network and the temporal stream convolutional neural network of the dual-stream CNN network respectively capture the appearance features and motion features of the dynamic expression; The appearance feature is interacted with the motion feature through the motion attention transfer network, so that the appearance feature is enhanced by the motion feature; The appearance features enhanced by motion features in the motion attention transfer network are input into the next layer of the spatial stream convolutional neural network to continue spatial stream feature extraction, and the motion features remain unchanged; After the appearance features and motion features are extracted, the dual-stream CNN network obtains the prediction results of the spatial stream features and the temporal stream features respectively; The prediction results of the spatial stream features and the prediction results of the temporal stream features are averaged, and the average is used as the final dynamic expression recognition result.

7. A dynamic expression recognition model acquisition device for executing the method according to any one of claims 1 to 4, characterized in that: Includes the following modules: A preprocessing module is used to preprocess the dynamic expression data to obtain a static face image and an optical flow data image; Model building module, used to build a two-stream CNN expression recognition model based on motion attention transfer network; The model training module is used to input the static face image and optical flow data image obtained through preprocessing into the dual-stream CNN expression recognition model for model training to obtain a final dynamic expression recognition model.

8. A dynamic expression recognition device, characterized in that: Includes the following modules: The data acquisition module is used to acquire the dynamic expression target image to be recognized and perform data preprocessing; The expression recognition module is used to input the preprocessed dynamic expression target image into the dynamic expression recognition model obtained by the method described in any one of claims 1 to 4 to perform dynamic expression recognition.