# US 2019/0244394 A1 · Leveraging jpeg discrete cosine transform coefficients in neural networks

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

- Number: US 2019/0244394 A1
- Document ID: US20190244394A1
- Status: Published application
- Kind: A1
- Application number: 16/049,766
- Filed: 2018-07-30
- Published: 2019-08-08
- Earliest claimed: 2018-02-08
- Assignees: Uber Technologies, Inc.
- Applicants: Uber Technologies, Inc.
- Inventors: Lionel Gueguen; Alexander Igorevich Sergeev; Ruoqian Liu; Jason Yosinski
- Web page: https://patentgrep.com/patent/US20190244394A1

## CPC

- G06T 9/002: {using neural networks}
- G06N 3/02: Neural networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/08: Learning methods
- H04N 19/186: the unit being a colour or a chrominance component
- H04N 19/48: using compressed domain processing techniques other than decoding, e.g. modification of transform coefficients, variable length coding [VLC] data or run-length data (motion estimation in a transform domain H04N19/547; processing of decoded motion vectors H04N19/513)
- H04N 19/625: using discrete cosine transform [DCT]
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A system classifies a compressed image or predicts likelihood values associated with a compressed image. The system partially decompresses compressed JPEG image data to obtain blocks of discrete cosine transform (DCT) coefficients that represent the image. The system may apply various transform functions to the individual blocks of DCT coefficients to resize the blocks so that they may be input together into a neural network for analysis. Weights of the neural network may be trained to accept transformed blocks of DCT coefficients which may be less computationally intensive than accepting raw image data as input.

## Claims

### Claim 1

A computer-implemented method comprising:
obtaining a compressed image file for analysis, wherein the compressed image file includes three channels of Huffman codes;
decompressing the three channels of Huffman codes to obtain three blocks of quantized discrete cosine transform (DCT) values, wherein at least two of the blocks have differing dimensions;
applying one or more transform functions to at least one of the three blocks of quantized DCT values, the one or more transform functions affecting the dimensions of the at least one of the three blocks such that the three blocks have the same dimensions;
concatenating the resulting three blocks of values; and
providing the concatenation of the values as input to a neural network to generate a classification of the compressed image file.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein the compressed image file is compressed using the Joint Photographic Experts Group (JPEG) standard.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein the quantized values are discrete cosine transform (DCT) coefficients for a luma component (Y), a first chromatic component (Cb), and a second chromatic component (Cr) of the compressed image.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, wherein applying one or more transform functions to at least one of the three blocks further comprises:
upscaling the blocks representing the Cb and Cr components of the quantized DCT values to the same dimensions as the Y component of the quantized DCT values.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein applying one or more transform functions to at least one of the three blocks further comprises:
filtering the block representing the Y component of the quantized DCT values through an initial layer of the neural network; and
applying a convolution to the blocks representing the Cb and Cr components of the quantized DCT values.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, wherein applying one or more transform functions to at least one of the three blocks further comprises:
applying an initial logical layer of the neural network to the block.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, further comprising:
receiving raw image data for an image; and
compressing the raw image data using the Joint Photographic Experts Group (JPEG) standard.

### Claim 8

A non-transitory computer-readable storage medium storing instructions that when executed by a computer processor perform actions comprising:
obtaining a compressed image file for analysis, wherein the compressed image file includes three channels of Huffman codes;
decompressing the three channels of Huffman codes to obtain three blocks of quantized discrete cosine transform (DCT) values, wherein at least two of the blocks have differing dimensions;
applying one or more transform functions to at least one of the three blocks of quantized DCT values, the one or more transform functions affecting the dimensions of the at least one of the three blocks such that the three blocks have the same dimensions;
concatenating the resulting three blocks of values; and
providing the concatenation of the values as input to a neural network to generate a classification of the compressed image file.

### Claim 9 (depends on 8)

The non-transitory computer-readable storage medium of claim 8, wherein the compressed image file is compressed using the Joint Photographic Experts Group (JPEG) standard.

### Claim 10 (depends on 8)

The non-transitory computer-readable storage medium of claim 8, wherein the quantized values are discrete cosine transform (DCT) coefficients for a luma component (Y), a first chromatic component (Cb), and a second chromatic component (Cr) of the compressed image.

### Claim 11 (depends on 8)

The non-transitory computer-readable storage medium of claim 8, wherein applying one or more transform functions to at least one of the three blocks further comprises:
upscaling the blocks representing the Cb and Cr components of the quantized DCT values to the same dimensions as the Y component of the quantized DCT values.

### Claim 12 (depends on 8)

The non-transitory computer-readable storage medium of claim 8, wherein applying one or more transform functions to at least one of the three blocks further comprises:
filtering the block representing the Y component of the quantized DCT values through an initial layer of the neural network; and
applying a convolution to the blocks representing the Cb and Cr components of the quantized DCT values.

### Claim 13 (depends on 8)

The non-transitory computer-readable storage medium of claim 8, wherein applying one or more transform functions to at least one of the three blocks further comprises:
applying an initial logical layer of the neural network to the block.

### Claim 14 (depends on 8)

The non-transitory computer-readable storage medium of claim 8, the actions further comprising:
receiving raw image data for an image; and
compressing the raw image data using the Joint Photographic Experts Group (JPEG) standard.

### Claim 15

A computer system comprising:
a computer processor; and
a non-transitory computer-readable storage medium storing instructions that when executed by a computer processor perform actions comprising:
obtaining a compressed image file for analysis, wherein the compressed image file includes three channels of Huffman codes;
decompressing the three channels of Huffman codes to obtain three blocks of quantized discrete cosine transform (DCT) values, wherein at least two of the blocks have differing dimensions;
applying one or more transform functions to at least one of the three blocks of quantized DCT values, the one or more transform functions affecting the dimensions of the at least one of the three blocks such that the three blocks have the same dimensions;
concatenating the resulting three blocks of values; and
providing the concatenation of the values as input to a neural network to generate a classification of the compressed image file.

### Claim 16 (depends on 15)

The computer system of claim 15, wherein the compressed image file is compressed using the Joint Photographic Experts Group (JPEG) standard.

### Claim 17 (depends on 15)

The computer system of claim 15, wherein the quantized values are discrete cosine transform (DCT) coefficients for a luma component (Y), a first chromatic component (Cb), and a second chromatic component (Cr) of the compressed image.

### Claim 18 (depends on 15)

The computer system of claim 15, wherein applying one or more transform functions to at least one of the three blocks further comprises:
upscaling the blocks representing the Cb and Cr components of the quantized DCT values to the same dimensions as the Y component of the quantized DCT values.

### Claim 19 (depends on 15)

The computer system of claim 15, wherein applying one or more transform functions to at least one of the three blocks further comprises:
filtering the block representing the Y component of the quantized DCT values through an initial layer of the neural network; and
applying a convolution to the blocks representing the Cb and Cr components of the quantized DCT values.

### Claim 20 (depends on 15)

The computer system of claim 15, wherein applying one or more transform functions to at least one of the three blocks further comprises:
applying an initial logical layer of the neural network to the block.
