# US 2021/0174072 A1 · Microexpression-based image recognition method and apparatus, and related device

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0174072 A1
- Document ID: US20210174072A1
- Status: Published application
- Kind: A1
- Application number: 17/182,024
- Filed: 2021-02-22
- Published: 2021-06-10
- Earliest claimed: 2018-11-21
- Assignees: Tencent Technology (Shenzhen) Company Limited
- Applicants: Tencent Technology (Shenzhen) Company Limited
- Inventors: Kaihao ZHANG; Wenhan Luo; Lin Ma; Wei Liu
- Web page: https://patentgrep.com/patent/US20210174072A1

## CPC

- G06N 3/088: Non-supervised learning, e.g. competitive learning
- G06N 3/04: Architecture, e.g. interconnection topology
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/0475: Generative networks
- G06N 3/09: Supervised learning
- G06N 3/094: Adversarial learning
- G06T 7/13: Edge detection
- G06V 10/764: using classification, e.g. of video objects
- G06V 10/82: using neural networks
- G06V 20/20: in augmented reality scenes
- G06V 40/165: {using facial parts and geometric relationships}
- G06V 40/169: {Holistic features and representations, i.e. based on the facial image taken as a whole}
- G06V 40/174: {Facial expression recognition}
- G06V 40/176: {Dynamic expression}
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

Embodiments of this application disclose a microexpression-based image recognition method and apparatus, and a related device. The method includes: obtaining an original expression image belonging to a first expression type, and inputting the original expression image into an image augmentation model; the original expression image belonging to the first expression type being an image including a microexpression; the image augmentation model being obtained by training with a sample expression image belonging to the first expression type and a sample expression images belonging to a second expression type; augmenting, in the image augmentation model, an expression feature of the microexpression in the original expression image to obtain a target expression image belonging to the second expression type; recognizing an expression attribute type corresponding to the target expression image, and determining the expression attribute type corresponding to the target expression image as an expression attribute type corresponding to the original expression image.

## Claims

### Claim 1

A microexpression-based image recognition method, performed by an electronic device, the method comprising:
inputting an original expression image belonging to a first expression type into an image augmentation model, the original expression image belonging to the first expression type being an image comprising a microexpression of a person, the image augmentation model being obtained by training with a sample expression image belonging to the first expression type and a sample expression image belonging to a second expression type, and an expression intensity of the sample expression image belonging to the second expression type being greater than an expression intensity of the sample expression image belonging to the first expression type;
augmenting, in the image augmentation model, an expression feature of the microexpression of the person in the original expression image, to obtain a target expression image belonging to the second expression type; and
recognizing an expression attribute type corresponding to the target expression image, and determining the expression attribute type corresponding to the target expression image as an expression attribute type corresponding to the original expression image.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the image augmentation model comprises a first augmentation sub-model and a second augmentation sub-model; and
the augmenting, in the image augmentation model, an expression feature of the microexpression of the person in the original expression image, to obtain a target expression image belonging to the second expression type comprises:
determining an expression identification area in the original expression image as a unit original expression image, inputting the unit original expression image into the first augmentation sub-model, and augmenting an expression feature of the unit original expression image in the first augmentation sub-model, to obtain a unit auxiliary image;
inputting the original expression image into the second augmentation sub-model, and augmenting an expression feature of the original expression image in the second augmentation sub-model, to obtain a target auxiliary image; and
combining the unit auxiliary image and the target auxiliary image into the target expression image according to location information of the unit original expression image in the original expression image.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the inputting the unit original expression image into the first augmentation sub-model, and augmenting an expression feature of the unit original expression image in the first augmentation sub-model, to obtain a unit auxiliary image comprises:
inputting the unit original expression image into an input layer of the first augmentation sub-model to obtain a first original matrix corresponding to the unit original expression image; and
performing random sampling in the first original matrix, to obtain a first original vector, performing deconvolution processing on the first original vector according to a transposed convolution layer in the first augmentation sub-model to obtain a first target tensor, and determining the first target tensor as the unit auxiliary image.

