# US 2026/0065028 A1 · Entropy estimation method and apparatus for image compression

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

- Number: US 2026/0065028 A1
- Document ID: US20260065028A1
- Status: Published application
- Kind: A1
- Application number: 19/385,529
- Filed: 2025-11-11
- Published: 2026-03-05
- Earliest claimed: 2023-07-11
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Dequan Yu; Yin Zhao
- Web page: https://patentgrep.com/patent/US20260065028A1

## CPC

- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- H04N 19/91: Entropy coding, e.g. variable length coding [VLC] or arithmetic coding
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06N 3/045: Combinations of networks
- G06N 3/047: Probabilistic or stochastic networks
- G06N 3/048: Activation functions
- G06N 3/0495: Quantised networks; Sparse networks; Compressed networks
- G06N 3/063: using electronic means
- G06N 3/08: Learning methods
- G06N 3/082: modifying the architecture, e.g. adding, deleting or silencing nodes or connections
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N 3/09: Supervised learning
- G06T 9/002: {using neural networks}
- G06V 10/82: using neural networks
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

This disclosure provides an entropy estimation method and apparatus for image compression. The method includes: obtaining a to-be-processed first feature matrix, where a shape of the first feature matrix is [Cin, hin, win], Cin indicates a quantity of channels of the first feature matrix, hin indicates a height of the first feature matrix, and win indicates a width of the first feature matrix; and inputting the first feature matrix to an entropy estimation network to obtain a second feature matrix, where a shape of the second feature matrix is [Cout, hout, wout], Cout indicates a quantity of channels of the second feature matrix, hout indicates a height of the second feature matrix, and wout indicates a width of the second feature matrix. The second feature matrix and the first feature matrix meet the following conditions: Cout=Cin, hout=s·hin, and wout=s·win, where s is an integer greater than 1.

## Claims

### Claim 1

An entropy estimation method for image compression, comprising:
obtaining a to-be-processed first feature matrix, wherein a shape of the first feature matrix is [Cin, hin, win], Cin indicates a quantity of channels of the first feature matrix, hin indicates a height of the first feature matrix, and win indicates a width of the first feature matrix; and
inputting the first feature matrix to an entropy estimation network to obtain a second feature matrix, wherein a shape of the second feature matrix is [Cout, hout, wout], Cout indicates a quantity of channels of the second feature matrix, hout indicates a height of the second feature matrix, and wout indicates a width of the second feature matrix; the second feature matrix and the first feature matrix meet the following conditions: Cout=Cin, hout=s·hin, and wout=s·win, wherein sis an integer greater than 1; and the entropy estimation network comprises a first convolutional layer and a pointwise operation, wherein the first convolutional layer comprises two types of convolution processing, one of the two types of convolution processing is two-dimensional group convolution, and an input of the pointwise operation is respective outputs of the two types of convolution processing.

### Claim 2 (depends on 1)

The method according to claim 1, wherein an input feature matrix and an output feature matrix of the two-dimensional group convolution meet the following conditions: h1=t·h2, w1=t·w2, and C1 and C2 are exactly divisible by G, wherein t is an integer greater than 1, C1 indicates a quantity of channels of the input feature matrix, h1 indicates a height of the input feature matrix, w1 indicates a width of the input feature matrix, C2 indicates a quantity of channels of the output feature matrix, h2 indicates a height of the output feature matrix, w2 indicates a width of the output feature matrix, and G indicates a quantity of groups, and is used to control a connection between the input feature matrix and the output feature matrix.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the entropy estimation network further comprises s× upsampling processing.

### Claim 4 (depends on 3)

The method according to claim 3, wherein the s× upsampling processing sequentially comprises a second convolutional layer and a pixel shuffle layer; a third feature matrix output by the second convolutional layer and the first feature matrix meet the following conditions: C3=nCin, h3=hin, and w3=win, wherein n is an integer greater than 1, C3 indicates a quantity of channels of the third feature matrix, h3 indicates a height of the third feature matrix, and w3 indicates a width of the third feature matrix; the pixel shuffle layer is configured to separately perform upsampling on the height and the width of the third feature matrix; and a feature matrix output by the pixel shuffle layer is the second feature matrix.

### Claim 5 (depends on 3)

The method according to claim 3, wherein the s× upsampling processing sequentially comprises a second convolutional layer and a deconvolutional layer for s× upsampling; a third feature matrix output by the second convolutional layer and the first feature matrix meet the following conditions: C3=nCin, h3=hin, and w3=win, wherein n is an integer greater than 1, C3 indicates a quantity of channels of the third feature matrix, h3 indicates a height of the third feature matrix, and w3 indicates a width of the third feature matrix; the deconvolutional layer is configured to separately perform upsampling on the height and the width of the third feature matrix;
and a feature matrix output by the deconvolutional layer is the second feature matrix.

### Claim 6 (depends on 3)

The method according to claim 3, wherein the s× upsampling processing comprises a deconvolutional layer for s× upsampling, the deconvolutional layer is configured to separately perform upsampling on a height and a width of an input feature matrix, and a feature matrix output by the deconvolutional layer is the second feature matrix.

### Claim 7 (depends on 1)

The method according to claim 1, wherein the entropy estimation network further comprises a first activation function and a second activation function, and the first activation function and the second activation function each comprise an identity operation Identity, rectified linear unit (ReLU) processing, leaky rectified linear unit (LeakyReLU) processing, or parametric rectified linear unit PRELU processing.

### Claim 8 (depends on 1)

The method according to claim 1, wherein the pointwise operation comprises pointwise multiplication, pointwise addition, pointwise subtraction, or pointwise division.

