Facial movement unit-based depression detection system

By using MTCNN, PLFD and AU R-CNN models in the depression detection system, combined with new loss functions and AU division rules, the problems of ignoring differences in facial micro-expressions and limited recognition range in the existing technology are solved, achieving a better Highly accurate depression detection.

CN118865463APending Publication Date: 2024-10-29SOUTHEAST UNIV

Patent Information

Application Number
CN202410835740.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

Existing depression detection systems usually rely on expression recognition of the entire face and tend to ignore micro-expression differences in facial images, resulting in reduced detection accuracy. They can only recognize regular regular face images with a limited recognition range.

Method used

Design a depression detection system based on facial motion units, using MTCNN model, PLFD model and AU R-CNN model, through a new loss function algorithm and AU division rules, the face image is regarded as an independent area and local neural motion is identified unit to improve detection accuracy.

Benefits of technology

Through finer-grained local area recognition, the accuracy and recognition range of depression detection are improved, face images can be recognized without relying on frontal faces, and the effect of depression status detection is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118865463A_ABST
    Figure CN118865463A_ABST
Patent Text Reader

Abstract

The invention discloses a depression detection system based on a facial motion unit, which comprises an MTCNN model, a PLFD model, an AU R-CNN model and a logistic regression neural network, designs a new loss function algorithm, solves the problem of picture recognition accuracy limited by geometric constraint and data imbalance in deep learning, and improves the accuracy of the image recognition. The method comprises the steps of expanding a face image recognition range, encoding results output by an MTCNN model and a PLFD model into an AU R-CNN model by setting an AU division rule, regarding each face image as a group of independent areas, performing area division on a face, obtaining key points in the face images, and performing face recognition on the key points. According to the method, neural motion unit recognition can be carried out on a local area of a human face on the aspect of finer granularity, so that higher precision is achieved, and the depression detection accuracy is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of facial expression motion unit detection, and in particular to a depression detection system based on facial motion units. Background Art

[0002] Depression is a common mental health problem that affects people's emotions, thinking and behavior. The main symptoms of depression include persistent low mood, loss of interest, fatigue, changes in appetite and sleep problems. Facial motion unit detection is an important computer vision technology. Its main function is to analyze and understand human expression changes. This technology is based on the Facial Action Coding System (FACS), which divides facial movements into different units, each of which corresponds to a specific muscle group and corresponding expression changes. Facial motion unit detection has a wide range of applications. For example, by detecting facial motion units, we can understand a person's emotional state, which is very important for psychological research and human-computer interaction. In the field of public safety, facial motion unit detection can be used to identify suspicious behaviors or potential threats and improve social security. In some medical applications, such as pain assessment or mental illness diagnosis, facial motion unit detection can help doctors understand and judge patients' conditions more accurately.

[0003] Therefore, it is very necessary to promote the technology of detecting depression by recognizing faces. Existing depression detection systems usually judge whether a person is depressed based on facial expression recognition. This system recognizes the facial expression image of the whole face instead of the facial motion unit of the local area, which easily ignores the differences between the facial micro-expressions of the face image, thereby reducing the accuracy of depression state detection. In addition, it can only recognize and detect regular frontal face images, and the recognition range of face images is limited. The present invention detects depression based on facial motion unit recognition of the face, expands the recognition range of face images by designing a new loss function algorithm, and encodes the results output by the MTCNN model and the PLFD model into the AU R-CNN model by setting the AU division rule, regards each face image as a group of independent regions, divides the face into regions and obtains the key points in the face image, and can recognize the neural motion units of the local area of ​​the face at a finer granularity, thereby achieving higher accuracy and improving the accuracy of depression detection. Summary of the invention

[0004] The purpose of the present invention is to solve the problem that the existing facial expression images are recognized by the whole face rather than the facial motion units of the local area, which easily ignores the differences between the facial micro-expressions of the facial images, thereby reducing the accuracy of depression state detection, and can only recognize and detect the frontal regular facial images, and the recognition range of the facial images is limited. A depression detection system based on facial motion units is proposed.