### Claim 4 (depends on 2)

The method according to claim 2, wherein the inputting the original expression image into the second augmentation sub-model, and augmenting an expression feature of the original expression image in the second augmentation sub-model, to obtain a target auxiliary image comprises:
inputting the original expression image into an input layer of the second augmentation sub-model to obtain a second original matrix corresponding to the original expression image; and
performing random sampling in the second original matrix to obtain a second original vector, performing deconvolution processing on the second original vector according to a transposed convolution layer in the second augmentation sub-model, to obtain a second target tensor, and determining the second target tensor as the target auxiliary image.

### Claim 5 (depends on 2)

The method according to claim 2, further comprising:
performing binarization processing on the original expression image to obtain a binary image;
performing edge detection on the binary image based on a gradient operator to obtain a gradient image, and determining target location information of an edge contour in the gradient image; and
determining, in the original expression image, an area identified by the target location information as the expression identification area.

### Claim 6 (depends on 1)

The method according to claim 1, wherein the recognizing an expression attribute type corresponding to the target expression image comprises:
inputting the target expression image into an image recognition model;
extracting target structure feature information corresponding to the target expression image according to convolution processing of a forward convolution layer and pooling processing of a pooling layer in the image recognition model; and
recognizing matching degrees between the target structure feature information and a plurality of expression attribute type features in the image recognition model according to a classifier in the image recognition model, and using an expression attribute type corresponding to a maximum matching degree among a plurality of matching degrees obtained from the target structure feature information, as the expression attribute type corresponding to the target expression image.

### Claim 7 (depends on 1)

The method according to claim 1, further comprising:
obtaining a first sample expression image belonging to the first expression type, and obtaining a second sample expression image belonging to the second expression type;
augmenting an expression feature of a microexpression in the first sample expression image based on a sample generative model, to obtain a sample augmentation image;
extracting first structure feature information corresponding to the sample augmentation image based on a sample discriminative model, and recognizing a matching probability corresponding to the first structure feature information according to a classifier in the sample discriminative model, the matching probability being used for representing a possibility that the sample augmentation image belongs to a real expression type;
extracting second structure feature information corresponding to the sample augmentation image based on a sample recognition model, and recognizing a label information set corresponding to the second structure feature information according to a classifier in the sample recognition model, the label information set being used for representing matching degrees between the sample augmentation image and a plurality of expression attribute types; and
generating a model loss value according to the sample augmentation image, the second sample expression image, the matching probability, and the label information set, and determining the image augmentation model and the image recognition model according to the model loss value.

### Claim 8 (depends on 7)

The method according to claim 7, wherein the generating a model loss value according to the sample augmentation image, the second sample expression image, the matching probability, and the label information set, and determining the image augmentation model and the image recognition model according to the model loss value comprises:
generating the model loss value according to the sample augmentation image, the second sample expression image, the matching probability, the label information set, and an expression attribute type corresponding to the first sample expression image; and
adjusting a weight of a parameter in the sample generative model, a weight of a parameter in the sample discriminative model, and a weight of a parameter in the sample recognition model according to the model loss value, and in a case that the model loss value is less than a target threshold, determining the adjusted sample generative model as the image augmentation model, and determining the adjusted sample recognition model as the image recognition model.

### Claim 9 (depends on 8)

The method according to claim 8, wherein the model loss value comprises a generative loss value, a discriminative loss value, and a validation loss value; and
the generating the model loss value according to the sample augmentation image, the second sample expression image, the matching probability, the label information set, and an expression attribute type corresponding to the first sample expression image comprises:
determining the generative loss value according to the sample augmentation image and the second sample expression image;
determining the discriminative loss value according to the matching probability and the second sample expression image;
determining the validation loss value according to the label information set and the expression attribute type corresponding to the first sample expression image; and
generating the model loss value according to the generative loss value, the discriminative loss value, and the validation loss value.

### Claim 10

