A micro-expression recognition method based on multi-temporal information entropy cross time domain

By employing a multi-temporal information entropy cross-temporal method, utilizing an asymmetric variational autoencoder and a temporal impulse matrix, the modeling challenge of instantaneous features in micro-expression recognition models was solved, enabling comprehensive feature extraction and recognition of micro-expressions.

CN118918620BActive Publication Date: 2026-11-27SHANDONG UNIV +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410722223.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2026-11-27
Estimated Expiration
2044-06-05

AI Technical Summary

Technical Problem

Existing micro-expression recognition models are unable to effectively model the continuous, brief, and instantaneous characteristics of micro-expressions. The lack of modeling of temporal characteristics hinders the research and development of micro-expression recognition models.

Method used

We employ a multi-temporal information entropy cross-temporal approach, modeling the short-temporal feature distribution of micro-expressions through an asymmetric variational autoencoder. We design a temporal pulse matrix to fuse and filter micro-expression features from different temporal states, and utilize an adaptive threshold function to enhance the model's adaptive selection capability.

Benefits of technology

It achieves comprehensive modeling of micro-expressions, improves the accuracy and adaptability of micro-expression recognition, and can effectively capture the instantaneous features of micro-expressions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118918620B_ABST
    Figure CN118918620B_ABST
Patent Text Reader

Abstract

The present application relates to a kind of microexpression recognition methods based on multi-temporal information entropy cross time domain, to comprehensively model the feature of microexpression on different scales.First, introduce asymmetric variational autoencoder, the short-time domain feature distribution of microexpression is unsupervisedly modeled by generation mode, overcomes the problem that microexpression instantaneous characteristics is difficult to capture.Second, design time-domain pulse matrix, use pulse neuron to build new time-domain space, fuse and screen two different temporal microexpression features, ensure that the model effectively extracts features.Finally, propose adaptive threshold function, based on feature map mutual information entropy design activation threshold, enhance the adaptive selection ability of model to different data sets, samples and scale features.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to a micro-expression recognition method based on multi-temporal information entropy across time domains. It focuses on modeling the features of micro-expressions at different scales and belongs to the fields of deep learning and pattern recognition technology. Background Technology

[0002] Despite living in an era of continuous technological advancement, language remains the primary means of communication. However, when two parties speak different languages, observing facial expressions can be a crucial way to obtain accurate information. Therefore, facial expression recognition has wide applications in various fields, including medical monitoring, educational assessment, affective computing, and driver fatigue monitoring. For example, in the medical field, by observing a patient's facial expressions, doctors can make a preliminary inference about whether the patient is in pain; teachers can assess students' understanding of current knowledge based on their facial expression characteristics; and during driving, a driver's facial expressions can indicate whether they are fatigued. These applications have made facial expression recognition a research hotspot in the fields of computer vision and human-computer interaction.

[0003] However, conventional facial expressions may become ineffective when people attempt to conceal their true emotions. Micro-expressions, as spontaneous and extremely short-lived facial expressions, are more likely to reflect genuine feelings due to their inability to be consciously controlled, allowing for a better understanding and capture of human emotions. In the healthcare field, doctors can more accurately determine whether a patient is experiencing pain.

[0004] Although micro-expressions can provide more accurate and effective information, their inherent characteristics make them ineffective for the human eye to recognize; only specially trained experts can accurately identify them. Furthermore, visually recognizing micro-expressions is a time-consuming and error-prone process. Therefore, developing a computer vision-based micro-expression recognition system is of great significance. In recent years, significant research progress has been made in the field of micro-expression recognition, encompassing both traditional machine learning and deep learning approaches.

[0005] In traditional machine learning, researchers widely use Local Binary Patterns (LBP) as a classic texture feature for micro-expression recognition. Pfister et al. introduced an LBP algorithm based on three orthogonal planes (LBP-TOP) and combined it with a multi-kernel support vector machine, successfully recognizing natural micro-expressions. Furthermore, Huang et al. proposed Spatiotemporal Local Binary Patterns (STLBP) based on integral projection, solving the problem of using spatiotemporal features in micro-expression recognition. Optical flow is also a commonly used method in micro-expression recognition. Xu et al. used dynamic facial maps to represent the movement of micro-expressions and implemented spatiotemporal cuboid partitioning through pixel-level alignment algorithms. In addition, Liong et al. proposed a dual-weighted directional optical flow method to encode the basic expressive features of micro-expressions.

[0006] With the development of deep learning technology, micro-expression recognition methods have received widespread attention. Patel et al. first combined deep learning with micro-expression recognition, using convolutional neural networks for facial expression transfer learning to reduce the interference of deep features on micro-expression recognition. Peng et al. designed a dual-stream network (DTSCNN) to extract spatial and temporal features of micro-expression video clips through two convolutional neural networks at different time scales. In addition to CNNs, networks such as LSTM are widely used for spatiotemporal modeling of micro-expressions. Hochreiter et al. proposed a feature representation method based on long short-term memory recurrent neural networks (LSTM) to capture the action flow in micro-expression sequences. In addition, Li et al. proposed a 3D-stream-based convolutional neural network (3D CNN) to obtain the fine action flow generated by micro-expressions and applied it to the field of video micro-expression recognition.

[0007] In recent years, the application of transfer learning in micro-expression recognition has attracted increasing attention. Zong et al. studied micro-expression recognition across databases and proposed a domain regeneration framework to address the problem of inconsistent feature distributions between different datasets. Jia et al. proposed a transformation model that learns from macro to micro levels and applied it to micro-expression feature extraction and recognition.

[0008] Currently, mainstream micro-expression recognition models are typically based on long-time interval micro-expression motion characteristics to highlight subtle features, but they struggle to effectively model the continuous, fleeting instantaneous characteristics of micro-expressions. This lack of temporal-domain modeling hinders the research and development of micro-expression recognition models. Summary of the Invention

[0009] To address the shortcomings of existing technologies, this invention proposes a micro-expression recognition method based on multi-temporal information entropy across time domains. This invention comprises a residual network modeling the motion characteristics of long-interval time-domain micro-expressions, an asymmetric autoencoder network modeling continuous frames of short-interval time-domain micro-expressions, and a pulse-time-domain matrix for joint filtering of long and short time domains. Through the extraction and fusion of multi-temporal micro-expression information, a complete modeling of a feature distribution meaningful for recognition is achieved. Invention Overview:

[0011] A micro-expression recognition method based on multi-temporal information entropy across time domains includes dataset preprocessing, a residual network for modeling the motion characteristics of long-interval time-domain micro-expressions, an asymmetric autoencoder network for modeling continuous frames of short-interval time-domain micro-expressions, and a pulse time-domain matrix for joint screening of long and short time domains.

[0012] The technical problem addressed by this invention is that the subtlety and transience of micro-expressions are unique characteristics that distinguish them from other video recognition tasks. Current mainstream micro-expression recognition models are typically based on long-time interval micro-expression motion characteristics, emphasizing the subtle features of micro-expressions, but they struggle to effectively model the continuous and fleeting transience of micro-expressions. This lack of temporal-domain modeling hinders the research and development of micro-expression recognition models.

[0013] To address the aforementioned technical problems, this invention proposes a micro-expression recognition method based on multi-temporal information entropy across time domains, aiming to comprehensively model the features of micro-expressions at different scales. First, an asymmetric variational autoencoder is introduced to perform unsupervised modeling of the short-temporal feature distribution of micro-expressions through a generative approach, overcoming the difficulty in capturing the instantaneous characteristics of micro-expressions. Second, a temporal pulse matrix is ​​designed, utilizing spiking neurons to construct a new temporal space, fusing and filtering micro-expression features from two different temporal states to ensure effective feature extraction by the model. Finally, an adaptive threshold function is proposed, designing an activation threshold based on the mutual information entropy of feature maps, enhancing the model's adaptive selection ability for different datasets, samples, and scale features.

[0014] Terminology Explanation:

[0015] 1. Dlib Vision Library: Dlib is an open-source C++ toolkit containing machine learning algorithms. Dlib can help create many complex machine learning software applications to help solve practical problems. Currently, Dlib is widely used in industry and academia, including robotics, embedded devices, mobile phones, and large-scale high-performance computing environments.

[0016] 2. 68 key facial feature points: These 68 key facial feature points are mainly distributed in the eyebrows, eyes, nose, mouth, and facial contours, such as... Figure 1 As shown, detection is performed using the Dlib vision library, which is an existing technology.

[0017] 3. Loss Function: The loss function is used to evaluate the degree of inconsistency between the model's predicted values ​​and the true values. The smaller the loss function, the better the robustness of the model. The loss function can guide the model's learning.

[0018] 4. Convolutional Residual Network (ResNet): This is a deep learning model, originally proposed by Kaiming He et al. in 2015. Its various variants have been widely used in video classification and behavior recognition.

