Microexpression-based psychological state assessment method and device and medium

By combining a two-stage training strategy and a three-dimensional convolutional network to generate an adversarial network and a multi-task learning model, it solves the computational complexity and feature selection difficulties of existing micro-expression recognition technology, and achieves highly accurate recognition and subtle changes in micro-expressions. Capture.

CN118711235APending Publication Date: 2024-09-27NINGBO REHABILITATION HOSPITAL (NINGBO REHABILITATION CENT FOR DISABLED PERSONS NINGBO REHABILITATION CENT FOR DEAF CHILDREN)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410843833.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

Existing micro-expression recognition technology based on optical flow method and local binary pattern has problems such as high computational complexity, noise sensitivity, and difficulty in feature selection, which limits its accuracy and practicality, and is limited in capturing subtle expression changes.

Method used

A two-stage training strategy is adopted to first perform general face feature learning on a large-scale data set, and then fine-tune on an enhanced data set optimized for mental health status, and introduce spatiotemporal feature extraction through a three-dimensional convolutional network, combined with a generative adversarial network and Multi-task learning model performs data preprocessing and feature extraction.

Benefits of technology

It improves the model's generalization ability to new data and learning of specific micro-expression features. It can finely capture and distinguish subtle micro-expressions, enhance the recognition rate of unseen data, and ensure high accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118711235A
    Figure CN118711235A
Patent Text Reader

Abstract

The invention discloses a psychological state assessment method and device based on micro expressions and a medium, and relates to the technical field of facial recognition, and the method comprises the steps: carrying out the preprocessing of image data in each database through a face key point detection model, and obtaining a database after the alignment of face key points; according to the aligned face recognition database, carrying out general face feature recognition training of the recognition model under spatial-temporal feature extraction; according to the enhanced and aligned facial expression recognition database, performing micro-expression recognition adjustment under spatial-temporal feature extraction on the trained recognition model; and extracting micro-expression features of the patient through the adjusted recognition model, and outputting corresponding psychological state information according to the micro-expression features. According to the method, the generalization ability of the model to new data is enhanced, and the learning of the model to specific micro-expression features is optimized, so that the model can still maintain a high recognition rate when facing unseen micro-expression data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of facial recognition, and in particular to a method, device and medium for evaluating a psychological state based on micro-expressions. Background Art

[0002] The development of psychological and mental health monitoring technology that facilitates personal self-monitoring is crucial for early diagnosis, early intervention and treatment. And psychological state assessment based on micro-expressions is an extremely effective diagnostic method.

[0003] Among them, micro-expression recognition based on optical flow method recognizes micro-expressions by analyzing the tiny movements of facial feature points in video sequences, but it has problems such as high computational complexity, sensitivity to noise and illumination, and difficulty in feature selection, which limit its accuracy and practicality. Another local binary pattern (LBP) technology extracts image features by analyzing the brightness relationship between pixels and their neighbors. It is suitable for texture analysis, but in expression recognition, it also shows certain limitations due to the possible generation of high-dimensional feature vectors, dependence on texture uniformity, and limitations in capturing subtle changes in expression. Summary of the invention

[0004] In order to better identify micro-expressions and thus intervene in patients in a timely and effective manner, the present invention proposes a psychological state assessment method based on micro-expressions, comprising the steps of:

[0005] S1: Enhance the facial expression recognition database through data augmentation, and construct a face recognition database based on the enhanced facial expression recognition database through generative adversarial network;

[0006] S2: Preprocess the image data in each database through the face key point detection model to obtain the database after the facial key points are aligned;

[0007] S3: general face feature recognition training of the recognition model under spatiotemporal feature extraction based on the aligned face recognition database;

[0008] S4: Based on the enhanced and aligned facial expression recognition database, the trained recognition model is adjusted for micro-expression recognition under spatiotemporal feature extraction;

[0009] S5: Extract the patient's micro-expression features through the adjusted recognition model, and output the corresponding psychological state information based on the micro-expression features.