### Claim 9 (depends on 1)

The method according to claim 1, wherein the entropy estimation network further comprises a third convolutional layer, and an input feature matrix of the third convolutional layer is the first feature matrix.

### Claim 10 (depends on 1)

The method according to claim 1 wherein s=4.

### Claim 11

An entropy estimation apparatus for image compression, comprising:
an obtaining module, configured to obtain a to-be-processed first feature matrix, wherein a shape of the first feature matrix is [Cin, hin, win], Cin indicates a quantity of channels of the first feature matrix, hin indicates a height of the first feature matrix, and win indicates a width of the first feature matrix; and
a processing module, configured to input the first feature matrix to an entropy estimation network to obtain a second feature matrix, wherein a shape of the second feature matrix is [Cout, hout, wout], Cout indicates a quantity of channels of the second feature matrix, hout indicates a height of the second feature matrix, and wout indicates a width of the second feature matrix; the second feature matrix and the first feature matrix meet the following conditions: Cout=Cin, hout=s·hin, and wout=s·win, wherein s is an integer greater than 1; and the entropy estimation network comprises a first convolutional layer and a pointwise operation, wherein the first convolutional layer comprises two types of convolution processing, one of the two types of convolution processing is two-dimensional group convolution, and an input of the pointwise operation is respective outputs of the two types of convolution processing.

### Claim 12 (depends on 11)

The apparatus according to claim 11, wherein an input feature matrix and an output feature matrix of the two-dimensional group convolution meet the following conditions: h1=t·h2, w1=t·w2, and C1 and C2 are exactly divisible by G, wherein t is an integer greater than 1, C1 indicates a quantity of channels of the input feature matrix, h1 indicates a height of the input feature matrix, w1 indicates a width of the input feature matrix, C2 indicates a quantity of channels of the output feature matrix, h2 indicates a height of the output feature matrix, w2 indicates a width of the output feature matrix, and G indicates a quantity of groups, and is used to control a connection between the input feature matrix and the output feature matrix.

### Claim 13 (depends on 11)

The apparatus according to claim 11, wherein the entropy estimation network further comprises s× upsampling processing.

### Claim 14 (depends on 13)

The apparatus according to claim 13, wherein the s× upsampling processing sequentially comprises a second convolutional layer and a pixel shuffle layer; a third feature matrix output by the second convolutional layer and the first feature matrix meet the following conditions: C3=nCin, h3=hin, and w3=win, wherein n is an integer greater than 1, C3 indicates a quantity of channels of the third feature matrix, h3 indicates a height of the third feature matrix, and w3 indicates a width of the third feature matrix; the pixel shuffle layer is configured to separately perform upsampling on the height and the width of the third feature matrix; and a feature matrix output by the pixel shuffle layer is the second feature matrix.

### Claim 15 (depends on 13)

The apparatus according to claim 13, wherein the s× upsampling processing sequentially comprises a second convolutional layer and a deconvolutional layer for s× upsampling; a third feature matrix output by the second convolutional layer and the first feature matrix meet the following conditions: C3=nCin, h3=hin, and w3=win, wherein n is an integer greater than 1, C3 indicates a quantity of channels of the third feature matrix, h3 indicates a height of the third feature matrix, and w3 indicates a width of the third feature matrix; the deconvolutional layer is configured to separately perform upsampling on the height and the width of the third feature matrix; and a feature matrix output by the deconvolutional layer is the second feature matrix.

### Claim 16 (depends on 13)

The apparatus according to claim 13, wherein the s× upsampling processing comprises a deconvolutional layer for s× upsampling, the deconvolutional layer is configured to separately perform upsampling on a height and a width of an input feature matrix, and a feature matrix output by the deconvolutional layer is the second feature matrix.

### Claim 17 (depends on 11)

The apparatus according to claim 11, wherein the entropy estimation network further comprises a first activation function and a second activation function, and the first activation function and the second activation function each comprise an identity operation Identity, rectified linear unit (ReLU) processing, leaky rectified linear unit LeakyReLU processing, or parametric rectified linear unit (PRELU) processing.

### Claim 18 (depends on 11)

The apparatus according to claim 11, wherein the pointwise operation comprises pointwise multiplication, pointwise addition, pointwise subtraction, or pointwise division.

### Claim 19 (depends on 11)

The apparatus according to claim 11, wherein the entropy estimation network further comprises a third convolutional layer, and an input feature matrix of the third convolutional layer is the first feature matrix.

### Claim 20

A computer-readable storage medium, comprising instructions, wherein when the instructions are run on a computer, the computer is enabled to:
obtain a to-be-processed first feature matrix, wherein a shape of the first feature matrix is [Cin, hin, win], Cin indicates a quantity of channels of the first feature matrix, hin indicates a height of the first feature matrix, and win indicates a width of the first feature matrix; and
input the first feature matrix to an entropy estimation network to obtain a second feature matrix, wherein a shape of the second feature matrix is [Cout, hout, wout], Cout indicates a quantity of channels of the second feature matrix, hout indicates a height of the second feature matrix, and wout indicates a width of the second feature matrix; the second feature matrix and the first feature matrix meet the following conditions: Cout=Cin, hout=s·hin, and wout=s·win, wherein sis an integer greater than 1; and the entropy estimation network comprises a first convolutional layer and a pointwise operation, wherein the first convolutional layer comprises two types of convolution processing, one of the two types of convolution processing is two-dimensional group convolution, and an input of the pointwise operation is respective outputs of the two types of convolution processing.
