Micro-expression recognition method and system based on information bottleneck and deep learning

By introducing an information bottleneck layer into micro-expression recognition technology, the problem of low recognition accuracy and weak model generalization ability caused by differences in lighting and skin color is solved, the recognition accuracy and stability are improved, and the risk of over-fitting is reduced.

CN118570855APending Publication Date: 2024-08-30UNIV OF JINAN
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410647436.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-23
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Existing micro-expression recognition technology has low recognition accuracy when faced with differences in lighting and skin color. Due to the small data set and weak model generalization ability, recognition accuracy and stability are insufficient.

Method used

Using methods based on information bottlenecks and deep learning, a micro-expression recognition model is built through a convolutional neural network, and an information bottleneck layer is added to the model to perform data compression to extract low-dimensional features, filter noise information, and improve the robustness and robustness of the model. Generalization ability.

Benefits of technology

It effectively improves the robustness and accuracy of micro-expression recognition, reduces the risk of model overfitting, speeds up training, and enhances recognition capabilities in non-laboratory environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570855A
    Figure CN118570855A
Patent Text Reader

Abstract

The invention discloses a micro-expression recognition method and system based on information bottleneck and deep learning, and the method comprises the steps: extracting a starting point frame and a vertex frame of a micro-expression video sequence; preprocessing the starting point frame and the vertex frame, and respectively extracting a vertical feature map, a horizontal feature map and an optical strain feature map from the preprocessed starting point frame and vertex frame; inputting the vertical feature maps, the horizontal feature maps and the optical strain feature maps of the starting point frame and the vertex frame into the trained micro-expression recognition model, and outputting a micro-expression recognition result; wherein the trained micro-expression recognition model performs feature extraction and first feature compression on the vertical feature map, the horizontal feature map and the optical strain feature map of the starting point frame and the vertex frame respectively, fuses the features after the first compression to obtain a fused feature, and then performs second feature compression on the fused feature to obtain a fused feature; and performing data flattening and classification on the features after the second feature compression to obtain a micro-expression identification tag.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of micro-expression recognition, and in particular to a micro-expression recognition method and system based on information bottleneck and deep learning. Background Art

[0002] The statements in this section merely mention background art related to the present invention and do not necessarily constitute prior art.

[0003] Facial expressions are an important way for people to convey their feelings in daily communication. They can be divided into macro-expressions and micro-expressions according to their duration. Micro-expressions refer to subtle facial expressions that last less than 0.5 seconds. They usually occur when people try to suppress their true emotions and are irrepressible. Therefore, identifying micro-expressions can effectively help people reveal their true emotions. Currently, micro-expression recognition has attracted widespread attention and has been widely used in the fields of auxiliary psychological medicine, judicial interrogation, and sentiment analysis.

[0004] There are two types of micro-expression recognition algorithms: those based on manual features and those based on deep learning. Manual feature-based algorithms usually extract features using methods such as 3D gradient histograms, local binary patterns, and optical flow. However, since micro-expressions last for a short time and change very slightly, they are affected by differences in lighting and skin color in experiments and practical applications of micro-expression recognition. The data will have a certain degree of noise and interference, which makes the recognition less robust and accurate.

[0005] With the development of deep learning theory, more and more scholars are using deep learning methods for micro-expression recognition, using models such as convolutional neural networks and long short-term memory networks to automatically extract deep features with better performance. However, because micro-expression data is difficult to collect, the currently available data sets are small, which leads to overfitting when using deep neural networks for feature extraction, weak model generalization ability, affecting recognition accuracy and stability, and slow training speed. Summary of the invention

[0006] In order to solve the deficiencies of the prior art, the present invention provides a micro-expression recognition method and system based on information bottleneck and deep learning; it can solve the problem of low recognition accuracy caused by problems such as lighting and skin color differences when performing facial micro-expression recognition, as well as the problem of weak model generalization ability caused by the small size of the micro-expression database. This method uses a convolutional neural network to build a micro-expression recognition model, and adds an information bottleneck layer for data compression in the convolutional neural network, compresses the input high-dimensional features, extracts the most representative low-dimensional features for micro-expression recognition, and filters a part of the noise information, thereby improving the robustness and recognition of the model, reducing the risk of model overfitting and speeding up model training.

[0007] On the one hand, a micro-expression recognition method based on information bottleneck and deep learning is provided;

[0008] Micro-expression recognition methods based on information bottleneck and deep learning include:

[0009] Obtain a micro-expression video sequence to be recognized;

[0010] Extract the starting frame and vertex frame of the micro-expression video sequence;

[0011] Preprocessing the starting point frame and the vertex frame, and extracting a vertical feature map, a horizontal feature map and an optical strain feature map from the preprocessed starting point frame and the vertex frame respectively;

[0012] The vertical feature map, horizontal feature map and optical strain feature map of the starting frame and the vertex frame are input into the trained micro-expression recognition model, and the micro-expression recognition result is output;