[0010] Furthermore, in step S1, the facial expression recognition database is a natural expression video clip extracted from a movie and including micro-expressions.

[0011] Furthermore, in the step S2, the facial key point detection model is a first convolutional neural network to a third convolutional neural network with a network depth that is gradually deepened and cascaded front and back.

[0012] Furthermore, the first convolutional neural network includes three sequentially connected 3×3 convolutional layers and one 2×2 average pooling layer, the second convolutional neural network includes two sequentially connected 3×3 convolutional layers, one 2×2 convolutional layer, one fully connected layer and two 3×3 average pooling layers, and the third convolutional neural network includes three sequentially connected 3×3 convolutional layers, one 2×2 convolutional layer, one fully connected layer, two 3×3 average pooling layers and one 2×2 average pooling layer.

[0013] Furthermore, in the step S3, the extraction of spatiotemporal features is achieved by introducing a three-dimensional convolution structure into the feature extraction network.

[0014] Furthermore, the steps S3 and S4 are trained with the following loss formula:

[0015]

[0016] Where N is the number of categories, Xi is the sample set of category i, Dintra is the intra-class distance, Dinter is the inter-class distance, and a is a hyperparameter used to balance the two terms.

[0017] The present invention also includes a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of the psychological state assessment method based on micro-expressions are implemented.

[0018] Also included is a device for processing data, comprising:

[0019] a memory having a computer program stored thereon;

[0020] A processor is used to execute the computer program in the memory to implement the steps of the psychological state assessment method based on micro-expressions.

[0021] Compared with the prior art, the present invention has at least the following beneficial effects:

[0022] (1) The method, device and medium for evaluating mental state based on micro-expressions of the present invention adopt a two-stage training strategy, which first performs pre-training on a large-scale dataset to learn common facial features, and then performs fine-tuning on an enhanced dataset optimized for mental health status. This strategy not only enhances the generalization ability of the model to new data, but also optimizes its learning of specific micro-expression features, so that the model can still maintain a high recognition rate when facing unseen micro-expression data;

[0023] (2) By combining a three-dimensional convolutional network and incorporating temporal features, the model can more finely capture and distinguish subtle micro-expressions. Even expressions that are visually very similar can be accurately identified, which is crucial for understanding an individual’s true emotional state. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 The steps of a method for assessing psychological state based on micro-expressions;

[0025] Figure 2 Schematic diagram of the network structure of the face key point detection model. DETAILED DESCRIPTION

[0026] The following are specific embodiments of the present invention and the accompanying drawings to further describe the technical solution of the present invention, but the present invention is not limited to these embodiments.

[0027] Embodiment 1

[0028] Micro-expressions are extremely brief and imperceptible facial movements that can reveal an individual's true emotions and have broad application potential in areas such as emotion recognition and lie detection. In non-verbal communication, facial expressions and micro-expressions are particularly important. They can often convey emotions and feelings more intuitively than language, thereby reflecting the individual's psychological and mental state. Visual analysis technology, such as expression and micro-expression recognition, has become a new way to monitor psychological and mental health because of its convenience, user-friendliness, non-invasiveness, and the need for no special equipment. Based on this, Figure 1 As shown, the present invention proposes a method for evaluating a psychological state based on micro-expressions, comprising the steps of:

[0029] S1: Enhance the facial expression recognition database through data augmentation, and construct a face recognition database based on the enhanced facial expression recognition database through generative adversarial network;

[0030] S2: Preprocess the image data in each database through the face key point detection model to obtain the database after the facial key points are aligned;

[0031] S3: general face feature recognition training of the recognition model under spatiotemporal feature extraction based on the aligned face recognition database;

[0032] S4: Based on the enhanced and aligned facial expression recognition database, the trained recognition model is retrained for micro-expression recognition under spatiotemporal feature extraction;

[0033] S5: Extract the patient's micro-expression features through the recognition model after secondary training, and output the corresponding psychological state information based on the micro-expression features.