[0005] In order to achieve the above object, the present invention adopts the following technical solutions:

[0006] A depression detection system based on facial motion units, including MTCNN model, PLFD model, AU R-CNN model and logistic regression neural network;

[0007] The MTCNN model includes three cascade networks of a P-Net module, an R-Net module, and an O-Net module. The three cascade networks are used to complete the face detection of the input image, mark the face area and locate the key points of the face;

[0008] The PLFD model is used to identify key points of a human face, and includes an algorithm module, a backbone network and an auxiliary network;

[0009] The AU R-CNN model is used to identify neural motor units, including AU division rules, feature modules and head modules;

[0010] The logistic regression neural network is used to output a final value to determine whether the face in the image or video is in a depressive state.

[0011] Preferably, the algorithm module includes a loss function algorithm for solving the accuracy limitation of geometric constraints and data imbalance problems in deep learning;

[0012] The loss function algorithm integrates geometric constraints and data imbalance problems to obtain a novel loss design formula:

[0013] in,

[0014] Indicates loss;

[0015] M represents the number of training images in each process;

[0016] N represents the number of predefined landmarks to be detected for each face;

[0017] C represents the number of class C samples that cause data imbalance;

[0018] Represents the weight parameter adjusted according to the C-type samples;

[0019] θ 1 ,θ 2 and θ 3 (K=3) represent the deviation angles between the ground truth and the estimated yaw, pitch, and roll angles, respectively;

[0020] represents a metric used to measure the distance or error of the nth landmark of the mth input;

[0021] Regardless of whether 3D pose or data imbalance affects training, the loss is able to handle local variations through its distance measure.

[0022] Preferably, the backbone network comprises a MobileNet block and a multi-scale fully connected layer;

[0023] The MobileNet block builds the backbone network of the PLFD model, replacing the traditional convolution operation, expanding the single-scale feature map to a multi-scale feature map, improving the processing speed and model compactness, and the multi-scale fully connected layer is used to accurately locate the landmarks in the image, expand the receiving field of view, and better capture the global structure of the face.

[0024] Preferably, the auxiliary network includes rotation information calculation to solve the problem of low-quality angle estimation;

[0025] The rotation information calculation decouples the estimation of rotation information from landmark positioning, and can output the target angle without the need for the front face as input, effectively estimates the rotation information, and further standardizes the landmark positioning. The calculation method is as follows:

[0026] S1 predefines a standard face and fixes 11 landmarks on the dominant plane as a reference for all training faces, where the standard face is the average of a bunch of frontal faces;

[0027] S2 uses 11 landmarks corresponding to each face and the reference landmark to estimate the rotation matrix;

[0028] S3 calculates the Euler angles based on the rotation matrix.

[0029] Preferably, the P-Net module is trained through single-scale images, the output result is restored to the original image, the areas with low scores and high overlap are filtered out, and then correction is performed through border regression to output a large number of areas where human faces may exist.

[0030] Preferably, the R-Net module refines the input face area, discards most of the erroneous inputs, and then regresses the border and locates the key points of the face area through border regression and facial key point locator, retains more image features through an added fully connected layer, and finally outputs a more accurate and reliable face area.

[0031] Preferably, the O-Net module is integrated into a more complex neural network with more input features, which can simultaneously perform face recognition, face area border regression and face feature positioning, and finally output the upper left corner coordinates and lower right corner coordinates of the face area and five feature points of the face area.

[0032] Preferably, the AU partitioning rule encodes the results output by the MTCNN model and the PLFD model into the region definition and the roi level label definition, generates an AU mask, and decomposes the image into a bunch of AU-related bounding boxes.

[0033] Preferably, the feature module generates a feature map and an AU mask through an input face image.

[0034] Preferably, the head module includes a RoI pooling layer, which converts features within an arbitrary rectangular bounding box into a small feature map with a fixed spatial range, focusing on identifying each bounding box.

[0035] Compared with the prior art, the present invention has the following beneficial effects:

[0036] The present invention provides a depression detection system based on facial motion units, designs a new loss function algorithm, solves the problem of image recognition accuracy limited by geometric constraints and data imbalance in deep learning, expands the recognition range of facial images, and encodes the results output by the MTCNN model and the PLFD model into the AUR-CNN model by setting AU division rules, regards each facial image as a group of independent regions, divides the face into regions and obtains key points in the facial image, and can identify neural motion units in local regions of the face at a finer granularity, thereby achieving higher precision and improving the accuracy of depression detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more specifically and intuitively illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art are briefly introduced below.

[0038] Figure 1 It is a logical relationship diagram of the detection system of the present invention;

[0039] Figure 2 It is a structural diagram of the MTCNN model of the present invention;

[0040] Figure 3 It is the structural diagram of the PLFD model of the present invention;

[0041] Figure 4 AU R-CNN model structure diagram of the present invention;

[0042] Figure 5 It is the key point and facial segmentation map of the present invention;

[0043] Figure 6 The AU mask diagram set of the present invention;

[0044] Figure 7It is the depression status scale of the present invention. DETAILED DESCRIPTION

[0045] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.

[0046] Reference Figure 1 - Figure 7 , a depression detection system based on facial motion units, including MTCNN model, PLFD model, AU R-CNN model and logistic regression neural network;

[0047] The MTCNN model consists of three cascade networks: a P-Net module for quickly generating candidate windows, an R-Net module for high-precision candidate window filtering and selection, and an O-Net module for generating the final bounding box.

[0048] Among them, the P-Net module is trained through single-scale images. When inferring, the scale of the face to be recognized is first changed to close to the model scale, and then the output result is restored to the original image, the areas with low scores and high overlap are filtered out, and then corrected through border regression, and many areas where there may be faces are output;

[0049] The R-Net module refines the input face area, discards most of the erroneous input, and then regresses the border and locates the key points of the face area through the border regression and facial key point locator. By adding a fully connected layer, more image features are retained, and finally a more accurate and reliable face area is output;

[0050] The O-Net module is integrated into a more complex neural network with more input features. It can simultaneously perform face recognition, face region border regression and face feature location, and finally output the coordinates of the upper left corner and lower right corner of the face region and the five feature points of the face region.

[0051] The MTCNN model uses three cascade networks and the idea of ​​candidate boxes plus classifiers to complete face detection in input images. It also applies image pyramid, bounding box regression, non-maximum suppression and other technologies to perform fast and efficient face detection, mark the face area and locate the key points of the face.

[0052] Furthermore, the PLFD model is used to identify key points of the face, including an algorithm module, a backbone network and an auxiliary network. The algorithm module includes a loss function algorithm.

[0053] Since the face in the input image may not present a standard face image that is easy to recognize due to factors such as posture, lighting, and occlusion conditions, during the training phase, the rotation information of each sample is estimated to locate the landmarks in the geometric regularized face, and the data imbalance problem is alleviated by adjusting the weights of samples in different states (such as large postures, extreme lighting, and occlusion) for centralized training. A new loss function algorithm is designed to solve the accuracy limited by geometric constraints and data imbalance in deep learning. The loss function algorithm integrates geometric constraints and data imbalance to obtain a novel loss design formula:

[0054]

[0055] Indicates loss;

[0056] M represents the number of training images in each process;

[0057] N represents the number of predefined landmarks to be detected for each face;

[0058] C represents the number of class C samples that cause data imbalance;

[0059] Represents the weight parameter adjusted according to the C-type samples;

[0060] θ 1 ,θ 2 and θ 3 (K=3) represent the deviation angles between the ground truth and the estimated yaw, pitch, and roll angles, respectively;

[0061] represents a metric used to measure the distance or error of the nth landmark of the mth input;

[0062] Regardless of whether 3D pose or data imbalance affects training, the loss can handle local variations through its distance measure;

