# US 2023/0067934 A1 · Action Recognition Method, Apparatus and Device, Storage Medium and Computer Program Product

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

- Number: US 2023/0067934 A1
- Document ID: US20230067934A1
- Status: Published application
- Kind: A1
- Application number: 17/977,415
- Filed: 2022-10-31
- Published: 2023-03-02
- Earliest claimed: 2021-01-29
- Assignees: Tencent Technology (Shenzhen) Company Limited
- Applicants: Tencent Technology (Shenzhen) Company Limited
- Inventors: Boyuan JIANG; Donghao LUO; Mingyu WU; Yabiao WANG; Chengjie WANG; Xiaoming HUANG; Jilin LI; Feiyue HUANG; Yongjian WU
- Web page: https://patentgrep.com/patent/US20230067934A1

## CPC

- G06V 40/20: Movements or behaviour, e.g. gesture recognition (recognition of facial expressions G06V40/16)
- G06V 10/56: relating to colour
- G06V 10/757: {Matching configurations of points or features}
- G06V 10/761: {Proximity, similarity or dissimilarity measures}
- G06V 10/806: {of extracted features}
- G06V 20/46: {Extracting features or characteristics from the video content, e.g. video fingerprints, representative shots or key frames}
- G06V 20/48: {Matching video sequences}
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

The present subject matter discloses an action recognition method, apparatus and device, a storage medium, and a computer program product, belonging to the field of image recognition. Multiple video frames in a target video are obtained. Feature extraction is performed on the multiple video frames respectively according to multiple dimensions to obtain multiple multi-channel feature patterns. Each video frame corresponds to one multi-channel feature pattern. Each channel represents one dimension. An attention weight of each multi-channel feature pattern is determined based on a similarity between every two multi-channel feature patterns. The attention weight is used for representing a degree of correlation between a corresponding multi-channel feature pattern and an action performed by an object in the target video. A type of the action is determined based on the multiple multi-channel feature patterns and the determined multiple attention weights.

## Claims

### Claim 1

An action recognition method performed by a computer device, comprising:
obtaining multiple video frames in a target video;
performing feature extraction on the multiple video frames respectively according to multiple dimensions to obtain multiple multi-channel feature patterns, each video frame corresponding to one multi-channel feature pattern, and each channel representing one dimension;
determining an attention weight of each multi-channel feature pattern based on a similarity between every two multi-channel feature patterns in the multiple multi-channel feature patterns, the attention weight being used for representing a degree of correlation between a corresponding multi-channel feature pattern and an action performed by an object in the target video; and
determining a type of the action based on the multiple multi-channel feature patterns and the determined multiple attention weights.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the performing comprises:
using multiple convolution kernels to perform feature extraction on one of the video frames to obtain multiple single-channel feature patterns corresponding to the multiple convolution kernels respectively, each convolution kernel being used for extracting a feature pattern of one dimension; and
splicing the multiple single-channel feature patterns to obtain a multi-channel feature pattern of one of the video frames.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the using multiple convolution kernels to perform feature extraction on the one of the video frames to obtain multiple single-channel feature patterns corresponding to the multiple convolution kernels respectively comprises:
filling matrix edges of a matrix corresponding to one of the video frames, and using multiple convolution kernels to perform feature extraction on the filled matrix to obtain multiple single-channel feature patterns corresponding to the multiple convolution kernels respectively.

### Claim 4 (depends on 2)

The method according to claim 2, wherein
the video frame comprises three color (RGB) channels, and
the using multiple convolution kernels to perform feature extraction on the one of the video frames to obtain multiple single-channel feature patterns corresponding to the multiple convolution kernels respectively comprises:
using multiple convolution kernels to perform feature extraction on a color matrix corresponding to each color channel in one of the video frames to obtain a color feature pattern corresponding to each color matrix; and
fusing three color feature patterns corresponding to one of the video frames to obtain a single-channel feature pattern corresponding to one of the video frames.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the determining an attention weight of each multi-channel feature pattern based on a similarity between every two multi-channel feature patterns in the multiple multi-channel feature patterns comprises:
performing dimension reduction processing on the multiple multi-channel feature patterns to obtain multiple feature vectors, each multi-channel feature pattern corresponding to one feature vector; and
determining an attention weight of each feature vector based on a similarity between every two feature vectors in the multiple feature vectors.

### Claim 6 (depends on 5)

The method according to claim 5, wherein the performing dimension reduction processing on the multiple multi-channel feature patterns to obtain multiple feature vectors comprises:
performing dimension reduction processing on multiple single-channel feature patterns in one of the multi-channel feature patterns respectively to obtain multiple feature values corresponding to the multiple single-channel feature patterns respectively; and
combining the multiple feature values to obtain a feature vector of one of the multi-channel feature patterns.

### Claim 7 (depends on 5)

The method according to claim 5, wherein the determining an attention weight of each feature vector based on a similarity between every two feature vectors in the multiple feature vectors comprises:
respectively obtaining multiple similarities between one of the feature vectors and the multiple feature vectors; and
determining an attention weight of one of the feature vectors based on a sum of products of the multiple feature vectors and the corresponding similarities.

### Claim 8 (depends on 7)

The method according to claim 7, wherein the determining an attention weight of the one of the feature vectors based on the sum of products of the multiple feature vectors and the corresponding similarities comprises:
performing normalization processing on the sum of products of the multiple feature vectors and the corresponding similarities to obtain an attention weight of one of the feature vectors.

### Claim 9 (depends on 1)