[0019] 5. VAE Model: Variational Autoencoders (VAE): A generative model, originally proposed by Kingma and Welling in 2013. It is a probabilistic model based on neural networks, designed to learn the latent representation of data and generate new data samples.

[0020] 6. Spiking Neuron: The spiking neuron is a neuron model designed to more closely resemble the behavior of biological neurons. Compared to the neuron models used in traditional artificial neural networks, the spiking neuron can process and generate time-discrete signals.

[0021] 7. Information entropy: An important concept in information theory, used to measure the uncertainty or information content of a random variable. Proposed by Shannon in 1948, it has been widely applied in fields such as communication, data compression, and cryptography.

[0022] 8. LSTM network, please explain and supplement; Long Short-Term Memory networks (LSTM): a variant of recurrent neural networks (RNN), originally proposed by Sepp Hochreiter and Jürgen Schmidhuber in 1997. Its various variants are widely used in time series prediction and natural language processing.

[0023] The technical solution of the present invention is as follows:

[0024] A micro-expression recognition method based on multi-temporal information entropy across time domains includes:

[0025] A. Preprocessing of micro-expression videos, including: acquiring video frame sequences, face detection and localization, and face alignment;

[0026] B. Select the peak frame and the starting frame from the video sequence after preprocessing in step A, and perform pixel difference calculation on the peak frame and the starting frame to obtain the facial key frame differences. At the same time, sample the micro-expression frame set of the neighboring peak frame.

[0027] C. Construct a residual network for modeling the motion characteristics of micro-expressions in the long-interval time domain. Utilize the differences in facial keyframes obtained in step B to amplify the subtlety of micro-expression changes in the long time domain, extract subtle and representative motion pattern features, and model them.

[0028] D. Construct an asymmetric autoencoder network that models short-interval temporal micro-expression frames, taking the micro-expression frame set as input. Reconstruct peak frames and encode continuous and subtle data at extremely short time scales to enhance their ability to encode temporal information.

[0029] E. Construct a pulse time-domain matrix module for joint screening of long and short time domains, mapping the features extracted from micro-expressions in the long time domain and the features extracted in the short time domain to a new time-domain space for unified feature modeling.

[0030] F. Based on the mutual information of the feature maps, an adaptive function is constructed to adaptively calculate the pulse threshold δ, thereby generating new temporal pulse signals for micro-expression representations of different samples and network scales in both short and long time domains.

[0031] G. Model training: The residual network for modeling long-interval temporal micro-expression motion characteristics and the asymmetric autoencoder network for modeling short-interval temporal micro-expression continuous frames constructed in steps C and D are iteratively updated using cross-entropy loss, peak frame reconstruction loss, KL divergence loss and classification loss.

[0032] H. The facial keyframe differences obtained after preprocessing the micro-expression video to be identified are input into the trained residual network for long-interval temporal micro-expression motion characteristic modeling, and the input micro-expression frame set. An asymmetric autoencoder network modeling continuous frames of micro-expressions in the shortest time interval is used to achieve micro-expression classification and recognition.

[0033] According to a preferred embodiment of the present invention, in step A, the micro-expression video is preprocessed, including:

[0034] 1) Obtain video frame sequence: Perform frame segmentation on the video samples in the micro-expression dataset to obtain continuous micro-expression video frames, and save them in chronological order;

[0035] 2) Face detection and localization: The Dlib vision library is used to detect and localize faces in the separated micro-expression video frames, and the distance between the face and the image boundary in the detected micro-expression video frames is obtained.

[0036] 3) Face alignment: Using the distance between the face and the image boundary in the micro-expression video frame obtained in step 2), the Dlib vision library is used to determine 68 key feature points of the face in the micro-expression video frame, and rectangular boxes are used for segmentation.

[0037] According to a preferred embodiment of the present invention, in step A, face correction is performed after face alignment.

[0038] According to a preferred embodiment of the present invention, in step B, facial keyframe differences Defined as peak frame X σ The pixel difference between the starting frame X1 and the starting frame X1 is shown in Equation (1):

[0039]

[0040] Simultaneously, within a certain time range, a set of micro-expression frames adjacent to the peak frame is periodically sampled. As shown in equation (2):

[0041]

[0042] In equation (2), x σ-△φ Represents the peak frame x σ The former Frame, x σ+△φ Represents the peak frame x σ After Frame, x σ-φ and x σ+φ These represent micro-expression frame sets. The left and right boundaries of the middle frame.

[0043] According to a preferred embodiment of the present invention, in step C, a residual network for modeling the long-interval temporal micro-expression motion characteristics is constructed, namely: a neural network is constructed with ResNet as the backbone to extract the features of micro-expressions in the long time domain, and the peak frame x is compared. σ The difference between the initial frame x1 and the starting frame highlights subtle facial expressions. Using the facial keyframe differences obtained in step B, the subtle changes in micro-expressions are amplified through the long-term domain, and subtle and representative motion pattern features are extracted and modeled; expressed as Equation (3):

[0044]

[0045] The residual block R(·) is represented by the parameter Γ;

[0046] By amplifying the subtle changes in micro-expressions over a long time domain, we can extract subtle yet representative motion pattern features Y. M H, W, and C represent the length, width, and number of channels of the current feature, respectively, and N represents the number of residual blocks.

[0047] According to a preferred embodiment of the present invention, in step D, an asymmetric autoencoder network is constructed to model continuous frames of short-interval temporal micro-expressions, i.e., a variational autoencoder is used to model continuous and short-term complex changes in the frame set, including an encoder and a decoder; the basic unit of the L-encoder includes an LSTM and a max-pooling layer; the input micro-expression frame set is... Modeling continuous and short-term complex changes between frames, reconstructing peak frames, encoding continuous and subtle data at extremely short time scales, and enhancing the ability to encode information in the time dimension;

[0048] In variational autoencoders, The input to the L-encoder is shown in formula (4). The reconstruction target of the decoder is shown in Equation (5);

[0049]

[0050] In equation (4), x σ-△φ Represents the peak frame x σ The former Frame, x σ+△φ Represents the peak frame x σ After Frame, x σ-φ and x σ+φ These represent micro-expression frame sets. The left and right boundaries of the middle frame; in equation (5), x σ For each sampled micro-expression frame x, the peak frame of the current micro-expression sequence is defined. σ±△φ Both aim to generate the peak frame x of the current micro-expression sequence. σ ;

[0051] The process by which the L-encoder performs downsampling and aggregates features representing continuous-time variations is shown in equations (6) to (8):

[0052]

[0053] in, This represents an encoder E with parameter φ, consisting of an LSTM and a max-pooling layer, whose input is a set of frames representing continuous micro-expressions. Y S Represents the output of each layer of the encoder. This represents the feature output of the encoder's first layer, with dimensions H×W×C. The feature representing the output of the Nth layer of the encoder has a size of Indicates that given input Under the given conditions, the approximate posterior distribution of the latent variable Z, where Z is the implicit representation learned by the encoder from the input data. This represents the output of each layer after passing through the L-encoder. Indicates in the parameter The mean of the latent variable Z under the given conditions, Indicates in the parameter The variance of the latent variable Z under given conditions;

[0054] The decoder uses transposed convolutions for upsampling; the decoder's reconstruction target is the set of consecutive input frames. Missing peak frames x σ The entire process is shown in formula (9):

