# US 2022/0295116 A1 · Convolutional neural network loop filter based on classifier

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

- Number: US 2022/0295116 A1
- Document ID: US20220295116A1
- Status: Published application
- Kind: A1
- Application number: 17/626,778
- Filed: 2019-09-20
- Published: 2022-09-15
- Earliest claimed: 2019-09-20
- Assignees: Intel Corporation
- Applicants: Intel Corporation
- Inventors: Shoujiang MA; Xiaoran FANG; Hujun YIN; Rongzhen YANG
- Web page: https://patentgrep.com/patent/US20220295116A1

## CPC

- H04N 19/82: involving filtering within a prediction loop
- H04N 19/117: Filters, e.g. for pre-processing or post-processing (sub-band filter banks H04N19/635)
- H04N 19/124: Quantisation
- H04N 19/136: Incoming video signal characteristics or properties
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N 19/182: the unit being a pixel
- H04N 19/186: the unit being a colour or a chrominance component
- H04N 19/70: characterised by syntax aspects related to video coding, e.g. related to compression standards
- G06V 10/454: {Integrating the filters into a hierarchical structure, e.g. convolutional neural networks [CNN]}
- H04N 19/31: in the temporal domain
- H04N 19/86: involving reduction of coding artifacts, e.g. of blockiness
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

Techniques related to convolutional neural network based loop filtering for video coding are discussed and include training a convolutional neural network loop filter for each of multiple classifications into which each region of a reconstructed video frame corresponding to input video are classified and selecting a subset of the trained convolutional neural network loop filter for use in coding the input video.

## Claims

### Claim at position 1

1-24. (canceled)

### Claim 25

An apparatus, comprising:
a memory to store at least one reconstructed video frame; and
one or more processors coupled to the memory, the one or more processors to:
classify each of a plurality of regions of the at least one reconstructed video frame into a selected classification of a plurality of classifications, the reconstructed video frame corresponding to an original video frame of input video;
train a convolutional neural network loop filter for each of the classifications using those regions having the corresponding selected classification to generate a plurality of trained convolutional neural network loop filters;
select a subset of the trained convolutional neural network loop filters, the subset comprising at least a first trained convolutional neural network loop filter that minimizes distortion between the original video frame and a filtered video frame generated using the reconstructed video frame and the first trained convolutional neural network loop filter;
encode the input video based at least in part on the subset of the trained convolutional neural network loop filters; and
encode convolutional neural network loop filter parameters for each convolutional neural network loop filter of the subset and the encoded video into a bitstream.

### Claim 26 (depends on 25)

The apparatus of claim 25, wherein the one or more processors to classify each of the regions into the selected classifications is based on an adaptive loop filter classification of each of the regions in accordance with a versatile video coding standard.

### Claim 27 (depends on 25)

The apparatus of claim 25, wherein the one or more processors to select the subset of the trained convolutional neural network loop filters comprises the one or more processors to:
apply each of the trained convolutional neural network loop filters to the reconstructed video frame;
determine a distortion value for each combination of the classifications and the trained convolutional neural network loop filters and, for each of the classifications, a baseline distortion value without use of any trained convolutional neural network loop filter;
generate, for the reconstructed video frame, a frame level distortion for each of the trained convolutional neural network loop filters based on the distortion values for the particular trained convolutional neural network loop filter and the baseline distortion values; and
select the first trained convolutional neural network loop filter as the trained convolutional neural network loop filter having the lowest frame level distortion.

### Claim 28 (depends on 27)

The apparatus of claim 27, the one or more processors to:
select a second trained convolutional neural network loop filter for inclusion in the subset in response to the second trained convolutional neural network loop filter having a frame level distortion gain using the second trained convolutional neural network loop filter over use of only the first trained convolutional neural network loop filter that exceeds a model overhead of the second trained convolutional neural network loop filter.

### Claim 29 (depends on 25)

The apparatus of claim 25, the one or more processors to:
generate a mapping table to map classifications to the subset of the trained convolutional neural network loop filters for a second reconstructed video frame by the one or more processors to:
classify each of a plurality of second regions of the second reconstructed video frame into a second selected classification of the classifications;
determine, for each of the classifications, a minimum distortion with use of a selected one of the subset of the trained convolutional neural network loop filters and a baseline distortion without use of any trained convolutional neural network loop filter; and
assign, for each of the classifications, the selected one of the subset of the trained convolutional neural network loop filters in response to the minimum distortion being less than the baseline distortion for the classification or skip convolutional neural network loop filtering in response to the minimum distortion not being less than the baseline distortion for the classification.

### Claim 30 (depends on 25)

