A method and device for facial expression recognition based on graph convolutional neural network

Through the facial expression recognition method based on graph convolutional neural network, we extract and process facial image features, divide facial action units and extract visual features, and combine it with graph convolutional neural network for recognition, solving the problems in facial expression recognition technology. Insufficient data sets, class interactions, and individual differences issues improve recognition accuracy.

CN114187632BActive Publication Date: 2024-09-06GUANGDONG POLYTECHNIC NORMAL UNIV
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Facial expression recognition technology is faced with the lack of large-scale high-quality expression data sets, the problem of orientation misclassification caused by the interaction between expression categories, and the increasing difficulty of recognition of facial expressions due to collection conditions and individual differences.

Method used

A facial expression recognition method based on graph convolutional neural network is adopted. By receiving the input face image, extracting image features, dividing facial action units, visual feature extraction and action unit interaction network processing are performed, combined with graph convolutional neural network. Facial expression recognition.

Benefits of technology

The accuracy of facial expression recognition is improved, repetitive work is reduced, and recognition difficulty and misclassification problems in the existing technology are overcome.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114187632B
    Figure CN114187632B
Patent Text Reader

Abstract

The present invention discloses a method and device for facial expression recognition based on a graph convolutional neural network, wherein the method comprises: receiving an input facial image, and extracting image features in the facial image based on a first deep neural network; dividing the facial image into FACS regions of the facial image based on the image features to obtain facial action units; performing visual feature extraction processing on the image region corresponding to each facial action unit based on a second deep neural network; inputting the extracted visual features into the corresponding nodes of the action unit interaction network to perform facial expression feature extraction processing to obtain facial expression features; and inputting the facial expression features into a graph convolutional neural network to perform facial expression recognition processing to obtain facial expression recognition results. In the embodiments of the present invention, the accuracy of expression recognition can be improved and the problem of repetitive work can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer vision technology, and in particular to a method and device for facial expression recognition based on a graph convolutional neural network. Background Art

[0002] In daily human communication, facial expressions are the most common way to convey information, accounting for 55%, far higher than sound (38%) and language (7%). Although the internal mechanism of the brain's control of facial expressions is not yet clear, facial expressions are characteristics of the brain state, which can last for a period of time after the stimulus that induces the expression disappears, so facial expressions are recognizable. At present, facial expression recognition has become the core of human-computer interaction and is widely used, such as intelligent companion robots to achieve emotional communication between humans and machines; smart classrooms to determine students' learning emotional state; smart driving to determine the emotional state of drivers, etc. Therefore, facial expression recognition is a current research hotspot.

[0003] Facial expression recognition involves the intersection of artificial intelligence, psychology, biology, cognitive science and other disciplines. Although some progress has been made, there are still many difficulties. First, there is a lack of large-scale high-quality expression datasets for expression recognition, because it is very difficult to annotate large-scale expression samples, and some expressions such as disgust, fear, and sadness are difficult to stimulate, and the expression dataset is seriously unbalanced. Secondly, there are interactions between existing expression categories. For example, fear can easily make people angry, but it inhibits happiness, indicating that there are different interactions between fear and anger and happiness, which can easily lead to directional misclassification problems between expression categories. Third, facial expressions may be affected by lighting, occlusion, posture, etc. when collecting individual facial images, and they also show large differences with the individual's age, gender, race, etc., which increases the difficulty of accurately identifying expressions. Summary of the invention

[0004] The purpose of the present invention is to overcome the shortcomings of the prior art. The present invention provides a method and device for facial expression recognition based on a graph convolutional neural network, which can improve the accuracy of expression recognition and reduce the problem of repetitive work.

[0005] In order to solve the above technical problems, an embodiment of the present invention provides a method for facial expression recognition based on a graph convolutional neural network, the method comprising:

[0006] Receiving an input face image, and extracting image features in the face image based on a first deep neural network;

[0007] Divide the face image into a FACS region of the face image based on the image features to obtain a facial action unit;

[0008] Performing visual feature extraction processing on the image area corresponding to each facial action unit based on the second deep neural network;

[0009] The extracted visual features are input into the corresponding nodes of the action unit interaction network to perform facial expression feature extraction processing to obtain facial expression features;

[0010] The facial expression features are input into a graph convolutional neural network to perform facial expression recognition processing to obtain a facial expression recognition result.

[0011] Optionally, the receiving an input facial image includes:

[0012] Receive a captured image captured by an image acquisition device, input the captured image into a target detection network model for face target detection processing, and crop a face area image in the captured image, wherein the size of the face area image is 224*224;

[0013] Performing image color normalization processing on the face region image to form an input face image.

[0014] Optionally, the first deep neural network is an 18-layer network model with a residual network model as the backbone network; wherein the input dimension of the fully connected layer of the first deep neural network is 512, and the output dimension is 512; the convolution kernel size of the average pooling layer of the first deep neural network is 7*7, the step size is 1, and the number of convolution kernels is 512.

[0015] Optionally, dividing the facial image into a FACS area of ​​the facial image based on the image feature to obtain a facial action unit includes:

[0016] Divide the face image into a FACS region of the face image based on the image features and using domain knowledge;

[0017] Based on the Scikit-multilearn library, multi-AU detection processing is performed on the FACS area to obtain facial action units.

[0018] Optionally, the performing visual feature extraction processing on the image area corresponding to each facial action unit based on the second deep neural network includes:

[0019] Obtain the image area corresponding to each facial action unit;

[0020] The image area corresponding to each facial action unit is input into the second deep neural network for visual feature extraction processing.

[0021] Optionally, the step of inputting the extracted visual features into corresponding nodes of the action unit interaction network to perform facial expression feature extraction processing to obtain facial expression features includes:

[0022] Based on FACS theory, an action unit interaction network that interacts with facial expressions is constructed;

[0023] The extracted visual features are input into the corresponding nodes of the action unit interaction network to perform facial expression feature extraction processing to obtain facial expression features.

[0024] Optionally, the graph convolutional neural network is a neural network layer, wherein the neural network layer has N nodes, each node has its own features, the features of the N nodes form an N*D-dimensional matrix X, and the relationship between the nodes forms an N*N-dimensional matrix A; the matrix X and the matrix A are the inputs of the graph convolutional neural network.

[0025] Optionally, the propagation mode between layers of the graph convolutional neural network is expressed as follows:

[0026]

[0027] in, A represents the relationship between each node, forming an N*N dimensional matrix, also called an adjacency matrix; I represents the identity matrix; yes The degree matrix of H represents the features of each layer. For the input layer, H is the features of N nodes forming an N*D-dimensional matrix X; σ represents the nonlinear activation function.

[0028] Optionally, the step of inputting the facial expression features into a graph convolutional neural network to perform facial expression recognition processing to obtain a facial expression recognition result includes:

[0029] Inputting the facial expression features into a graph convolutional neural network model to perform facial expression feature reconstruction processing to obtain reconstructed facial expression features;

[0030] The graph convolutional neural network model inputs the reconstructed facial expression features into a softmax layer based on a fully connected layer to perform facial expression recognition processing to obtain a facial expression recognition result.

[0031] In addition, an embodiment of the present invention further provides a facial expression recognition device based on a graph convolutional neural network, the device comprising:

[0032] A first extraction module: configured to receive an input face image and extract image features in the face image based on a first deep neural network;

[0033] A segmentation module: used for segmenting the face image into FACS regions of the face image based on the image features to obtain facial action units;

[0034] A second extraction module: used for performing visual feature extraction processing on the image area corresponding to each facial action unit based on a second deep neural network;

[0035] The third extraction module is used to input the extracted visual features into the corresponding nodes of the action unit interaction network to perform facial expression feature extraction processing to obtain facial expression features;

[0036] Expression recognition module: used to input the facial expression features into the graph convolutional neural network to perform facial expression recognition processing and obtain facial expression recognition results.

[0037] In an embodiment of the present invention, an input face image is received, and image features in the face image are extracted based on a first deep neural network; the face image is divided into FACS regions based on the image features to obtain facial action units; visual feature extraction processing is performed on the image region corresponding to each facial action unit based on a second deep neural network; the extracted visual features are input to the corresponding nodes of the action unit interaction network to perform facial expression feature extraction processing to obtain facial expression features; the facial expression features are input to a graph convolutional neural network to perform facial expression recognition processing to obtain facial expression recognition results. The recognition of facial expressions can be realized, the accuracy of facial expression recognition can be improved, and the problem of repetitive work can be reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0039] Figure 1 is a flow chart of a method for facial expression recognition based on a graph convolutional neural network in an embodiment of the present invention;

[0040] Figure 2 Schematic diagram of the structure of a facial expression recognition device based on a graph convolutional neural network in an embodiment of the present invention;