[0055] x = D Ψ (μ,log(σ 2 (9)

[0056] In equation (9), the decoding layer is composed of parameters ψ, denoted as D. ψ x is a parameter The decoder, μ is the mean of the latent variables, log(σ) 2 ) is the log-variance of the latent variable;

[0057] The proposed VAE model is optimized by the loss function L, as shown in equation (10):

[0058] L reap =L r +L kl +ηL cls (10)

[0059] Among them, the first item L r To reconstruct the peak frame set The reconstruction loss is calculated using the MSE loss, as shown in formula (11), where N is the number of frames. Let i be the input frame for the i-th micro-expression sequence. It is the peak frame of the i-th micro-expression sequence; the second term L kl It is the Kullback-Leibler divergence, as shown in Equation (12), which is used to utilize the reconstructed mean μ and the reconstructed variance σ. 2 To smooth the constraint reconstruction process;

[0060]

[0061] L cls The final classification loss is η, where η is the scaling factor.

[0062] According to a preferred embodiment of the present invention, in step E, a pulse time-domain matrix module for joint screening of long and short time domains is constructed, that is: the features of the long time domain and the short time domain are spliced ​​together and input into the spiking neuron. The spiking neuron transmits information in the form of pulses. The state of each spiking neuron is represented by its membrane potential. When the membrane potential exceeds a certain threshold, the neuron fires a pulse. The spiking neuron is defined by formulas (13) and (14):

[0063]

[0064] In formulas (13) and (14), t and i represent the t-th element in the residual network for modeling long-interval temporal micro-expression motion characteristics constructed in step C and the asymmetric autoencoder network for modeling short-interval temporal micro-expression continuous frames constructed in step D, respectively. th Time step and i-th th layer; and Indicates two time domains; τ represents the rate of change of the input current I(t) with time t. syn τ represents the time constant. syn I(t) represents the decay rate of the input current I(t) controlled by a time constant. This represents the weights between the i-th and j-th neurons in the n-th layer of the neural network. τ represents the rate of change of membrane potential V(t) with time t. mem The time constant representing the membrane potential is used to control the decay rate of the membrane potential; Equation (13) represents the characteristics of the two time domains through weights. Transform along time step t;

[0065] In formula (14): V(t) is the corresponding membrane potential, which is equal to the cumulative amount of different micro-expression features at different time steps; therefore, Represents the i-th time step in time step t+1 th The pulse signal of the layer; when the membrane potential V(t) reaches the pulse threshold δ, the spiking neuron will output a pulse signal, that is, the pulse value 1 in formula (15). When it does not reach the threshold, the output is 0, which indicates that this position holds relatively more critical micro-expression features; formula (15) is as follows:

[0066]

[0067] Through pulse time-domain processing, information from two time domains will be unfolded in a new time domain in the form of pulses; the size of the time domain is determined by the time step t of the spiking neuron.

[0068] Next, the time-domain pulse matrix M TS(Temporal Spiking Matrix, TSM) is concatenated according to formula (16) to match the size of the original concatenated feature map, where M motion M represents the value of the long-term information of micro-expressions expanded in the new time domain. set This represents the value of the short-term temporal information of micro-expressions expanded in the new temporal domain; cat(·) represents the concatenation operation, and C represents the number of channels; at this time, TSM represents the regions of the entire feature map that need to be highlighted and the redundant regions that need to be ignored in the two temporal spaces;

[0069]

[0070] Finally, the feature map Y from the long time domain M and short time domain feature map Y S After splicing, it is combined with the time-domain pulse matrix M TS Element-wise multiplication is performed to selectively integrate micro-expression features at different time scales, as shown in formula (17):

[0071] Y F =cat(Y M Y S )·M TS (17)

[0072] Through the time-domain pulse matrix M TS After filtering and highlighting the features, a unified key solution vector is obtained. And continue through residual block R Γ Continue forward propagation to obtain the representation used for final micro-expression recognition, as shown in Equation (18):

[0073]

[0074] Among them, Fc n This indicates a fully connected layer used for mixing Y... F The channel and the size aligned to the residual block R Γ The last item As the basis for recognition, constrained by the classification loss function (19), the final unified representation is obtained. The network is optimized using cross-entropy loss, where Fc n Indicates a fully connected layer. This represents the summation over all categories c, where C represents the total number of categories. When the current sample belongs to category c, y... true,c It is 1 if it is true, otherwise it is 0;

[0075]

[0076] An adaptive function is constructed based on the adaptive calculation of the pulse threshold δ according to the mutual information of the feature map, which adaptively generates new temporal pulse signals for micro-expression representations of different samples and network scales in both short and long time domains.

[0077] According to a preferred embodiment of the present invention, in step F, an adaptive function is constructed based on the adaptive calculation of the pulse threshold δ according to the mutual information of the feature maps, to adaptively generate new temporal pulse signals for micro-expression representations of different samples and different network scales in both short and long time domains; including:

[0078] First, using formulas (20) and (21), the mutual information entropy of the two feature maps—the residual network feature map for modeling long-interval temporal micro-expression motion characteristics constructed in step C and the asymmetric autoencoder network feature map for modeling short-interval temporal micro-expression continuous frames constructed in step D—is derived. This entropy represents the shared information between the long-term and short-term distributions. Formula (20) represents the joint feature map at time point d obtained by discretizing (digitizing) these two feature maps at time point c in the continuous temporal domain; p(y S ,y M The feature y is extracted from the residual network that models the long-interval temporal micro-expression motion characteristics constructed in step C. s and features y extracted from the asymmetric autoencoder network constructed in step D that models consecutive frames of short-interval temporal micro-expressions. M The joint probability distribution, in formula (21), This indicates the calculation of mutual information entropy on the discrete feature map;

[0079]

[0080] Among them, long-term spatial micro-expression features and short-term spatial micro-expression features p(y) S ) and p(y M The marginal probability distributions are the residual network features for modeling long-interval temporal micro-expression motion characteristics constructed in step C and the asymmetric autoencoder network features for modeling short-interval temporal micro-expression continuous frames constructed in step D, respectively.

[0081] From formula (21), if we want to calculate the mutual information between the residual network feature map for modeling long-interval temporal micro-expression motion characteristics constructed in step C and the asymmetric autoencoder network feature map for modeling short-interval temporal micro-expression continuous frames constructed in step D, we need to first calculate p(y S ,y M ) and its y s y M ;

[0082] For the joint probability distribution, a contingency table C[i,j] needs to be constructed, as shown in formula (22):

[0083] C[y S =i,y M =j]=count(y S =i∩y M =j) (22)

[0084] For two discrete variables y M and y S y M and y S This refers to the discretized long-term spatial micro-expression features and short-term spatial micro-expression features, with the contingency table C[i,j] representing the variable y. M In state i and variable y S The joint frequency of occurrence in state j;

[0085] Therefore, the joint probability distribution p(y) S ,y M ) and marginal probability distribution p(y S ), p(y M The results are obtained from formulas (23) and (24) respectively:

[0086]

[0087] Where N is the total number of observations in the data;

[0088] Micro-expression features with the same shape at different time scales are distinguished based on vector v, which is defined by formula (25) as follows:

[0089]

[0090] In formula (25), This represents the mutual information between the residual network feature map, constructed in step C to model the long-interval temporal micro-expression motion characteristics, and the asymmetric autoencoder network feature map, constructed in step D to model the short-interval temporal micro-expression continuous frames, calculated at discrete time steps d.

[0091] Subsequently, based on vector v, a variant of the Sigmoid function is used as the transformation function to transform the obtained mutual information entropy and obtain the adaptively variable threshold required by the spiking neuron, as shown in formula (26):

[0092]

[0093] In formula (26), k represents the scaling factor, which is used to limit the adaptive threshold. The upper and lower bounds; The changes will occur within the range [k, 2k]. Represents the adaptive threshold, where α and β are parameters used to control the rate of change of the threshold and the center point;

[0094] To further optimize the analysis of the effect of α, firstly, let the σ(x) function replace the Sigmoid function, as shown in formula (27):

[0095]

[0096] Next, the first derivative of the σ(x) function is taken, as shown in formula (28), and its derivative is:

[0097]

[0098] Finally, the first derivative of the σ(x) function σ(x|α,β) adjusted by α and β is expressed as shown in Equation (29):

[0099]

[0100] According to formula (29), the derivative of the function σ(x|α,β) is proportional to α. Therefore, as α increases, the slope of the Sigmoid function at any point increases, resulting in the proposed adaptive threshold function becoming steeper.

[0101] Analyze the effect of β on the adaptive threshold function; consider the adjusted Sigmoid function σ(x|α,β), whose value at x=β is shown in formula (30):

[0102] σ(α×(β-β))=σ(0)=0.5 (30)

[0103] This indicates that β actually controls the phase shift of the adaptive threshold function; Equation (31) is the maximum value of the adaptive threshold function;

[0104]

[0105] By adapting the threshold Substituting the threshold δ back into formula (14), the mapping of cross-temporal micro-expression features into the new temporal space formed by spiking neurons is completed; by repeating this process for each sample, key distributions with different points of interest are extracted using multivariate temporal space. Used for micro-expression recognition.

[0106] According to a preferred embodiment of the present invention, the facial keyframe differences obtained after preprocessing the micro-expression video to be identified are input into a trained residual network for modeling long-interval temporal micro-expression motion characteristics and an input micro-expression frame set. An asymmetric autoencoder network for modeling short-interval temporal micro-expressions in consecutive frames is used to achieve micro-expression classification and recognition, including:

[0107] First, the micro-expression video to be identified is preprocessed and labeled as peak frames and start frames. Motion features are then obtained after pixel difference calculations. Simultaneously, within a certain time range... by Periodically sample a set of micro-expression frames that are adjacent to the peak frame;

[0108] Next, the motion features are first extracted using a residual network modeled with long-interval temporal micro-expression motion characteristics, following step C, to obtain long-interval temporal micro-expression motion feature maps; then, the micro-expression frame set is processed according to step D. The input asymmetric variational autoencoder first passes through an L-encoder including pooling layers and an LSTM network to obtain a short temporal micro-expression motion feature map. Then, according to step E, the two feature maps are concatenated to map them to a new temporal space. According to step F, the mutual information entropy of the two feature maps is calculated to obtain the threshold for each position on the concatenated feature map. The threshold is then substituted back into step E to obtain the temporal impulse matrix. The temporal impulse matrix is ​​multiplied with the concatenated feature map to obtain the final feature, which is then fed into the residual block for micro-expression recognition and classification.

[0109] The beneficial effects of this invention are as follows:

[0110] 1. To overcome the problem of difficulty in capturing the instantaneous characteristics of micro-expressions, this invention proposes an asymmetric variational autoencoder to perform unsupervised modeling of the short-term feature distribution of micro-expressions in a generative manner.

[0111] 2. To ensure the effectiveness of the model's feature extraction, this invention proposes a temporal pulse matrix, which uses spiking neurons to construct a new temporal space to fuse and filter micro-expression features from two different temporal states.

[0112] 3. To enhance the model's ability to adaptively select features from different datasets, samples, and scales, this invention designs an adaptive threshold function that applies an activation threshold based on the mutual information entropy of the feature map to the proposed temporal impulse matrix. Attached Figure Description

[0113] Figure 1 This is a schematic diagram of 68 key facial feature points of the present invention;

[0114] Figure 2 This is a flowchart illustrating a micro-expression recognition method based on multi-temporal information entropy across time domains according to the present invention.

[0115] Figure 3 A schematic diagram of a residual network for modeling the motion characteristics of long-interval time-domain micro-expressions;

[0116] Figure 4 A schematic diagram of micro-expression motion features in the long-interval time domain and the short-interval time domain;

[0117] Figure 5 A schematic diagram of an asymmetric autoencoder network for modeling short-interval temporal micro-expression consecutive frames;

[0118] Figure 6 This is a schematic diagram of transposed convolution;

[0119] Figure 7 This is a schematic diagram of a time-domain pulse matrix based on binary time-domain mutual information;

[0120] Figure 8 Experimental Results Analysis 1 - Schematic diagram of the confusion matrix of the CASMEII dataset;

[0121] Figure 9 Experimental Results Analysis: Schematic diagram of the confusion matrix of the 2-SAMM dataset;

[0122] Figure 10 Experimental results analysis: Schematic diagram of the confusion matrix of the 3-SMIC dataset. Detailed Implementation

[0123] The present invention will be further described below with reference to the embodiments and accompanying drawings, but is not limited thereto.

[0124] Example 1

[0125] A micro-expression recognition method based on multi-temporal information entropy across time domains, such as... Figure 2 As shown, it includes:

[0126] A. Preprocessing of micro-expression videos, including: acquiring video frame sequences, face detection and localization, and face alignment;

[0127] B. From the preprocessed video sequence in step A, select the peak frame and the starting frame, and perform pixel difference calculation on the peak frame and the starting frame to obtain the facial keyframe differences, while within a certain time range... by Periodically sample micro-expression frames that are adjacent to the peak frame.

[0128] C. Construct a residual network for modeling the motion characteristics of micro-expressions in the long-interval time domain. Utilize the differences in facial keyframes obtained in step B to amplify the subtlety of micro-expression changes in the long time domain, extract subtle and representative motion pattern features, and model them.

[0129] D. Construct an asymmetric autoencoder network that models short-interval temporal micro-expression frames, taking the micro-expression frame set as input. Model the continuous and short-term complex changes between frames, reconstruct peak frames, encode continuous and subtle data at extremely short time scales, and enhance its ability to encode information in the time dimension.

[0130] E. Construct a pulse time-domain matrix module for joint screening of long and short time domains, map the features extracted from micro-expressions in the long time domain and the features extracted in the short time domain to the new time-domain space, and then perform unified feature modeling for the final recognition task.

[0131] F. Based on the mutual information of the feature maps, an adaptive function is constructed to adaptively calculate the pulse threshold δ, thereby generating new temporal pulse signals for micro-expression representations of different samples and network scales in both short and long time domains.

[0132] G. Model training: The residual network for modeling long-interval temporal micro-expression motion characteristics and the asymmetric autoencoder network for modeling short-interval temporal micro-expression continuous frames constructed in steps C and D are iteratively updated using cross-entropy loss, peak frame reconstruction loss, KL divergence loss and classification loss.

[0133] H. The facial keyframe differences obtained after preprocessing the micro-expression video to be identified are input into the trained residual network for long-interval temporal micro-expression motion characteristic modeling, and the input micro-expression frame set. An asymmetric autoencoder network modeling continuous frames of micro-expressions in the shortest time interval is used to achieve micro-expression classification and recognition.

[0134] Example 2

[0135] The micro-expression recognition method based on multi-temporal information entropy across time domains as described in Example 1 differs in that:

[0136] In step A, the micro-expression video is preprocessed, including:

[0137] 1) Obtain video frame sequence: Perform frame segmentation on the video samples in the micro-expression dataset to obtain continuous micro-expression video frames, and save them in chronological order;

[0138] 2) Face detection and localization: The Dlib vision library is used to detect and localize faces in the separated micro-expression video frames, and the distance between the face and the image boundary in the detected micro-expression video frames is obtained.

