A method and device for recognizing micro-expressions

By identifying the frame change intensity and feature points in the video of the micro-expression data set, combined with the SVM and the recurrent neural network model, the problem of high computational cost and inconvenient model migration of the micro-expression recognition algorithm in the existing technology has been solved, achieving low-cost, high-performance Accurate micro-expression recognition effect.

CN115249377BActive Publication Date: 2024-10-29JIANGSU ZHENGFANG TRANSPORTATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210941662.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-08
Publication Date
2024-10-29
Estimated Expiration
2042-08-08

AI Technical Summary

Technical Problem

Existing micro-expression recognition algorithms rely on large convolutional neural networks, resulting in high computational costs and inconvenient model migration, making it difficult to effectively deploy in environments with limited resources.

Method used

Obtain the micro-expression data set video, perform preprocessing to obtain facial feature points, calculate the frame change intensity to determine the Apex frame, and use the trained deep learning neural network model, including SVM and recurrent neural network, to combine the Apex frame and its before and after changes. The feature points of the smallest frame are identified, and the model is trained using gradient descent.

Benefits of technology

It achieves low-cost, low-computation micro-expression recognition with high accuracy and easy model migration. It does not rely on powerful carriers and is suitable for deployment on multiple operating systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115249377B_ABST
    Figure CN115249377B_ABST
Patent Text Reader

Abstract

The invention discloses a method and device for recognizing micro-expressions, wherein the recognition method comprises: obtaining a micro-expression data set video; pre-processing the micro-expression data set video to obtain facial feature points of each frame; calculating the change intensity of micro-expression sequence frames, and determining an Apex frame with the largest change intensity; determining frames with the smallest change intensity before and after the Apex frame according to the facial change intensity sequence; determining a facial feature point sequence of the frame with the smallest change intensity before and after the Apex frame; inputting the facial feature point sequence of the frame with the smallest change intensity before and after the Apex frame into a trained deep learning neural network model, and recognizing micro-expressions using the deep learning neural network model; the recognition method provided by the invention makes accurate judgment based on a model combining an SVM classification model and a recursive neural network model, has a small amount of calculation, and high precision, can be deployed in a variety of operating systems, and is convenient for program transplantation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image recognition, and in particular to a method and device for recognizing micro-expressions. Background Art

[0002] Micro-expression is a short-duration / low-intensity facial movement that can reveal a person's true emotions that he or she is trying to hide. It is of great value in clinical medicine / criminal investigation and interrogation / public security, business negotiations and other fields. Micro-expression is a process of facial feature changes in a time series, and expression recognition is to analyze facial feature changes.

[0003] Existing algorithms generally implement micro-expression recognition based on convolutional neural networks. These models are relatively large, and the machines need to pull streams for decoding and run the recognition models. They require a better carrier to implement calculations, which is costly. Summary of the invention

[0004] In order to solve the above problems, the present invention provides a method and device for recognizing micro-expressions with low cost, low computational complexity and easy model migration.

[0005] In order to achieve the above object, the present invention provides a method for recognizing micro-expressions, comprising:

[0006] Get the micro-expression dataset video;

[0007] Preprocessing the micro-expression dataset video to obtain facial feature points of each frame;

[0008] Calculate the change intensity of the micro-expression sequence frames and determine the Apex frame with the largest change intensity;

[0009] Determine, according to the facial change intensity sequence, the frames with the smallest change intensity before and after the Apex frame;

[0010] Determine a facial feature point sequence of a frame with the smallest change intensity before and after the Apex frame;

[0011] The facial feature point sequences of the frames with the smallest change intensity before and after the Apex frame are input into a trained deep learning neural network model, and the deep learning neural network model is used to recognize micro-expressions.

[0012] As a preferred technical solution, preprocessing the micro-expression dataset video to obtain facial feature points of each frame further includes:

[0013] Import the micro-expression dataset video into the facelandmark model;

[0014] Using the facelandmark model to obtain facial feature points of each frame;

[0015] As a preferred technical solution, calculating the intensity of micro-expression sequence frame changes further includes:

[0016] Calculate the change intensity of each frame of the face and construct a change intensity sequence;

[0017] Determining an Apex frame according to the change intensity sequence;

[0018] Taking the nose tip in the Apex frame as the coordinate origin, determine the coordinates of other feature points;

[0019] The Apex frame is normalized.

[0020] As a preferred technical solution, the Apex frame is standardized, further comprising: all facial feature points obtained using facelandmark are converted into coordinates with the nose tip as the coordinate origin, and the nose tip coordinates are unified as the coordinate origin.

[0021] As a preferred technical solution, the deep learning neural network model includes a SVM model and a recursive neural network model.

[0022] As a preferred technical solution, the training steps of the deep learning neural network model include: using the Apex frame as the input of the SVM model, using the frame with the smallest intensity change before the Apex frame, the Apex frame, and the frame with the smallest intensity change after the Apex frame as the input of the recursive neural network, weighting the output result of the SVM model and the output result of the recursive neural network to obtain the predicted output, calculating the loss with the real data, using the gradient descent method, reversely iterating and calculating each weight, and performing model training.

[0023] On the other hand, the present invention also provides a micro-expression recognition device, comprising:

[0024] An acquisition unit, used to acquire a micro-expression dataset video;

[0025] A preprocessing unit, used for preprocessing the micro-expression dataset video to obtain facial feature points of each frame;

[0026] A calculation unit, used to calculate the change intensity of the micro-expression sequence frames and determine the Apex frame with the largest change intensity;

[0027] A first determining unit, configured to determine, according to the facial change intensity sequence, a frame with the smallest change intensity before and after the Apex frame;

[0028] A second determining unit is used to determine a facial feature point sequence of a frame with the smallest change intensity before and after the Apex frame;

[0029] The recognition unit is used to input the facial feature point sequence of the frames with the smallest change intensity before and after the Apex frame into a trained deep learning neural network model, and use the deep learning neural network model to recognize micro-expressions.

[0030] As a preferred technical solution, the deep learning neural network model includes a SVM model and a recursive neural network model.

[0031] As a preferred technical solution, the training steps of the deep learning neural network model include: using the Apex frame as the input of the SVM model, using the frame with the smallest intensity change before the Apex frame, the Apex frame, and the frame with the smallest intensity change after the Apex frame as the input of the recursive neural network, weighting the output result of the SVM model and the output result of the recursive neural network to obtain the predicted output, calculating the loss with the real data, using the gradient descent method, reversely iterating and calculating each weight, and performing model training.

[0032] The beneficial effects of the present invention over the prior art are as follows: the recognition method provided by the present invention trains a deep learning neural network model by acquiring an Apex frame and two frames with the smallest intensity change before and after the Apex frame, and uses the trained deep learning neural network model to identify micro-expressions, with small computational complexity and high accuracy, and does not require reliance on powerful carriers, can be deployed on a variety of operating systems, and is easy to port. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 It is a flow chart of a micro-expression recognition method provided by the present invention;

[0034] Figure 2 It is a training flow chart of the deep learning network model provided by the present invention;

[0035] Figure 3 It is a structural diagram of a micro-expression recognition device provided by the present invention. DETAILED DESCRIPTION

[0036] 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 described embodiments 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.

[0037] As shown in this application and claims, unless the context clearly indicates an exception, the words "a", "an", "an" and / or "the" do not refer to the singular and may also include the plural. Generally speaking, the terms "include" and "comprise" only indicate the inclusion of the steps and elements that have been clearly identified, and these steps and elements do not constitute an exclusive list. The method or device may also include other steps or elements.

[0038] Unless otherwise specifically stated, the relative arrangement, numerical expressions and numerical values ​​of the parts and steps set forth in these embodiments do not limit the scope of the present application. At the same time, it should be understood that, for ease of description, the sizes of the various parts shown in the accompanying drawings are not drawn according to the actual proportional relationship. The technology, method and equipment known to those of ordinary skill in the relevant field may not be discussed in detail, but in appropriate cases, the technology, method and equipment should be considered as a part of the authorization specification. In all examples shown and discussed here, any specific value should be interpreted as being merely exemplary, rather than as a limitation. Therefore, other examples of exemplary embodiments may have different values. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so that once a certain item is defined in an accompanying drawing, it does not need to be further discussed in subsequent drawings.