[0041] Figure 3 It is a schematic diagram of the structural composition of the action unit interaction network in an embodiment of the present invention. DETAILED DESCRIPTION

[0042] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0043] Embodiment 1

[0044] See also Figure 1 , Figure 1 It is a flowchart of a facial expression recognition method based on a graph convolutional neural network in an embodiment of the present invention.

[0045] like Figure 1 As shown, a method for facial expression recognition based on a graph convolutional neural network, the method comprising:

[0046] S11: receiving an input face image, and extracting image features in the face image based on a first deep neural network;

[0047] In the specific implementation process of the present invention, the receiving of the input face image includes: receiving the captured image captured by the image acquisition device, inputting the captured image into the target detection network model for face target detection processing, and cropping the face area image in the captured image, the face area image size is 224*224; performing image color normalization processing on the face area image to form the input face image.

[0048] Furthermore, the first deep neural network is an 18-layer network model with a residual network model as the backbone network; wherein, the input dimension of the fully connected layer of the first deep neural network is 512, and the output dimension is 512; the convolution kernel size of the average pooling layer of the first deep neural network is 7*7, the step size is 1, and the number of convolution kernels is 512.

[0049] Specifically, an image is captured by an image acquisition device, and then the captured image is input, and then the captured image captured by the image acquisition device is received, and the captured image is input into a target detection network model (Faster R-CNN) for face detection and cropping out a face area image in the captured image, wherein the face area image size is 224*224, and a more accurate face image area in the captured image can be obtained by cropping; then the cropped face image needs to be color normalized, that is, each pixel of each color channel of all images is subtracted from the pixel average of the channel and then divided by the pixel standard deviation of the channel; the normalized face image is used as the input face image.

[0050] The first deep neural network uses the residual network model ResNet, which is a deep convolutional neural network proposed in 2015 and won the ILSVRC image recognition competition championship; in this application, the ResNet model is used as the backbone network of the model to build an 18-layer residual network ResNet18, θ(x) represents the d-dimensional feature vector extracted by the neural network of the image, located in the second to last layer (FC, 512) in the figure, representing the fully connected layer, and the output feature vector is 512, that is, d = 512. The parameter configuration of each layer of the deep neural network built by the present invention is arranged in order as shown in Table 1.

[0051] Table 1. Deep neural network structure parameters

[0052]

[0053] Among them, "3x3 conv,64" represents the convolution layer, its convolution kernel size is 3x3, the number of convolution kernels is 64, and the specific parameters are shown in the table above; "3x3 conv,128, / 2" represents the convolution layer, its convolution kernel size is 3x3, the number of convolution kernels is 64, and the step size is 2. The specific parameters are shown in the table above; "3x3 conv,128" represents the convolution layer, its convolution kernel size is 3x3, the number of convolution kernels is 128, and the specific parameters are shown in the table above; "3x3 conv,256, / 2" represents the convolution layer, its convolution kernel size is 3x3, the number of convolution kernels is 256, and the step size is 2. The specific parameters are shown in the table above; "3x3 conv,256" represents the convolution layer, its convolution kernel size is 3x3, the number of convolution kernels is 256, and the specific parameters are shown in the table above; "3x3 "conv,512, / 2" indicates a convolutional layer, whose convolution kernel size is 3x3, the number of convolution kernels is 512, and the stride is 2. The specific parameters are shown in the table above; "3x3 conv,512" indicates a convolutional layer, whose convolution kernel size is 3x3, the number of convolution kernels is 512, and the specific parameters are shown in the table above; "Avg pool" indicates an average pooling layer, and the specific parameters are shown in the table above; "FC, 512" indicates a fully connected layer, and the output dimension is 512; "FC, 7" indicates a fully connected layer, and the output dimension is 7.

[0054] The facial image is then input into the first deep neural network model for image feature extraction processing, and the image features of the facial image are output.

[0055] S12: dividing the face image into FACS regions of the face image based on the image features to obtain facial action units;

[0056] In a specific implementation of the present invention, the method of dividing the facial image into a FACS area of ​​the facial image based on the image features to obtain facial action units includes: dividing the facial image into a FACS area of ​​the facial image based on the image features using domain knowledge; and performing multi-AU detection processing on the FACS area based on the Scikit-multilearn library to obtain facial action units.