[0139] 3) Face alignment: Using the distance between the face and the image boundary in the micro-expression video frame obtained in step 2), the Dlib vision library is used to determine 68 key feature points of the face in the micro-expression video frame, and rectangular boxes are used for segmentation.

[0140] In step A, face alignment is followed by face correction. This includes adjusting certain key feature points from the 68 detected key feature points, based on the characteristics of the selected micro-expression dataset (including ethnicity, gender, shooting angle, etc.). For example, a line can be drawn connecting key feature point 37 (marked at the left corner of the left eye) and key feature point 46 (marked at the right corner of the right eye). This line may form an angle α with the standard horizontal line. This angle can be used to rotate the segmented face, making the line connecting key feature points 37 and 46 parallel to the standard horizontal line, thus calibrating the face pose.

[0141] In step B, facial keyframe differences Defined as peak frame X σ The pixel difference between the starting frame X1 and the starting frame X1 is shown in Equation (1):

[0142]

[0143] Simultaneously, within a certain time range, a set of micro-expression frames adjacent to the peak frame is periodically sampled. As shown in equation (2):

[0144]

[0145] In equation (2), Represents the peak frame x σ The former frame, Represents the peak frame x σ After frame, and These represent micro-expression frame sets. Left and right boundaries of mid-frames (micro-expression frame set) Within a certain time range by (Periodic sampling).

[0146] In step C, a residual network for modeling long-interval temporal micro-expression motion characteristics is constructed. Specifically, a neural network is built using ResNet as its backbone to extract micro-expression features over a long time domain. This is achieved by comparing peak frames x. σ The difference between the initial frame x1 and the starting frame highlights subtle facial expressions. Using the facial keyframe differences obtained in step B, the subtle changes in micro-expressions are amplified through the long-term domain, and subtle and representative motion pattern features are extracted and modeled; expressed as Equation (3):

[0147]

[0148] The residual block R(·) is represented by the parameter Γ;

[0149] By amplifying the subtle changes in micro-expressions over a long time domain, we can extract subtle yet representative motion pattern features Y. M H, W, and C represent the length, width, and number of channels of the current feature, respectively, and N represents the number of residual blocks.

[0150] In step D, compared to the motion pattern information between the starting frame and the peak frame, the motion pattern between two adjacent frames is not significant, such as... Figure 4 As shown, there is almost no effective information representation, making it difficult to serve as an effective representation. For example... Figure 5 As shown, an asymmetric autoencoder network is constructed to model continuous frames of short-interval temporal micro-expressions. Specifically, a variational autoencoder (VAE) is used to model continuous and short-term complex variations within the frame set, comprising an encoder and a decoder. It is worth noting that since the task is to extract subtle key representations between consecutive frames, the VAE should focus more on the feature distribution constructed in the encoder, while the quality of the image generated by the decoder does not directly affect the classification result. To address this characteristic, the encoder structure is redesigned. The L-encoder, whose basic unit includes an LSTM and a max-pooling layer, aims to enhance its ability to encode temporal information. The decoder structure remains consistent with that of a traditional VAE decoder (multiple convolutional layers). The input is a set of micro-expression frames. Modeling continuous and short-term complex changes between frames, reconstructing peak frames, encoding continuous and subtle data at extremely short time scales, and enhancing the ability to encode information in the time dimension;

[0151] In variational autoencoders, The input to the L-encoder is shown in formula (4). The reconstruction target of the decoder is shown in Equation (5);

[0152]