An electronic device, comprising: a processor and a memory,
the processor being connected to the memory, the memory being configured to store a plurality of program instructions, and the processor being configured to execute the plurality of program instructions to perform a plurality of operations including:
inputting an original expression image belonging to a first expression type into an image augmentation model, the original expression image belonging to the first expression type being an image comprising a microexpression of a person, the image augmentation model being obtained by training with a sample expression image belonging to the first expression type and a sample expression image belonging to a second expression type, and an expression intensity of the sample expression image belonging to the second expression type being greater than an expression intensity of the sample expression image belonging to the first expression type;
augmenting, in the image augmentation model, an expression feature of the microexpression of the person in the original expression image, to obtain a target expression image belonging to the second expression type; and
recognizing an expression attribute type corresponding to the target expression image, and determining the expression attribute type corresponding to the target expression image as an expression attribute type corresponding to the original expression image.

### Claim 11 (depends on 10)

The electronic device according to claim 10, wherein the image augmentation model comprises a first augmentation sub-model and a second augmentation sub-model; and
the augmenting, in the image augmentation model, an expression feature of the microexpression of the person in the original expression image, to obtain a target expression image belonging to the second expression type comprises:
determining an expression identification area in the original expression image as a unit original expression image, inputting the unit original expression image into the first augmentation sub-model, and augmenting an expression feature of the unit original expression image in the first augmentation sub-model, to obtain a unit auxiliary image;
inputting the original expression image into the second augmentation sub-model, and augmenting an expression feature of the original expression image in the second augmentation sub-model, to obtain a target auxiliary image; and
combining the unit auxiliary image and the target auxiliary image into the target expression image according to location information of the unit original expression image in the original expression image.

### Claim 12 (depends on 11)

The electronic device according to claim 11, wherein the inputting the unit original expression image into the first augmentation sub-model, and augmenting an expression feature of the unit original expression image in the first augmentation sub-model, to obtain a unit auxiliary image comprises:
inputting the unit original expression image into an input layer of the first augmentation sub-model to obtain a first original matrix corresponding to the unit original expression image; and
performing random sampling in the first original matrix, to obtain a first original vector, performing deconvolution processing on the first original vector according to a transposed convolution layer in the first augmentation sub-model to obtain a first target tensor, and determining the first target tensor as the unit auxiliary image.

### Claim 13 (depends on 11)

The electronic device according to claim 11, wherein the inputting the original expression image into the second augmentation sub-model, and augmenting an expression feature of the original expression image in the second augmentation sub-model, to obtain a target auxiliary image comprises:
inputting the original expression image into an input layer of the second augmentation sub-model to obtain a second original matrix corresponding to the original expression image; and
performing random sampling in the second original matrix to obtain a second original vector, performing deconvolution processing on the second original vector according to a transposed convolution layer in the second augmentation sub-model, to obtain a second target tensor, and determining the second target tensor as the target auxiliary image.

### Claim 14 (depends on 11)

The electronic device according to claim 11, wherein the plurality of operations further comprise:
performing binarization processing on the original expression image to obtain a binary image;
performing edge detection on the binary image based on a gradient operator to obtain a gradient image, and determining target location information of an edge contour in the gradient image; and
determining, in the original expression image, an area identified by the target location information as the expression identification area.

### Claim 15 (depends on 10)

The electronic device according to claim 10, wherein the recognizing an expression attribute type corresponding to the target expression image comprises:
inputting the target expression image into an image recognition model;
extracting target structure feature information corresponding to the target expression image according to convolution processing of a forward convolution layer and pooling processing of a pooling layer in the image recognition model; and
recognizing matching degrees between the target structure feature information and a plurality of expression attribute type features in the image recognition model according to a classifier in the image recognition model, and using an expression attribute type corresponding to a maximum matching degree among a plurality of matching degrees obtained from the target structure feature information, as the expression attribute type corresponding to the target expression image.

### Claim 16 (depends on 10)