[0057] Specifically, FACS (Facial Action Coding System) is a system originally developed by Swedish anatomist Carl-Herman Hjortsj to classify human facial movements by facial appearance. It was later adopted by Paul Ekman and Wallace V. Friesen, who conducted in-depth research and described the correspondence between different facial muscle movements and different expressions through observation and biofeedback, and published it in 1978. The Facial Action Coding System (FACS) can be divided into several independent and interconnected action units (AUs) based on the anatomical characteristics of the human face. The movement characteristics of these facial action units and the main areas they control can reflect facial expressions.

[0058] The AU unit classifier is a multi-label classifier, which is different from multi-classification. Scikit-learn provides an independent library for multi-label classification. After the convolutional neural network extracts the features of the face image, the Scikit-multilearn library is called to perform multi-AU detection and identify action units.

[0059] S13: performing visual feature extraction processing on the image area corresponding to each facial action unit based on the second deep neural network;

[0060] In the specific implementation process of the present invention, the visual feature extraction processing of the image area corresponding to each facial action unit based on the second deep neural network includes: obtaining the image area corresponding to each facial action unit; inputting the image area corresponding to each facial action unit into the second deep neural network for visual feature extraction processing.

[0061] Specifically, by obtaining the image area corresponding to each facial action unit; then using the second deep neural network to perform visual feature extraction processing on the corresponding partial image area, that is, the image area corresponding to each facial action unit is input into the second deep neural network for visual feature extraction processing.

[0062] S14: inputting the extracted visual features into corresponding nodes of the action unit interaction network to perform facial expression feature extraction processing to obtain facial expression features;

[0063] In the specific implementation process of the present invention, the extracted visual features are input into the corresponding nodes of the action unit interaction network to perform facial expression feature extraction processing to obtain facial expression features, including: constructing an action unit interaction network based on FACS theory in which action units interact with facial expressions; inputting the extracted visual features into the corresponding nodes of the action unit interaction network to perform facial expression feature extraction processing to obtain facial expression features.

[0064] Specifically, the structure of the action unit interaction network is detailed in Figure 3 ,According to the action unit interaction network constructed by FACS theory, the obtained visual features are used as the node features of the action unit interaction network structure, and are input into the corresponding nodes of the action unit interaction network for facial expression feature extraction, thereby obtaining facial expression features.

[0065] S15: Input the facial expression features into a graph convolutional neural network to perform facial expression recognition processing to obtain a facial expression recognition result.

[0066] In the specific implementation process of the present invention, the graph convolutional neural network is a neural network layer, wherein the neural network layer has N nodes, each node has its own characteristics, the characteristics of the N nodes form an N*D-dimensional matrix X, and the relationship between the nodes forms an N*N-dimensional matrix A; the matrix X and the matrix A are the inputs of the graph convolutional neural network.

[0067] Furthermore, the propagation mode between layers of the graph convolutional neural network is expressed as follows:

[0068]

[0069] in, A represents the relationship between each node, forming an N*N dimensional matrix, also called an adjacency matrix; I represents the identity matrix; yes The degree matrix of H represents the features of each layer. For the input layer, H is the features of N nodes forming an N*D-dimensional matrix X; σ represents the nonlinear activation function.

[0070] Furthermore, the method of inputting the facial expression features into a graph convolutional neural network for facial expression recognition processing to obtain a facial expression recognition result includes: inputting the facial expression features into a graph convolutional neural network model for facial expression feature reconstruction processing to obtain a reconstructed facial expression feature; the graph convolutional neural network model inputs the reconstructed facial expression features into a softmax layer based on a fully connected layer for facial expression recognition processing to obtain a facial expression recognition result.

[0071] Specifically, the graph convolutional neural network (GCN) actually has the same function as CNN, and its principle is also a feature extractor, but the difference is that its object is graph data. GCN has cleverly designed a method to extract features from graph data, so that we can use these features to perform node classification, graph classification, link prediction, and graph embedding.

[0072] Graph convolutional neural network (GCN) is a neural network layer. Assume that there is a batch of graph data with N nodes. Each node has its own features. The features of these nodes form an N×D-dimensional matrix X. The relationship between each node forms an N×N-dimensional matrix A, also known as the adjacency matrix. X and A are the inputs of the network model. The propagation between layers is expressed as follows:

[0073]

[0074] in, A represents the relationship between each node, forming an N*N dimensional matrix, also called an adjacency matrix; I represents the identity matrix; yes The degree matrix of H represents the features of each layer. For the input layer, H is the features of N nodes forming an N*D-dimensional matrix X; σ represents the nonlinear activation function.