[0153] In equation (4), x σ-△φ Represents the peak frame x σ The former Frame, x σ+△φ Represents the peak frame x σ After Frame, x σ-φ and x σ+φ These represent micro-expression frame sets. The left and right boundaries of the middle frame ( Within a certain time range by (Periodic sampling); in equation (5), x σ For each sampled micro-expression frame x, the peak frame of the current micro-expression sequence is defined.σ±△φ Both aim to generate the peak frame x of the current micro-expression sequence. σ ;

[0154] The micro-expression frame set excludes consecutive frames containing peak frames with the most micro-expression information, while also excluding frames within a certain time range. by Frames adjacent to the peak frame are sampled periodically. The frame set contains only the peak frame and its copies. The goal of the network is to encode continuous and subtle data over extremely short time scales by reconstructing the peak frame. The L-encoder performs downsampling and aggregates features representing continuous time variations as shown in equations (6) to (8):

[0155]

[0156]

[0157] in, This represents an encoder E with parameter φ, consisting of an LSTM and a max-pooling layer, whose input is a set of frames representing continuous micro-expressions. Y S Y1 represents the output of each layer of the encoder. S;(H,W,C) This represents the feature output of the encoder's first layer, with dimensions H×W×C. This represents the feature output of the Nth layer of the encoder, with a size of Indicates that given input Under the given conditions, the approximate posterior distribution of the latent variable Z, where Z is the implicit representation learned by the encoder from the input data. This represents the output of each layer after passing through the L-encoder. Indicates in the parameter The mean of the latent variable Z under the given conditions, Indicates in the parameter The variance of the latent variable Z under given conditions;

[0158] The decoder is built following the traditional VAE model construction method, such as... Figure 6 As shown, transposed convolution is used for upsampling; the decoder's reconstruction target is the set of consecutive input frames. Missing peak frames x σ The entire process is shown in formula (9):

[0159] χ=D ψ (μ,log(σ 2 (9)

[0160] In equation (9), the decoding layer is composed of parameters ψ, denoted as D ψ x is a parameter The decoder, μ is the mean of the latent variables, log(σ) 2 ) is the log-variance of the latent variable;

[0161] The proposed VAE model is optimized by the loss function L, as shown in equation (10):

[0162] L reap =L r +L kl +ηL cls (10)

[0163] Among them, the first item L r To reconstruct the peak frame set The reconstruction loss is calculated using the MSE loss, as shown in formula (11), where N is the number of frames. Let i be the input frame for the i-th micro-expression sequence. It is the peak frame of the i-th micro-expression sequence; the second term L kl It is the Kullback-Leibler divergence, as shown in Equation (12), which is used to utilize the reconstructed mean μ and the reconstructed variance σ. 2 To smooth the constraint reconstruction process;

[0164]

[0165]

[0166] Such as loss function L reap As shown, considering that the ultimate goal of the algorithm is micro-expression recognition, a third term L is added to the loss function of the VAE model. cls And a scaling factor η, L cls The final classification loss is η, where η is the scaling factor. The purpose is to add certain constraints to the model to serve the classification task, rather than focusing on reconstruction and generation as the primary objective.

[0167] In step E, a pulse time-domain matrix module for joint screening of long and short time domains is constructed, namely: the features of the long time domain and the short time domain are concatenated and input into the spiking neuron. The spiking neuron transmits information in the form of pulses. The state of each spiking neuron is represented by its membrane potential. When the membrane potential exceeds a certain threshold, the neuron fires a pulse. The spiking neuron is defined by formulas (13) and (14):

[0168]

[0169] In formulas (13) and (14), t and i represent the t-th element in the residual network for modeling long-interval temporal micro-expression motion characteristics constructed in step C and the asymmetric autoencoder network for modeling short-interval temporal micro-expression continuous frames constructed in step D, respectively. th Time step and i-th th layer; and Indicates two time domains; τ represents the rate of change of the input current I(t) with time t. syn τ represents the time constant. syn I(t) represents the decay rate of the input current I(t) controlled by a time constant. This represents the weights between the i-th and j-th neurons in the n-th layer of the neural network. τ represents the rate of change of membrane potential V(t) with time t. mem The time constant representing the membrane potential is used to control the decay rate of the membrane potential; Equation (13) represents the characteristics of the two time domains through weights. Transform along time step t;

[0170] In formula (14): V(t) is the corresponding membrane potential, which is equal to the cumulative amount of different micro-expression features at different time steps; therefore, Represents the i-th time step in time step t+1 th The pulse signal of the layer; when the membrane potential V(t) reaches the pulse threshold δ, the spiking neuron will output a pulse signal, that is, the pulse value 1 in formula (15). When it does not reach the threshold, the output is 0, which indicates that this position holds relatively more critical micro-expression features; formula (15) is as follows:

[0171]

[0172] Through pulse time-domain processing, information from two time domains will be unfolded in a new time domain in the form of pulses; the size of the time domain is determined by the time step t of the spiking neuron.

[0173] Next, the time-domain pulse matrix M TS (Temporal Spiking Matrix, TSM) is concatenated according to formula (16) to match the size of the original concatenated feature map, where M motion M represents the value of the long-term information of micro-expressions expanded in the new time domain. set This represents the value of the short-term temporal information of micro-expressions expanded in the new temporal domain; cat(·) represents the concatenation operation, and C represents the number of channels; at this time, TSM represents the regions of the entire feature map that need to be highlighted and the redundant regions that need to be ignored in the two temporal spaces;

[0174]

[0175] Finally, the feature map Y from the long time domain M and short time domain feature map Y S After splicing, it is combined with the time-domain pulse matrix M TS Element-wise multiplication is performed to selectively integrate micro-expression features at different time scales, as shown in formula (17):

[0176] Y F =cat(Y M Y S )·M TS (17)

[0177] Through the time-domain pulse matrix M TS After filtering and highlighting the features, a unified key solution vector is obtained. And continue through residual block R Γ Continue forward propagation to obtain the representation used for final micro-expression recognition, as shown in Equation (18):

[0178]

[0179] Among them, Fc n This indicates a fully connected layer used for mixing Y... F The channel and the size aligned to the residual block R Γ The last item As the basis for recognition, constrained by the classification loss function (19), the final unified representation is obtained. The network is optimized using cross-entropy loss, where Fc n Indicates a fully connected layer. This represents the summation over all categories c, where C represents the total number of categories. When the current sample belongs to category c, y... true,c It is 1 if it is true, otherwise it is 0;

[0180]

[0181] An adaptive function is constructed based on the adaptive calculation of the pulse threshold δ according to the mutual information of the feature map, which adaptively generates new temporal pulse signals for micro-expression representations of different samples and network scales in both short and long time domains.

[0182] Setting the threshold δ is crucial for the temporal pulse matrix. In step F, an adaptive function is constructed by adaptively calculating the pulse threshold δ based on the mutual information of the feature maps. This adaptively generates new temporal pulse signals for micro-expression representations of different sample lengths and network scales. The generation process of the adaptive threshold function is as follows: Figure 7 As shown.

[0183] In step F, an adaptive function is constructed based on the adaptive calculation of the pulse threshold δ according to the mutual information of the feature maps, which adaptively generates new temporal pulse signals for micro-expression representations of different samples and network scales in both short and long time domains; including:

[0184] First, using formulas (20) and (21), the mutual information entropy of the two feature maps—the residual network feature map for modeling long-interval temporal micro-expression motion characteristics constructed in step C and the asymmetric autoencoder network feature map for modeling short-interval temporal micro-expression continuous frames constructed in step D—is derived. This entropy represents the shared information between the long-term and short-term distributions. Formula (20) represents the joint feature map at time point d obtained by discretizing (digitizing) these two feature maps at time point c in the continuous temporal domain; p(y S ,y M The feature y is extracted from the residual network that models the long-interval temporal micro-expression motion characteristics constructed in step C. s and features y extracted from the asymmetric autoencoder network constructed in step D that models consecutive frames of short-interval temporal micro-expressions. M The joint probability distribution, in formula (21), This indicates the calculation of mutual information entropy on the discrete feature map;

[0185]

[0186] Among them, long-term spatial micro-expression features and short-term spatial micro-expression features p(y) S ) and p(y M The marginal probability distributions are the residual network features for modeling long-interval temporal micro-expression motion characteristics constructed in step C and the asymmetric autoencoder network features for modeling short-interval temporal micro-expression continuous frames constructed in step D, respectively.

[0187] From formula (21), if we want to calculate the mutual information between the residual network feature map for modeling long-interval temporal micro-expression motion characteristics constructed in step C and the asymmetric autoencoder network feature map for modeling short-interval temporal micro-expression continuous frames constructed in step D, we need to first calculate p(y S ,y M ) and its y s y M ;

[0188] For the joint probability distribution, a contingency table C[i,j] needs to be constructed, as shown in formula (22):

[0189] C[y S =i, yM=j]=count(y S =i∩y M =j) (22)

[0190] For two discrete variables y M and y S y M and y S This refers to the discretized long-term spatial micro-expression features and short-term spatial micro-expression features, with the contingency table C[i,j] representing the variable y. M In state i and variable y S The joint frequency of occurrence in state j;

[0191] Therefore, the joint probability distribution p(y) S ,y M ) and marginal probability distribution p(y S ), p(y M The results are obtained from formulas (23) and (24) respectively:

[0192]

[0193] Where N is the total number of observations in the data (i.e., the sum of all counts in matrix C[·]);

[0194] It is worth noting that, This represents the diagonal elements in formula (21), which means The shared information of micro-expression features on the same network layer in different time domains is quantified, indicating the degree of information overlap at specific locations and whether they capture representative or independent micro-expression representations. Therefore, micro-expression features with the same shape at different time scales are distinguished based on vector v, which is defined by formula (25) as follows:

[0195]

[0196] In formula (25), This represents the mutual information between the residual network feature map, constructed in step C to model the long-interval temporal micro-expression motion characteristics, and the asymmetric autoencoder network feature map, constructed in step D to model the short-interval temporal micro-expression continuous frames, calculated at discrete time steps d.

[0197] Subsequently, based on vector v, a variant of the Sigmoid function is used as the transformation function to transform the obtained mutual information entropy and obtain the adaptively variable threshold required by the spiking neuron, as shown in formula (26):

[0198]

[0199] In formula (26), k represents the scaling factor, which is used to limit the adaptive threshold. The upper and lower bounds; The changes will occur within the range [k, 2k]. The threshold represents the adaptive threshold, and α and β are parameters used to control the rate of threshold change and the center point. The experimental section will analyze the impact of different α and β values ​​on the final recognition task. A theoretical analysis of the influence of α and β on the actual threshold is given here.

[0200] To analyze the effect of α, firstly, let the σ(x) function replace the Sigmoid function, as shown in formula (27):

[0201]

[0202] Next, the first derivative of the σ(x) function is taken, as shown in formula (28), and its derivative is:

[0203]

[0204] Finally, the first derivative of the σ(x) function σ(x|α,β) adjusted by α and β is expressed as shown in Equation (29):

[0205]

[0206] According to formula (29), the derivative of the function σ(x|α,β) is proportional to α. Therefore, as α increases, the slope of the Sigmoid function at any point increases, causing the proposed adaptive threshold function to become steeper.

[0207] Analyze the effect of β on the adaptive threshold function; consider the adjusted Sigmoid function σ(x|α,β), whose value at x=β is shown in formula (30):

[0208] σ(α×(β-β))=σ(0)=0.5 (30)

[0209] This means that when the input x equals β, the output of the Sigmoid function is exactly k / 2 (0.5 here). As x increases or decreases, the output of the Sigmoid function will increase or decrease accordingly, indicating that β actually controls the phase shift of the adaptive threshold function (i.e., the position where the output is k / 2); Equation (31) is the maximum value of the adaptive threshold function;

[0210]

[0211] When the micro-expression features from two time domains produce low mutual information entropy, the sigmoid output is close to 0, and the threshold is set accordingly. Set the threshold close to k. When higher entropy is produced, the output approaches 1, thus setting the threshold. Approximately 2k. When the representations in the two time domains of the input cannot exceed this threshold within a given pulse time domain, the features at the corresponding positions are considered redundant. The greater the entropy, the greater the amount of shared information; the threshold... The higher the value, the more information is filtered out.

[0212] By adapting the threshold Substituting the threshold δ back into formula (14), the mapping of cross-temporal micro-expression features into the new temporal space formed by spiking neurons is completed; by repeating this process for each sample, key distributions with different points of interest are extracted using multivariate temporal space. Used for micro-expression recognition.

[0213] The residual network for modeling long-interval temporal micro-expression motion characteristics constructed in step C is optimized using cross-entropy loss. The asymmetric autoencoder network for modeling short-interval temporal micro-expression continuous frames constructed in step D is optimized using peak frame reconstruction loss, KL divergence loss, and classification loss. The parameters of the two networks are continuously updated through training, updating the residual network features for long-interval temporal micro-expression motion characteristics obtained in step C and the asymmetric autoencoder network features for short-interval temporal micro-expression continuous frames obtained in step D. Then, the two feature maps are concatenated according to step E to map the two feature maps to a new temporal space. The mutual information entropy value of the two feature maps is calculated according to step F to obtain the threshold for each position on the concatenated feature map. The threshold is then substituted back into step E to obtain the temporal impulse matrix. The temporal impulse matrix is ​​multiplied by the concatenated feature map to obtain the final feature, which is then fed into the residual block for final recognition. This process is repeated multiple times to reach the training iterations, continuously optimizing the network to obtain the optimal model.

[0214] The differences in facial keyframes obtained after preprocessing the micro-expression video to be recognized are input into a trained residual network that models long-interval temporal micro-expression motion characteristics, along with the input micro-expression frame set. An asymmetric autoencoder network for modeling short-interval temporal micro-expressions in consecutive frames is used to achieve micro-expression classification and recognition, including:

[0215] First, the micro-expression video to be identified is preprocessed and labeled as peak frames and start frames. Motion features are then obtained after pixel difference calculations. Simultaneously, within a certain time range... by Periodically sample micro-expression frames that are adjacent to the peak frame.

[0216] Next, the motion features are first extracted using a residual network modeled with long-interval temporal micro-expression motion characteristics, following step C, to obtain long-interval temporal micro-expression motion feature maps; then, the micro-expression frame set is processed according to step D. The input asymmetric variational autoencoder first passes through an L-encoder including pooling layers and an LSTM network to obtain a short temporal micro-expression motion feature map. Then, according to step E, the two feature maps are concatenated to map them to a new temporal space. According to step F, the mutual information entropy of the two feature maps is calculated to obtain the threshold for each position on the concatenated feature map. The threshold is then substituted back into step E to obtain the temporal impulse matrix. The temporal impulse matrix is ​​multiplied with the concatenated feature map to obtain the final feature, which is then fed into the residual block for micro-expression recognition and classification.

[0217] In this embodiment, micro-expression recognition tests were conducted on raw videos from the CASME II micro-expression database released by Fu Xiaolan's team at the Institute of Psychology, Chinese Academy of Sciences, the SAMM database released by Davison's team at Manchester Metropolitan University in the UK, and the SMIC database released by a research team at the University of Oulu in Finland. The results were compared with classic micro-expression recognition algorithms and with state-of-the-art (SOTA) models proposed in recent years. Table 1 shows the test results.

[0218] Table 1

[0219]

[0220] In Table 1, Pre-P: preprocessing method; E: Euler image magnification; R: region of interest; T: temporal normalization; Pre-T: pre-training dataset.

[0221] In Table 1, the LBP-TOP method is derived from the literature Zhao G, Pietikainen M. Dynamic texture recognition using local binary patterns with an application to facial expressions[J]. IEEE transactions on pattern analysis and machine intelligence, 2007, 29(6):915-928.

[0222] FDM comes from the literature Xu F, Zhang J, Wang J Z. Micro-expression identification and categorization using a facial dynamics map [J]. IEEE Transactions on AffectiveComputing, 2017, 8(2): 254-267.

[0223] MDMO is derived from the literature: Liu Y J, Zhang J K, Yan W J, et al. A main directional mean optical flow feature for spontaneous micro-expression recognition [J]. IEEE Transactions on Affective Computing, 2015, 7(4): 299-310.

[0224] TSCNN is derived from the literature: Song B, Li K, Zong Y, et al. Recognizing spontaneous micro-expression using a three-stream convolutional neural network [J]. IEEE Access, 2019, 7: 184537-184551.

[0225] STSTNet is derived from the literature: Liong S T, Gan Y S, See J, et al. Shallow triple stream three-dimensional cnn (ststnet) for micro-expression recognition [C] / / 2019 14th IEEE international conference on automatic face & gesture recognition (FG 2019). IEEE, 2019: 1-5.

[0226] DIKD is derived from the literature: Sun B, Cao S, Li D, et al. Dynamic micro-expression recognition using knowledge distillation [J]. IEEE Transactions on Affective Computing, 2020, 13(2): 1037-1043.

[0227] DSTAN is derived from the literature Wang Y, Huang Y, Liu C, et al. Micro expression recognition via dual-stream spatiotemporal attention network[J]. Journal of Healthcare Engineering, 2021, 2021.

[0228] MiMaNet is derived from the literature Vaswani A, Shazeer N, Parmar N, et al. Attention is all you need[J]. Advances in Neural Information Processing Systems, 2017, 30.

[0229] GEME is derived from the literature Nie X, Takalkar M A, Duan M, et al. GEME: Dual-stream multi-task GEnder-based micro-expression recognition[J]. Neurocomputing, 2021, 427:13-28.

[0230] AMAN is derived from the literature Dosovitskiy A, Beyer L, Kolesnikov A, et al. An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale[C] / / International Conference on Learning Representations. 2020.

[0231] ME-PLAN is derived from the literature Zhao S, Tang H, Liu S, et al. ME-PLAN: A deep prototypical learning with local attention network for dynamic micro-expression recognition[J]. Neural Networks, 2022, 153:427-443.

[0232] SelfME comes from the literature Maass W.Networks of spiking neurons: the third generation of neural network models[J].Neural networks,1997,10(9):1659-1671.

[0233] u-BERT comes from the literature Liu YH, Wang

[0234] BDCNN comes from the literature Khor HQ, See J, Phan RCW, et al. Enriched long-termrecurrent convolutional network for facial micro-expression recognition [C] / / 2018 13th IEEE international conference on automatic face&gesture recognition (FG 2018). IEEE, 2018: 667-674.

[0235] As shown in Table 1, taking the CASMEII dataset as an example, the proposed algorithm achieves a recognition accuracy of 94.9%, an F1 score of 92.9%, and a UAR of 92.9%. Compared to the current best-performing u-BERT algorithm, the proposed algorithm improves all achievable metrics by approximately 2%. It is also noteworthy that the proposed algorithm does not perform any preprocessing or model pre-training on the input frames, while most existing leading algorithms are pre-trained on large image datasets. Compared to the current state-of-the-art (SOTA) research BDCNN, which also does not require any feature preprocessing or model pre-training, the proposed algorithm outperforms it by more than 5% in all metrics. To fully demonstrate the effectiveness of the proposed method, this experiment plots the confusion matrix of the proposed model on the CASME II, SAMM, and SMIC datasets for the three-class classification task, as shown below. Figure 8 , Figure 9 , Figure 10As shown, the proposed cross-temporal micro-expression recognition model achieved excellent recognition results on all three datasets in the three classification tasks. The classification accuracy for all micro-expressions exceeded 50% on all three datasets, with positive micro-expressions achieving 84.8% and 88.2% accuracy on the CASME II and SMIC datasets, respectively. Notably, even when recognizing micro-expressions with limited training samples, such as the surprise expression in CASME II (with only 25 sample video clips), 100% recognition accuracy was still achieved. Furthermore, the recognition accuracy for negative micro-expressions, which have a large number of samples on all three datasets, exceeded 85%.

Claims

1. A micro-expression recognition method based on multi-temporal information entropy across time domains, characterized in that, include: A. Preprocessing of micro-expression videos, including: acquiring video frame sequences, face detection and localization, and face alignment; B. Select the peak frame and the starting frame from the video sequence after preprocessing in step A, and perform pixel difference calculation on the peak frame and the starting frame to obtain the facial key frame differences. At the same time, sample the micro-expression frame set of the neighboring peak frame. ; C. Construct a residual network for modeling the motion characteristics of micro-expressions in the long-interval time domain. Utilize the differences in facial keyframes obtained in step B to amplify the subtlety of micro-expression changes in the long time domain, extract subtle and representative motion pattern features, and model them. D. Construct an asymmetric autoencoder network that models short-interval temporal micro-expression frames, taking the micro-expression frame set as input. Reconstruct peak frames, encode continuous and subtle data at extremely short time scales, and enhance their ability to encode information in the time dimension. E. Construct a pulse time-domain matrix module for joint screening of long and short time domains, mapping the features extracted from micro-expressions in the long time domain and the features extracted in the short time domain to a new time-domain space for unified feature modeling. F. Adaptively calculate the pulse threshold based on the mutual information of the feature maps. An adaptive function is constructed to adaptively generate new temporal pulse signals for micro-expression representations of different sample lengths and network scales; including: First, using formulas (20) and (21), the mutual information entropy of the two feature maps—the residual network feature map for modeling long-interval temporal micro-expression motion characteristics constructed in step C and the asymmetric autoencoder network feature map for modeling short-interval temporal micro-expression continuous frames constructed in step D—is derived, representing the amount of shared information between the long-term and short-term distributions. Formula (20) represents the joint feature map at time point d obtained by discretizing the two feature maps at time point c in the continuous temporal domain. Features extracted from the residual network that models the long-interval temporal micro-expression motion characteristics constructed in step C Features extracted from the asymmetric autoencoder network constructed in step D that models consecutive frames of short-interval temporal micro-expressions The joint probability distribution, in formula (21), This indicates the calculation of mutual information entropy on the discrete feature map; (20) (21) Among them, long-term spatial micro-expression features and short-term spatial micro-expression features and These are the marginal probability distributions of the residual network features for modeling long-interval temporal micro-expression motion characteristics constructed in step C and the asymmetric autoencoder network features for modeling short-interval temporal micro-expression continuous frames constructed in step D, respectively. From formula (21), if we want to calculate the mutual information between the residual network feature map for modeling long-interval temporal micro-expression motion characteristics constructed in step C and the asymmetric autoencoder network feature map for modeling short-interval temporal micro-expression continuous frames constructed in step D, we need to first calculate... and , ; For joint probability distributions, a contingency table needs to be constructed. As shown in formula (22): (22) For two discrete variables and , and This refers to the discretized long-term spatial micro-expression features and short-term spatial micro-expression features, in a contingency table. Representing variables In state and variables In state The frequency of their joint occurrence; Therefore, the joint probability distribution and marginal probability distribution , We obtain the results from formulas (23) and (24) respectively: (23) (24) in, It is the total number of observations in the data; Micro-expression features with the same shape at different time scales are based on vectors Distinguished, vector Defined by formula (25) as follows: (25) In formula (25), This represents the mutual information between the residual network feature map, constructed in step C to model the long-interval temporal micro-expression motion characteristics, and the asymmetric autoencoder network feature map, constructed in step D to model the short-interval temporal micro-expression continuous frames, calculated at discrete time steps d. Subsequently, based on vectors A variant of the Sigmoid function is used as the transformation function to transform the obtained mutual information entropy and obtain the adaptive threshold required by the spiking neuron, as shown in Equation (26): (26) In formula (26), This represents the scaling factor used to limit the adaptive threshold. The upper and lower bounds; The changes will be Occurring within the range; Represents an adaptive threshold. and These are parameters used to control the rate of change of the threshold and the center point; G. Model training: The residual network for modeling long-interval temporal micro-expression motion characteristics and the asymmetric autoencoder network for modeling short-interval temporal micro-expression continuous frames constructed in steps C and D are iteratively updated using cross-entropy loss, peak frame reconstruction loss, KL divergence loss and classification loss. H. The facial keyframe differences obtained after preprocessing the micro-expression video to be identified are input into the trained residual network for long-interval temporal micro-expression motion characteristic modeling, and the input micro-expression frame set. An asymmetric autoencoder network modeling micro-expressions in short-interval temporal consecutive frames is used to achieve micro-expression classification and recognition.

2. The micro-expression recognition method based on multi-temporal information entropy across time domains according to claim 1, characterized in that, In step A, the micro-expression video is preprocessed, including: 1) Obtain video frame sequence: Perform frame segmentation on the video samples in the micro-expression dataset to obtain continuous micro-expression video frames, and save them in chronological order; 2) Face detection and localization: The Dlib vision library is used to detect and localize faces in the separated micro-expression video frames, and the distance between the face and the image boundary in the detected micro-expression video frames is obtained. 3) Face alignment: Using the distance between the face and the image boundary in the micro-expression video frame obtained in step 2), the Dlib vision library is used to determine 68 key feature points of the face in the micro-expression video frame, and rectangular boxes are used for segmentation.

