A method for identifying micro-expression and macro-expression segments for criminal investigation
The TVL1 optical flow method and neural network are used to identify the micro-expressions and macro-expression fragments of criminal suspects, which solves the problem of inaccurate judgment of micro-expressions and macro-expressions during investigation, achieves efficient and accurate expression recognition, and provides reliable authenticity of confessions. judge.
Patent Information
- Application Number
- CN202011343361.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-26
- Publication Date
- 2024-10-15
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the process of investigation and interrogation, the existing technology relies on investigators to subjectively judge the micro-expressions and macro-expressions of criminal suspects, which easily misses key information, leading to inaccurate judgments.
TVL1 optical flow method processing and neural network are used to identify micro-expression and macro-expression fragments in video data through frame-by-frame scanning, and ConvLSTM and macroNet networks are used for classification to improve recognition accuracy and efficiency.
It achieves expression classification within 10 seconds, improves the accuracy and generalization ability of recognition, is consistent with the judgment of professional psychologists, and provides reliable authenticity judgments for interrogations.
Smart Images

Figure CN112381036B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of biometric feature recognition, and in particular to a method for recognizing micro-expressions and macro-expression fragments used in criminal investigation. Background Art
[0002] Micro-expressions are facial muscle movements that last only 1 / 25 to 1 / 5 seconds. They are unintentional expressions of emotion, often showing the real emotions that are suppressed in people's hearts. Macro-expressions, on the other hand, last longer and have more obvious facial movements.
[0003] During the investigation and interrogation process, the language information provided by the suspect has a certain degree of authenticity. Investigators can judge the authenticity of the suspect's confession and grasp the core clues through direct communication and careful observation of his subtle and macro expressions. However, relying on investigators to judge is subjective, and because the interrogation time is long, investigators are likely to miss key expression information, and the final result may not be accurate.
[0004] Therefore, the industry needs a micro-expression and macro-expression segment recognition method with high accuracy and application in criminal investigation. Summary of the invention
[0005] In view of the above-mentioned defects or deficiencies in the prior art, the purpose of the present invention is to provide a method and application device for identifying micro-expressions and macro-expression fragments for criminal investigation that can improve the accuracy, precision and generalization of recognition. The present invention processes the human face using the TVL1 optical flow method, which can help better capture the macro-micro expression sequence; the facial feature extraction method of the present invention eliminates the influence of time, lighting, and head movement on the results, and has high robustness and generalization ability; the present invention uses a neural network to discover and classify macro-micro expressions, and the two-step strategy of first discovering and then classifying can also improve the prediction accuracy of the algorithm; the classification results of the present invention can reach a professional level, which is consistent with the inference results of many psychologists. The discovery and classification efficiency of the present invention is relatively high, and the classification can be completed within 10 seconds to meet the requirements.
[0006] In order to solve the above problems, in a first aspect, the present invention provides a method for identifying micro-expressions and macro-expression fragments used in criminal investigation, the method comprising:
[0007] Step 1. Use professional equipment to record the suspect's facial expressions during the interrogation process and input the video data into the client;
[0008] Step 2. Scan the video data frame by frame to identify the face of the suspect, find the micro-expression and macro-expression segments in the video data, and then specifically identify these micro-expression and macro-expression segments;
[0009] Step 3. Discover macro expression sequences in video sequences;
[0010] Step 4. Discover micro-expression sequences in video sequences;
[0011] Step 5. For the found macro expression fragments, use the neural network to identify which macro expression each macro expression fragment belongs to;
[0012] Step 6: For each micro-expression segment found, use a neural network to identify which micro-expression it belongs to;
[0013] Step 7: Returning the macro-micro expression segment group and its classification results to the client interface helps the interrogator to correctly grasp the truthfulness of the suspect's confession.
[0014] In a second aspect, an embodiment of the present application provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in the embodiment of the present application when executing the computer program.
[0015] In a third aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program is used to implement the method described in the embodiment of the present application when the computer program is executed by a processor. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The embodiments of the present invention will be described below with reference to the accompanying drawings, wherein
[0017] Figure 1 A schematic diagram of the micro-expression and macro-expression segment recognition process applied to criminal investigation of the present application is shown;
[0018] Figure 2 The system structure diagram of the present application is shown;
[0019] Figure 3 A schematic diagram of the ConvLSTM network framework used in the present application for micro-expression segment discovery is shown;
[0020] Figure 4 A schematic diagram showing a probability curve when an expression segment is discovered in the present application;
[0021] Figure 5 A schematic diagram of the ConvLSTM network framework for macro and micro expression classification of the present application is shown. DETAILED DESCRIPTION
[0022] In order to make the invention purpose, technical process and technical innovation of the present invention more clearly described, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in each embodiment of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0023] To achieve the above objectives, the present invention provides a method for identifying micro-expressions and macro-expression segments for criminal investigation. The main process is as follows: Figure 1 As shown, the system structure is as Figure 2 As shown, the method includes:
[0024] Step 1. Use professional equipment to record the suspect's facial expressions during the interrogation process and input the video data into the client;
[0025] Step 2. Scan the video data frame by frame to identify the face of the suspect, find the micro-expression and macro-expression segments in the video data, and then specifically identify these micro-expression and macro-expression segments. The specific steps include: (1) reading the image of each frame in the video and outputting it in sequence;
[0026] (2) De-noising is performed on each frame in the video sequence, and face alignment is performed based on the regional characteristics of human skin color in the color space to preliminarily determine the area of the suspect's face;
[0027] (3) Perform TVL1 optical flow processing on each frame of the image with the first frame as the reference point to obtain the horizontal and vertical optical flow images u, v of the optical flow method.
[0028] Step 3. Discover the macro expression sequence in the video sequence. The specific steps include: (1) first use the CK+ dataset to train the macroNet neural network. The network is a binary classification network to determine whether the input image belongs to a macro expression;
[0029] (2) Use the trained network to predict whether each frame in the video sequence belongs to a macro expression, and draw a probability curve of whether each frame in the video sequence belongs to a macro expression;
[0030] (3) Then, the peak point in the curve is determined based on the probability curve, and the starting point and the ending point corresponding to the peak point are found to find the macro expression sequence of the video sequence and return the macro expression fragment.
[0031] Step 4. Discover micro-expression sequences in video sequences, such as Figure 3As shown in Figure 1, the specific steps include: (1) first use the SAMMlong video dataset to train the ConvLSTM network, the input of which is the previous k frames of images to determine whether the current frame belongs to a micro-expression; the ConvLSTM network is as follows: Figure 3 As shown;
[0032] (2) Use the trained network to predict whether each frame in the video sequence is a micro-expression, and draw a probability curve of whether each frame in the video sequence is a micro-expression;
[0033] (3) Then, the peak point in the curve is determined based on the probability curve, and the starting point and the ending point corresponding to the peak point are found to find the micro-expression sequence of the video sequence and return the micro-expression fragment.
[0034] Step 5. For the found macro expression fragments, use the neural network to identify which macro expression each macro expression fragment belongs to;
[0035] Step 6: For each micro-expression segment found, use a neural network to identify which micro-expression it belongs to;
[0036] Step 7: Returning the macro-micro expression segment group and its classification results to the client interface helps the interrogator to correctly grasp the truthfulness of the suspect's confession.
[0037] Further, based on step 2, for face recognition on a single image, we first preliminarily determine the position of the face based on the RGB color channels on the image, transform the roughly determined face into an M*N matrix, and then stack each matrix into a column of MN-dimensional column vectors Xi, that is, vectorize the matrix and calculate the mean vector of all vectors
[0038]
[0039] N is the total number of all vectors, m is the mean vector, and the covariance matrix of the vector is calculated:
[0040]
[0041] Calculate the eigenvector u and the corresponding eigenvalue λ of the covariance matrix. The matrix U composed of these eigenvectors is the orthogonal basis of the face space. Sort the eigenvalues of the covariance matrix from large to small: λ1>λ2>λ3>…>λd>…. The eigenvectors corresponding to λi greater than λd constitute the principal components, and the transformation matrix composed of the principal components is U=(u1,u2,…,ud). In this way, the approximate area judged by each image can be projected into the trained eigenface subspace, and the face can be identified by comparing with each image, so as to perform face alignment.
[0042] Then, the TVL1 optical flow method is used to calculate the horizontal and vertical optical flows on the aligned face images, and the horizontal and vertical optical flow images u and v are obtained for the input of macro expression fragments. The TVL1 optical strain technology has been proven to be effective, and it can describe the motion characteristics of discriminative expressions. Specifically, the optical strain is expanded from the optical flow vector by performing further derivation rules. The optical flow vector estimated from two frames (i.e., the first frame and the remaining frames in each video) can be expressed as:
[0043] O i ={(u(x,y),v(x,y))|x=1,2,…,X,y=1,…,Y}
[0044] Where (X*Y) represents the width and height of the frame image, u(x,y) and v(x,y) represent the horizontal and vertical optical flows.
[0045] Furthermore, based on step 3, the input of the macroNet network used to discover macro expression sequences in video sequences is three, namely, the aligned face image of each frame and the horizontal and vertical images u and v of the TVL1 optical flow method, and the output is a probability value, indicating the probability of whether the frame image is a macro expression. The network is first trained with the CK+ dataset, and the model is saved after training for prediction of suspect video sequences.
[0046] The probability of predicting each frame of the suspect video sequence is plotted to show whether each frame of the video sequence belongs to a macro expression. See the attached example. Figure 4 . Then the peak point in the curve is determined according to the constraints. The constraints are: the probability that the peak belongs to a macro expression must be greater than 0.8, the width of the segment is between 100-4000 frames, and the gap between every two peaks is greater than 150 frames. Based on these three constraints, the macro expression peak points in the video sequence and the start and end points corresponding to the peak points are found, thus discovering the macro expression segments in the video sequence.
[0047] Furthermore, based on step 4, the ConvLSTM network framework diagram for discovering macro expression sequences in video sequences is shown in the attached Figure 5 The architecture of the ConvLSTM network is designed to analyze the time series of images. The core essence of ConvLSTM is the same as LSTM, using the output of the previous layer as the input of the next layer. The difference is that after adding the convolution operation, not only can the temporal relationship be obtained, but also the features and spatial features can be extracted like the convolution layer. In this way, the spatiotemporal features can be obtained. And the switching between states is also replaced by convolution calculation.
[0048] The input of the network is the k frames before the current frame and the picture of the frame, and the output is a probability, indicating the probability of whether the frame is a micro-expression. The network is first trained with the SAMM long videos dataset, and the model is saved after training for prediction of suspect video sequences.
[0049] Then, the same operation as macro expression detection is performed to draw a micro expression probability curve for the suspect video sequence, and then the peak point is found. However, unlike macro expression detection, the constraints are different. The constraints for the micro expression peak point are: the probability that the peak belongs to a micro expression must be greater than 0.9, and the width of the segment is between 30-120 frames, and the gap between every two peaks is greater than 50 frames. Finally, the micro expression segment in the suspect video sequence can be obtained.
[0050] Furthermore, based on step 5 and step 6, the network structures of the two are roughly the same, as shown in the attached figure. Figure 5 As shown in the figure, the network input is a sequence of macro and micro expressions, and the output is the classification result of which micro expression or macro expression it belongs to. The output dimension n depends on the type of micro expression and macro expression. Here, the dimension n of macro expression is set to 7, and the dimension n of micro expression is set to 3.
[0051] In order to better understand the present invention, the above is described in detail in conjunction with specific examples of the present invention, but it is not intended to limit the present invention. Any simple modification made to the above embodiments based on the technical essence of the present invention still falls within the scope of the technical solution of the present invention.
[0052] As another aspect, the present application further provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in the embodiment of the present application when executing the computer program.
[0053] As another aspect, the present application further provides a computer-readable storage medium, which may be a computer-readable storage medium included in the aforementioned device in the above-mentioned embodiment; or a computer-readable storage medium that exists independently and is not assembled into the device. The computer-readable storage medium stores one or more programs, and the aforementioned programs are used by one or more processors to execute the method described in the embodiment of the present application.
[0054] Any reference to the storage medium used in the embodiments of the present application may include non-volatile, volatile memory. Suitable non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), optical disk (including CD-ROM read-only memory (CD-ROM) and digital versatile disk (DVD)), or flash memory. Volatile memory may include random access memory (RAM), which is used as an external high-speed cache memory. As an illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM) and memory bus dynamic RAM (RDRAM).
[0055] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (Programmable Gate Array; hereinafter referred to as: PGA), a field programmable gate array (Field Programmable Gate Array; hereinafter referred to as: FPGA), etc.
[0056] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0057] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of software and firmware. If the integrated module is implemented in the form of software and firmware and sold or used as an independent product, it can be transferred from a storage medium or a network to a computer with a dedicated hardware structure for functional implementation.
[0058] It should also be noted that the steps of performing the above series of processes can naturally be performed in chronological order according to the order of description, but do not necessarily need to be performed in chronological order. Some steps can be performed in parallel or independently of each other.
[0059] Although the embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and cannot be understood as limiting the present application. Any person skilled in the art can change, modify, replace and modify the above embodiments without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention is not limited thereto, and should be based on the scope defined by the claims.
Claims
1. A method for identifying micro-expressions and macro-expression fragments used in criminal investigation, the method comprising: Step 1: Use professional equipment to record the suspect's facial expressions during the interrogation process and input the video data into the client; Step 2: Scan the video data frame by frame to identify the face of the suspect, find the micro-expression and macro-expression segments in the video data, and then specifically identify these micro-expression and macro-expression segments; Step 3, discovering macro expression sequences in video sequences; Step 4: discover micro-expression sequences in video sequences; Step 5: For each of the found macro expression fragments, a neural network is used to identify which macro expression each macro expression fragment belongs to; Step 6: For each micro-expression segment found, use a neural network to identify which micro-expression it belongs to; Step 7: returning the macro-micro expression segment group and its classification results to the client interface, which helps the interrogator to correctly grasp the truth of the suspect's confession; Step 2 specifically includes: (1) reading the image of each frame in the video and outputting it in sequence; (2) De-noising is performed on each frame in the video sequence, and face alignment is performed based on the regional characteristics of human skin color in the color space to preliminarily determine the area of the suspect's face; (3) Perform TVL1 optical flow processing on each frame of the image with the first frame as the reference point to obtain the horizontal and vertical optical flow images u, v of the optical flow method; Step 3 specifically includes: (1) first use the CK+ dataset to train the macroNet neural network, which is a binary classification network to determine whether the input image belongs to a macro expression; (2) Use the trained network to predict whether each frame in the video sequence belongs to a macro expression, and draw a probability curve of whether each frame in the video sequence belongs to a macro expression; (3) Then, the peak point in the curve is determined according to the probability curve, and the starting point and the ending point corresponding to the peak point are found to find the macro expression sequence of the video sequence and return the macro expression fragment; The macro expression segment discovery module is divided into two steps: training and predicting macro expression images and discovering macro expression sequences through probability curves. The specific steps include: (1) The macro-expression images are trained and predicted by training the macroNet neural network to determine the probability of each frame belonging to a macro-expression. The macroNet network is constructed based on the existing network. The network uses the horizontal and vertical optical flow maps of the optical flow method and the image of the current frame as input. It is divided into three channels for training and performs binary classification prediction on whether the image belongs to a macro-expression: the image channel of the current frame adopts a three-layer convolution layer architecture. The three convolution layers all use a 3*3 filter with a step size of 1. The convolution kernel size increases in sequence, namely 32, 64, and 128. In addition, the normalization layer, the maximum pooling layer, and the dropout layer are connected between every two convolution layers. Since the optical flow method image has been processed with optical flow method features, the network only performs one convolution operation on these two channels. Then, the attention mechanism and the residual module are introduced to better extract useful information in the optical flow method channel. (2) Discovering macro expression sequences through probability curves uses the peak detection method to find the peak point of the probability curve by setting constraints. The constraints are: the probability that the peak belongs to the macro expression must be greater than 0.8, and the width of the segment is between 100-4000 frames, and the gap between every two peaks is greater than 150 frames. Then, the starting point and the ending point of this sequence are determined based on the peak point found, and finally the macro expression sequence of the video sequence is obtained; Step 4 specifically includes: (1) first use the SAMM long video dataset to train the ConvLSTM network, the input of which is the previous k frames of images, to determine whether the current frame belongs to a micro-expression; (2) Use the trained network to predict whether each frame in the video sequence is a micro-expression, and draw a probability curve of whether each frame in the video sequence is a micro-expression; (3) Then, the peak point in the curve is determined according to the probability curve, and the starting point and the ending point corresponding to the peak point are found to find the micro-expression sequence of the video sequence and return the micro-expression fragment; The module for discovering micro-expression segments consists of two steps: training and predicting micro-expression images and discovering micro-expression sequences through probability curves. The specific steps include: (1) Training and predicting micro-expression images is to train a ConvLSTM network to predict the probability that the current frame belongs to a micro-expression. The ConvLSTM network uses the image data of the k frames before the current frame, and uses information in the time dimension and the space dimension to train the network, and predicts the probability of each frame in the video sequence belonging to a micro-expression: the ConvLSTM network analyzes the time series of the image and extracts spatial features to obtain spatiotemporal features, and replaces the switching between states with convolution calculations; (2) The peak detection method is used to find the micro-expression sequence through the probability curve. Due to the differences in duration and movement amplitude between micro-expressions and macro-expressions, the constraints adopted for extracting peak points are also different. The constraints for micro-expressions are: the probability that the peak belongs to a micro-expression must be greater than 0.9, and the width of the segment is between 30-120 frames, and the gap between every two peaks is greater than 50 frames. Then, the starting point and the end point are determined for each peak point, so as to finally obtain the micro-expression sequence of the video sequence; Furthermore, based on step 2, face recognition on a single image first determines the position of the face based on the RGB color channels on the image, transforms the roughly determined face into an M*N matrix, and then stacks each matrix into a column of MN-dimensional column vector X i , that is, vectorize the matrix and calculate the mean vector of all vectors N is the total number of all vectors, m is the mean vector, and the covariance matrix of the vector is calculated: Calculate the eigenvector u and the corresponding eigenvalue λ of the covariance matrix. The matrix composed of these eigenvectors is the orthogonal basis of the face space. Sort the eigenvalues of the covariance matrix from large to small: λ1>λ2>λ3>…>λd>…. The eigenvectors corresponding to λi greater than λd constitute the principal components. The transformation matrix composed of the principal components is U=(u1,u2,…,ud). In this way, the approximate area judged by each image can be projected into the trained eigenface subspace, and the face can be identified by comparing with each image, thereby performing face alignment. Then, the TVL1 optical flow method is used to calculate the horizontal and vertical optical flows on the aligned face images, and the horizontal and vertical optical flow images u and v are obtained for the input of the macro expression fragments. TVL1 can describe the motion characteristics of the discriminative expression. By executing further derivation rules, the optical strain is extended from the optical flow vector. From two frames, namely the first frame and the remaining frames in each video, the estimated optical flow vector is expressed as: EITHER i ={(u(x,y),v(x,y))|x=1,2,…,X,y=1,…,Y} Where (X*Y) represents the width and height of the frame image, u(x,y) and v(x,y) represent the horizontal and vertical optical flows.
2. The method according to claim 1, characterized in that To recognize micro-expressions and macro-expressions, we first train the neural networks for macro- and micro-expression emotion classification respectively. Macro-expression emotion classification is divided into 7 categories, and micro-expression emotion classification is divided into 3 categories. We then perform the steps of network construction, dataset construction, and training respectively. The network construction is based on the improved network of the ConvLSTM network, and the images are trained in spatiotemporal network. The dataset is selected and merged based on the existing datasets. Then, the macro-expression fragments and micro-expression fragments found in the micro-expression and macro-expression discovery modules are predicted for emotion classification. The specific steps are to use the trained neural network to predict which category each macro- and micro-expression fragment belongs to, and which category has a higher probability of belonging to which macro- and micro-expression, and finally realize the emotion classification of macro- and micro-expressions.
3. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 2 is implemented.
4. A computer-readable storage medium having a computer program stored thereon, wherein the computer program is used to: implement the method according to any one of claims 1 to 2 when the computer program is executed by a processor.