[0075] Graph convolutional neural networks use the information of other nodes to infer the information of a node. In semi-supervised learning, the essence of graph convolutional neural networks is not to propagate labels, but to propagate features. Graph convolutional neural networks propagate features of unknown labels to feature nodes with known labels, and use the classifier of known label nodes to infer their attribute features. Each node in the graph network is constantly changing its state until the final balance due to the influence of neighbors and more distant points. The closer the relationship, the greater the influence of neighbors.

[0076] The spatial features in graph data have the following characteristics: 1) Node features: Each node has its own features (reflected in the points); 2) Structural features: Each node in the graph data has structural features, that is, there is a certain connection between nodes (reflected in the edges). By embedding the graph convolutional neural network layer into each layer of the deep convolutional neural network for expression recognition, the high-level semantic relationship between action units and expression categories can be used to improve the semantic feature extraction capability of each layer of the deep convolutional neural network for expression recognition.

[0077] The graph convolutional neural network is defined according to the nature of the mutual relationship of knowledge in the field of expression, including graph convolution operations and node update strategies, and then expression recognition is achieved through learning and reasoning of the graph convolutional neural network. Among them, for each node, its feature information is obtained from all its neighboring nodes, including its own features. Assuming that the average() function is used for the update operation, for each node, the average of all its neighboring nodes, including its own node, is taken; in GCN, only one fully connected layer is used, and then the classification result is achieved through the softmax layer.

[0078] That is, the facial expression features are input into the graph convolutional neural network model for facial expression feature reconstruction to obtain reconstructed facial expression features; then the reconstructed facial expression features are input into the softmax layer through the fully connected layer for facial expression recognition to obtain facial expression recognition results.

[0079] In an embodiment of the present invention, an input face image is received, and image features in the face image are extracted based on a first deep neural network; the face image is divided into FACS regions based on the image features to obtain facial action units; visual feature extraction processing is performed on the image region corresponding to each facial action unit based on a second deep neural network; the extracted visual features are input to the corresponding nodes of the action unit interaction network to perform facial expression feature extraction processing to obtain facial expression features; the facial expression features are input to a graph convolutional neural network to perform facial expression recognition processing to obtain facial expression recognition results. The recognition of facial expressions can be realized, the accuracy of facial expression recognition can be improved, and the problem of repetitive work can be reduced.

[0080] Embodiment 2

[0081] See also Figure 2 , Figure 2 It is a schematic diagram of the structural composition of a facial expression recognition device based on a graph convolutional neural network in an embodiment of the present invention.

[0082] like Figure 2 As shown, a facial expression recognition device based on a graph convolutional neural network, the device comprises:

[0083] The first extraction module 21 is used to receive an input face image and extract image features in the face image based on a first deep neural network;

[0084] In the specific implementation process of the present invention, the receiving of the input face image includes: receiving the captured image captured by the image acquisition device, inputting the captured image into the target detection network model for face target detection processing, and cropping the face area image in the captured image, the face area image size is 224*224; performing image color normalization processing on the face area image to form the input face image.

[0085] Furthermore, the first deep neural network is an 18-layer network model with a residual network model as the backbone network; wherein, the input dimension of the fully connected layer of the first deep neural network is 512, and the output dimension is 512; the convolution kernel size of the average pooling layer of the first deep neural network is 7*7, the step size is 1, and the number of convolution kernels is 512.

[0086] Specifically, an image is captured by an image acquisition device, and then the captured image is input, and then the captured image captured by the image acquisition device is received, and the captured image is input into a target detection network model (Faster R-CNN) for face detection and cropping out a face area image in the captured image, wherein the face area image size is 224*224, and a more accurate face image area in the captured image can be obtained by cropping; then the cropped face image needs to be color normalized, that is, each pixel of each color channel of all images is subtracted from the pixel average of the channel and then divided by the pixel standard deviation of the channel; the normalized face image is used as the input face image.

[0087] The first deep neural network uses the residual network model ResNet, which is a deep convolutional neural network proposed in 2015 and won the ILSVRC image recognition competition championship; in this application, the ResNet model is used as the backbone network of the model to build an 18-layer residual network ResNet18, θ(x) represents the d-dimensional feature vector extracted by the neural network of the image, located in the second to last layer (FC, 512) in the figure, representing the fully connected layer, and the output feature vector is 512, that is, d = 512. The parameter configuration of each layer of the deep neural network built by the present invention is arranged in order as shown in Table 1.