[0034] In order to better identify facial micro-expressions, the present invention uses the AFEW 7.0 dataset (also known as the facial expression recognition database) in the selection of data sources. The dataset contains natural expression video clips extracted from movies. These clips contain micro-expressions and have real-world emotional expressions. It is precisely because of the diversity and complexity of AFEW 7.0 that it can provide rich samples of emotional changes, making it an ideal dataset for assessing mental health. Furthermore, in order to enhance the data richness, we also use a variety of image transformation techniques including rotation, translation, scaling, noise injection, and contrast adjustment to perform data enhancement operations on the dataset. At the same time, we also expand the initial facial expression recognition database through the generative adversarial network to obtain a face recognition database. In this way, the diversity of training samples can be increased while weakening the proportion of micro-expressions.

[0035] After that, we need to further process the data to ensure the quality and consistency of the input data and minimize the impact of non-face areas on the prediction results. To this end, the present invention introduces a multi-task learning model, using three different convolutional neural networks P, R, O to train the data, such as Figure 2 As shown. P network: includes three 3×3 convolutional layers (Conv) connected in sequence, where the first convolutional layer is connected to a 2×2 average pooling layer. During the model training process, an image of size 12×12 is input and the confidence and face offset are output. R network: includes two 3×3 convolutional layers connected in sequence (each connected to a 3×3 average pooling layer), a 2×2 convolutional layer and a fully connected layer. The size of the input image is 24×24. The output image and offset value of the R network are further processed and the processed image and offset value are input to the O network. O network: includes three 3×3 convolutional layers connected in sequence (the first two are each connected to a 3×3 average pooling layer, and the last one is connected to a 2×2 average pooling layer), a 2×2 convolutional layer and a fully connected layer. The size of the input image is 48×48. The image output by the R network is finally judged to determine the position of the face. These three networks are cascaded to construct a facial key point position detection model. Using such a model for facial key point detection and alignment, we can adapt to different facial postures and expression changes. The model's multi-task learning framework allows for the simultaneous prediction of facial landmarks and facial bounding boxes, which improves the accuracy and robustness of the alignment process. In addition, we implement normalization of facial images to reduce the impact of lighting and expression changes on model performance.

[0036] In terms of feature extraction, in order to make full use of the temporal features in micro-expression data, we introduced a three-dimensional convolution structure in the feature extraction network, adding a convolution operation in the temporal dimension to the spatial dimension, so that the recognition model can extract spatial-temporal features from multiple consecutive video frames. The model captures dynamic expression changes in the video through the three-dimensional convolution layer, including the onset, climax, and decay of the expression, which is crucial for identifying subtle micro-expressions. Overall, we have made structural improvements to the recognition model to meet the specific needs of micro-expression recognition, including adjusting the size and depth of the convolution kernel, and optimizing the network structure to improve sensitivity to micro-expressions.

[0037] In the actual training process of the recognition model, we divide the training into two stages to improve the model's ability to recognize micro-expressions. In the first stage, we train the recognition model based on the face recognition database, and use the generalized face recognition data to improve the model's ability to recognize general facial features and reduce the possibility of misrecognition. Then, the recognition model is trained based on the enhanced facial expression database, and the secondary recognition adjustment under micro-expression recognition is performed, so that the recognition model can focus more on the learning of micro-expression features related to mental health status. This learning strategy not only improves the generalization ability of the model, but also enhances its adaptability to specific tasks. During the learning process, the present invention also constrains the training through a loss function, and its specific formula is as follows:

[0038]

[0039] Where N is the number of categories, Xi is the sample set of category i, Dintra is the intra-class distance, Dinter is the inter-class distance, and a is a hyperparameter used to balance the two terms. This loss function promotes a clear separation of categories in the feature space by minimizing the intra-class distance and maximizing the inter-class distance. This enables the model to more accurately distinguish different micro-expressions, even if these expressions may be very similar visually. This customization of the loss function significantly improves the performance of the model in complex expression recognition tasks.

