# US 2020/0394557 A1 · Systems and methods for machine classification and learning that is robust to unknown inputs

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

- Number: US 2020/0394557 A1
- Document ID: US20200394557A1
- Status: Published application
- Kind: A1
- Application number: 16/442,469
- Filed: 2019-06-15
- Published: 2020-12-17
- Earliest claimed: 2019-06-15
- Assignees: Terrance Boult
- Inventors: Terrance E Boult; Akshay Raj Dhamija; Manuel Günther
- Web page: https://patentgrep.com/patent/US20200394557A1

## CPC

- G06F 16/906: Clustering; Classification
- G06F 16/285: {Clustering or classification}
- G06F 18/217: {Validation; Performance evaluation; Active pattern learning techniques}
- G06F 18/22: Matching criteria, e.g. proximity measures
- 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
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/08: Learning methods
- G06N 3/09: Supervised learning
- G06N 20/00: Machine learning
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

The invention includes systems and methods, including computer programs encoded on computer storage media, for classifying inputs as belonging to a known or unknown class as well as for updating the system to improve is performance. In one system, there is a desired feature representation for unknown inputs, e.g., a zero vector, and the system includes transforming input data to produce a feature representation, using that to compute dissimilarity with the desired feature representation for unknown inputs and combining dissimilarity with other transformations of the feature representation to determine if the input is from a specific known class or if it is unknown. In one embodiment, the system transforms the magnitude of the feature representation into a confidence score. In an update method to improve performance, the system transforms inputs into feature representations which go through a scoring means and then use a robust loss function, which has different loss terms for known and unknown inputs which are then used to update the system weights to improve performance.

## Claims

### Claim 1

A method for transforming input data into a robust classification machine, wherein the transformation method includes the steps of:
a) receiving a plurality of known input data for two or more labeled classes of interest
b) receiving a plurality of unknown input data from classes other than the labeled classes of interest
c) transforming each input through a feature extraction means to produce a feature representation
d) a scoring means applied to the feature representation to determine a classification score for each class label
e) evaluating a robust loss function that separately has different loss terms for known input data and for unknown input data
f) updating the feature extraction means to reduce the robust loss function

### Claim 2 (depends on 1)

The method of claim 1 wherein
a) the robust loss function includes a term for a known input data being incorrectly classified
b) the robust loss function includes a term for an unknown input data having unequal class label scores

### Claim 3 (depends on 2)

The method of claim 2, wherein the robust loss function include the following:
J
E

(
x
)

{
-
log


S
c

(
x
)
if


x
∈

c
′

,

i
.
e
.
,
the


input


is



from



known



class


c
-

1
C

∑
c
=
1
C

log

S
c

(
x
)
if


x
∈

b
′

,

i
.
e
.
,
the


input


is


not



from


a



known



class
(
4
)
where x in the input, and given known classes c∈{1, . . . , C} Sc(x) is the standard classification score for class c

### Claim 4 (depends on 3)

The method of claim 3, wherein the classification score includes a softmax score
S
c

(
x
)
=
e
l
c

(
x
)
∑
c
′

e
l
c
′

(
x
)
,
where lc(x) represents the log it value for class c.

### Claim 5 (depends on 1)

The method of claim 1 wherein
a) The robust loss function includes the desired representation of unknown inputs, du.
b) The robust loss function includes a term for an unknown input's feature representation being dissimilar from said desired representation of unknown inputs.
c) The robust loss function includes a term for a known input's feature representation being too similar to said desired representation of unknown inputs.

### Claim 6 (depends on 5)

The method of claim 5 wherein the robust loss function includes:
J
R

(
x
)
=
{
max

(
ξ
-

F

(
x
-
d
u
)

,
0
)
2
if


x


is



from



known



class



c


F

(
x
-
d
u
)

2
if


x


is


not



from


a



known



class
(
5
)
where x in the input, F(x) is the deep feature representation within the network for input x, du is the desired location of unknowns in the space of the deep feature representation, ∥⋅∥ is a distance measure on the space of deep feature representations, and ξ represents a minimum distance of known inputs from the desired location of the unknowns.

### Claim 7

A system to perform classification that is robust to unknown inputs comprising:
a) an input means for receiving input data
b) the desired feature representation for unknown inputs, du
c) feature extraction means that transforms each input x to produce the feature representation F(x)
d) comparison means for computing the dissimilarity between said feature representation F(x) and the desired feature representation for unknown inputs du
e) a robust classification means that combines said dissimilarity with at least one other function of the feature representation to determine if input x is from a specific known class or is from an unknown class.

### Claim 8 (depends on 7)

The system of claim 7 wherein
a) at least one other function of the feature representation includes a softmax score
S
c

(
x
)
=
e
l
c

(
x
)
∑
c
′

e
l
c
′

(
x
)
,
where lc(x) represents the log it value for class c
b) the desired location for the representation of unknown inputs is the origin in the space of log it values.

### Claim 9 (depends on 7)

The system of claim 7 wherein each known classes c∈{1, . . . , C} has its own desired feature representation di, and the classification uses similarity to di and dissimilarity to du.