[0013] Among them, the trained micro-expression recognition model performs feature extraction and the first feature compression on the vertical feature map, horizontal feature map and optical strain feature map of the starting frame and vertex frame respectively, fuses the features after the first compression to obtain the fused features, and then performs a second feature compression on the fused features, flattens and classifies the features after the second feature compression to obtain micro-expression recognition labels.

[0014] On the other hand, a micro-expression recognition system based on information bottleneck and deep learning is provided;

[0015] Micro-expression recognition system based on information bottleneck and deep learning, including:

[0016] An acquisition module is configured to: acquire a micro-expression video sequence to be recognized;

[0017] An extraction module, which is configured to: extract a starting frame and a vertex frame of a micro-expression video sequence;

[0018] A preprocessing module is configured to: preprocess the starting point frame and the vertex frame, and extract a vertical feature map, a horizontal feature map and an optical strain feature map from the preprocessed starting point frame and the vertex frame respectively;

[0019] An output module is configured to: input the vertical feature map, the horizontal feature map and the optical strain feature map of the starting frame and the vertex frame into the trained micro-expression recognition model, and output the micro-expression recognition result;

[0020] Among them, the trained micro-expression recognition model performs feature extraction and the first feature compression on the vertical feature map, horizontal feature map and optical strain feature map of the starting frame and vertex frame respectively, fuses the features after the first compression to obtain the fused features, and then performs a second feature compression on the fused features, flattens and classifies the features after the second feature compression to obtain micro-expression recognition labels.

[0021] On the other hand, there is also provided an electronic device, comprising:

[0022] a memory for non-transitory storage of computer-readable instructions; and

[0023] a processor for executing the computer readable instructions,

[0024] When the computer-readable instructions are executed by the processor, the method described in the first aspect is executed.

[0025] On the other hand, a storage medium is provided, which non-temporarily stores computer-readable instructions, wherein when the non-temporary computer-readable instructions are executed by a computer, the instructions of the method described in the first aspect are executed.

[0026] On the other hand, a computer program product is provided, comprising a computer program, wherein the computer program is used to implement the method described in the first aspect when running on one or more processors.

[0027] One of the above technical solutions has the following advantages or beneficial effects:

[0028] 1. Using information bottleneck technology can reduce the dimension of input data, improve the training efficiency of the model, and remove information irrelevant to the task.

[0029] 2. This method extracts three optical flow features and compresses these features with the help of information bottleneck technology, so that the model focuses more on the key features of micro-expressions, improves the robustness of micro-expression recognition and the generalization ability of the model, and has a higher recognition accuracy.

[0030] 3. For example, when performing micro-expression recognition in a non-laboratory environment, the unstable environment will cause a lot of noise in image extraction. This method can effectively solve the problem of low recognition accuracy caused by lighting, skin color differences, etc. when performing facial micro-expression recognition, as well as the problem of weak model generalization ability caused by the small size of the micro-expression database. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0032] Figure 1 Schematic diagram of the internal structure of the micro-expression recognition model of Example 1;

[0033] Figure 2 This is a schematic diagram of the internal principle of the information bottleneck module of Example 1;

[0034] Figure 3 This is a schematic diagram of the internal structure of the information bottleneck module of Example 1. DETAILED DESCRIPTION

[0035] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.

[0036] Terminology explanation:

[0037] Information bottleneck: This technology builds an information transfer process that gradually reduces information entropy, making the features that the model can extract more compact and efficient, thereby improving the robustness and generalization ability of the model. The principle is that when facing a task, it is expected to extract as much judgmental information as possible that is helpful to the task, while filtering out redundant information, trying to complete the task with the least information, so as to achieve efficient processing and accurate classification of data. By minimizing the information bottleneck function, the deep neural network model can be trained and optimized.

[0038] Embodiment 1

[0039] This embodiment provides a micro-expression recognition method based on information bottleneck and deep learning;

[0040] Micro-expression recognition methods based on information bottleneck and deep learning include:

[0041] S101: Obtain a micro-expression video sequence to be recognized;

[0042] S102: extracting the starting frame and the vertex frame of the micro-expression video sequence;

[0043] S103: preprocessing the start frame and the vertex frame, and extracting a vertical feature map, a horizontal feature map, and an optical strain feature map from the preprocessed start frame and the vertex frame respectively;

[0044] S104: inputting the vertical feature map, the horizontal feature map and the optical strain feature map of the starting frame and the vertex frame into the trained micro-expression recognition model, and outputting the micro-expression recognition result;

[0045] Among them, the trained micro-expression recognition model performs feature extraction and the first feature compression on the vertical feature map, horizontal feature map and optical strain feature map of the starting frame and vertex frame respectively, fuses the features after the first compression to obtain the fused features, and then performs a second feature compression on the fused features, flattens and classifies the features after the second feature compression to obtain micro-expression recognition labels.

