# US 2021/0174108 A1 · Hardware-accelerated operation of artificial neural networks

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

- Number: US 2021/0174108 A1
- Document ID: US20210174108A1
- Status: Published application
- Kind: A1
- Application number: 17/103,705
- Filed: 2020-11-24
- Published: 2021-06-10
- Earliest claimed: 2019-12-05
- Assignees: Robert Bosch GmbH
- Applicants: Robert Bosch GmbH
- Inventors: Pia Petrizio; Rolf Michael Koehler
- Web page: https://patentgrep.com/patent/US20210174108A1

## CPC

- G06N 3/063: using electronic means
- G06F 18/2193: {based on specific statistical tests}
- G06F 18/24133: {Distances to prototypes}
- G06F 18/2415: based on parametric or probabilistic models, e.g. based on likelihood ratio or false acceptance rate versus a false rejection rate
- G06F 18/2431: Multiple classes
- G06N 3/04: Architecture, e.g. interconnection topology
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/048: Activation functions
- G06N 3/09: Supervised learning
- G06V 10/95: {structured as a network, e.g. client-server architectures}
- G06V 20/58: Recognition of moving objects or obstacles, e.g. vehicles or pedestrians; Recognition of traffic objects, e.g. traffic signs, traffic lights or roads
- G06V 20/582: {of traffic signs}
- G06V 20/588: {Recognition of the road, e.g. of lane markings; Recognition of the vehicle driving pattern in relation to the road}
- G06V 20/698: {Matching; Classification}
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

A method for operating an artificial neural network (ANN) on a hardware platform. The ANN is designed to ascertain confidences with which input data are to be assigned to N discrete classes. The hardware platform includes a dedicated unit which forms from a list of M>N confidences expanded confidences by encoding into each confidence an identification number of its place in the list, and numerically sorts the expanded confidences. The unit is fed confidences 1, . . . , M−N, which have the minimal representable value, and confidences M−N+1, . . . , M, which correspond to the N discrete classes, and/or it is ensured that those confidences fed to the unit that correspond to one of the N discrete classes have a value higher than the minimal representable value. A ranking of the classes ordered according to confidences, to which the input data are to be assigned, is ascertained from the first N of the numerically sorted expanded confidences.

## Claims

### Claim at position 1

1-15. (canceled)

### Claim 16

A method for operating an artificial neural network (ANN), on a hardware platform, the ANN being configured to ascertain confidences with which input data are to be assigned to N discrete classes, and the hardware platform including a dedicated unit, the method comprising the following steps:
forming, by the dedicated unit, from a list of M>N confidences, expanded confidences by encoding into each of the M confidences an identification number of its place in the list;
numerically sorting the expanded confidences by the dedicated unit;
(i) feeding to the dedicated unit confidences 1, . . . , M−N, which have a minimal representable value, and as confidences M−N+1, . . . , M, which correspond to the N discrete classes; and/or (ii) ensuring those confidences fed to the dedicated unit that correspond to one of the N discrete classes have a value higher than the minimal representable value; and
ascertaining a ranking of the classes ordered according to confidences to which the input data are to be assigned from a first N of the numerically sorted expanded confidences.

### Claim 17 (depends on 16)

The method as recited in claim 16, wherein the dedicated unit is configured to encode into the lowest value bits of a binary representation of each of the M confidences in the list the identification number of the place of the confidence in the list.

### Claim 18 (depends on 16)

The method as recited in claim 16, wherein at least one processing layer of the ANN is adapted to output the confidences 1, . . . , M−N, which have the minimal representable value, and the confidences M−N+1, . . . , M which correspond to the N discrete classes.

### Claim 19 (depends on 18)

The method as recited in claim 18, wherein the at least one processing layer of the ANN is a convolution layer, which applies filters characterized by filter parameters to the input of the processing layer, and the adaptation of the processing layer includes setting filter parameters, which characterize filters affecting the confidences 1, . . . , M−N, to zero.

### Claim 20 (depends on 19)

The method as recited in claim 19, wherein the adaptation of the processing layer further includes setting an output obtained after applying the filters including the filter parameters set to zero to the minimal representable value by applying a constant offset.

### Claim 21 (depends on 18)

The method as recited in claim 18, wherein the adaptation of the processing layer includes setting parts of its input, on which the confidences 1, . . . , M−N depend, to the minimal representable value.

### Claim 22 (depends on 16)

The method as recited in claim 16, wherein at least one processing layer of the ANN is adapted to the effect that, with respect to the N discrete classes, the processing layer outputs exclusively confidences that are higher than the minimal representable value.