[0088] Table 1. Deep neural network structure parameters

[0089]

[0090]

[0091] Among them, "3x3 conv,64" represents the convolution layer, its convolution kernel size is 3x3, the number of convolution kernels is 64, and the specific parameters are shown in the table above; "3x3 conv,128, / 2" represents the convolution layer, its convolution kernel size is 3x3, the number of convolution kernels is 64, and the step size is 2. The specific parameters are shown in the table above; "3x3 conv,128" represents the convolution layer, its convolution kernel size is 3x3, the number of convolution kernels is 128, and the specific parameters are shown in the table above; "3x3 conv,256, / 2" represents the convolution layer, its convolution kernel size is 3x3, the number of convolution kernels is 256, and the step size is 2. The specific parameters are shown in the table above; "3x3 conv,256" represents the convolution layer, its convolution kernel size is 3x3, the number of convolution kernels is 256, and the specific parameters are shown in the table above; "3x3 "conv,512, / 2" indicates a convolutional layer, whose convolution kernel size is 3x3, the number of convolution kernels is 512, and the stride is 2. The specific parameters are shown in the table above; "3x3 conv,512" indicates a convolutional layer, whose convolution kernel size is 3x3, the number of convolution kernels is 512, and the specific parameters are shown in the table above; "Avg pool" indicates an average pooling layer, and the specific parameters are shown in the table above; "FC, 512" indicates a fully connected layer, and the output dimension is 512; "FC, 7" indicates a fully connected layer, and the output dimension is 7.

[0092] The facial image is then input into the first deep neural network model for image feature extraction processing, and the image features of the facial image are output.

[0093] Division module 22: used for dividing the face image into FACS regions of the face image based on the image features to obtain facial action units;

[0094] In a specific implementation of the present invention, the method of dividing the facial image into a FACS area of ​​the facial image based on the image features to obtain facial action units includes: dividing the facial image into a FACS area of ​​the facial image based on the image features using domain knowledge; and performing multi-AU detection processing on the FACS area based on the Scikit-multilearn library to obtain facial action units.

[0095] Specifically, FACS (Facial Action Coding System) is a system originally developed by Swedish anatomist Carl-Herman Hjortsj to classify human facial movements by facial appearance. It was later adopted by Paul Ekman and Wallace V. Friesen, who conducted in-depth research and described the correspondence between different facial muscle movements and different expressions through observation and biofeedback, and published it in 1978. The Facial Action Coding System (FACS) can be divided into several independent and interconnected action units (AUs) based on the anatomical characteristics of the human face. The movement characteristics of these facial action units and the main areas they control can reflect facial expressions.

[0096] The AU unit classifier is a multi-label classifier, which is different from multi-classification. Scikit-learn provides an independent library for multi-label classification. After the convolutional neural network extracts the features of the face image, the Scikit-multilearn library is called to perform multi-AU detection and identify action units.

[0097] The second extraction module 23 is used to perform visual feature extraction processing on the image area corresponding to each facial action unit based on the second deep neural network;

[0098] In the specific implementation process of the present invention, the visual feature extraction processing of the image area corresponding to each facial action unit based on the second deep neural network includes: obtaining the image area corresponding to each facial action unit; inputting the image area corresponding to each facial action unit into the second deep neural network for visual feature extraction processing.

[0099] Specifically, by obtaining the image area corresponding to each facial action unit; then using the second deep neural network to perform visual feature extraction processing on the corresponding partial image area, that is, the image area corresponding to each facial action unit is input into the second deep neural network for visual feature extraction processing.

[0100] The third extraction module 24 is used for inputting the extracted visual features into the corresponding nodes of the action unit interaction network to perform facial expression feature extraction processing to obtain facial expression features;

[0101] In the specific implementation process of the present invention, the extracted visual features are input into the corresponding nodes of the action unit interaction network to perform facial expression feature extraction processing to obtain facial expression features, including: constructing an action unit interaction network based on FACS theory in which action units interact with facial expressions; inputting the extracted visual features into the corresponding nodes of the action unit interaction network to perform facial expression feature extraction processing to obtain facial expression features.

[0102] Specifically, the structure of the action unit interaction network is detailed in Figure 3 ,According to the action unit interaction network constructed by FACS theory, the obtained visual features are used as the node features of the action unit interaction network structure, and are input into the corresponding nodes of the action unit interaction network for facial expression feature extraction, thereby obtaining facial expression features.