[0046] Furthermore, the S101: obtaining a video sequence of micro-expressions to be identified, by shooting with a camera.

[0047] Further, the S102: extracting the starting frame and the vertex frame of the micro-expression video sequence;

[0048] The starting frame refers to the first frame image in the micro-expression video sequence;

[0049] Among them, the apex frame refers to the frame image with the richest micro-expressions.

[0050] Furthermore, extracting the starting frame and the vertex frame of the micro-expression video sequence includes:

[0051] The Lucas-Kanade optical flow algorithm is used to extract the optical flow information of the image, and the optical flow information is input into the feature extraction network ResNet18 to obtain the optical flow features. The trained classifier is used to classify the optical flow features to obtain the vertex frame.

[0052] Among them, the training data used by the trained classifier is the optical flow features of known vertex frames or non-vertex frames. The optical flow features of the image are used as the input of the classifier, and the labels are used as the output of the classifier, and multiple rounds of training are performed.

[0053] Furthermore, the S103: pre-processing the start frame and the vertex frame specifically includes:

[0054] Haar Cascade classifier is used to perform face detection and cropping on the starting frame and vertex frame, and the image is cropped to a uniform size;

[0055] Use the facial key point location algorithm of the machine learning toolkit Dlib to determine the position of the eyes and mouth;

[0056] Perform rotation correction on the image; perform grayscale processing on the image.

[0057] It should be understood that the starting frame and vertex frame in the micro-expression video sequence in the dataset are extracted, and the face detection and cropping are performed with the help of the Dlib library, and the image size is uniformly cropped to 120*120. The key point positioning algorithm is used to locate the key points, determine the positions of key features such as eyes and mouth, and rotate the image to ensure that the key point coordinates are parallel to the image coordinate system, thereby alleviating the problem of different facial postures caused by inconsistent shooting angles. The image grayscale of the starting frame and the vertex frame is normalized, and the image is converted into a grayscale image so that each pixel has only one grayscale value, reducing data redundancy and increasing image contrast. And each pixel is translated to the range between [0,1] to avoid the order of magnitude difference of the input features and reduce the impact of environmental factors.

[0058] Furthermore, extracting a vertical feature map, a horizontal feature map and an optical strain feature map from the preprocessed start point frame and the vertex frame respectively specifically includes:

[0059] The Lucas-Kanade optical flow algorithm is used to calculate the optical flow features of each pair of starting frame and vertex frame after processing, and the three-dimensional optical flow feature vectors are obtained, which are the horizontal component feature vector u, the vertical component feature vector v and the optical strain feature vector ε of the optical flow field. The optical strain feature vector ε is used to describe the optical change caused by the movement or deformation of the pixel point or area in the image sequence in the optical flow analysis.

[0060] Furthermore, the Lucas-Kanade optical flow algorithm comprises:

[0061] For each pixel (x,y), a window W is selected within a small neighborhood.

[0062] In the next frame, find the pixel point (x′, y′) that best matches the current pixel point (x, y) in W.

[0063] Minimize the error function E to calculate the displacement vector (u,v):

[0064]

[0065] Among them, I(x,y,t) is the grayscale value of the pixel point (x,y) at time t.

[0066] The minimum value of E is solved by the least squares method to obtain the displacement vector (u, v).

[0067] For example, the optical flow feature is calculated for each pair of the starting point frame and the vertex frame after processing, and the three-dimensional optical flow feature vectors are obtained, which are the optical flow field horizontal component feature vector u, the vertical component feature vector v and the optical strain feature vector ε. The extracted feature values ​​are mapped to the corresponding image and the size is standardized to 120*120*3 as the input X k , X k ∈R H *W*C (k∈{1,2,3}).

[0068] Furthermore, if Figure 1 As shown, the S104: input the vertical feature map, horizontal feature map and optical strain feature map of the starting frame and the vertex frame into the trained micro-expression recognition model, and output the micro-expression recognition result, wherein the trained micro-expression recognition model has a network structure including:

[0069] Three parallel branches: the first branch, the second branch and the third branch;

[0070] The first branch includes a first convolution layer, a first pooling layer and a first information bottleneck module connected in sequence; the first convolution layer is used to input a vertical feature map of a starting point frame and a vertical feature map of a vertex frame;

[0071] The second branch includes a second convolutional layer, a second pooling layer, and a second information bottleneck module connected in sequence; the second convolutional layer is used to input a horizontal feature map of a starting point frame and a horizontal feature map of a vertex frame;

[0072] The third branch includes a third convolution layer, a third pooling layer and a third information bottleneck module connected in sequence; the third convolution layer is used to input the optical strain feature map of the starting frame and the optical strain feature map of the vertex frame;

