# US 2021/0081659 A1 · Recognition of activity in a video image sequence using depth information

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

- Number: US 2021/0081659 A1
- Document ID: US20210081659A1
- Status: Published application
- Kind: A1
- Application number: 17/108,256
- Filed: 2020-12-01
- Published: 2021-03-18
- Earliest claimed: 2018-11-02
- Assignees: Intel Corporation
- Applicants: Intel Corporation
- Inventors: SHAOPENG TANG; ANBANG YAO; YURONG CHEN
- Web page: https://patentgrep.com/patent/US20210081659A1

## CPC

- G06T 7/215: Motion-based segmentation
- G06F 18/2411: based on the proximity to a decision surface, e.g. support vector machines
- G06T 7/579: from motion
- G06T 7/596: {from three or more stereo images}
- G06V 10/50: by performing operations within image blocks; by using histograms, e.g. histogram of oriented gradients [HoG]; by summing image-intensity values; Projection analysis
- G06V 10/764: using classification, e.g. of video objects
- G06V 20/52: Surveillance or monitoring of activities, e.g. for recognising suspicious objects (recognising microscopic objects G06V20/69)
- G06V 20/64: Three-dimensional [3D] objects
- G06V 40/23: {Recognition of whole body movements, e.g. for sport training}
- G06V 40/28: {Recognition of hand or arm movements, e.g. recognition of deaf sign language (static hand signs G06V40/113)}
- G06T 2207/20081: Training; Learning
- G06T 2207/20132: Image cropping
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

Techniques are provided for recognition of activity in a sequence of video image frames that include depth information. A methodology embodying the techniques includes segmenting each of the received image frames into a multiple windows and generating spatio-temporal image cells from groupings of windows from a selected sub-sequence of the frames. The method also includes calculating a four dimensional (4D) optical flow vector for each of the pixels of each of the image cells and calculating a three dimensional (3D) angular representation from each of the optical flow vectors. The method further includes generating a classification feature for each of the image cells based on a histogram of the 3D angular representations of the pixels in that image cell. The classification features are then provided to a recognition classifier configured to recognize the type of activity depicted in the video sequence, based on the generated classification features.

## Claims

### Claim 1

A processor-implemented method for activity recognition in images, the method comprising:
segmenting frames, of a sequence of image frames, into a plurality of windows;
generating spatio-temporal image cells, the image cells comprising a grouping of the windows from two or more of the frames;
calculating a four dimensional (4D) optical flow vector for pixels of the image cells;
calculating a three dimensional (3D) angular representation of the optical flow vectors; and
generating activity recognition classification features for the image cells based on histograms of the 3D angular representations.

### Claim 2 (depends on 1)

The method of claim 1, further comprising executing a recognition classifier to recognize an activity based on the activity recognition classification features.

### Claim 3 (depends on 1)

The method of claim 1, further comprising detecting a subject of interest in the frames and cropping the frame about the subject of interest.

### Claim 4 (depends on 3)

The method of claim 3, further comprising spatially aligning one of the cropped frames relative to another of the cropped frames.

### Claim 5 (depends on 1)

The method of claim 1, wherein the calculation of the 4D optical flow vector further comprises:
calculating a two dimensional (2D) optical flow vector based on an energy minimization function applied to the pixels of the image cell;
adding a third dimension to the 2D optical flow vector based on a difference between corresponding pixels in consecutive frames; and
adding a fourth dimension to the 2D optical flow vector, the fourth dimension comprising a scalar value.

### Claim 6 (depends on 1)

The method of claim 1, wherein the generation of the activity recognition classification features further comprises:
associating a histogram with each dimension of the 3D angular representation, the histogram comprising bins corresponding to angular ranges;
incrementing the bins based on the magnitude of each pixel in the image cell associated with the bin; and
concatenating the histograms to generate the activity recognition classification feature.

### Claim 7 (depends on 1)

The method of claim 1, further comprising training a recognition classifier, the training comprising:
receiving a sequence of training depth image frames corresponding to a known activity;
generating the activity recognition classification feature for each of the image cells of the training frames; and
providing the activity recognition classification features and a label associated with the known activity to the recognition classifier for training.

### Claim 8