[0039] In addition, it should be noted that the use of words such as "first" and "second" to define components is only for the convenience of distinguishing the corresponding components. If not otherwise stated, the above words have no special meaning and cannot be understood as limiting the scope of protection of this application. In addition, although the terms used in this application are selected from well-known and commonly used terms, some terms mentioned in the specification of this application may be selected by the applicant at his or her discretion, and their detailed meanings are explained in the relevant parts of the description of this article. In addition, it is required to understand this application not only by the actual terms used, but also by the meaning implied by each term.

[0040] Reference Figure 1 The present invention provides a method for recognizing micro-expressions, comprising the following steps:

[0041] S10: Get the micro-expression dataset video;

[0042] S20: Preprocessing the micro-expression dataset video to obtain facial feature points of each frame;

[0043] In this embodiment, the RK3399Pro development board is taken as an example, but it should be noted that although the RK3399Pro development board is taken as an example in this embodiment, the protection scope of the present invention is not limited thereto, and other platforms are also within the protection scope of the present invention.

[0044] Specifically, RK3399Pro is used to implement video stream hard decoding, run the facelandmark model, and call RockX's faceland to obtain the facelandmark feature points of each frame.

[0045] S30: Calculate the facial change intensity of each frame of micro-expression, and determine the Apex frame with the largest change intensity;

[0046] Specifically, firstly, the change intensity of each frame of the face is calculated, and a change intensity sequence is constructed according to the change intensity of each frame of the face; then, the Apex frame is determined according to the change intensity sequence to obtain the Apex frame; then, the nose tip of the face in the Apex frame is used as the coordinate origin to obtain the coordinates of the feature points to achieve standardization.

[0047] It should be noted here that the intensity of facial changes in this embodiment is measured based on the area where micro-expression muscle movements occur frequently.

[0048] It should be understood that the Apex frame recorded in this embodiment refers to the frame with the largest change intensity in the sequence.

[0049] S40: determining the frames with the smallest change intensity before and after the Apex frame according to the facial change intensity sequence;

[0050] Specifically, firstly, the frame with the smallest change intensity before the Apex frame is determined according to the facial change intensity sequence, and the number of frames N between the frame with the smallest change intensity before the Apex frame and the Apex frame is stored as N_Before_Apex frame;

[0051] Next, the facial feature point sequence of the frame with the smallest change intensity after the Apex frame is determined, and the number of frames between the frame with the smallest change intensity after the Apex frame and the Apex frame is M, which is recorded as M_After_Apex frame;

[0052] It should be noted that micro-expression is a short process. The farther the frame is from the Apex frame, the lower its impact on micro-expression judgment, and the closer the frame is, the higher the impact. Therefore, the corresponding weights are calculated based on the intervals N and M between the N_Before_Apex frame and the M_Apex_After frame and the Apex frame. The weight of the N_Before_Apex frame is weight_Before=M / (N+M), and the weight of the M_Apex_After frame is weight_After=N / (N+M).

[0053] S50: Determine a facial feature point sequence of a frame with the smallest change intensity before and after the Apex frame;

[0054] It should be understood that after the Apex frame, the N_Before_Apex frame and the M_Apex_After frame are determined, the facial feature point sequence between the three is determined.

[0055] S60: Inputting the facial feature point sequence of the frames with the smallest change intensity before and after the Apex frame into a trained deep learning neural network model, and using the deep learning neural network model to recognize micro-expressions.

[0056] In this embodiment, deep learning constructs a deep learning network model including an SVM model and a recursive neural network model. Figure 2 The input of the SVM model and the recursive neural network model are N_Before_Apex frames, Apex frames and M_Apex_After frames, and the output is the micro-expression classification result. The training steps include: the Apex frame is used as the input of the SVM model, the feature sequence of the N_Before_Apex frame, Apex frame and M_Apex_After frame is used as the input of the recursive neural network based on the weight, and the micro-expression classification number is used as the output to train the deep learning network.

