Behavior attitude recognition method based on dynamic perception of facial expression
Through the dynamic perception of facial expressions and the random evolution sequence generated by Markov theory, combined with the splitting loss function and the logistic function, the problem of the impact of illumination changes and insufficient robustness in the existing technology is solved, and efficient behavioral attitude recognition is achieved. , suitable for a variety of application scenarios.
Patent Information
- Application Number
- CN202210219980.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-08
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2042-03-08
AI Technical Summary
Existing facial expression recognition technology is susceptible to illumination changes and lacks robustness, and feature extraction methods rely on the designer's prior knowledge, resulting in low recognition rates.
Through the dynamic perception of facial expressions, Markov theory is used to generate a random evolution sequence of displacements of facial key points, and a splitting loss function is constructed to train the encoder and logistic function to achieve the discrimination of the attitude of the answerer.
It improves the robustness and generalization ability of facial expression recognition and can effectively identify the attitude of the answerer. It is suitable for marriage relationship prediction, teaching evaluation and other fields, and can predict personal intentions and behaviors in national security.
Smart Images

Figure CN114581991B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a behavior attitude recognition method based on dynamic perception of facial expressions. Background Art
[0002] Facial expression recognition can identify human facial expressions, such as surprise, sadness, happiness, anger, etc., and facial expression recognition has a wide range of potential applications. Expressions are intuitive responses to human emotions, and expression recognition has always been one of the important research topics in computer vision. In the past few decades, researchers have achieved important results in various expression recognition problems. One is to construct computer vision features, find efficient expressions to describe expressions and learn models; the other is to find suitable learning algorithms to build models based on the characteristics of the expressions themselves. In recent years, research has mainly focused on encoding the six expressions of anger, disgust, fear, happiness, sadness, and surprise proposed by the Facial Action Coding System (FACS), and then identifying the expressions of faces in pictures or videos. The main technologies are as follows:
[0003] 1. Recognition method based on LBP-TOP
[0004] A 68-point subjective shape model is used to locate the key points of the face. Based on the obtained key points, the deformation relationship between the facial image in the first frame of each sequence and the model facial image is calculated using a local weighted average algorithm, and the deformation is applied to each frame of the corresponding sequence. This eliminates the differences between different faces and different sequences in the expressionless state to a certain extent.
[0005] 2. STCLQP-based recognition method
[0006] The complete local quantization mode is an improvement of LBP. Unlike LBP, which only encodes the grayscale value relationship of local pixels, the complete local quantization mode decomposes the local co-occurrence pattern of the central pixel and the surrounding pixels into positive and negative signs and amplitudes, and adds the gradient information of the central pixel, which is encoded with binary numbers. In the stage of constructing the statistical histogram, in order to reduce the dimension of the feature, the complete local quantization mode does not count all possible binary codes, but considers the most frequently occurring binary patterns. The vector quantization technology is introduced, which can specify the number of centers in the quantization process (the number of words in the codebook) and obtain a histogram of the specified dimension as a feature.
[0007] 3. Identification method based on LBP-SIP
[0008] Different from the expression recognition work based on LBP-TOP improvement, the six-intersection local binary pattern expands the LBP feature for micro-expression recognition from another perspective. LBP-SIP uses the four points on the same plane as the center point as the spatial texture description, and the center points of the previous and next two frames as the description of the temporal texture, which reduces the dimension of the feature and improves the efficiency of feature extraction.
[0009] 4. Recognition method based on Delaunay time domain coding
[0010] The time-domain coding model based on Delaunay triangulation uses the subjective appearance model to calibrate the facial image sequence. Since the expression itself changes very little, key points alone cannot well describe the expression changes. Therefore, the sequence images are normalized using feature points to obtain a facial image sequence with fixed feature point positions. Delaunay triangulation can divide the face into a series of triangular regions based on given feature points. Because the feature points have been normalized, the size and shape of each triangular region are the same and have the same number of pixels. By comparing the changes in the same area over time, the dynamic process of the expression can be portrayed.
[0011] However, these methods are easily affected by changes in lighting and face the problem of insufficient robustness in real scenes. In addition, these feature extraction methods mainly rely on the designer's prior knowledge and require manual parameter adjustment, which means that only a small number of parameters are allowed in the feature design, which will greatly reduce the recognition rate.
[0012] Therefore, we proposed a behavioral attitude recognition method based on dynamic perception of facial expressions in order to solve the problems raised above. Summary of the invention
[0013] The object of the present invention is to provide a behavior attitude recognition method based on dynamic perception of facial expression to solve the problems raised by the above-mentioned background technology. The present invention discriminates the attitude of online answerers based on human facial displacement characteristics, thereby indirectly judging the credibility of the monomer. Online answering is a dynamic process, so it is necessary to collect facial time series data during the answering process of the answerer and convert it into a key point displacement time series. The Markov theory is used to implement evolutionary perturbation on this time series to generate a random evolution sequence of facial key point displacements, which has a small difference from the original sequence and can form random perturbations on the original data over a longer time span. The evolution sequence is used as a component of the multiplication of similarities and differences to construct a split loss function, which can enable the trained model to obtain a stronger generalization ability. The split loss function will try to make the facial key point displacement time series of the same attitude similar as much as possible during the training process, and separate the corresponding sequences of different attitudes as much as possible. The encoder trained by the split loss function is combined with the logstic function to have the ability to discriminate the attitude of the answerer.
[0014] To achieve the above object, the present invention provides the following technical solution: a behavior attitude recognition method based on dynamic perception of facial expression, comprising the following steps:
[0015] S1. Facial image preprocessing: Face detection and positioning through facial positioning of expression images, which is used to find the exact position of the face in the image, perform face cropping, completely eliminate other interference information, and highlight the face in the image through image enhancement;
[0016] S2, establish a facial temporal feature evolution model;
[0017] S3. Determine answer attitude based on facial dynamic temporal features.
[0018] Preferably, in step S1, the image enhancement can stretch the grayscale details of the feature object according to the needs of the user through piecewise linear transformation, and after the entire grayscale value range of 0 to 255 is divided into several line segments as needed, a corresponding linear transformation is performed on each line segment; the linear transformation formula is as follows:
[0019]
[0020] Preferably, in step S1, in the facial positioning of the expression image, on the basis of performing piecewise linear transformation on the image, a grayscale integral projection method is used to locate the facial area, including horizontal integral projection and vertical integral projection;
[0021] Assume the size of the grayscale image is M×N, f(x,y) is the grayscale value at the midpoint (x,y) of the image;
[0022] Then its vertical integral projection is:
[0023]
[0024] The horizontal integrated projection is:
[0025]
[0026] The image is scaled and normalized to a uniform size, and the facial expression image is obtained by scaling the image proportionally, cropping the border, and normalizing the size.
[0027] Preferably, in step S2, establishing the facial temporal feature evolution model includes the following steps:
[0028] S20, facial time series data: the facial time series data of the respondent refers to the record of the change of pixels in the facial area over time during the respondent's answering time for a unit of question quantity;
[0029] S21, facial time series features: the facial time series data is a dynamic data, including facial dynamic features;
[0030] S22, facial key point coordinates and displacement: the facial key point refers to a set of key pixels that can calibrate the relative positions of distributed features. The key points can be calibrated manually or assigned by machine learning weights;
[0031] S23, facial key point displacement time series: The facial key point displacement time series is a sequence of the displacement of a person's facial key point coordinates over time within a unit question answering time, recorded in the form of discrete vectors; the facial key point displacement time series is defined using the following formula:
[0032] x(0)=[Δx(t1),Δx(t2),···,Δx(t n )] (4);
[0033] Among them, x(0) represents the original displacement vector sequence of the same key point pixel at n moments, and the element Δx(t i ) represents the displacement direction of the pixel at the time;
[0034] S24, random evolution of facial key point displacement: the attitudes of the test takers are divided into positive and negative, and this deviation is used to perturb the x(0), so that the displacement sequence after evolution is different from the original sequence and affects a period of time;
[0035] S25, initial distribution of facial key point displacement: The definition of the initial distribution of facial key point displacement is as follows:
[0036] φ(t0)=[φ1,φ2,···,φ N ] (5);
[0037] Among them, the vector φ represents the initial displacement distribution of the facial key points, records the probability of the facial key points being at each marked position at the initial time t0, and the internal component represents the probability of the facial key points being at the i-th position;
[0038] The facial key point displacement evolution matrix is as follows:
[0039]
[0040] Among them, S represents the displacement evolution matrix of facial key points; the i-th row and j-th column element S ij is a random perturbation probability, which indicates the probability that the facial key point moves from key position i to key position j in a unit time. It can be obtained by counting the frequency of facial key points falling to the new marked position when the respondent completes the answer;
[0041] S26. Distribution of multiple displacements of facial key points: According to the Chapman-Kolmogonov equation, it is shown as follows:
[0042]
[0043] Among them, φ(t0) is the displacement distribution of the key points m times, which means the estimated displacement distribution of the key points on the face of the respondent after m unit time from the initial moment. The element φ i (m) represents the probability that the facial key point is at the i-th position after m unit moments. The multiple displacement distributions are estimated by the above Markov process with continuous time and state;
[0044] S27. Random evolution of displacement of facial key points: The random evolution of the facial temporal features refers to the probability that the same facial key point moves towards the key position in the marked position at a certain moment.
[0045] Preferably, in step S22, after the video of the facial time series data is compressed to a uniform standard aspect ratio, the coordinates of each pixel in the same key point are called a facial key point coordinate set;
[0046]
[0047] Among them, X m Represents a set of facial key point coordinates. The elements in the set represents the coordinates of the kth pixel;
[0048]
[0049] Where ΔX m (t) represents the displacement vector set of the key point coordinates from time t; element Indicates the displacement direction of the kth pixel, with the coordinates at time t+1 as the end point and the coordinates at time t as the starting point.
[0050] Preferably, in step S27, the displacement random evolution sequence of the facial key points is as follows:
[0051]
[0052] Among them, the random evolution model of the facial temporal features is a transformation of an original displacement vector sequence x(0) to an m-th displacement sequence x(m); the transformation applies an N-dimensional displacement probability distribution to each component in x(0), and the component is replaced with a random evolution direction according to probability.
[0053] Preferably, in step S3, the answer attitude determination based on facial dynamic temporal features includes the following contents:
[0054] S30, constructing pairs of samples with the same attitude: according to step S23, the displacement time series x(0) of the facial key points of a certain positive attitude sample is counted; according to step S27, the displacement random evolution sequence x(m) of the corresponding facial key points is calculated to form a set of sample pairs; corresponding evolution sequences are constructed for all samples with positive attitude labels;
[0055] S31. Constructing a splitting loss function: The splitting loss function is designed to distinguish sample pairs from non-sample pairs, which can group facial displacement sequences in the same attitude together as much as possible and separate sequences from different attitudes.
[0056] S32, attitude discrimination: obtain the minimum point of the split loss function, and input the new facial time series into the trained R[]+logstic linear classifier structure.
[0057] Preferably, in step S31, the splitting loss function is defined as follows:
[0058]
[0059] Among them, L(x i ) represents the splitting loss function, R[] is a backbone neural network with parameters, and a variety of existing specific network forms can be selected as needed.
[0060] Compared with the prior art, the present invention has the following beneficial effects:
[0061] The present invention uses artificial intelligence technology to analyze facial expressions and realize the recognition of behavioral attitudes. It can effectively understand the user's true inner feelings and can be widely used in marriage relationship prediction, communication negotiation, teaching evaluation and other businesses. Especially for national security work, by analyzing a person's expression, his true intentions can be discovered, and the illegal behavior of dangerous elements can be stopped in time. It can also make good predictions about whether the prisoner is lying or has violent behavior, thereby protecting the long-term stability of the country. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] Figure 1 The overall flow chart of the behavior attitude recognition method based on dynamic perception of facial expression of the present invention;
[0063] Figure 2 This is a random evolution diagram of the displacement of facial key points in the behavior attitude recognition method based on dynamic perception of facial expressions of the present invention. DETAILED DESCRIPTION
[0064] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the implementation regulations described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0065] See also Figure 1-2 The present invention provides a technical solution: a behavior attitude recognition method based on dynamic perception of facial expressions, comprising the following contents:
[0066] 1. Facial image preprocessing.
[0067] 1. Image enhancement
[0068] The purpose of image enhancement is mainly to highlight the face in the image. The grayscale details of the feature object can be stretched according to the needs of the user through piecewise linear transformation. The entire grayscale value range of 0 to 255 is divided into several segments as needed, and then each segment is subjected to a corresponding linear transformation. The mathematical transformation formula is as follows:
[0069]
[0070] 2. Facial localization of expression images
[0071] An important step in the preprocessing of expression images is the detection and location of the face, which is used to find the exact location of the face in the image, and then perform face cropping to completely eliminate other interfering information and leave only the facial information for subsequent analysis. Based on the piecewise linear transformation of the image, the grayscale integral projection method is used to locate the facial area, including horizontal integral projection and vertical integral projection.
[0072] Assume the size of the grayscale image is M×N, f(x,y) is the grayscale value at the midpoint (x,y) of the image;
[0073] Then its vertical integral projection is:
[0074]
[0075] The horizontal integrated projection is:
[0076]
[0077] In order to obtain complete information of facial expressions, the facial boundary map obtained by grayscale integral projection is slightly modified, that is, the upper and lower boundaries are appropriately expanded. Since the face images after grayscale integral projection shearing are of different sizes, it is necessary to normalize the image scale to make the image into a uniform size to facilitate subsequent feature extraction and other related work. The facial expression image is obtained by scaling the image proportionally, cropping the boundaries, and normalizing the size.
[0078] 2. Establishing a temporal feature evolution model for faces
[0079] 1. Facial time series data
[0080] The facial time series data of the respondent refers to the record of the change of pixels in the facial area over time during the respondent's answering time per unit question. A unit question refers to a question that contains at least one feedback operation by the respondent and has a metric meaning. It can be set to half a question, one question, or a certain duration for questions that take a long time according to the specific task. Usually one question can be selected as the unit question. The time starting point of the unit question is the moment when the question appears on the subject's display, and the time ending point of the unit question is the moment when the subject makes an effective feedback operation. The time difference between the latter and the former is the answering time for the unit question. The time series data is recorded and stored in video format.
[0081] 2. Facial temporal features
[0082] Currently, there are facial recognition technologies that extract 2D static facial features. Facial 3D recognition technology uses structured light phase or optical depth technology to collect dynamic data to establish 3D facial static data and extract 3D static features. Facial time series data is a dynamic data that contains facial dynamic features. This study establishes a generalized facial key point displacement time series to characterize facial dynamic features.
[0083] 3. Facial key point coordinates and displacement
[0084] Facial key points refer to a set of key pixels that can calibrate the relative positions of features. Key points can be manually calibrated or assigned weights by machine learning. After compressing the video of facial time series data to a unified standard aspect ratio, the coordinates of each pixel in the same key point are called the facial key point coordinate set.
[0085] Definition: Facial key point coordinate set
[0086]
[0087] Among them, X m Represents a set of facial key point coordinates. The elements in the set Represents the coordinates of the kth pixel. Facial temporal features are dynamic features, so they focus on the dynamic displacement changes of pixels in the set.
[0088] Definition: The displacement set of facial key points
[0089]
[0090] Where ΔX m (t) represents the displacement vector set of the key point coordinates from time t; element Indicates the displacement direction of the kth pixel, with the coordinates at time t+1 as the end point and the coordinates at time t as the starting point.
[0091] 4. Facial key point displacement time series
[0092] The facial key point displacement time series is a sequence of the displacement of a person's facial key point coordinates over time within a unit question answering time, recorded in the form of a discrete vector (array).
[0093] Definition: Facial key point displacement time series
[0094] x(0)=[Δx(t1),Δx(t2),···,Δx(t n )] (4);
[0095] Among them, x(0) represents the original displacement vector sequence of the same key point pixel at n moments, and the element Δx(t i ) represents the displacement direction of the pixel at the time. The facial key point displacement time series does not record any coordinates, because each element is a displacement vector. Therefore, as long as the initial coordinates of the key point are determined, the coordinates at the corresponding time can be obtained by adding the displacement vectors. This sequence represents the dynamic characteristics of the facial key points of the respondent during the answering period.
[0096] 5. Random evolution of facial key point displacement
[0097] The attitudes of the respondents towards the test are divided into two types: active cooperation and passive resistance. The following text is referred to as positive and negative in order. This study assumes that there will be certain deviations between these two attitudes on each individual's face, that is, the facial temporal features of respondents with the same attitude cannot be exactly the same, but in general, the facial temporal features of respondents with the same attitude have certain commonalities. Therefore, it is believed that the differences between individuals with the same attitude are a random evolution deviation from the ideal state. The present invention uses this deviation to impose a disturbance on x(0), so that the evolved displacement sequence is different from the original sequence and affects a longer period of time. This random disturbance will enable the model to gain generalization ability in the subsequent training stage.
[0098] 6. Initial distribution of facial key point displacement
[0099] Definition: Initial distribution of facial key point displacements
[0100]
[0101] Among them, S represents the displacement evolution matrix of facial key points; the i-th row and j-th column element S ij is a random perturbation probability, which indicates the probability that the facial key point moves from key position i to key position j in a unit time. It can be obtained by counting the frequency of facial key points falling to the new marked position when the respondent completes the answer.
[0102] 7. Multiple displacement distribution of facial key points
[0103] According to the Chapman-Kolmogonov equation:
[0104]
[0105] Among them, φ(t0) is the displacement distribution of the key points m times, which means the estimated displacement distribution of the key points on the face of the respondent after m unit time from the initial moment. The element φ i (m) represents the probability that the facial key point is at the i-th position after m unit moments. The multiple displacement distributions are estimated by the above Markov process with continuous time and state.
[0106] 8. Random evolution of displacement of facial key points
[0107] The random evolution of facial temporal features refers to the probability that the same facial key point moves towards the key position in the marked position at a certain moment, and this probability changes with time.
[0108] Definition: Random evolution sequence of displacements of facial key points
[0109]
[0110] Among them, the random evolution model of the facial temporal features is a transformation of an original displacement vector sequence x(0) to an m-th displacement sequence x(m); the transformation applies an N-dimensional displacement probability distribution to each component in x(0), and the component is replaced with a random evolution direction according to probability.
[0111] Specifically, the probability value of any displacement component being replaced follows the distribution law φ(t m ), the displacement direction points to φ(t m ) is the marker position corresponding to the probability component in . The displacement degree is proportional to the distance of the center point of the marker position relative to the current coordinate. Since the facial movements of the respondents have certain commonalities in general, the calculated φ(t m) will cause x(0) to be shifted by φ(t m ) is a low-probability event. In general, x(m) is similar to the sequence of x(0) after m shifts, except that some individual components are replaced. x(m) is called the random evolution sequence of facial temporal features after m shifts.
[0112] 3. Judging the answering attitude based on facial dynamic temporal features
[0113] 1. Construct pairs of samples with the same attitude
[0114] The first step in judging the attitude of the answer is the evolution of facial time series data. Take the positive attitude sample as an example, and the negative attitude sample is vice versa. According to the above statistics, the displacement time series x(0) of the facial key points of a positive attitude sample is obtained, and the corresponding displacement random evolution sequence x(m) of the facial key points is calculated to form a set of sample pairs; the corresponding evolution sequence is constructed for all samples with positive attitude labels.
[0115] 2. Construct split loss function
[0116] The split loss function is designed to have the function of distinguishing sample pairs from non-sample pairs. It can cluster facial displacement sequences in the same attitude as much as possible and separate sequences from different attitudes.
[0117] Definition: Split loss function
[0118]
[0119] Among them, L(x i ) represents the splitting loss function, R[] is a backbone neural network with parameters, and a variety of existing specific network forms can be selected as needed (such as ResNet, VGG-19, and when the number of answers is large or the answering time is long, a serialized network such as GRU, LSTM, BERT can be selected). As the dot product term of the numerator of the encoder logarithmic function of the facial displacement time series and the corresponding evolution sequence, it is the vector dot product of the sample sequence and the corresponding evolution sequence after the encoder output. When the splitting function is optimized to a smaller value, the parameters in R[] will make the dot product value of the same attitude samples larger, that is, the similarity is higher. The cumulative dot product term of the denominator is the dot product of the original sequence and the evolution sequence of samples with different attitudes. Therefore, when the splitting loss becomes smaller, the parameters in R[] will make this part of the dot product value as small as possible, reduce their similarity, and split the displacement sequences of different attitudes. Therefore, the optimization process of the splitting function enables the encoder R to extract the common displacement patterns of facial key points of the respondents with the same attitude, and separate the non-common facial patterns of respondents with different attitudes. These patterns are dynamic time series when input, so they are a kind of dynamic pattern.
[0120] 3. Attitude judgment
[0121] The main part of the split loss function is a factor similar to the softmax function, so the minimum point of the split loss function can be obtained through various existing optimization methods (such as ADAM, SGD). The encoder R after training becomes the input of the discriminator, and the output is connected to a binary logstic linear classifier to discriminate the new facial key point time series data. Inputting the new facial time series into the trained R[]+logstic linear classifier structure can obtain the attitude discrimination result. It can be found that the entire training process (split loss function optimization process) requires only a small amount of label data, because most of the data is evolved from the original data. The essence of evolution is to add a random disturbance to the original time series that will not cause the overall deviation to be large, and this disturbance acts on a longer time series, so that when the model is trained, even if the time series represents a long-term dynamic displacement pattern, it can be generalized.
[0122] Although the present invention has been described in detail with reference to the aforementioned embodiments, it is still possible for those skilled in the art to modify the technical solutions described in the aforementioned embodiments, or to make equivalent substitutions for some of the technical features therein. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A behavior attitude recognition method based on dynamic facial expression perception, characterized in that: The following steps are involved: S1. Facial image preprocessing: Face detection and positioning through facial positioning of expression images, which is used to find the exact position of the face in the image, perform face cropping, completely eliminate other interference information, and highlight the face in the image through image enhancement; S2. Establish a facial temporal feature evolution model, including the following contents: S20, facial time series data: the facial time series data of the respondent refers to the record of the change of pixels in the facial area over time during the respondent's answering time for a unit of question quantity; S21, facial time series features: the facial time series data is a dynamic data, including facial dynamic features; S22, facial key point coordinates and displacement: the facial key point refers to a set of key pixels that can calibrate the relative positions of distributed features. The key points can be calibrated manually or assigned by machine learning weights; S23, facial key point displacement time series: The facial key point displacement time series is a sequence of the displacement of a person's facial key point coordinates over time within a unit question answering time, recorded in the form of discrete vectors; the facial key point displacement time series is defined using the following formula: ; in, Represents the original displacement vector sequence of the same key point pixel at n moments, with elements Indicates the displacement direction of the pixel at the moment; S24. Random evolution of facial key point displacement: The respondents’ attitudes towards the test are divided into positive and negative. This deviation is used to predict the Apply disturbances so that the evolved displacement sequence differs from the original sequence to a certain extent and affects a period of time; S25, initial distribution of facial key point displacement: The definition of the initial distribution of facial key point displacement is as follows: ; Among them, the vector Represents the initial displacement distribution of facial key points, recording the facial key points at the initial moment , the probability of each marked position, the internal component represents the probability of the facial key point being at the i-th position; The facial key point displacement evolution matrix is as follows: ; Among them, S represents the displacement evolution matrix of facial key points; the element in row i and column j is is a random perturbation probability, which indicates the probability that the facial key point moves from key position i to key position j in a unit time. It can be obtained by counting the frequency of facial key points falling to the new marked position when the respondent completes the answer; S26. Distribution of multiple displacements of facial key points: According to the Chapman-Kolmogonov equation, it is shown as follows: ; in, is the displacement distribution of the key points m times, which means the estimated displacement distribution of the key points on the face of the respondent after m unit time from the initial moment. The element represents the probability that the facial key point is at the i-th position after m unit moments. The multiple displacement distributions are estimated by the above Markov process with continuous time and state; S27, random evolution of displacement of facial key points: the random evolution of facial temporal features refers to the probability that the same facial key point moves towards the key position in the marked position at a certain moment; S3. Determine answer attitude based on facial dynamic temporal features.
2. The behavior attitude recognition method based on dynamic perception of facial expression according to claim 1 is characterized in that: In step S1, the image enhancement can stretch the grayscale details of the feature object according to the needs of the user through piecewise linear transformation. After the entire grayscale value range of 0~255 is divided into several line segments according to the needs, a corresponding linear transformation is performed on each line segment; the linear transformation formula is as follows: 。 3. The behavior attitude recognition method based on dynamic perception of facial expression according to claim 1 is characterized in that: In step S1, in the facial positioning of the expression image, based on the piecewise linear transformation of the image, the facial area is positioned by using the grayscale integral projection method, including horizontal integral projection and vertical integral projection; Assume the size of the grayscale image is , f(x,y) is the gray value at the midpoint (x,y) of the image; Then its vertical integral projection is: ; The horizontal integrated projection is: ; The image is scaled and normalized to a uniform size, and the facial expression image is obtained by scaling the image proportionally, cropping the border, and normalizing the size.
4. The behavior attitude recognition method based on dynamic perception of facial expression according to claim 1 is characterized in that: In step S22, after compressing the video of the facial time series data to a uniform standard aspect ratio, the coordinates of each pixel in the same key point are called a facial key point coordinate set; ; in, Represents a set of facial key point coordinates. The elements in the set represents the coordinates of the kth pixel; ; in, Represents the set of displacement vectors of the key point coordinates from time t; elements Indicates the displacement direction of the kth pixel, with the coordinates at time t+1 as the end point and the coordinates at time t as the starting point.
5. The behavior attitude recognition method based on dynamic perception of facial expression according to claim 1 is characterized in that: In step S27, the displacement random evolution sequence of the facial key points is as follows: ; The random evolution model of the facial temporal features is a sequence of original displacement vectors: To m times displacement sequence The transformation is An N-dimensional displacement probability distribution is applied to each component in the , and the component is replaced with a random evolution direction according to probability.
6. The behavior attitude recognition method based on dynamic perception of facial expression according to claim 5 is characterized in that: In step S3, the answer attitude determination based on facial dynamic temporal features includes the following contents: S30, constructing a pair of samples with the same attitude: according to step S23, statistics are obtained on the displacement time series of key points of a certain positive attitude sample face. ; Calculate the displacement random evolution sequence of the corresponding facial key points according to step S27 , forming a set of sample pairs; constructing corresponding evolution sequences for all samples with positive attitude labels; S31. Constructing a splitting loss function: The splitting loss function is designed to distinguish sample pairs from non-sample pairs, which can group facial displacement sequences in the same attitude together as much as possible and separate sequences from different attitudes. S32, attitude discrimination: obtain the minimum point of the split loss function, and input the new facial time series into the trained R[ ]+logstic linear classifier structure.
7. The behavior attitude recognition method based on dynamic perception of facial expression according to claim 6 is characterized in that: In step S31, the splitting loss function is defined as follows: ; in, represents the splitting loss function, R[] is a backbone neural network with parameters, and a variety of existing specific network forms can be selected as needed.
Citation Information
Patent Citations
Expression recognition method based on neural network fusion key point angle change
CN111414862A
Identity verification method and device, computer equipment and storage medium
CN112528259A
Facial expression recognition method, apparatus, electronic device, and storage medium
EP3564854A1
Method and system for measuring shopper response to products based on behavior and facial expression
US8219438B1