A system for recognition of activity in images, the system comprising:
a cell generation circuit to
segment frames, of a sequence of image frames, into a plurality of windows, and
generate spatio-temporal image cells, the image cells comprising a grouping of the windows from two or more of the frames;
an optical flow calculation circuit to calculate a four dimensional (4D) optical flow vector for pixels of the image cells;
an angle calculation circuit to calculate a three dimensional (3D) angular representation of the optical flow vectors; and
a cell feature calculation circuit to generate activity recognition classification features for the image cells based on histograms of the 3D angular representations.

### Claim 9 (depends on 8)

The system of claim 8, further comprising a recognition classifier circuit to recognize an activity based on the activity recognition classification features.

### Claim 10 (depends on 8)

The system of claim 8, further comprising a crop and align circuit to detect a subject of interest in the frames and cropping the frame about the subject of interest.

### Claim 11 (depends on 10)

The system of claim 10, wherein the crop and align circuit is further to spatially align one of the cropped frames relative to another of the cropped frames.

### Claim 12 (depends on 8)

The system of claim 8, wherein the optical flow calculation circuit further comprises:
a 2D optical flow calculation circuit to calculate a two dimensional (2D) optical flow vector based on an energy minimization function applied to the pixels of the image cell; and
a 3D/4D optical flow calculation circuit to add a third dimension to the 2D optical flow vector based on a difference between corresponding pixels in consecutive frames and to add a fourth dimension to the 2D optical flow vector, the fourth dimension comprising a scalar value.

### Claim 13 (depends on 8)

The system of claim 8, wherein the cell feature calculation circuit is further to:
associate a histogram with each dimension of the 3D angular representation, the histogram comprising bins corresponding to angular ranges;
increment the bins based on the magnitude of each pixel in the image cell associated with the bin; and
concatenate the histograms to generate the activity recognition classification feature.

### Claim 14 (depends on 8)

The system of claim 8, further comprising a classifier training circuit to:
receive a sequence of training depth image frames corresponding to a known activity;
generate the activity recognition classification feature for each of the image cells of the training frames; and
provide the activity recognition classification features and a label associated with the known activity to the recognition classifier for training.

### Claim 15

At least one non-transitory machine-readable storage medium having instructions encoded thereon that, when executed by one or more processors, cause a process to be carried out for recognition of activity in images, the process comprising:
segmenting frames, of a sequence of image frames, into a plurality of windows;
generating spatio-temporal image cells, the image cells comprising a grouping of the windows from two or more of the frames;
calculating a four dimensional (4D) optical flow vector for pixels of the image cells;
calculating a three dimensional (3D) angular representation of the optical flow vectors; and
generating activity recognition classification features for the image cells based on histograms of the 3D angular representations.

### Claim 16 (depends on 15)

The computer readable storage medium of claim 15, further comprising executing a recognition classifier to recognize an activity based on the activity recognition classification features.

### Claim 17 (depends on 15)

The computer readable storage medium of claim 15, further comprising detecting a subject of interest in the frames; cropping the frame about the subject of interest; and spatially aligning one of the cropped frames relative to another of the cropped frames.

### Claim 18 (depends on 15)

The computer readable storage medium of claim 15, wherein the calculation of the 4D optical flow vector further comprises:
calculating a two dimensional (2D) optical flow vector based on an energy minimization function applied to the pixels of the image cell;
adding a third dimension to the 2D optical flow vector based on a difference between corresponding pixels in consecutive frames; and
adding a fourth dimension to the 2D optical flow vector, the fourth dimension comprising a scalar value.

### Claim 19 (depends on 15)

The computer readable storage medium of claim 15, wherein the generation of the activity recognition classification features further comprises:
associating a histogram with each dimension of the 3D angular representation, the histogram comprising bins corresponding to angular ranges;
incrementing the bins based on the magnitude of each pixel in the image cell associated with the bin; and
concatenating the histograms to generate the activity recognition classification feature.

### Claim 20 (depends on 15)

The computer readable storage medium of claim 15, further comprising training a recognition classifier, the training comprising:
receiving a sequence of training depth image frames corresponding to a known activity;
generating the activity recognition classification feature for each of the image cells of the training frames; and
providing the activity recognition classification features and a label associated with the known activity to the recognition classifier for training.