[0063] The backbone network includes MobileNet blocks and multi-scale fully connected layers. MobileNet blocks construct the backbone network of the PLFD model, which can be adjusted to a size of only 2.1Mb to improve the compactness of the model. Considering that the human face has a strong global structure, such as the symmetry and spatial relationship between the eyes, mouth, nose, etc., such a global structure can help locate the key points of the face more accurately. Therefore, the traditional convolution operation is replaced in the backbone network, and the single-scale feature map is expanded to a multi-scale feature map. The expansion is completed by performing convolution operations to expand its receptive field and improve the processing speed. The final prediction is then performed through the multi-scale fully connected layer to expand the receiving field of view and better capture the global structure of the face, which is used to accurately locate the key points in the face image.

[0064] The auxiliary network includes rotation information calculation to solve the problem of low-quality angle estimation. For images, not every input picture is a frontal face. Therefore, it is also necessary to estimate the three-dimensional rotation information in the image, including yaw, pitch and roll angles. The head posture can be determined by these three Euler angles. The rotation information calculation decouples the estimation of rotation information from the key point positioning, and can output the target angle without the front face as input, effectively estimate the rotation information, and further standardize the key point positioning. The calculation method is as follows:

[0065] S1 predefines a standard face (averaged from a bunch of frontal faces) and fixes 11 landmarks on the dominant plane as references for all training faces;

[0066] S2 uses 11 landmarks corresponding to each face and the reference landmark to estimate the rotation matrix;

[0067] S3 calculates the Euler angles based on the rotation matrix.

[0068] Furthermore, the AU R-CNN model is used to identify neural motor units, which includes AU division rules, feature modules and head modules. In order to extract effective facial features, facial features are divided into appearance features and geometric features. Appearance features describe the local or overall changes of facial components, and geometric features represent the direction or distance of facial salient points or skin changes.

[0069] The AU partitioning rule encodes the results output by the MTCNN model and the PLFD model into the region definition and the roi-level label definition, generates an AU mask, and decomposes the image into a bunch of bounding boxes related to AUs. Using this rule, each face image is regarded as a set of independent regions, the face is divided into regions and the key points in the face image are obtained, and then the feature map and multiple groups of AU masks are generated through the feature module. The minimum bounding box of the AU mask is input into the RoI pooling layer in the head module. The RoI pooling layer converts the features within the bounding box of any rectangle into a small feature map with a fixed spatial range, focusing on identifying the neural motor units in each group of AU masks.

[0070] Furthermore, the logistic regression neural network is mainly composed of an input layer, a hidden layer and an output layer. The input layer is used to receive the neural motor unit data in each group of AU masks input, the hidden layer is responsible for extracting the features of the neural motor unit data, and the output layer classifies the extracted features for decision-making. The output is a value in the range of 0 to 1. The output value is multiplied by 27 as the final score value. Then, according to the depression state scale, it is judged whether the face in the picture is in a depressed state, and finally the result is output.

[0071] The facial motion unit-based depression detection system of the present invention designs a new loss function algorithm to solve the problem of image recognition accuracy limited by geometric constraints and data imbalance in deep learning, expand the recognition range of facial images, and encode the results output by the MTCNN model and the PLFD model into the AU R-CNN model by setting AU partitioning rules. Each facial image is regarded as a group of independent regions, the face is divided into regions and the key points in the facial image are obtained. The neural motor units of the local areas of the face can be identified at a finer granularity, thereby achieving higher precision and improving the accuracy of depression detection.

[0072] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. A depression detection system based on facial motion units, characterized in that: Including MTCNN model, PLFD model, AU R-CNN model and logistic regression neural network; The MTCNN model includes three cascade networks of a P-Net module, an R-Net module, and an O-Net module. The three cascade networks are used to complete the face detection of the input image, mark the face area and locate the key points of the face; The PLFD model is used to identify key points of a human face, and includes an algorithm module, a backbone network and an auxiliary network; The AU R-CNN model is used to identify neural motor units, including AU division rules, feature modules and head modules; The logistic regression neural network is used to output a final value to determine whether the face in the image or video is in a depressive state.