### Claim 23 (depends on 22)

The method as recited in claim 22, wherein the adaptation of the processing layer includes adapting activation functions of neurons or of other processing units in such a way that the activation functions output only values higher than the minimal representable value.

### Claim 24 (depends on 23)

The method as recited in claim 23, wherein at least one activation function in the processing layer is replaced by a rectifying function.

### Claim 25 (depends on 16)

The method as recited in claim 16, wherein a hardware platform is selected which, in addition to the dedicated unit, includes at least one arithmetic unit situated together with the dedicated unit in a shared integrated circuit for performing the function of at least one processing layer of the ANN.

### Claim 26 (depends on 16)

The method as recited in claim 16, wherein physical measured data that have been detected using at least one sensor are input into the ANN and the discrete classes represent:
traffic signs, and/or other road users, and/or roadway boundaries and/or other objects, whose presence may necessitate an adaptation of a behavior of a vehicle carrying the sensor; and/or
different semantic meanings of the measured data with respect to a processing of speech recorded using the sensor; and/or
different levels of quality of serially manufactured products, which are subjected to a quality control with using the sensor; and/or
different sources of noises, and/or different types of objects, whose emergence in an area monitored using the sensor may represent a safety-relevant event for the area;
and/or qualitatively different states of a biological sample examined using the sensor.

### Claim 27

A method, comprising the following steps:
providing a trained artificial neural network (ANN);
operating the ANN on a hardware platform to map physical measured data that have been detected using at least one sensor onto confidences, with which it assigns the measured data to N discrete classes, the hardware platform including a dedicated unit, the operating including:
forming, by the dedicated unit, from a list of M>N confidences, expanded confidences by encoding into each of the M confidences an identification number of its place in the list,
numerically sorting the expanded confidences by the dedicated unit,
(i) feeding to the dedicated unit confidences 1, . . . , M−N, which have a minimal representable value, and as confidences M−N+1, . . . , M, which correspond to the N discrete classes; and/or (ii) ensuring those confidences fed to the dedicated unit that correspond to one of the N discrete classes have a value higher than the minimal representable value; and
ascertaining a ranking of the classes ordered according to confidences to which the physical measured data are to be assigned from a first N of the numerically sorted expanded confidences;
assigning to the physical measured data the confidences from the first N of the numerically sorted expanded confidences;
processing the confidences assigned to the physical measured data and/or the ranking to form at least one activation signal; and
activating, using the activation signal, a vehicle, and/or a speech recognition system, and/or a system for quality control of serially manufactured products, and/or a system for monitoring an area, and/or a system for medical imaging.

### Claim 28

A non-transitory machine-readable data medium on which is stored a computer program for operating an artificial neural network (ANN), on a hardware platform, the ANN being configured to ascertain confidences with which input data are to be assigned to N discrete classes, and the hardware platform including a dedicated unit, the computer program, when executed by one or more computers, cause the one or more computers to perform the following steps:
forming, using the dedicated unit, from a list of M>N confidences, expanded confidences by encoding into each of the M confidences an identification number of its place in the list;
numerically sorting the expanded confidences using the dedicated unit;
(i) feeding to the dedicated unit confidences 1, . . . , M−N, which have a minimal representable value, and as confidences M−N+1, . . . , M, which correspond to the N discrete classes; and/or (ii) ensuring those confidences fed to the dedicated unit that correspond to one of the N discrete classes have a value higher than the minimal representable value; and
ascertaining a ranking of the classes ordered according to confidences to which the input data are to be assigned from a first N of the numerically sorted expanded confidences.

### Claim 29

A computer configured to operating an artificial neural network (ANN), on a hardware platform, the ANN being configured to ascertain confidences with which input data are to be assigned to N discrete classes, and the hardware platform including a dedicated unit, the computer configured to:
forming, using the dedicated unit, from a list of M>N confidences, expanded confidences by encoding into each of the M confidences an identification number of its place in the list;
numerically sorting the expanded confidences using the dedicated unit;
(i) feeding to the dedicated unit confidences 1, . . . , M−N, which have a minimal representable value, and as confidences M−N+1, . . . , M, which correspond to the N discrete classes; and/or (ii) ensuring those confidences fed to the dedicated unit that correspond to one of the N discrete classes have a value higher than the minimal representable value; and
ascertaining a ranking of the classes ordered according to confidences to which the input data are to be assigned from a first N of the numerically sorted expanded confidences.