[0073] The output ends of the first information bottleneck module, the output ends of the second information bottleneck module, and the output ends of the third information bottleneck module are all connected to the input end of the series splicing unit, the output end of the series splicing unit is connected to the input end of the fourth information bottleneck module, the output end of the fourth information bottleneck module is connected to the input end of the fully connected layer, the output end of the fully connected layer is connected to the input end of the classifier, and the output end of the classifier outputs a micro-expression recognition label, wherein the micro-expression recognition label includes: positive, negative, and surprised.

[0074] Furthermore, if Figure 3As shown, the internal structures of the first information bottleneck module, the second information bottleneck module, the third information bottleneck module and the fourth information bottleneck module are the same. The first information bottleneck module includes: a first convolutional layer, a first batch of normalization layers, an activation function layer, a second convolutional layer, a second batch of normalization layers, a Dropout layer and an average pooling layer connected in sequence.

[0075] Furthermore, the first information bottleneck module is used to:

[0076] The input data first passes through the first convolutional layer, which is used to extract the features of the input data. Then, the first normalization layer normalizes the feature maps to make the distribution of each batch of data consistent, speeding up the training process and improving model performance; next, the activation function layer is used to increase the nonlinearity of the model, allowing the model to learn more complex features;

[0077] Subsequently, the data passes through the second convolutional layer again to further extract and abstract features; followed by another second batch of normalization layers to continue normalizing the feature maps; then, the Dropout layer is introduced to reduce overfitting, making the model more robust by randomly discarding the output of some neurons during training.

[0078] Finally, the feature map is downsampled through an average pooling layer to reduce the spatial dimension of the data while retaining important information; the output of this pooling layer is the output of the first information bottleneck module.

[0079] It should be understood that the information bottleneck module aims to find a balance in the feature extraction process, that is, to reduce redundant information and noise as much as possible while retaining enough information for subsequent tasks.

[0080] In convolutional neural networks, as the number of network layers increases, the dimension of the feature map (including the number of channels and spatial size) will gradually increase, but it may also introduce too much noise and redundant information. The information bottleneck module effectively controls the flow of information through operations such as feature extraction of convolutional layers, normalization of Batch Normalization, nonlinear activation of ReLU, random discarding of Dropout, and downsampling of average pooling, so that the network can reduce the amount of calculation and the risk of overfitting while maintaining performance.

[0081] Specifically, the convolution layer is responsible for extracting features, Batch Normalization and ReLU make the features more robust and easier to train, Dropout helps reduce overfitting, and average pooling achieves downsampling of feature maps and aggregation of information. These operations together constitute the core working principle of the information bottleneck module, making the model more efficient and stable while maintaining performance.

[0082] Furthermore, the trained micro-expression recognition model is used for:

[0083] Performing feature extraction on the vertical feature map of the starting frame to obtain a vertical feature sub-map of the starting frame, and performing a first compression on the vertical feature sub-map of the starting frame to obtain a first vertical compression feature;

[0084] Performing feature extraction on the horizontal feature map of the starting frame to obtain a horizontal feature sub-map of the starting frame, and performing a first compression on the horizontal feature sub-map of the starting frame to obtain a first horizontal compression feature;

[0085] Extracting features from the optical strain feature graph of the starting frame to obtain an optical strain feature sub-graph of the starting frame, and performing a first compression on the optical strain feature sub-graph of the starting frame to obtain a first optical strain compression feature;

[0086] Performing feature extraction on the vertical feature map of the vertex frame to obtain a vertical feature sub-map of the vertex frame, and performing a first compression on the vertical feature sub-map of the vertex frame to obtain a second vertical compression feature;

[0087] Performing feature extraction on the horizontal feature map of the vertex frame to obtain a horizontal feature sub-map of the vertex frame, and performing a first compression on the horizontal feature sub-map of the vertex frame to obtain a second horizontal compressed feature;

[0088] Extracting features from the optical strain feature graph of the vertex frame to obtain an optical strain feature subgraph of the vertex frame, and performing a first compression on the optical strain feature subgraph of the vertex frame to obtain a second optical strain compression feature;

[0089] The first vertical compression feature, the first horizontal compression feature and the first optical strain compression feature are serially connected to obtain a fusion feature of the starting point frame;

[0090] The second vertical compression feature, the second horizontal compression feature, and the second optical strain compression feature are serially connected to obtain a fusion feature of the vertex frame;

[0091] The fusion features of the starting frame and the fusion features of the vertex frame are concatenated to obtain the total fusion features;

[0092] Perform a second compression on the overall comprehensive features to obtain the features after the second feature compression;

[0093] The features after the second feature compression are flattened and classified to obtain micro-expression recognition labels.

[0094] For example, the three preprocessed feature maps X kAs input, each feature map passes through a 3*3 convolutional layer with 6 filters and a 3*3 maximum pooling layer, and the information bottleneck module is connected after the pooling layer to compress the features.