The apparatus of claim 25, the one or more processors to:
determine, for a coding unit of a second reconstructed video frame, a coding unit level distortion with convolutional neural network loop filtering on using a mapping table indicating which of the subset of the trained convolutional neural network loop filters are to be applied to blocks of the coding unit; and
flag convolutional neural network loop filtering on in response to the coding unit level distortion being less than a coding unit level distortion without use of convolutional neural network loop filtering or off in response to the coding unit level distortion not being less than a coding unit level distortion without use of convolutional neural network loop filtering.

### Claim 31 (depends on 25)

The apparatus of claim 25, wherein the one or more processors to encode the convolutional neural network loop filter parameters for each convolutional neural network loop filter of the subset comprises the one or more processors to quantize parameters of each convolutional neural network loop filter.

### Claim 32 (depends on 25)

The apparatus of claim 25, wherein the one or more processors to encode the input video based at least in part on the subset of the trained convolutional neural network loop filters comprises the one or more processors to:
receive a luma region, a first chroma channel region, and a second chroma channel region;
determine expanded regions around and including each of the luma region, the first chroma channel region, and the second chroma channel region;
generate an input for the trained convolutional neural network loop filters comprising multiple channels including a first, second, third, and fourth channels corresponding to sub-samplings of pixel samples of the expanded luma region, a fifth channel corresponding to pixel samples of the expanded first chroma channel region, and a sixth channel corresponding to pixel samples of the expanded second chroma channel region; and
apply the first trained convolutional neural network loop filter to the multiple channels.

### Claim 33 (depends on 25)

The apparatus of claim 25, wherein each of the convolutional neural network loop filters comprises an input layer and only two convolutional layers, a first convolutional layer having a rectified linear unit after each convolutional filter thereof and second convolutional layer having a direct skip connection with the input layer.

### Claim 34 (depends on 25)

The apparatus of claim 25, wherein the one or more processors classify, train, and select are performed on a plurality of reconstructed video frames inclusive of temporal identification 0 and 1 frames and exclusive of temporal identification 2 frames, wherein the temporal identifications are in accordance with a versatile video coding standard.

### Claim 35

A method for video coding comprising:
classifying each of a plurality of regions of at least one reconstructed video frame into a selected classification of a plurality of classifications, the reconstructed video frame corresponding to an original video frame of input video;
training a convolutional neural network loop filter for each of the classifications using those regions having the corresponding selected classification to generate a plurality of trained convolutional neural network loop filters;
selecting a subset of the trained convolutional neural network loop filters, the subset comprising at least a first trained convolutional neural network loop filter that minimizes distortion between the original video frame and a filtered video frame generated using the reconstructed video frame and the first trained convolutional neural network loop filter;
encoding the input video based at least in part on the subset of the trained convolutional neural network loop filters; and
encoding convolutional neural network loop filter parameters for each convolutional neural network loop filter of the subset and the encoded video into a bitstream.

### Claim 36 (depends on 35)

The method of claim 35, wherein classifying each of the regions into the selected classifications is based on an adaptive loop filter classification of each of the regions in accordance with a versatile video coding standard.

### Claim 37 (depends on 35)

The method of claim 35, wherein selecting the subset of the trained convolutional neural network loop filters comprises:
applying each of the trained convolutional neural network loop filters to the reconstructed video frame;
determining a distortion value for each combination of the classifications and the trained convolutional neural network loop filters and, for each of the classifications, a baseline distortion value without use of any trained convolutional neural network loop filter;
generating, for the reconstructed video frame, a frame level distortion for each of the trained convolutional neural network loop filters based on the distortion values for the particular trained convolutional neural network loop filter and the baseline distortion values; and
selecting the first trained convolutional neural network loop filter as the trained convolutional neural network loop filter having the lowest frame level distortion.

### Claim 38 (depends on 35)

The method of claim 35, further comprising:
generating a mapping table to map classifications to the subset of the trained convolutional neural network loop filters for a second reconstructed video frame by:
classifying each of a plurality of second regions of the second reconstructed video frame into a second selected classification of the classifications;
determining, for each of the classifications, a minimum distortion with use of a selected one of the subset of the trained convolutional neural network loop filters and a baseline distortion without use of any trained convolutional neural network loop filter; and
assigning, for each of the classifications, the selected one of the subset of the trained convolutional neural network loop filters in response to the minimum distortion being less than the baseline distortion for the classification or skip convolutional neural network loop filtering in response to the minimum distortion not being less than the baseline distortion for the classification.

### Claim 39 (depends on 35)

The method of claim 35, further comprising:
determining, for a coding unit of a second reconstructed video frame, a coding unit level distortion with convolutional neural network loop filtering on using a mapping table indicating which of the subset of the trained convolutional neural network loop filters are to be applied to blocks of the coding unit; and
flagging convolutional neural network loop filtering on in response to the coding unit level distortion being less than a coding unit level distortion without use of convolutional neural network loop filtering or off in response to the coding unit level distortion not being less than a coding unit level distortion without use of convolutional neural network loop filtering.