[0057] In this embodiment, in actual use, the facial feature point sequences of the Apex frame and the N_Before_Apex frame and the M_Apex_After frame are input into a trained neural network model, and the micro-expressions are recognized using the recursive neural network model.

[0058] It should be noted here that the recursive neural network model used in this embodiment adopts the LSTM model, but the protection scope of the present invention is not limited to this, and other recursive neural network models are also possible.

[0059] It should also be noted that the micro-expression recognition method provided by the present invention can be deployed on a variety of platforms. If the number of devices increases, an edge computing framework can be built to adjust the calculation. If RK3399Pro is not used, only the development board is needed to parse the video stream, and only facial feature point recognition can be deployed, and the results can be sent to the edge server with better performance for processing. The steps in the entire recognition method can be split and run on a suitable machine.

[0060] The recognition method provided by the present invention adopts the SVM classification model for preliminary screening, and then uses the recursive neural network model for accurate judgment, with small amount of calculation and high accuracy, and can deploy multiple operating systems without relying on powerful carriers, and the program is easy to transplant.

[0061] In another embodiment, the present invention further provides a micro-expression recognition device, such as Figure 3 As shown, the identification device comprises:

[0062] The acquisition unit 100 is used to acquire a micro-expression data set video. It should be noted that since the specific acquisition method and process have been described in detail in step S10 of the above-mentioned micro-expression recognition method, they will not be repeated here.

[0063] The preprocessing unit 200 is used to preprocess the micro-expression data set video to obtain facial feature points of each frame; it should be noted that since the specific preprocessing method and process have been detailed in step S20 of the above-mentioned micro-expression recognition method, they will not be repeated here.

[0064] The calculation unit 300 is used to calculate the facial change intensity of each frame of micro-expression and determine the Apex frame with the largest change intensity. It should be noted that since the specific calculation method and process have been explained in detail in step S30 of the above-mentioned micro-expression recognition method, they will not be repeated here.

[0065] The first determination unit 400 is used to determine the frames with the smallest change intensity before and after the Apex frame according to the facial change intensity sequence; it should be noted here that since the specific determination method and process have been explained in detail in step S40 of the above-mentioned micro-expression recognition method, they will not be repeated here.

[0066] The second determination unit 500 is used to determine the facial feature point sequence of the frames with the smallest change intensity before and after the Apex frame; it should be noted that since the specific determination method and process have been explained in detail in step S50 of the above-mentioned micro-expression recognition method, they will not be repeated here.

[0067] The recognition unit 600 is used to input the facial feature point sequence of the frames with the smallest change intensity before and after the Apex frame into the trained deep learning neural network model, and use the deep learning neural network model to recognize micro-expressions; it should be noted here that since the specific recognition method and process have been explained in detail in step S60 of the above-mentioned micro-expression recognition method, they will not be repeated here.

[0068] In addition, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium may store a program, and when the program is executed, the program includes part or all of the steps of any micro-expression recognition method recorded in the above method embodiments.

[0069] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0070] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a memory, including several instructions for a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.

[0071] A person skilled in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable memory, and the memory may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0072] An exemplary flow chart of a method for identifying micro-expressions according to an embodiment of the present invention is described above with reference to the accompanying drawings. It should be noted that the large amount of details included in the above description are only exemplary illustrations of the present invention, rather than limitations of the present invention. In other embodiments of the present invention, the method may have more, fewer or different steps, and the order, inclusion, function, etc. of the steps may be different from those described and illustrated.

Claims