### Claim 10 (depends on 7)

The system of claim 7 wherein the system improves its performance by including the steps of:
a) receiving either known input data from a labeled class of interest or an unknown input data from a class other than the labeled classes of interest
b) evaluating a robust loss function that separately penalizes known input data and unknown input data
c) updating the feature extraction means to reduce the robust loss function

### Claim 11 (depends on 10)

The system of claim 10 wherein the robust loss function includes a term:
J
E

(
x
)
=
{
-
log


S
c

(
x
)
if


is


x


from



known



class



c

-

1
C

∑
c
=
1
C

log

S
c

(
x
)
if


is


x


not



from



a


known



class
(
6
)
where x in the input, and given known classes c∈{1, . . . , C} Sc(x) is the standard classification score for class c

### Claim 12 (depends on 10)

The method of claim 10 wherein
a) the robust loss function includes the desired representation of unknown inputs.
b) the robust loss function includes a term for an unknown input's feature representation being too far from said desired location
c) the robust loss function includes a term for a known input's feature representation being too close to said desired location

### Claim 13 (depends on 12)

The method of claim 12 wherein the robust loss function includes the following:
J
R

(
x
)
=
{
max

(
ξ
-

F

(
x
-
d
u
)

,
0
)
2
if


x


is



from


a



known



class


F

(
x
-
d
u
)

2
if


x


is


not



from


a



known



class
(
7
)
where x in the input, F(x) is the deep feature representation input x, du is the desired location of unknowns in the space of the deep feature representation, ∥⋅∥ is a distance measure on the space of deep feature representations, and ξ represents a minimum distance of known inputs from the desired location of the unknowns.

### Claim 14 (depends on 12)

The method of claim 12 wherein the magnitude ∥F(x)−du∥ estimates confidence of classification which is obtained by having the robust loss function include the following:
J
R

(
x
)
=
{
max

(
ξ
+
C

(
x
)
-

F

(
x
-
d
u
)

,
0
)
2
if


x


is



from


a



known



class


F

(
x
-
d
u
)

2
if


x


is


not



from


a



known



class
(
8
)
where x in the input, F(x) is the deep feature representation input x, du is the desired location of unknowns in the space of the deep feature representation, ∥⋅∥ is a distance measure on the space of deep feature representations, ξ represents a minimum distance of known inputs from the desired location of the unknowns, and C(x) is the confidence of input x.

### Claim 15

A system for classification that is robust to unknown inputs, comprising:
a) a non-transitory computer storage media storing computer-useable instructions that, when used by a computing device causes the computing device to transform input data into classification results whereby the one or more processors perform the operations of:
i. receiving an input data x
ii. storing/retrieving the desired representation of an unknown input (du).
iii. transforming the input x into a feature representation F(x)
iv. transforming the feature representation of the input to a score for at least one known class
v. computing the dissimilarity between the feature representation of the input and the desired representation of an unknown input du
vi. combining said dissimilarity with the score for at least one known class to determine if the input is from a known class or an unknown class.

### Claim 16 (depends on 15)

The system of claim 15 wherein each known classes c∈{1, . . . , C} has its own desired feature representation di, and the classification uses similarity to di and dissimilarity to du.

### Claim 17 (depends on 15)

The system of claim 15 wherein the system improves its performance by including the steps of:
a) receiving either known input data from a labeled class of interest or an unknown input data from a class other than the labeled classes of interest
b) evaluating a robust loss function that separately penalizes known input data and unknown input data
c) updating the feature extraction means to reduce the robust loss function

### Claim 18 (depends on 17)

The system of claim 17 wherein the robust loss function includes a term:
J
E

(
x
)
=
{
-
log


S
c

(
x
)
if


x


is


from



known



class


c

-

1
C

∑
c
=
1
C

log

S
c

(
x
)
if


x


is


not



from



a


known



class
(
9
)
where x in the input, and given known classes c∈{1, . . . , C} Sc(x) is the standard classification score for class c

### Claim 19 (depends on 17)

The system of claim 17 wherein
a) the robust loss function includes the desired representation of unknown inputs.
b) the robust loss function includes a term for an unknown input's feature representation being too far from said desired location
c) the robust loss function includes a term for a known input's feature representation being too close to said desired location

### Claim 20 (depends on 19)

The system of claim 19 wherein
a) The robust loss function includes the following:
J
R

(
x
)
=
{
max

(
ξ
+
C

(
x
)
-

F

(
x
-
d
u
)

,
0
)
2
if


is



from


a



known



class


F

(
x
-
d
u
)

2
if


is


not



from


a



known



class
(
10
)
where x is the input, F(x) is the deep feature representation of input x, du is the desired location of unknowns in the space of the deep feature representation, ∥⋅∥ is a distance measure on the space of deep feature representations, ξ represents a minimum distance of known inputs from the desired location of the unknowns, and C(x) is the confidence measure for input x.
b) whereby the one or more processors compute the magnitude ∥F(x)−du∥ to provide an estimate confidence that the input is from a known class,