2. A depression detection system based on facial motion unit according to claim 1, characterized in that: The algorithm module includes a loss function algorithm for solving the accuracy limitation of geometric constraints and data imbalance problems in deep learning; The loss function algorithm integrates geometric constraints and data imbalance problems to obtain a novel loss design formula: in, Indicates loss; M represents the number of training images in each process; N represents the number of predefined landmarks to be detected for each face; C represents the number of class C samples that cause data imbalance; Represents the weight parameter adjusted according to the C-type samples; θ 1 ,θ 2 and θ 3 (K=3) represent the deviation angles between the ground truth and the estimated yaw, pitch, and roll angles, respectively; represents a metric used to measure the distance or error of the nth landmark of the mth input; Regardless of whether 3D pose or data imbalance affects training, the loss is able to handle local variations through its distance measure.

3. A depression detection system based on facial motion unit according to claim 1, characterized in that: The backbone network includes a MobileNet block and a multi-scale fully connected layer; The MobileNet block builds the backbone network of the PLFD model, replacing the traditional convolution operation, expanding the single-scale feature map to a multi-scale feature map, improving the processing speed and model compactness, and the multi-scale fully connected layer is used to accurately locate the landmarks in the image, expand the receiving field of view, and better capture the global structure of the face.

4. A depression detection system based on facial motion unit according to claim 1, characterized in that: The auxiliary network includes rotation information calculation to solve the problem of low-quality angle estimation; The rotation information calculation decouples the estimation of rotation information from landmark positioning, and can output the target angle without the need for the front face as input, effectively estimates the rotation information, and further standardizes the landmark positioning. The calculation method is as follows: S1 predefines a standard face and fixes 11 landmarks on the dominant plane as a reference for all training faces, where the standard face is the average of a bunch of frontal faces; S2 uses 11 landmarks corresponding to each face and the reference landmark to estimate the rotation matrix; S3 calculates the Euler angles based on the rotation matrix.

5. The depression detection system based on facial motion unit according to claim 1, characterized in that: The P-Net module is trained on a single-scale image, restores the output result to the original image, filters out areas with low scores and high overlap, and then corrects them through border regression, outputting many areas where human faces may exist.

6. A depression detection system based on facial motion unit according to claim 1, characterized in that: The R-Net module refines the input face area, discards most of the erroneous input, and then regresses the bounding box and locates the key points of the face area through bounding box regression and facial key point locator. By adding a fully connected layer, more image features are retained, and finally a more accurate and reliable face area is output.

7. A depression detection system based on facial motion unit according to claim 1, characterized in that: The O-Net module is integrated into a more complex neural network with more input features. It can simultaneously perform face recognition, face area border regression and face feature positioning, and finally output the upper left corner coordinates and lower right corner coordinates of the face area and the five feature points of the face area.

8. The depression detection system based on facial motion unit according to claim 1, characterized in that: The AU partitioning rule encodes the results output by the MTCNN model and the PLFD model into the region definition and the roi-level label definition, generates an AU mask, and decomposes the image into a bunch of AU-related bounding boxes.

9. The depression detection system based on facial motion unit according to claim 1, characterized in that: The feature module generates a feature map and an AU mask through an input face image.

10. The depression detection system based on facial motion unit according to claim 1, characterized in that: The head module includes a RoI pooling layer, which converts features within an arbitrary rectangular bounding box into a small feature map with a fixed spatial range, focusing on identifying each bounding box.

Citation Information

Patent Citations

  • Low-pixel multi-target face detection and key point positioning method and alignment method

    CN109961006A

  • Depression auxiliary evaluation method and device based on frequency domain features of face of patient

    CN117179767A

  • Real-time throat swab face detection and oral cavity positioning method based on improved MTCNN

    CN118172813A

Cited By

  • Depression screening system based on edge vision

    CN120071417A

  • Multi-modal fusion-based depression identification method and system, and storage medium

    CN120182899A

  • Multi-modal fusion-based depression identification method and system, and storage medium

    CN121215224A