[0040] In addition, the present invention also includes a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of the psychological state assessment method based on micro-expressions are implemented.

[0041] Also included is a device for processing data, comprising:

[0042] a memory having a computer program stored thereon;

[0043] A processor is used to execute the computer program in the memory to implement the steps of the psychological state assessment method based on micro-expressions.

[0044] In summary, the method, device and medium for evaluating psychological state based on micro-expressions described in the present invention adopt a two-stage training strategy, first pre-training on a large-scale dataset to learn common facial features, and then fine-tuning on an enhanced dataset optimized for mental health status. This strategy not only enhances the model's generalization ability for new data, but also optimizes its learning of specific micro-expression features, so that the model can still maintain a high recognition rate when facing unseen micro-expression data.

[0045] By combining a three-dimensional convolutional network and adding temporal features, the model can more finely capture and distinguish subtle micro-expressions, and can accurately identify even visually very similar expressions, which is crucial for understanding an individual's true emotional state.

[0046] It should be noted that all directional indications in the embodiments of the present invention (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

[0047] In addition, in the present invention, descriptions such as "first", "second", "one", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0048] In the present invention, unless otherwise clearly specified and limited, the terms "connection", "fixation", etc. should be understood in a broad sense. For example, "fixation" can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0049] In addition, the technical solutions between the various embodiments of the present invention can be combined with each other, but it must be based on the fact that ordinary technicians in the field can implement it. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

Claims

1. A method for evaluating psychological state based on micro-expressions, characterized in that: Includes steps: S1: Enhance the facial expression recognition database through data augmentation, and construct a face recognition database based on the enhanced facial expression recognition database through generative adversarial network; S2: Preprocess the image data in each database through the face key point detection model to obtain the database after the facial key points are aligned; S3: general face feature recognition training of the recognition model under spatiotemporal feature extraction based on the aligned face recognition database; S4: Based on the enhanced and aligned facial expression recognition database, the trained recognition model is adjusted for micro-expression recognition under spatiotemporal feature extraction; S5: Extract the patient's micro-expression features through the adjusted recognition model, and output the corresponding psychological state information based on the micro-expression features.

2. A method for evaluating a psychological state based on micro-expressions as claimed in claim 1, characterized in that: In the step S1, the facial expression recognition database is a natural expression video clip extracted from a movie and including micro-expressions.

3. A method for evaluating a psychological state based on micro-expressions as claimed in claim 1, characterized in that: In the step S2, the facial key point detection model is a first convolutional neural network to a third convolutional neural network with a network depth that is gradually deepened and cascaded forward and backward.

4. A method for evaluating a psychological state based on micro-expressions as claimed in claim 3, characterized in that: The first convolutional neural network includes three sequentially connected 3×3 convolutional layers and one 2×2 average pooling layer, the second convolutional neural network includes two sequentially connected 3×3 convolutional layers, one 2×2 convolutional layer, one fully connected layer and two 3×3 average pooling layers, and the third convolutional neural network includes three sequentially connected 3×3 convolutional layers, one 2×2 convolutional layer, one fully connected layer, two 3×3 average pooling layers and one 2×2 average pooling layer.

5. A method for evaluating a psychological state based on micro-expressions as claimed in claim 1, characterized in that: In the step S3, the extraction of spatiotemporal features is achieved by introducing a three-dimensional convolution structure into the feature extraction network.

6. A method for evaluating a psychological state based on micro-expressions as claimed in claim 1, characterized in that: The S3 and S4 steps are trained with the following loss formula: In the formula, N is the number of categories, X i is the sample set of category i, D intra is the intra-class distance, D inter is the out-of-class distance, and a is a hyperparameter used to balance the two terms.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the evaluation method according to any one of claims 1 to 6 are implemented.

8. A device for processing data, characterized in that: include: a memory having a computer program stored thereon; A processor, configured to execute the computer program in the memory to implement the steps of the evaluation method according to any one of claims 1 to 6.