The method according to claim 1, wherein the determining a type of the action based on the multiple multi-channel feature patterns and the determined multiple attention weights comprises:
multiplying the multiple attention weights by the multiple multi-channel feature patterns to obtain multiple attention feature patterns, each video frame corresponding to one attention feature pattern; and
performing recognition based on the multiple attention feature patterns to obtain a type of the action.

### Claim 10 (depends on 9)

The method according to claim 9, wherein
the multiple attention weights are first multiple attention weights,
the multiple attention feature patterns are first multiple attention feature patterns, and
the performing recognition based on the multiple attention feature patterns to obtain a type of the action comprises:
obtaining multiple first feature vectors corresponding to multiple feature points on one of the attention feature patterns and multiple second feature vectors corresponding to multiple feature points on a reference attention feature pattern of one of the attention feature patterns, the video frame corresponding to the reference attention feature pattern being a video frame adjacent to the video frame corresponding to one of the attention feature patterns;
determining multiple second attention weights corresponding to multiple feature points on one of the attention feature patterns respectively based on similarities between the multiple first feature vectors and the multiple second feature vectors, the second attention weight being used for representing the degree of correlation between a corresponding feature point and the action;
multiplying the multiple second attention weights by multiple feature points on one of the attention feature patterns to obtain a second attention feature pattern of one of the attention feature patterns; and
performing recognition based on the multiple second attention feature patterns to obtain a type of the action.

### Claim 11 (depends on 1)

The method according to claim 1, wherein the obtaining multiple video frames in a target video comprises:
performing interval sampling on a target video to obtain multiple video frames in the target video.

### Claim 12

An action recognition method performed by a computer device, comprising:
obtaining multiple video frames in a target video;
performing feature extraction on the multiple video frames respectively according to multiple dimensions to obtain multiple multi-channel feature patterns, each video frame corresponding to one multi-channel feature pattern, and each channel representing one dimension;
determining an attention weight of each feature point based on a similarity between multiple feature points on multi-channel feature patterns of every two adjacent video frames, the attention weight being used for representing the degree of correlation between a corresponding feature point and an action performed by an object in the target video; and
determining a type of the action based on the multiple multi-channel feature patterns and the determined multiple attention weights.

### Claim 13 (depends on 12)

The method according to claim 12, wherein
the multiple attention weights are multiple first attention weights, and
the determining an attention weight of each feature point based on a similarity between multiple feature points on multi-channel feature patterns of every two adjacent video frames comprises:
obtaining multiple first feature vectors corresponding to multiple feature points on a multi-channel feature pattern of one of the video frames and multiple second feature vectors corresponding to multiple feature points on a multi-channel feature pattern of a reference video frame adjacent to one of the video frames; and
determining multiple second attention weights of one of the video frames based on the multiple first feature vectors and the multiple second feature vectors.

### Claim 14 (depends on 12)

The method according to claim 12, wherein the determining a type of the action based on the multiple multi-channel feature patterns and the determined multiple attention weights comprises:
multiplying the multiple attention weights by the multiple multi-channel feature patterns to obtain multiple attention feature patterns, each video frame corresponding to one attention feature pattern; and
performing recognition based on the multiple attention feature patterns to obtain a type of the action.

### Claim 15 (depends on 14)

The method according to claim 14, wherein the performing recognition based on the multiple attention feature patterns to obtain a type of the action comprises:
determining a second attention weight of each attention feature pattern based on a similarity between every two attention feature patterns, the second attention weight being used for representing the degree of correlation between a corresponding attention feature pattern and the action; and
determining a type of the action based on the multiple attention feature patterns and the determined multiple second attention weights.

### Claim 16

An action recognition apparatus, the apparatus comprising:
an obtainer configured to obtain multiple video frames in a target video;
a feature extractor configured to perform feature extraction on the multiple video frames respectively according to multiple dimensions to obtain multiple multi-channel feature patterns, each video frame corresponding to one multi-channel feature pattern, and each channel representing one dimension;
an attention weight determiner configured to determine an attention weight of each multi-channel feature pattern based on a similarity between every two multi-channel feature patterns in the multiple multi-channel feature patterns, the attention weight being used for representing the degree of correlation between a corresponding multi-channel feature pattern and an action performed by an object in the target video; and
a type determiner configured to determine a type of the action based on the multiple multi-channel feature patterns and the determined multiple attention weights.

### Claim 17

An action recognition apparatus, the apparatus comprising:
an obtainer configured to obtain multiple video frames in a target video;
a feature extractor configured to perform feature extraction on the multiple video frames respectively according to multiple dimensions to obtain multiple multi-channel feature patterns, each video frame corresponding to one multi-channel feature pattern, and each channel representing one dimension;
an attention weight determiner configured to determine an attention weight of each feature point based on a similarity between multiple feature points on multi-channel feature patterns of every two adjacent video frames, the attention weight being used for representing the degree of correlation between a corresponding feature point and an action performed by an object in the target video; and
a type determiner configured to determine a type of the action based on the multiple multi-channel feature patterns and the determined multiple attention weights.

### Claim 18 (depends on 1)

A computer device, comprising:
one or more processors; and
a memory in communication with the one or more processors, the memory storing computer-readable instructions executable by the one or more processors to configure the computer device to perform the method of claim 1.

### Claim 19 (depends on 1)

A non-transitory computer-readable storage medium comprising computer-readable instructions operable, when execute by one or more computing systems, to cause the one or more computing systems to perform the method of claim 1.