[0095] like Figure 2 As shown in the figure, the information bottleneck technique uses the mutual information between two variables to help eliminate information irrelevant to the task and maximize the information relevant to the task. The information in the input variable X is compressed into the intermediate representation Z as much as possible, and at the same time, during the compression process, the information in the input variable X that is irrelevant to the final target variable Y is filtered out as much as possible, that is, the mutual information between X and Z is minimized, that is, min I(X; Z). In order to make the compressed intermediate representation most discriminative, the mutual information between Z and Y is maximized, that is, max I(Z; Y), and the Lagrange multiplier β is used to balance the two.

[0096] In the information bottleneck module, the ReLU algorithm is used to compress the feature vector after convolution pooling and map it to a smaller representation space to obtain the compressed feature vector T. By maximizing the mutual information between the feature T and the target output Y, the compressed feature T can represent the target prediction result Y to the greatest extent. At the same time, the vector is compressed to the greatest extent while retaining the key information, and the mutual information between the compressed feature T and the input X is minimized, so that redundant information is filtered out to the greatest extent.

[0097] The three features F obtained by processing the information bottleneck module k Connect them to obtain the joint feature F,

[0098] F = concat(F1, F2, F3),

[0099] In order to further reduce the noise information in the joint feature, we process the joint feature F again through the information bottleneck module, and the compressed intermediate representation is Z, the target prediction is Y, θ IB are the parameters to be learned.

[0100] Next, the data output by the information bottleneck module is flattened into a one-dimensional vector and input into a fully connected layer. The cross entropy loss function is introduced to measure the error, and back propagation is used to calculate the gradient of the cost function to the network parameters, and the parameters are updated for the final classification.

[0101] Finally, the softmax function is used to map the feature vector to the probability distribution of different categories for classification. The emotion recognition types are negative, positive, and surprised, thus completing the micro-expression recognition task.

[0102] Further, the S104: inputting the vertical feature map, the horizontal feature map and the optical strain feature map of the starting frame and the vertex frame into the trained micro-expression recognition model, and outputting the micro-expression recognition result, wherein the training process of the trained micro-expression recognition model includes:

[0103] Constructing a training set, wherein the training set is images with known micro-expression labels;

[0104] The training set is input into the micro-expression recognition model to train the model. When the total loss function value of the model no longer decreases, the training is stopped to obtain the trained micro-expression recognition model.

[0105] Furthermore, the total loss function for:

[0106]

[0107]

[0108]

[0109] Among them, I(T k ,Y;θ k ) represents the mutual information between the two, β is the Lagrange multiplier, and θ is the parameter to be learned; represents the loss function of the first, second, and third information bottleneck modules; represents the loss function of the fourth information bottleneck module, N represents the number of samples, n represents the sample index, ranging from 1 to N, represents the nth sample, y represents the true label, represents the label predicted by the model, T k represents the feature representation, Y represents the target value or label predicted by the model, and θ k represents the parameter set of the model in the kth layer or feature extractor, X represents the input data, Z represents the feature representation or hidden representation learned by the model, and θ IB Represents the parameters to be learned; F represents the intermediate layer representation or hidden layer representation in the model;

[0110] Among them, I(T k ,Y;θ k ) is expressed as:

[0111]

[0112] Among them, p(t k ,y;θ k ) is expressed as: p(t k ,y;θ k )=p(t k |θ k)·p(y|t k ,θ k )

[0113] p(t k |θ k ) means that at a given parameter θ k Next, the feature representation t k The conditional probability distribution of p(y|t k ,θ k ) means that at a given parameter θ k and feature representation t k Under the condition of , the model predicts the conditional probability distribution of y.

[0114] Among them, p(t k θ k ) is expressed as: p(t k θ k )=∑ y p(t k ,y;θ k )

[0115] p(t k θ k ) represents the characteristic representation t k Given the parameter θ k The probability distribution under . The sum here is performed over all possible model predictions Y.

[0116] Among them, p(y; θ k ) is:

[0117] p(y;θ k ) means that the model predicts y given the parameters θ k The probability distribution under . The sum here is over all possible feature representations t k carried out.

[0118] Among them, I(T k ,X;θ k ) is expressed as:

[0119]

[0120] Among them, p(t k ,x;θ k ) is expressed as: p(t k ,x;θ k )=p(t k |x;θ k )·p(x;θ k )

[0121] p(t k |x;θk ) means that given the input x and parameter θ k Next, the feature representation t k The marginal probability distribution of p(x;θ k ) indicates that the input x is given by the parameter θ k The conditional probability distribution under .

[0122] Among them, p(t k θ k ) is expressed as: p(t k θ k )=∑ x p(t k ,x;θ k )

[0123] p(t k θ k ) represents the characteristic representation t k Given the parameter θ k The probability distribution under . The summation is performed over all possible inputs x.

[0124] Among them, p(x; θ k ) is:

[0125] p(x;θ k ) indicates that the model input x is given by the parameter θ k The probability distribution under . The sum here is over all possible feature representations T k carried out.

[0126] Here, x represents a specific input sample. In information theory, lowercase letters are usually used to represent the specific value of a random variable, while uppercase letters represent the random variable itself.

[0127] Among them, I(Z,Y;θ IB ) is expressed as:

[0128]

[0129] Among them, p(z,y;θ IB ) is expressed as: p(z,y;θ IB )=p(z|y;θ IB )·p(y;θ IB );

[0130] p(z|y;θ IB ) is the marginal probability distribution of Y, that is, the probability that Y = y when the value of Z is not considered. IB ) is the conditional probability distribution that Z = z given Y = y.

[0131] Among them, p(z; θ IB ) is expressed as: p(z; θ IB )=∑ y p(z,y;θ IB );

[0132] p(z;θ IB ) means that z has a given parameter θ IB The probability distribution under . The summation here is performed over all possible y.

[0133] Among them, p(y; θ IB ) is expressed as: p(y; θ IB )=∑ z p(z,y;θ IB );

[0134] p(y;θ IB ) means that y is given by parameter θ IB The probability distribution under . The summation here is performed over all possible z.

[0135] Among them, y represents the specific value of the random variable y, and Z is also a random variable.

[0136] Among them, I(Z,F;θ IB ) is expressed as:

[0137]

[0138] Among them, p(z,f;θ IB ) is expressed as: p(z,f;θ IB )=p(z|f;θ IB )·p(f;θ IB )

[0139] p(z|f;θ IB ) is the marginal probability distribution of F, that is, the probability that F = f when the value of Z is not considered. p(f; θ IB ) is the conditional probability distribution of Z = z given F = f.

[0140] Among them, p(z; θ IB ) is expressed as: p(z; θ IB )=∑ f p(z,f;θ IB )

[0141] p(z;θ IB ) means that z has a given parameter θ IB The probability distribution under . The summation here is performed over all possible f.

[0142] Among them, p(f; θIB ) is expressed as: p(f; θ IB )=∑ z p(z,f;θ IB )

[0143] p(f;θ IB ) means f under given parameter θ IB The probability distribution under. The summation here is performed on all possible z. Among them, f represents the specific value of the random variable F, and z represents the specific value of the random variable Z.

[0144] Embodiment 2

[0145] This embodiment provides a micro-expression recognition system based on information bottleneck and deep learning;

[0146] Micro-expression recognition system based on information bottleneck and deep learning, including:

[0147] An acquisition module is configured to: acquire a micro-expression video sequence to be recognized;

[0148] An extraction module, which is configured to: extract a starting frame and a vertex frame of a micro-expression video sequence;

[0149] A preprocessing module is configured to: preprocess the starting point frame and the vertex frame, and extract a vertical feature map, a horizontal feature map and an optical strain feature map from the preprocessed starting point frame and the vertex frame respectively;

[0150] An output module is configured to: input the vertical feature map, the horizontal feature map and the optical strain feature map of the starting frame and the vertex frame into the trained micro-expression recognition model, and output the micro-expression recognition result;

[0151] Among them, the trained micro-expression recognition model performs feature extraction and the first feature compression on the vertical feature map, horizontal feature map and optical strain feature map of the starting frame and vertex frame respectively, fuses the features after the first compression to obtain the fused features, and then performs a second feature compression on the fused features, flattens and classifies the features after the second feature compression to obtain micro-expression recognition labels.

[0152] It should be noted that the acquisition module, extraction module, preprocessing module and output module described above correspond to steps S101 to S104 in Embodiment 1, and the examples and application scenarios implemented by the modules and the corresponding steps are the same, but are not limited to the contents disclosed in Embodiment 1. It should be noted that the modules described above as part of the system can be executed in a computer system such as a set of computer executable instructions.

[0153] The description of each embodiment in the above embodiments has different emphases. For parts not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0154] The proposed system can be implemented in other ways. For example, the system embodiment described above is only illustrative, and the division of the modules is only a logical function division. In actual implementation, there may be other division methods, such as multiple modules can be combined or integrated into another system, or some features can be ignored or not executed.

[0155] Embodiment 3

[0156] This embodiment also provides an electronic device, including: one or more processors, one or more memories, and one or more computer programs; wherein the processor is connected to the memory, and the one or more computer programs are stored in the memory. When the electronic device is running, the processor executes the one or more computer programs stored in the memory so that the electronic device executes the method described in the above embodiment one.

[0157] It should be understood that in this embodiment, the processor may be a central processing unit CPU, and the processor may also be other general-purpose processors, digital signal processors DSP, application-specific integrated circuits ASIC, off-the-shelf programmable gate arrays FPGA or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0158] The memory may include a read-only memory and a random access memory, and provide instructions and data to the processor. A portion of the memory may also include a non-volatile random access memory. For example, the memory may also store information about the device type.

