# US 2023/0267740 A1 · Video data processing method and system, and relevant assemblies

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

- Number: US 2023/0267740 A1
- Document ID: US20230267740A1
- Status: Published application
- Kind: A1
- Application number: 18/012,939
- Filed: 2021-04-26
- Published: 2023-08-24
- Earliest claimed: 2020-09-25
- Assignees: Inspur Suzhou Intelligent Technology Co., Ltd.
- Applicants: Inspur Suzhou Intelligent Technology Co., Ltd.
- Inventors: Gang DONG; Yaqian ZHAO; Rengang LI; Hongbin YANG; Haiwei LIU; Dongdong JIANG
- Web page: https://patentgrep.com/patent/US20230267740A1

## CPC

- G06V 20/46: {Extracting features or characteristics from the video content, e.g. video fingerprints, representative shots or key frames}
- G06V 10/7715: {Feature extraction, e.g. by transforming the feature space, e.g. multi-dimensional scaling [MDS]; Mappings, e.g. subspace methods}
- G06V 10/94: Hardware or software architectures specially adapted for image or video understanding
- 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)}
- G06N 3/045: Combinations of networks
- G06N 3/08: Learning methods
- G06T 17/00: Three-dimensional [3D] modelling for computer graphics
- G06V 10/454: {Integrating the filters into a hierarchical structure, e.g. convolutional neural networks [CNN]}
- G06V 10/82: using neural networks
- G06V 20/40: in video content (extracting overlay text G06V20/62; video retrieval G06F16/70; processing of video elementary streams in video servers H04N21/234; processing of video elementary streams in video clients H04N21/44)
- 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}
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

A video data processing method, including: obtaining three-dimensional feature data and three-dimensional weight data corresponding to video data; separately preprocessing the three-dimensional feature data and the three-dimensional weight data to obtain a feature value matrix and a weight value matrix; and inputting the feature value matrix and the weight value matrix into a plurality of three-dimensional systolic arrays for parallel computing to obtain a video data processing result. The present method can fully expand the degree of parallelism of computation and a four-dimensional systolic computation architecture is constructed by using multiple three-dimensional systolic arrays, so as to perform parallel computing on a three-dimensional feature value matrix and a three-dimensional weight value matrix, thereby shortening the computation time of three-dimensional convolution, and improving the video data processing efficiency.

## Claims

### Claim 1

A video data processing method, comprising:
acquiring three-dimensional feature data and three-dimensional weight data corresponding to video data;
pre-processing the three-dimensional feature data and the three-dimensional weight data, respectively, to obtain a feature value matrix and a weight value matrix; and
inputting the feature value matrix and the weight value matrix into a plurality of three-dimensional systolic arrays for parallel calculations to obtain a video data processing result.

### Claim 2 (depends on 1)

The video data processing method according to claim 1, wherein pre-processing the three-dimensional feature data to obtain a feature value matrix comprises:
splitting the three-dimensional feature data according to a convolution kernel size into a plurality of feature data groups, and converting each of the feature data groups into a corresponding two-dimensional matrix according to a preset mapping relationship; and
obtaining the feature value matrix from all the two-dimensional matrices.

### Claim 3 (depends on 2)

The video data processing method according to claim 2, wherein pre-processing the three-dimensional weight data to obtain a weight value matrix comprises:
rearranging the three-dimensional weight data according to the preset mapping relationship to obtain the weight value matrix.

### Claim 4 (depends on 1)

The video data processing method according to claim 1, wherein inputting the feature value matrix and the weight value matrix into a plurality of three-dimensional systolic arrays for parallel calculations to obtain a video data processing result comprises:
calculating the feature value matrix and the weight value matrix in an i-th input channel according to a corresponding target intermediate value through an i-th three-dimensional systolic array to obtain an i-th calculation result, where i=1, 2, . . . , Cin; and
obtaining the video data processing result according to a Cin-th calculation result;
where the target intermediate value is 0 when i=1, and the target intermediate value is an (i−1)th calculation result when 1<i≤Cin.

### Claim 5 (depends on 4)

The video data processing method according to claim 4, wherein calculating the feature value matrix and the weight value matrix in an i-th input channel according to a corresponding target intermediate value through an i-th three-dimensional systolic array to obtain an i-th calculation result comprises:
storing Cout weight value matrices corresponding to the feature value matrix in the i-th input channel into Cout calculation units of the i-th three-dimensional systolic array, respectively, wherein Cout is a number of output channels;
sequentially inputting each sub-feature value matrix corresponding to the feature value matrix in the i-th input channel into the i-th three-dimensional systolic array in a first preset cycle;
performing calculation through each of the calculation units according to the target intermediate value, the feature value matrix that is received, and the weight value matrix that is stored, to obtain sub-calculation results corresponding to the calculation units; and
obtaining the i-th calculation result based on all the sub-calculation results.

### Claim 6 (depends on 5)

The video data processing method according to claim 5, wherein inputting each sub-feature value matrix corresponding to the feature value matrix in the i-th input channel into the i-th three-dimensional systolic array comprises:
inputting q feature values of an r-th row of each sub-feature value matrix corresponding to the feature value matrix in the i-th input channel into q processing elements of an r-th row of the Cout calculation units of the i-th three-dimensional systolic array in a second preset cycle, where a size of the sub-feature value matrix is p×q, p and q are both positive integers, and r=1, 2, . . . , p−1;
wherein a time interval between inputting q feature values in an (r+1)th row of the sub-feature value matrix to a j-th calculation unit and inputting q feature values in the r-th row of the sub-feature value matrix to the j-th calculation unit is the second preset cycle, where j=1, 2, . . . , Cout.