[0103] Expression recognition module 25: used to input the facial expression features into the graph convolutional neural network to perform facial expression recognition processing and obtain facial expression recognition results.

[0104] In the specific implementation process of the present invention, the graph convolutional neural network is a neural network layer, wherein the neural network layer has N nodes, each node has its own characteristics, the characteristics of the N nodes form an N*D-dimensional matrix X, and the relationship between the nodes forms an N*N-dimensional matrix A; the matrix X and the matrix A are the inputs of the graph convolutional neural network.

[0105] Furthermore, the propagation mode between layers of the graph convolutional neural network is expressed as follows:

[0106]

[0107] in, A represents the relationship between each node, forming an N*N dimensional matrix, also called an adjacency matrix; I represents the identity matrix; yes The degree matrix of H represents the features of each layer. For the input layer, H is the features of N nodes forming an N*D-dimensional matrix X; σ represents the nonlinear activation function.

[0108] Furthermore, the method of inputting the facial expression features into a graph convolutional neural network for facial expression recognition processing to obtain a facial expression recognition result includes: inputting the facial expression features into a graph convolutional neural network model for facial expression feature reconstruction processing to obtain a reconstructed facial expression feature; the graph convolutional neural network model inputs the reconstructed facial expression features into a softmax layer based on a fully connected layer for facial expression recognition processing to obtain a facial expression recognition result.

[0109] Specifically, the graph convolutional neural network (GCN) actually has the same function as CNN, and its principle is also a feature extractor, but the difference is that its object is graph data. GCN has cleverly designed a method to extract features from graph data, so that we can use these features to perform node classification, graph classification, link prediction, and graph embedding.

[0110] Graph convolutional neural network (GCN) is a neural network layer. Assume that there is a batch of graph data with N nodes. Each node has its own features. The features of these nodes form an N×D-dimensional matrix X. The relationship between each node forms an N×N-dimensional matrix A, also known as the adjacency matrix. X and A are the inputs of the network model. The propagation between layers is expressed as follows:

[0111]

[0112] in, A represents the relationship between each node, forming an N*N dimensional matrix, also called an adjacency matrix; I represents the identity matrix; yes The degree matrix of H represents the features of each layer. For the input layer, H is the features of N nodes forming an N*D-dimensional matrix X; σ represents the nonlinear activation function.

[0113] Graph convolutional neural networks use the information of other nodes to infer the information of a node. In semi-supervised learning, the essence of graph convolutional neural networks is not to propagate labels, but to propagate features. Graph convolutional neural networks propagate features of unknown labels to feature nodes with known labels, and use the classifier of known label nodes to infer their attribute features. Each node in the graph network is constantly changing its state until the final balance due to the influence of neighbors and more distant points. The closer the relationship, the greater the influence of neighbors.

[0114] The spatial features in graph data have the following characteristics: 1) Node features: Each node has its own features (reflected in the points); 2) Structural features: Each node in the graph data has structural features, that is, there is a certain connection between nodes (reflected in the edges). By embedding the graph convolutional neural network layer into each layer of the deep convolutional neural network for expression recognition, the high-level semantic relationship between action units and expression categories can be used to improve the semantic feature extraction capability of each layer of the deep convolutional neural network for expression recognition.

[0115] The graph convolutional neural network is defined according to the nature of the mutual relationship of knowledge in the field of expression, including graph convolution operations and node update strategies, and then expression recognition is achieved through learning and reasoning of the graph convolutional neural network. Among them, for each node, its feature information is obtained from all its neighboring nodes, including its own features. Assuming that the average() function is used for the update operation, for each node, the average of all its neighboring nodes, including its own node, is taken; in GCN, only one fully connected layer is used, and then the classification result is achieved through the softmax layer.

[0116] That is, the facial expression features are input into the graph convolutional neural network model for facial expression feature reconstruction to obtain reconstructed facial expression features; then the reconstructed facial expression features are input into the softmax layer through the fully connected layer for facial expression recognition to obtain facial expression recognition results.

[0117] In an embodiment of the present invention, an input face image is received, and image features in the face image are extracted based on a first deep neural network; the face image is divided into FACS regions based on the image features to obtain facial action units; visual feature extraction processing is performed on the image region corresponding to each facial action unit based on a second deep neural network; the extracted visual features are input to the corresponding nodes of the action unit interaction network to perform facial expression feature extraction processing to obtain facial expression features; the facial expression features are input to a graph convolutional neural network to perform facial expression recognition processing to obtain facial expression recognition results. The recognition of facial expressions can be realized, the accuracy of facial expression recognition can be improved, and the problem of repetitive work can be reduced.