3. The micro-expression recognition method based on multi-temporal information entropy across time domains according to claim 1, characterized in that, In step A, face alignment is followed by face correction.

4. The micro-expression recognition method based on multi-temporal information entropy across time domains according to claim 1, characterized in that, In step B, facial keyframe differences Defined as peak frame X σ The pixel difference between the starting frame X1 and the starting frame X1 is shown in Equation (1): Simultaneously, within a certain time range, a set of micro-expression frames adjacent to the peak frame is periodically sampled. As shown in equation (2): (2) In equation (2), Represents peak frame The former frame, Represents peak frame After frame, and These represent micro-expression frame sets. The left and right boundaries of the middle frame.

5. The micro-expression recognition method based on multi-temporal information entropy across time domains according to claim 1, characterized in that, In step C, a residual network for modeling long-interval temporal micro-expression motion characteristics is constructed. Specifically, a neural network is built using ResNet as its backbone to extract micro-expression features over a long time domain, and this is achieved by comparing peak frames. and the start frame The differences between them highlight subtle facial expressions. Using the differences in facial keyframes obtained in step B, the subtlety of micro-expression changes is amplified through the long-term domain, and subtle and representative motion pattern features are extracted and modeled. Represented as equation (3): Among them, residual blocks From parameters To represent; By amplifying the subtle changes in micro-expressions over a long time domain, we can extract subtle yet representative motion pattern features. , , , These represent the length, width, and number of channels of the current feature, respectively. This represents the number of residual blocks.

