# US 11,120,270 B2 · Spatiotemporal action detection method

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

- Number: US 11,120,270 B2
- Document ID: US11120270B2
- Status: Granted
- Kind: B2
- Application number: 16/965,015
- Filed: 2020-01-07
- Published: 2021-08-12
- Granted: 2021-09-14
- Earliest claimed: 2019-02-28
- Assignees: Huazhong University of Science and Technology
- Applicants: Huazhong University of Science and Technology
- Inventors: Nong Sang; Shiwei Zhang; Zhiyuan Li; Changxin Gao; Yuanjie Shao
- Web page: https://patentgrep.com/patent/US11120270B2

## CPC

- G06V 10/774: Generating sets of training patterns; Bootstrap methods, e.g. bagging or boosting
- G06T 3/16: Spatio-temporal transformations, e.g. video cubism
- G06T 3/4053: based on super-resolution, i.e. the output image resolution being higher than the sensor resolution
- G06T 7/207: for motion estimation over a hierarchy of resolutions (multi-resolution motion estimation or hierarchical motion estimation for coding, decoding, compressing or decompressing digital video signals H04N19/53)
- G06T 7/215: Motion-based segmentation
- G06V 10/82: using neural networks
- G06V 20/41: {Higher-level, semantic clustering, classification or understanding of video scenes, e.g. detection, labelling or Markovian modelling of sport events or news items (segmenting video sequences G06V20/49)}
- G06V 20/42: {of sport video content}
- G06V 20/49: {Segmenting video sequences, i.e. computational techniques such as parsing or cutting the sequence, low-level clustering or determining units such as shots or scenes}
- G06T 2207/10016: Video; Image sequence
- G06T 2207/20072: Graph-based image processing
- G06T 2207/20076: Probabilistic image processing
- G06T 2207/20164: Salient point detection; Corner detection
- G06V 2201/07: Target detection
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

A spatiotemporal action detection method includes performing object detection on all frames of a sample video to obtain a candidate object set; calculating all interframe optical flow information on the sample video to obtain a motion set; constructing a spatiotemporal convolution-deconvolution network of an attention mechanism and a motion attention mechanism of an additional object; adding both a corresponding sparse variable and a sparse constraint to obtain a network structure S after performing spatiotemporal convolution processing on each time segment of the sample video; training the network structure S with an objective function based on classification loss and loss of the sparse constraint of cross entropy; and calculating an action category and a sparse coefficient corresponding to each time segment of a test sampled video to obtain an object action spatiotemporal location.

## Claims

### Claim 1

A spatiotemporal action detection method, comprising:
(1) performing object detection on all frames of a sample video to obtain a candidate object set;
(2) calculating all interframe optical flow information on the sample video to obtain a motion set;
(3) constructing a spatiotemporal convolution-deconvolution network of an attention mechanism and a motion attention mechanism of an additional object based on the candidate object set and the motion set;
(4) inputting the spatiotemporal convolution-deconvolution network and adding both a sparse variable and a sparse constraint corresponding to the sparse variable to obtain a network structure S after performing spatiotemporal convolution processing on each time segment of the sample video;
(5) training the network structure S with an objective function based on classification loss and loss of the sparse constraint of cross entropy; and
(6) calculating an action category, a sparse coefficient, and a distribution probability map of an action corresponding to each time segment of a test sampled video based on the network structure S to obtain an object action spatiotemporal location.

### Claim 2 (depends on 1)

The spatiotemporal action detection method according to claim 1, wherein the step (1) specifically comprises:
(1.1) scaling images contained in the sample video to a same size;
(1.2) performing the object detection on the normalized images by using a target detector and a feature pyramid network (FPN) to obtain two object detection frame results;
(1.3) performing non-maximum suppression on a union of two object detection frames to obtain a filtered object position;
(1.4) tracking an unfiltered object detection frame by using a fast tracking method and a wave filter to find a position of an undetected object.

### Claim 3 (depends on 1)

The spatiotemporal action detection method according to claim 1, wherein the step (2) specifically comprises:
(2.1) performing normalization on values of optical flows in a horizontal direction and a vertical direction contained in the optical flow information;
(2.2) obtaining grayscale images of a single channel in the horizontal direction and the vertical direction of optical flow images by using the Pythagorean theorem;
(2.3) obtaining a motion information interval according to the grayscale images.

### Claim 4 (depends on 3)

The spatiotemporal action detection method according to claim 3, wherein the step (3) specifically comprises:
(3.1) performing global averaging pooling on a last layer of down-sampling layers in a spatiotemporal convolution network to obtain vectorized expression of a convolution layer;
(3.2) adding the vectorized expression of the convolution layer and the last layer of the down-sampling layers to obtain a first layer of up-sampling layers in a deconvolution network;
(3.3) overlaying a feature map corresponding to the down-sampling layers on each layer of feature maps of the deconvolution network to complete construction of a spatiotemporal convolution and deconvolution network;
(3.4) performing the global averaging pooling on a last layer of feature maps of the up-sampling layers of a spatiotemporal deconvolution network to get the vectorized expression;
(3.5) adding object saliency supervision to any selected layer of feature maps in the spatiotemporal convolution and deconvolution network;
(3.6) adding motion saliency supervision to any selected layer of the feature maps in the spatiotemporal convolution and deconvolution network to complete construction of the spatiotemporal convolution-deconvolution network;
(3.7) connecting a fully-connected layer after the convolution layer is vectorially expressed and a deconvolution layer is vectorially expressed, wherein the fully-connected layer is configured to predict the action category.

