# US 2022/0292091 A1 · Method, apparatus, and system for compression of sparse data for machine learning tasks

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

- Number: US 2022/0292091 A1
- Document ID: US20220292091A1
- Status: Published application
- Kind: A1
- Application number: 17/197,974
- Filed: 2021-03-10
- Published: 2022-09-15
- Earliest claimed: 2021-03-10
- Assignees: HERE Global B.V.
- Applicants: HERE Global B.V.
- Inventors: Catalin CAPOTA; David JONIETZ; Ali SOLEYMANI; Bo XU; Moritz NEUN
- Web page: https://patentgrep.com/patent/US20220292091A1

## CPC

- G06F 16/2458: Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
- H03M 7/70: {Type of the data to be coded, other than image and sound}
- G06F 16/29: Geographical information databases
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 20/00: Machine learning
- H03M 7/30: Compression (speech analysis-synthesis for redundancy reduction G10L19/00; for image communication H04N); Expansion; Suppression of unnecessary data, e.g. redundancy reduction
- H04N 19/182: the unit being a pixel
- H04N 19/70: characterised by syntax aspects related to video coding, e.g. related to compression standards
- H04N 19/96: Tree coding, e.g. quad-tree coding
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H03M: CODING; DECODING; CODE CONVERSION IN GENERAL (using fluidic means F15C4/00; optical analogue/digital converters G02F7/00; coding, decoding or code conversion, specially adapted for particular applications, see the relevant subclasses, e.g. G01D, G01R, G06F, G06T, G09G, G10L, G11B, G11C, H04B, H04L, H04M, H04N; ciphering or deciphering for cryptography or other purposes involving the need for secrecy G09C)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

An approach is provided for compression of sparse data for machine learning or equivalent tasks. The approach involves, for instance, receiving data that is binned into a plurality of bins. The data, for instance, represents a spatial surface such as a geographic region. The approach also involves processing the data by applying a compression criterion to classify one or more bins of the plurality of bins as either data-containing bins or empty bins. The approach further involves establishing a space filling curve over the plurality of bins, wherein the space filling curve linearizes the plurality of bins according to a placement order. The approach further involves storing the data-containing bins of the plurality of bins in a compressed data structure based on the placement order of the space filling curve.

## Claims

### Claim 1

A computer-implemented method comprising:
receiving data that is binned into a plurality of bins, wherein the data represents a spatial surface;
processing the data by applying a compression criterion to classify one or more bins of the plurality of bins as either data-containing bins or empty bins;
establishing a space filling curve over the plurality of bins, wherein the space filling curve linearizes the plurality of bins according to a placement order;
storing the data-containing bins of the plurality of bins in a compressed data structure based on the placement order of the space filling curve; and
providing the compressed data structure as an output.

### Claim 2 (depends on 1)

The method of claim 1, wherein the compressed data structure is indexed based on a tree structure comprising one or more spatial clusters of the plurality of bins.

### Claim 3 (depends on 2)

The method of claim 2, wherein the compressed data comprises a header and one or more data frames; wherein the header stores one or more characteristics of the space filling curve, the tree structure, or a combination thereof; and wherein the one or more data frames store the data associated with the data-containing bins.

### Claim 4 (depends on 1)

The method of claim 1, wherein the space filling curve comprises one or more curve levels respectively corresponding to one or more tree levels of the tree structure.

### Claim 5 (depends on 1)

The method of claim 1, wherein the compressed data structure is a single dimensional array.

### Claim 6 (depends on 1)

The method of claim 1, wherein the compressed data structure is a dense multidimensional data structure.

### Claim 7 (depends on 1)

The method of claim 1, wherein the plurality of bins is respectively associated with coordinate data of a coordinate system, and wherein the space filling curve converts the coordinate data to and from the coordinate system and the placement order of the space filing curve.

### Claim 8 (depends on 1)

The method of claim 1, wherein the output is provided as an input into a machine learning model.

### Claim 9 (depends on 1)

The method of claim 1, wherein the spatial surface corresponds to a geographic region.

### Claim 10 (depends on 1)

The method of claim 1, wherein the data comprises a plurality of data layers, and wherein the plurality of multiple data layers of the data in the data-containing bins is stored in the compressed data structure based on the placement order of the space filling curve.

### Claim 11 (depends on 10)

The method of claim 10, wherein the plurality of data layers include a road network layer representing one or more roads associated with the spatial surface, a traffic data layer representing traffic associated with the spatial surface, an accident data layer representing one or more accidents associated with the spatial surface, or a combination thereof; and wherein the compression criterion classifies the one or more bins based on a distance threshold between the one or more roads and either of the traffic or the one or more accidents. t

### Claim 12 (depends on 1)

The method of claim 1, wherein the data is stored in a matrix, and wherein the plurality of bins corresponds to one or more elements of the matrix.

### Claim 13

An apparatus comprising:
at least one processor; and
at least one memory including computer program code for one or more programs,
the at least one memory and the computer program code configured to, within the at least one processor, cause the apparatus to perform at least the following,
receive a compressed data structure representing binned data, wherein the binned data has been processed by applying a compression criterion to classify the plurality of bins of the binned data as either data-containing bins or empty bins, and wherein the compressed data structure stores the data-containing bins linearized according to a placement order of a space-filling curve;
extract spatial relationship data of the binned data based on the placement order of the data-containing bins determined from the space filling curve; and
provide the spatial relationship data as an output.

### Claim 14 (depends on 13)

The apparatus of claim 13, wherein the spatial relationship data is extracted by providing the output as an input into a machine learning model.

### Claim 15 (depends on 13)

The apparatus of claim 13, wherein the compressed data structure is indexed based on a tree structure comprising one or more spatial clusters of the plurality of bins.

### Claim 16 (depends on 15)

The apparatus of claim 15, wherein the compressed data comprises a header and one or more data frames; wherein the header stores one or more characteristics of the space filling curve, the tree structure, or a combination thereof; and wherein the one or more data frames store the data associated with the data-containing bins.

### Claim 17

A non-transitory computer-readable storage medium carrying one or more sequences of one or more instructions which, when executed by one or more processors, cause an apparatus to perform:
processing a sparse matrix by applying a compression criterion to classify one or more elements of the sparse matrix as either data-containing elements or empty elements;
establishing a space filling curve over the plurality of elements, wherein the space filling curve linearizes the plurality of elements according to a placement order;
storing the data-containing bins of the plurality of bins in a compressed data structure based on the placement order; and
providing the compressed data structure as an output.

### Claim 18 (depends on 17)

The non-transitory computer-readable storage medium of claim 17, wherein the compressed data structure is indexed based on a tree structure comprising one or more spatial clusters of the plurality of bins.

### Claim 19 (depends on 18)

The non-transitory computer-readable storage medium of claim 18, wherein the compressed data comprises a header and one or more data frames; wherein the header stores one or more characteristics of the space filling curve, the tree structure, or a combination thereof; and wherein the one or more data frames store data associated with the data-containing bins.

### Claim 20 (depends on 17)

The non-transitory computer-readable storage medium of claim 17, wherein the space filling curve comprises one or more curve levels respectively corresponding to one or more tree levels of the tree structure.