6. The micro-expression recognition method based on multi-temporal information entropy across time domains according to claim 1, characterized in that, In step D, an asymmetric autoencoder network is constructed to model continuous frames of short-interval temporal micro-expressions. This involves using a variational autoencoder to model continuous and short-term complex variations within the frame set, comprising an encoder and a decoder. The L-encoder, or encoder basic unit, includes an LSTM and a max-pooling layer. The input micro-expression frame set is... It models continuous and short-term complex changes between frames, reconstructs peak frames, encodes continuous and subtle data at extremely short time scales, and enhances the ability to encode information in the time dimension. In variational autoencoders, The input to the L-encoder is shown in formula (4). The reconstruction target of the decoder is shown in Equation (5); (4) In equation (4), Represents peak frame The former frame, Represents peak frame After frame, and These represent micro-expression frame sets. The left and right boundaries of the middle frame; in equation (5), For each sampled micro-expression frame, the peak frame of the current micro-expression sequence is... Both aim to generate the peak frames of the current micro-expression sequence. ; The process by which the L-encoder performs downsampling and aggregates features representing continuous-time variations is shown in equations (6) to (8): in, Indicates parameters encoder It includes LSTM and max pooling layers, and the input is a set of frames of continuous micro-expressions. , Represents the output of each layer of the encoder. This represents the feature output of the encoder's first layer, with a size of [size missing]. , This represents the feature output of the Nth layer of the encoder, with a size of , Indicates that given input Under the given conditions, the approximate posterior distribution of the latent variable Z, where Z is the implicit representation learned by the encoder from the input data. This represents the output of each layer after passing through the L-encoder. Indicates in the parameter The mean of the latent variable Z under the given conditions, Indicates in the parameter The variance of the latent variable Z under given conditions; The decoder uses transposed convolutions for upsampling; the decoder's reconstruction target is the input set of consecutive frames. Missing peak frames The entire process is shown in formula (9): (9) In equation (9), the decoding layer is composed of parameters Composition, represented as ; It has parameters decoder, It is the mean of the latent variables. It is the log-variance of the latent variable; The proposed VAE model consists of a loss function. Optimization is performed, as shown in formula (10): L reap =L r +L kl +ηL cls (10) Among them, the first item To reconstruct the peak frame set The reconstruction loss is calculated using the MSE loss, as shown in formula (11), where N is the number of frames. Let i be the input frame for the i-th micro-expression sequence. It is the peak frame of the i-th micro-expression sequence; the second term It is the Kullback-Leibler divergence, as shown in formula (12), which is used to reconstruct the mean. With reconstruction variance To smooth the constraint reconstruction process; (11) (12); For the final classification loss, This is the scaling factor.