### Claim 5 (depends on 4)

The spatiotemporal action detection method according to claim 4, wherein the step (4) specifically comprises:
(4.1) dividing the sample video into T time segments after spatiotemporal convolution and stitching features xi(i=1, . . . , T) of the fully-connected layer connected to the spatiotemporal convolution network;
(4.2) calculating a T-dimensional weight vector w=[w1, w2, . . . , wT] through the global averaging pooling; and
(4.3) adding the sparse constraint obtained according to the weight vector to the spatiotemporal convolution-deconvolution network to complete construction of the network structure S.

### Claim 6 (depends on 5)

The spatiotemporal action detection method according to claim 5, wherein the step (6) specifically comprises:
(6.1) performing the non-maximum suppression on detection frames sampled and obtained on a heat map to obtain object candidate frames;
(6.2) filtering a time interval of an action through calculating the weight vector corresponding to each time segment of the sample video; and
(6.3) combining a space location corresponding to the object candidate frames with the time interval to obtain the object action spatiotemporal location.

### Claim 7 (depends on 6)

The spatiotemporal action detection method according to claim 6, wherein the step (6.1) specifically comprises:
(6.1.1) calculating a distribution probability map of the action by using a grade-based class activation map (Grad-CAM);
(6.1.2) performing dense sampling on the heat map to obtain detection frames of various sizes;
(6.1.3) performing the non-maximum suppression on each detection frame with a threshold of 0.3 to obtain the object candidate frames;
(6.1.4) sorting the object candidate frames, wherein a formula for sorting is provided as follows:
s
=
sum
⁡
(
H
⁡
(
x
,
y
,
w
,
h
)
)
w
×
h
+
ɛ
*
(
w
×
h
)
,
wherein sum(H(x, y, w, h)) represents an interval [x, y, w, h], a hyper parameter c is configured to be 0.00002, (x, y) represent initial coordinates corresponding to an object candidate frame on the heat map, w and h respectively represent a height and a width of the object candidate frame, and H represents all heat energy values in the object candidate frame; and
(6.1.5) correcting an obtained object candidate frame, wherein a formula for correcting is provided as follows:
B
t
=
{
B
h
⁢
,
IoU
⁢
(
B
s
,
B
h
)
>
0
.
3
S
⁢
(
B
s
,
B
t
-
1
)
⁢
,
⁢
otherwise
,
wherein Bt represents the object detection frame at time t, Bs is the obtained object candidate frame, and a function S represents size adjustment of Bs to be identical to a size of Bt-1 while keeping a center unchanged.

### Claim 8 (depends on 4)

The spatiotemporal action detection method according to claim 4, wherein the step (3.4) specifically comprises:
(3.4.1) constructing an object saliency map AH according to the object detection frames contained in an object set; and
(3.4.2) adding the object saliency supervision to an mth layer of the feature maps of the spatiotemporal convolution and deconvolution network to obtain model output:
fo=(1+AH·fm)/(1+α),
wherein fm is the feature map of the mth layer, fo is the model output after the object saliency supervision is added, and the hyper parameter α is configured to adjust an object saliency degree.

### Claim 9 (depends on 4)

The spatiotemporal action detection method according to claim 4, wherein the step (3.5) specifically comprises:
(3.5.1) extracting an optical flow map AM in an input sequence through an optical flow method in the input sequence; and
(3.5.2) adding the motion saliency supervision to an mth layer of feature maps of the spatiotemporal convolution and deconvolution network to obtain model output:
fo′=(1+AM·fm)/(1+β),
wherein fm is the feature map of the mth layer, fm is the model output after the motion saliency supervision is added, and a hyper parameter β is configured to adjust an motion saliency degree.

### Claim 10 (depends on 5)

The spatiotemporal action detection method according to claim 5, wherein after the sparse constraint is added in the step (4.3), an objective function of the spatiotemporal convolution and deconvolution network is:
l=lclass+λlsparse
wherein lsparse=∥w∥1 is sparsity loss configured to forcibly eliminate a part with a sparse coefficient of 0 and keep a part with a sparse coefficient whose value is not 0, lclass is configured to classify cross entropy loss, and λ is a weight coefficient.

### Claim 11 (depends on 2)

The spatiotemporal action detection method according to claim 2, wherein the step (2) specifically comprises:
(2.1) performing normalization on values of optical flows in a horizontal direction and a vertical direction contained in the optical flow information;
(2.2) obtaining grayscale images of a single channel in the horizontal direction and the vertical direction of optical flow images by using the Pythagorean theorem; and
(2.3) obtaining a motion information interval according to the grayscale images.