The electronic device according to claim 10, wherein the plurality of operations further comprise:
obtaining a first sample expression image belonging to the first expression type, and obtaining a second sample expression image belonging to the second expression type;
augmenting an expression feature of a microexpression in the first sample expression image based on a sample generative model, to obtain a sample augmentation image;
extracting first structure feature information corresponding to the sample augmentation image based on a sample discriminative model, and recognizing a matching probability corresponding to the first structure feature information according to a classifier in the sample discriminative model, the matching probability being used for representing a possibility that the sample augmentation image belongs to a real expression type;
extracting second structure feature information corresponding to the sample augmentation image based on a sample recognition model, and recognizing a label information set corresponding to the second structure feature information according to a classifier in the sample recognition model, the label information set being used for representing matching degrees between the sample augmentation image and a plurality of expression attribute types; and
generating a model loss value according to the sample augmentation image, the second sample expression image, the matching probability, and the label information set, and determining the image augmentation model and the image recognition model according to the model loss value.

### Claim 17 (depends on 16)

The electronic device according to claim 16, wherein the generating a model loss value according to the sample augmentation image, the second sample expression image, the matching probability, and the label information set, and determining the image augmentation model and the image recognition model according to the model loss value comprises:
generating the model loss value according to the sample augmentation image, the second sample expression image, the matching probability, the label information set, and an expression attribute type corresponding to the first sample expression image; and
adjusting a weight of a parameter in the sample generative model, a weight of a parameter in the sample discriminative model, and a weight of a parameter in the sample recognition model according to the model loss value, and in a case that the model loss value is less than a target threshold, determining the adjusted sample generative model as the image augmentation model, and determining the adjusted sample recognition model as the image recognition model.

### Claim 18 (depends on 17)

The electronic device according to claim 17, wherein the model loss value comprises a generative loss value, a discriminative loss value, and a validation loss value; and
the generating the model loss value according to the sample augmentation image, the second sample expression image, the matching probability, the label information set, and an expression attribute type corresponding to the first sample expression image comprises:
determining the generative loss value according to the sample augmentation image and the second sample expression image;
determining the discriminative loss value according to the matching probability and the second sample expression image;
determining the validation loss value according to the label information set and the expression attribute type corresponding to the first sample expression image; and
generating the model loss value according to the generative loss value, the discriminative loss value, and the validation loss value.

### Claim 19

A non-transitory computer-readable storage medium, storing a plurality of program instructions, the program instructions, when executed by a processor of an electronic device, causing the electronic device to perform a plurality of operations including:
inputting an original expression image belonging to a first expression type into an image augmentation model, the original expression image belonging to the first expression type being an image comprising a microexpression of a person, the image augmentation model being obtained by training with a sample expression image belonging to the first expression type and a sample expression image belonging to a second expression type, and an expression intensity of the sample expression image belonging to the second expression type being greater than an expression intensity of the sample expression image belonging to the first expression type;
augmenting, in the image augmentation model, an expression feature of the microexpression of the person in the original expression image, to obtain a target expression image belonging to the second expression type; and
recognizing an expression attribute type corresponding to the target expression image, and determining the expression attribute type corresponding to the target expression image as an expression attribute type corresponding to the original expression image.

### Claim 20 (depends on 19)

The non-transitory computer-readable storage medium according to claim 19, wherein the image augmentation model comprises a first augmentation sub-model and a second augmentation sub-model; and
the augmenting, in the image augmentation model, an expression feature of the microexpression of the person in the original expression image, to obtain a target expression image belonging to the second expression type comprises:
determining an expression identification area in the original expression image as a unit original expression image, inputting the unit original expression image into the first augmentation sub-model, and augmenting an expression feature of the unit original expression image in the first augmentation sub-model, to obtain a unit auxiliary image;
inputting the original expression image into the second augmentation sub-model, and augmenting an expression feature of the original expression image in the second augmentation sub-model, to obtain a target auxiliary image; and
combining the unit auxiliary image and the target auxiliary image into the target expression image according to location information of the unit original expression image in the original expression image.