1. A method for recognizing micro-expressions, characterized in that: include: Get the micro-expression dataset video; Preprocessing the micro-expression dataset video to obtain facial feature points of each frame; Calculating the change intensity of the micro-expression sequence frames and determining the Apex frame with the largest change intensity, including: calculating the change intensity of each frame of the face and constructing a change intensity sequence; determining the Apex frame according to the change intensity sequence; taking the nose tip in the Apex frame as the coordinate origin, determining the coordinates of other feature points; and standardizing the Apex frame; Determining frames with the smallest change intensity before and after the Apex frame according to the facial change intensity sequence includes: Calculate the change intensity of each frame of the face, and construct a change intensity sequence according to the change intensity of each frame of the face; then determine the Apex frame according to the change intensity sequence to obtain the Apex frame; then take the nose tip of the face in the Apex frame as the coordinate origin, obtain the coordinates of the feature points, and achieve standardization; Determine a facial feature point sequence of a frame with the smallest change intensity before and after the Apex frame; The Apex frame and the facial feature point sequence of the frames with the smallest change intensity before and after the Apex frame are input into a trained deep learning neural network model, and the deep learning neural network model is used to recognize micro-expressions.

2. The identification method according to claim 1, characterized in that: Preprocessing the micro-expression dataset video to obtain facial feature points of each frame further includes: Import the micro-expression dataset video into the facelandmark model; The facelandmark model is used to obtain facial feature points of each frame.

3. The identification method according to claim 1, characterized in that: The Apex frame is standardized, further comprising: all facial feature points obtained by using facelandmark are converted into coordinates with the nose tip as the coordinate origin, and the nose tip coordinates are unified as the coordinate origin.

4. The identification method according to claim 1, characterized in that: The deep learning neural network model includes a SVM model and a recursive neural network model.

5. The identification method according to claim 4, characterized in that: The training steps of the deep learning neural network model include: using the Apex frame as the input of the SVM model, using the frame with the smallest intensity change before the Apex frame, the Apex frame and the frame with the smallest intensity change after the Apex frame as the input of the recursive neural network, weighting the output result of the SVM model and the output result of the recursive neural network to obtain a predicted output, calculating the loss with the real data, using the gradient descent method, reversely iterating and calculating each weight, and performing model training.

6. A micro-expression recognition device, characterized in that: include: An acquisition unit, used to acquire a micro-expression dataset video; A preprocessing unit, used for preprocessing the micro-expression dataset video to obtain facial feature points of each frame; A calculation unit is used to calculate the change intensity of the micro-expression sequence frame and determine the Apex frame with the largest change intensity, including: calculating the change intensity of each frame of the face and constructing a change intensity sequence; determining the Apex frame according to the change intensity sequence; taking the nose tip in the Apex frame as the coordinate origin, determining the coordinates of other feature points; and normalizing the Apex frame; The first determination unit is used to determine the frame with the smallest change intensity before and after the Apex frame according to the face change intensity sequence, including: calculating the change intensity of each frame of the face, and constructing a change intensity sequence according to the change intensity of each frame of the face; then determining the Apex frame according to the change intensity sequence to obtain the Apex frame; then taking the nose tip of the face in the Apex frame as the coordinate origin, obtaining the coordinates of the feature point to achieve standardization; A second determining unit is used to determine a facial feature point sequence of a frame with the smallest change intensity before and after the Apex frame; The recognition unit is used to input the facial feature point sequence of the Apex frame and the frames with the smallest change intensity before and after the Apex frame into a trained deep learning neural network model, and use the deep learning neural network model to recognize micro-expressions.

7. The identification device according to claim 6, characterized in that: The deep learning neural network model includes a SVM model and a recursive neural network model.

8. The identification device according to claim 7, characterized in that: The training steps of the deep learning neural network model include: using the Apex frame as the input of the SVM model, using the frame with the smallest intensity change before the Apex frame, the Apex frame and the frame with the smallest intensity change after the Apex frame as the input of the recursive neural network, weighting the output result of the SVM model and the output result of the recursive neural network to obtain a predicted output, calculating the loss with the real data, using the gradient descent method, reversely iterating and calculating each weight, and performing model training.

9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of a micro-expression recognition method as described in any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Micro-expression recognition method based on adaptive motion amplification and convolutional neural network

    CN113537008A

  • Micro-expression type determination method and device, electronic equipment and storage medium

    CN113743275A