### Claim 40 (depends on 35)

The method of claim 35, wherein encoding the input video based at least in part on the subset of the trained convolutional neural network loop filters comprises:
receiving a luma region, a first chroma channel region, and a second chroma channel region;
determining expanded regions around and including each of the luma region, the first chroma channel region, and the second chroma channel region;
generating an input for the trained convolutional neural network loop filters comprising multiple channels including a first, second, third, and fourth channels corresponding to sub-samplings of pixel samples of the expanded luma region, a fifth channel corresponding to pixel samples of the expanded first chroma channel region, and a sixth channel corresponding to pixel samples of the expanded second chroma channel region;
applying the first trained convolutional neural network loop filter to the multiple channels.

### Claim 41

At least one machine readable medium comprising a plurality of instructions that, in response to being executed on a computing device, cause the computing device to perform video coding by:
classifying each of a plurality of regions of at least one reconstructed video frame into a selected classification of a plurality of classifications, the reconstructed video frame corresponding to an original video frame of input video;
training a convolutional neural network loop filter for each of the classifications using those regions having the corresponding selected classification to generate a plurality of trained convolutional neural network loop filters;
selecting a subset of the trained convolutional neural network loop filters, the subset comprising at least a first trained convolutional neural network loop filter that minimizes distortion between the original video frame and a filtered video frame generated using the reconstructed video frame and the first trained convolutional neural network loop filter;
encoding the input video based at least in part on the subset of the trained convolutional neural network loop filters; and
encoding convolutional neural network loop filter parameters for each convolutional neural network loop filter of the subset and the encoded video into a bitstream.

### Claim 42 (depends on 41)

The machine readable medium of claim 41, wherein classifying each of the regions into the selected classifications is based on an adaptive loop filter classification of each of the regions in accordance with a versatile video coding standard.

### Claim 43 (depends on 41)

The machine readable medium of claim 41, wherein selecting the subset of the trained convolutional neural network loop filters comprises:
applying each of the trained convolutional neural network loop filters to the reconstructed video frame;
determining a distortion value for each combination of the classifications and the trained convolutional neural network loop filters and, for each of the classifications, a baseline distortion value without use of any trained convolutional neural network loop filter;
generating, for the reconstructed video frame, a frame level distortion for each of the trained convolutional neural network loop filters based on the distortion values for the particular trained convolutional neural network loop filter and the baseline distortion values; and
selecting the first trained convolutional neural network loop filter as the trained convolutional neural network loop filter having the lowest frame level distortion.

### Claim 44 (depends on 41)

The machine readable medium of claim 41, further comprising:
generating a mapping table to map classifications to the subset of the trained convolutional neural network loop filters for a second reconstructed video frame by:
classifying each of a plurality of second regions of the second reconstructed video frame into a second selected classification of the classifications;
determining, for each of the classifications, a minimum distortion with use of a selected one of the subset of the trained convolutional neural network loop filters and a baseline distortion without use of any trained convolutional neural network loop filter; and
assigning, for each of the classifications, the selected one of the subset of the trained convolutional neural network loop filters in response to the minimum distortion being less than the baseline distortion for the classification or skip convolutional neural network loop filtering in response to the minimum distortion not being less than the baseline distortion for the classification.

### Claim 45 (depends on 41)

The machine readable medium of claim 41, further comprising:
determining, for a coding unit of a second reconstructed video frame, a coding unit level distortion with convolutional neural network loop filtering on using a mapping table indicating which of the subset of the trained convolutional neural network loop filters are to be applied to blocks of the coding unit; and
flagging convolutional neural network loop filtering on in response to the coding unit level distortion being less than a coding unit level distortion without use of convolutional neural network loop filtering or off in response to the coding unit level distortion not being less than a coding unit level distortion without use of convolutional neural network loop filtering.

### Claim 46 (depends on 41)

The machine readable medium of claim 41, wherein encoding the input video based at least in part on the subset of the trained convolutional neural network loop filters comprises:
receiving a luma region, a first chroma channel region, and a second chroma channel region;
determining expanded regions around and including each of the luma region, the first chroma channel region, and the second chroma channel region;
generating an input for the trained convolutional neural network loop filters comprising multiple channels including a first, second, third, and fourth channels corresponding to sub-samplings of pixel samples of the expanded luma region, a fifth channel corresponding to pixel samples of the expanded first chroma channel region, and a sixth channel corresponding to pixel samples of the expanded second chroma channel region;
applying the first trained convolutional neural network loop filter to the multiple channels.