[0118] A person skilled in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.

[0119] In addition, the above is a detailed introduction to a facial expression recognition method and device based on a graph convolutional neural network provided by an embodiment of the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for a general technician in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A facial expression recognition method based on graph convolutional neural network, characterized in that: The method comprises: Receiving an input face image, and extracting image features in the face image based on a first deep neural network; Divide the face image into a FACS area of ​​the face image based on the image features to obtain a facial action unit; Performing visual feature extraction processing on the image area corresponding to each facial action unit based on the second deep neural network; The extracted visual features are input into the corresponding nodes of the action unit interaction network to perform facial expression feature extraction processing to obtain facial expression features; Inputting the facial expression features into a graph convolutional neural network to perform facial expression recognition processing to obtain a facial expression recognition result; The step of receiving an input face image comprises: Receive a captured image captured by an image acquisition device, input the captured image into a target detection network model for face target detection processing, and crop a face area image in the captured image, wherein the size of the face area image is 224*224; Performing image color normalization processing on the face region image to form an input face image; The first deep neural network is an 18-layer network model built with a residual network model as the main network; wherein the input dimension of the fully connected layer of the first deep neural network is 512, and the output dimension is 512; the convolution kernel size of the average pooling layer of the first deep neural network is 7*7, the step size is 1, and the number of convolution kernels is 512; The step of dividing the facial image into a FACS area of ​​the facial image based on the image features to obtain a facial action unit comprises: Divide the face image into a FACS region of the face image based on the image features and using domain knowledge; Performing multi-AU detection processing on the FACS region based on the Scikit-multilearn library to obtain facial action units; The performing visual feature extraction processing on the image area corresponding to each facial action unit based on the second deep neural network includes: Obtain the image area corresponding to each facial action unit; The image region corresponding to each facial action unit is input into a second deep neural network for visual feature extraction processing; The step of inputting the extracted visual features into corresponding nodes of the action unit interaction network to perform facial expression feature extraction processing to obtain facial expression features includes: Based on FACS theory, an action unit interaction network that interacts with facial expressions is constructed; The extracted visual features are input into the corresponding nodes of the action unit interaction network to perform facial expression feature extraction processing to obtain facial expression features; The graph convolutional neural network is a neural network layer, wherein the neural network layer has N nodes, each node has its own characteristics, the characteristics of the N nodes form an N*D-dimensional matrix X, and the relationship between the nodes forms an N*N-dimensional matrix A; the matrix X and the matrix A are the inputs of the graph convolutional neural network.

2. The facial expression recognition method according to claim 1, characterized in that: The propagation mode between layers of the graph convolutional neural network is expressed as follows: ; in, , A is the relationship between each node, forming an N*N dimensional matrix, also called an adjacency matrix; represents the identity matrix; yes The degree matrix of ; Represents the characteristics of each layer. For the input layer, That is, the features of N nodes form an N*D-dimensional matrix X; represents a non-linear activation function.

3. The facial expression recognition method according to claim 1, characterized in that: The step of inputting the facial expression features into a graph convolutional neural network to perform facial expression recognition processing to obtain a facial expression recognition result includes: Inputting the facial expression features into a graph convolutional neural network model to perform facial expression feature reconstruction processing to obtain reconstructed facial expression features; The graph convolutional neural network model inputs the reconstructed facial expression features into a softmax layer based on a fully connected layer to perform facial expression recognition processing to obtain a facial expression recognition result.

4. A facial expression recognition device based on a graph convolutional neural network, used to implement the facial expression recognition method according to claim 1, characterized in that: The device comprises: A first extraction module: configured to receive an input face image and extract image features in the face image based on a first deep neural network; A segmentation module: used for segmenting the face image into FACS regions of the face image based on the image features to obtain facial action units; A second extraction module: used for performing visual feature extraction processing on the image area corresponding to each facial action unit based on a second deep neural network; The third extraction module is used to input the extracted visual features into the corresponding nodes of the action unit interaction network to perform facial expression feature extraction processing to obtain facial expression features; Expression recognition module: used to input the facial expression features into the graph convolutional neural network to perform facial expression recognition processing and obtain facial expression recognition results.