[0159] In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software.

[0160] The method in the first embodiment can be directly embodied as a hardware processor, or a combination of hardware and software modules in the processor. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware. To avoid repetition, it will not be described in detail here.

[0161] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with this embodiment can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0162] Embodiment 4: This embodiment further provides a computer-readable storage medium for storing computer instructions. When the computer instructions are executed by a processor, the method described in Embodiment 1 is completed.

[0163] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A micro-expression recognition method based on information bottleneck and deep learning, characterized by: include: Obtain a micro-expression video sequence to be recognized; Extract the starting frame and vertex frame of the micro-expression video sequence; Preprocessing the starting point frame and the vertex frame, and extracting a vertical feature map, a horizontal feature map and an optical strain feature map from the preprocessed starting point frame and the vertex frame respectively; The vertical feature map, horizontal feature map and optical strain feature map of the starting frame and the vertex frame are input into the trained micro-expression recognition model, and the micro-expression recognition result is output; Among them, the trained micro-expression recognition model performs feature extraction and the first feature compression on the vertical feature map, horizontal feature map and optical strain feature map of the starting frame and vertex frame respectively, fuses the features after the first compression to obtain the fused features, and then performs a second feature compression on the fused features, flattens and classifies the features after the second feature compression to obtain micro-expression recognition labels.

2. The micro-expression recognition method based on information bottleneck and deep learning as claimed in claim 1, characterized in that: Preprocess the start frame and vertex frame, including: The Haar Cascade classifier is used to perform face detection and cropping on the starting frame and vertex frame, and the image is cropped to a uniform size. The facial key point positioning algorithm of the machine learning toolkit Dlib is used to determine the positions of the eyes and the mouth. The image is rotated and corrected. The image is grayscaled.

3. The micro-expression recognition method based on information bottleneck and deep learning as claimed in claim 1, characterized in that: The extracting of the vertical feature map, the horizontal feature map and the optical strain feature map from the preprocessed start point frame and the vertex frame respectively specifically includes: The Lucas-Kanade optical flow algorithm is used to calculate the optical flow features of each pair of starting frame and vertex frame after processing, and the three-dimensional optical flow feature vectors are obtained, which are the horizontal component feature vector u, the vertical component feature vector v and the optical strain feature vector ε of the optical flow field. The optical strain feature vector ε is used to describe the optical change caused by the motion or deformation of the pixel point or area in the image sequence in the optical flow analysis.

4. The micro-expression recognition method based on information bottleneck and deep learning as claimed in claim 1, characterized in that: The vertical feature map, horizontal feature map and optical strain feature map of the starting frame and the vertex frame are input into the trained micro-expression recognition model, and the micro-expression recognition result is output. The network structure of the trained micro-expression recognition model includes: Three parallel branches: the first branch, the second branch and the third branch; The first branch includes a first convolution layer, a first pooling layer and a first information bottleneck module connected in sequence; the first convolution layer is used to input a vertical feature map of a starting point frame and a vertical feature map of a vertex frame; The second branch includes a second convolutional layer, a second pooling layer, and a second information bottleneck module connected in sequence; the second convolutional layer is used to input a horizontal feature map of a starting point frame and a horizontal feature map of a vertex frame; The third branch includes a third convolution layer, a third pooling layer and a third information bottleneck module connected in sequence; the third convolution layer is used to input the optical strain feature map of the starting frame and the optical strain feature map of the vertex frame; The output ends of the first information bottleneck module, the output ends of the second information bottleneck module, and the output ends of the third information bottleneck module are all connected to the input end of the series splicing unit, the output end of the series splicing unit is connected to the input end of the fourth information bottleneck module, the output end of the fourth information bottleneck module is connected to the input end of the fully connected layer, the output end of the fully connected layer is connected to the input end of the classifier, and the output end of the classifier outputs a micro-expression recognition label, wherein the micro-expression recognition label includes: positive, negative, and surprised.

5. The micro-expression recognition method based on information bottleneck and deep learning as claimed in claim 4, characterized in that: The internal structures of the first information bottleneck module, the second information bottleneck module, the third information bottleneck module and the fourth information bottleneck module are the same. The first information bottleneck module includes: a first convolutional layer, a first batch of normalization layers, an activation function layer, a second convolutional layer, a second batch of normalization layers, a Dropout layer and an average pooling layer connected in sequence; The first information bottleneck module is used for: the input data first passes through the first convolution layer, and the first convolution layer is used to extract the features of the input data; then, the first batch of normalization layers normalizes the feature map so that the distribution of each batch of data is consistent; next, the activation function layer is used to increase the nonlinearity of the model; then, the data passes through the second convolution layer again to further extract and abstract features; followed by another second batch of normalization layers to continue normalizing the feature map; then, the Dropout layer is introduced to reduce overfitting by randomly discarding the output of a part of the neurons during the training process; finally, the feature map is downsampled through an average pooling layer, and the output of the pooling layer is the output of the first information bottleneck module.