### Claim 7 (depends on 6)

The video data processing method according to claim 6, wherein performing calculation through each of the calculation units according to the target intermediate value, the feature value matrix that is received, and the weight value matrix that is stored to obtain sub-calculation results corresponding to the calculation units comprises:
performing calculation according to a first relational equation through q processing elements of the r-th row of each of the calculation units to obtain a calculation result of each processing element;
wherein the first relational equation is hrw=trw×qrw+crw, where hrw is a calculation result of a w-th processing element in the r-th row, trw is the feature value received by the w-th processing element in the r-th row, qrw is the weight value of the w-th processing element in the r-th row, crw is the target intermediate value corresponding to the w-th processing element in the r-th row, and w=1, 2, . . . , q; and
obtaining the sub-calculation results of the calculation units from a sum of the calculation results of all the processing elements in a same column.

### Claim 8 (depends on 7)

The video data processing method according to claim 7, wherein obtaining the video data processing result according to a Cin-th calculation result comprises:
acquiring output results of all the calculation units in the Cin-th three-dimensional systolic array; and
obtaining the video data processing result according to output results output from the Cout calculation units.

### Claim 9 (depends on 8)

The video data processing method according to claim 8, wherein acquiring output results of all the calculation units in the Cin-th three-dimensional systolic array comprises:
acquiring the output results of all the calculation units in the Cin-th three-dimensional systolic array through a second relational equation, wherein the second relational equation is H=ρw=1q(ρr=1phrw).

### Claim 10

(canceled)

### Claim 11

An electronic device, comprising:
a memory configured to store a computer program; and
a processor configured to execute the computer program to implement operations comprising:
acquiring three-dimensional feature data and three-dimensional weight data corresponding to video data;
pre-processing the three-dimensional feature data and the three-dimensional weight data, respectively, to obtain a feature value matrix and a weight value matrix; and
inputting the feature value matrix and the weight value matrix into a plurality of three-dimensional systolic arrays for parallel calculations to obtain a video data processing result.

### Claim 12

A non-transitory computer-readable storage medium having stored therein a computer program which, when executed by a processor, implements operations comprising:
acquiring three-dimensional feature data and three-dimensional weight data corresponding to video data;
pre-processing the three-dimensional feature data and the three-dimensional weight data, respectively, to obtain a feature value matrix and a weight value matrix; and
inputting the feature value matrix and the weight value matrix into a plurality of three-dimensional systolic arrays for parallel calculations to obtain a video data processing result.

### Claim 13 (depends on 1)

The video data processing method according to claim 1, wherein the video data is taken from a security monitor process, or collected during an automatic driving process, or the video data of a streaming media on-line video.

### Claim 14 (depends on 1)

The video data processing method according to claim 1, wherein the three-dimensional feature data and the three-dimensional weight data corresponding to the video data are acquired in a preset obtaining cycle or acquired after an acquisition instruction is received.

### Claim 15 (depends on 1)

The video data processing method according to claim 1, wherein after the three-dimensional feature data and the three-dimensional weight data are obtained, the three-dimensional feature data and the three-dimensional weight data are subjected to dimension reduction, so as to satisfy the requirements of the scale and time sequence of the three-dimensional systolic array.

### Claim 16 (depends on 1)

The video data processing method according to claim 1, wherein the video data processing result is at least one of a classification result and a feature extraction result.

### Claim 17 (depends on 11)

The electronic device according to claim 11, wherein pre-processing the three-dimensional feature data to obtain a feature value matrix comprises:
splitting the three-dimensional feature data according to a convolution kernel size into a plurality of feature data groups, and converting each of the feature data groups into a corresponding two-dimensional matrix according to a preset mapping relationship; and
obtaining the feature value matrix from all the two-dimensional matrices.

### Claim 18 (depends on 18)

The electronic device according to claim 18, wherein pre-processing the three-dimensional weight data to obtain a weight value matrix comprises:
rearranging the three-dimensional weight data according to the preset mapping relationship to obtain the weight value matrix.

### Claim 19 (depends on 11)

The electronic device according to claim 11, wherein inputting the feature value matrix and the weight value matrix into a plurality of three-dimensional systolic arrays for parallel calculations to obtain a video data processing result comprises:
calculating the feature value matrix and the weight value matrix in an i-th input channel according to a corresponding target intermediate value through an i-th three-dimensional systolic array to obtain an i-th calculation result, where i=1, 2, . . . , Cin; and
obtaining the video data processing result according to a Cin-th calculation result;
where the target intermediate value is 0 when i=1, and the target intermediate value is an (i−1)th calculation result when 1<i≤Cin.

### Claim 20 (depends on 11)

The electronic device according to claim 11, wherein the three-dimensional feature data and the three-dimensional weight data corresponding to the video data are acquired in a preset obtaining cycle or acquired after an acquisition instruction is received.

### Claim 21 (depends on 12)

The non-transitory computer-readable storage medium according to claim 12, wherein pre-processing the three-dimensional feature data to obtain a feature value matrix comprises:
splitting the three-dimensional feature data according to a convolution kernel size into a plurality of feature data groups, and converting each of the feature data groups into a corresponding two-dimensional matrix according to a preset mapping relationship; and
obtaining the feature value matrix from all the two-dimensional matrices.