7. The micro-expression recognition method based on multi-temporal information entropy across time domains according to claim 1, characterized in that, In step E, a pulse time-domain matrix module for joint screening of long and short time domains is constructed, namely: the features of the long time domain and the short time domain are concatenated and input into the spiking neuron. The spiking neuron transmits information in the form of pulses. The state of each spiking neuron is represented by its membrane potential. When the membrane potential exceeds a certain threshold, the neuron fires a pulse. The spiking neuron is defined by formulas (13) and (14): (13) (14) In formulas (13) and (14), and These represent the residual network for modeling long-interval temporal micro-expression motion characteristics constructed in step C and the asymmetric autoencoder network for modeling short-interval temporal micro-expression continuous frames constructed in step D, respectively. Time step and the layer; and Indicates two time domains; Indicates input current rate of change with time t τ represents the time constant. syn I(t) represents the input current controlled by a time constant. The decay rate, This represents the weights between the i-th and j-th neurons in the n-th layer of the neural network. Represents membrane potential rate of change with time t The time constant representing the membrane potential is used to control the decay rate of the membrane potential; Formula (13) represents the characteristics of the two time domains through weights. Along time step Perform the conversion; In formula (14): This corresponds to the membrane potential, which is equal to the cumulative amount of different micro-expression features at different time steps; therefore, Represents time step The first in Pulse signal of the layer; when the membrane potential Reaching the pulse threshold When the threshold is not reached, the spiking neuron will output a pulse signal, i.e., the pulse value 1 in formula (15). When the threshold is not reached, the output is 0, which indicates that this position holds relatively more critical micro-expression features; formula (15) is shown below: (15) Through pulse time-domain processing, information from two time domains is unfolded in a new time domain in the form of pulses; the size of the time domain is determined by the time step of the spiking neuron. Decide; Next, the time-domain pulse matrix The feature map is spliced ​​according to formula (16) to match the size of the original spliced ​​feature map, where, The values ​​representing the long-term temporal information of micro-expressions expanded in the new time domain. This represents the value of the short-term temporal information of micro-expressions expanded in the new temporal domain; cat(·) represents the concatenation operation, and C represents the number of channels; at this time, TSM represents the regions of the entire feature map that need to be highlighted and the redundant regions that need to be ignored in the two temporal spaces; (16) Finally, the feature maps from the long time domain are... and short time domain feature maps After splicing, it is combined with the time-domain pulse matrix Element-wise multiplication is performed to selectively integrate micro-expression features at different time scales, as shown in formula (17): (17) Through the time-domain pulse matrix After filtering and highlighting the features, a unified key solution vector 𝔽 is obtained, which is then passed through residual blocks. Continue forward propagation to obtain the representation used for final micro-expression recognition, as shown in Equation (18): in, Indicates a fully connected layer, used for mixing. The channel and the size aligned to the residual block The last item As the basis for recognition, constrained by the classification loss function (19), the final unified representation is obtained. The network is optimized using cross-entropy loss, where Indicates a fully connected layer. This represents summing over all categories c, where C represents the total number of categories. When the current sample belongs to category c, It is 1 if it is true, otherwise it is 0; (19) The pulse threshold is adaptively calculated based on the mutual information of the feature maps. An adaptive function is constructed to adaptively generate new temporal pulse signals for micro-expression representations of different samples and network scales in both short and long time domains.

8. The micro-expression recognition method based on multi-temporal information entropy across time domains according to claim 1, characterized in that, analyze The resulting impact, firstly, makes The function replaces the Sigmoid function, as shown in formula (27): (27) After that, The first derivative of the function is shown in formula (28), and its derivative is: (28) Finally, regarding the... and Adjusted function The first derivative is expressed as shown in formula (29): (29) According to formula (29), the function The derivative and Proportional, therefore, with As the value increases, the slope of the Sigmoid function increases at any point, causing the proposed adaptive threshold function to become steeper; analyze Impact on the adaptive threshold function; Consider the adjusted Sigmoid function , its in The value at the position is shown in formula (30): (30) show In fact, it controls the phase shift of the adaptive threshold function; Equation (31) is the maximum value of the adaptive threshold function; (31) By adapting the threshold Substituting the threshold into formula (14) The process involves mapping cross-temporal micro-expression features to a new temporal space formed by spiking neurons. By repeating this process for each sample, key distributions with different points of interest are extracted using multivariate temporal spaces for micro-expression recognition.

9. A micro-expression recognition method based on multi-temporal information entropy across time domains according to any one of claims 1-8, characterized in that, The differences in facial keyframes obtained after preprocessing the micro-expression video to be recognized are input into a trained residual network that models long-interval temporal micro-expression motion characteristics, along with the input micro-expression frame set. An asymmetric autoencoder network for modeling short-interval temporal micro-expressions in consecutive frames is used to achieve micro-expression classification and recognition, including: First, the micro-expression video to be identified is preprocessed and labeled as peak frames and start frames. Motion features are then obtained after pixel difference calculations. Simultaneously, within a certain time range... ,by Periodically sample a set of micro-expression frames that are adjacent to the peak frame; Next, the motion features are first extracted using a residual network modeled with long-interval temporal micro-expression motion characteristics, following step C, to obtain long-interval temporal micro-expression motion feature maps; then, the micro-expression frame set is processed according to step D. The input asymmetric variational autoencoder first passes through an L-encoder including pooling layers and an LSTM network to obtain a short temporal micro-expression motion feature map. Then, according to step E, the two feature maps are concatenated to map them to a new temporal space. According to step F, the mutual information entropy of the two feature maps is calculated to obtain the threshold for each position on the concatenated feature map. The threshold is then substituted back into step E to obtain the temporal impulse matrix. The temporal impulse matrix is ​​multiplied with the concatenated feature map to obtain the final feature, which is then fed into the residual block for micro-expression recognition and classification.