6. The micro-expression recognition method based on information bottleneck and deep learning as claimed in claim 1, characterized in that: The trained micro-expression recognition model is used for: Performing feature extraction on the vertical feature map of the starting frame to obtain a vertical feature sub-map of the starting frame, and performing a first compression on the vertical feature sub-map of the starting frame to obtain a first vertical compression feature; Performing feature extraction on the horizontal feature map of the starting frame to obtain a horizontal feature sub-map of the starting frame, and performing a first compression on the horizontal feature sub-map of the starting frame to obtain a first horizontal compression feature; Extracting features from the optical strain feature graph of the starting frame to obtain an optical strain feature sub-graph of the starting frame, and performing a first compression on the optical strain feature sub-graph of the starting frame to obtain a first optical strain compression feature; Performing feature extraction on the vertical feature map of the vertex frame to obtain a vertical feature sub-map of the vertex frame, and performing a first compression on the vertical feature sub-map of the vertex frame to obtain a second vertical compression feature; Performing feature extraction on the horizontal feature map of the vertex frame to obtain a horizontal feature sub-map of the vertex frame, and performing a first compression on the horizontal feature sub-map of the vertex frame to obtain a second horizontal compressed feature; Extracting features from the optical strain feature graph of the vertex frame to obtain an optical strain feature subgraph of the vertex frame, and performing a first compression on the optical strain feature subgraph of the vertex frame to obtain a second optical strain compression feature; The first vertical compression feature, the first horizontal compression feature and the first optical strain compression feature are serially connected to obtain a fusion feature of the starting point frame; The second vertical compression feature, the second horizontal compression feature, and the second optical strain compression feature are serially connected to obtain a fusion feature of the vertex frame; The fusion features of the starting frame and the fusion features of the vertex frame are concatenated to obtain the total fusion features; Perform a second compression on the overall comprehensive features to obtain the features after the second feature compression; The features after the second feature compression are flattened and classified to obtain micro-expression recognition labels.

7. The micro-expression recognition method based on information bottleneck and deep learning as claimed in claim 1, characterized in that: The vertical feature map, the horizontal feature map and the optical strain feature map of the starting frame and the vertex frame are input into the trained micro-expression recognition model, and the micro-expression recognition result is output. The training process of the trained micro-expression recognition model includes: Constructing a training set, wherein the training set is images with known micro-expression labels; Input the training set into the micro-expression recognition model to train the model. When the total loss function value of the model no longer decreases, stop the training to obtain the trained micro-expression recognition model. Total loss function for: Among them, I(T k ,Y;θ k ) represents the mutual information between the two, β is the Lagrange multiplier, and θ is the parameter to be learned; represents the loss function of the first, second, and third information bottleneck modules; represents the loss function of the fourth information bottleneck module, N represents the number of samples, n represents the sample index, ranging from 1 to N, represents the nth sample, y represents the true label, represents the label predicted by the model, T k represents the feature representation, Y represents the target value or label predicted by the model, and θ k represents the parameter set of the model in the kth layer or feature extractor, X represents the input data, Z represents the feature representation or hidden representation learned by the model, and θ IB Represents the parameters to be learned; F represents the intermediate layer representation or hidden layer representation in the model.

8. A micro-expression recognition system based on information bottleneck and deep learning, characterized by: include: An acquisition module is configured to: acquire a micro-expression video sequence to be recognized; An extraction module, which is configured to: extract a starting frame and a vertex frame of a micro-expression video sequence; A preprocessing module is configured to: preprocess the starting point frame and the vertex frame, and extract a vertical feature map, a horizontal feature map and an optical strain feature map from the preprocessed starting point frame and the vertex frame respectively; An output module is configured to: input the vertical feature map, the horizontal feature map and the optical strain feature map of the starting frame and the vertex frame into the trained micro-expression recognition model, and output the micro-expression recognition result; Among them, the trained micro-expression recognition model performs feature extraction and the first feature compression on the vertical feature map, horizontal feature map and optical strain feature map of the starting frame and vertex frame respectively, fuses the features after the first compression to obtain the fused features, and then performs a second feature compression on the fused features, flattens and classifies the features after the second feature compression to obtain micro-expression recognition labels.

9. An electronic device, comprising: a memory for non-transitory storage of computer readable instructions; as well as a processor for executing the computer readable instructions, When the computer-readable instructions are executed by the processor, the method described in any one of claims 1 to 7 is executed.

10. A storage medium, characterized in that: The computer-readable instructions are non-transitory stored, wherein when the non-transitory computer-readable instructions are executed by a computer, the instructions of the method according to any one of claims 1 to 7 are executed.