# US 2021/0287129 A1 · Identifying entities absent from training data using 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/0287129 A1
- Document ID: US20210287129A1
- Status: Published application
- Kind: A1
- Application number: 16/813,948
- Filed: 2020-03-10
- Published: 2021-09-16
- Earliest claimed: 2020-03-10
- Assignees: Sap SE
- Applicants: Sap SE
- Inventors: Sean Saito; Auguste Byiringiro
- Web page: https://patentgrep.com/patent/US20210287129A1

## CPC

- G06N 3/08: Learning methods
- G06N 20/00: Machine learning
- G06N 3/045: Combinations of networks
- G06N 3/048: Activation functions
- G06N 3/0499: Feedforward networks
- G06N 3/09: Supervised learning
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Methods, systems, and computer-readable storage media for a machine learning (ML) model and framework for training of the ML model to enable the ML model to correctly match entities even in instances where new entities are added after the ML model has been trained. More particularly, implementations of the present disclosure are directed to a ML model provided as a neural network that is trained to provide a scalar confidence score that indicates whether two entities in a pair of entities are considered a match, even if an entity in the set of entities was not accounted for in training of the ML model.

## Claims

### Claim 1

A computer-implemented method for determining whether entities in a pair of entities match one another using a machine learning (ML) model, the method being executed by one or more processors and comprising:
training a ML model using training data comprising a first set of entities and a second set of entities;
defining an entity pair comprising a first entity and a second entity, the first entity being associated with first data representing the first entity and the second entity being associated with second data representing the second entity, the second entity being absent from the training data used to train the ML model using one-shot learning;
providing a first entity string comprising at least a portion of the first data and a second entity string comprising at least a portion of the second data;
processing the first entity string and the second entity string through a ML model to generate a scalar confidence score by:
providing, by an embedding layer of the ML model, a first embedding based on the first entity string and a second embedding based on the second entity string,
generating, by a decomposable attention layer of the ML model, a vector based on the first embedding and the second embedding, and
generating, by an activation layer of the ML model, the scalar confidence score, the scalar confidence score representing a likelihood that the first entity matches the second entity; and
determining that the first entity matches the second entity based on the scalar confidence score.

### Claim 2 (depends on 1)

The method of claim 1, wherein the second entity string comprises a concatenation of a first value of a first field and a second value of a second field of a table that stores the second data, each of the first value and the second value comprising a respective portion of the second data.

### Claim 3 (depends on 2)

The method of claim 2, wherein the second entity string further comprises at least one padding character between the first value and the second value.

### Claim 4 (depends on 1)

The method of claim 1, wherein the ML model is trained using a binary cross-entropy loss function.

### Claim 5 (depends on 1)

The method of claim 1, wherein the activation layer comprises a sigmoid activation function.

### Claim 6 (depends on 1)

The method of claim 1, further comprising generating a set of negative training data, wherein training of the ML model is performed at least partially based on the set of negative training data.

### Claim 7 (depends on 1)

The method of claim 1, wherein the first entity comprises a bank statement and the second entity comprises a customer account.

### Claim 8

A non-transitory computer-readable storage medium coupled to one or more processors and having instructions stored thereon which, when executed by the one or more processors, cause the one or more processors to perform operations for determining whether entities in a pair of entities match one another using a machine learning (ML) model, the operations comprising:
training a ML model using training data comprising a first set of entities and a second set of entities;
defining an entity pair comprising a first entity and a second entity, the first entity being associated with first data representing the first entity and the second entity being associated with second data representing the second entity, the second entity being absent from the training data used to train the ML model using one-shot learning;
providing a first entity string comprising at least a portion of the first data and a second entity string comprising at least a portion of the second data;
processing the first entity string and the second entity string through a ML model to generate a scalar confidence score by:
providing, by an embedding layer of the ML model, a first embedding based on the first entity string and a second embedding based on the second entity string,
generating, by a decomposable attention layer of the ML model, a vector based on the first embedding and the second embedding, and
generating, by an activation layer of the ML model, the scalar confidence score, the scalar confidence score representing a likelihood that the first entity matches the second entity; and
determining that the first entity matches the second entity based on the scalar confidence score.

### Claim 9 (depends on 8)

The computer-readable storage medium of claim 8, wherein the second entity string comprises a concatenation of a first value of a first field and a second value of a second field of a table that stores the second data, each of the first value and the second value comprising a respective portion of the second data.

### Claim 10 (depends on 9)

The computer-readable storage medium of claim 9, wherein the second entity string further comprises at least one padding character between the first value and the second value.

### Claim 11 (depends on 8)

The computer-readable storage medium of claim 8, wherein the ML model is trained using a binary cross-entropy loss function.

### Claim 12 (depends on 8)

The computer-readable storage medium of claim 8, wherein the activation layer comprises a sigmoid activation function.

### Claim 13 (depends on 8)

The computer-readable storage medium of claim 8, wherein operations further comprise generating a set of negative training data, wherein training of the ML model is performed at least partially based on the set of negative training data.

### Claim 14 (depends on 8)

The computer-readable storage medium of claim 8, wherein the first entity comprises a bank statement and the second entity comprises a customer account.

### Claim 15

A system, comprising:
a computing device; and
a computer-readable storage device coupled to the computing device and having instructions stored thereon which, when executed by the computing device, cause the computing device to perform operations for natural language explanations for determining whether entities in a pair of entities match one another using a machine learning (ML) model, the operations comprising:
training a ML model using training data comprising a first set of entities and a second set of entities;
defining an entity pair comprising a first entity and a second entity, the first entity being associated with first data representing the first entity and the second entity being associated with second data representing the second entity, the second entity being absent from the training data used to train the ML model using one-shot learning;
providing a first entity string comprising at least a portion of the first data and a second entity string comprising at least a portion of the second data;
processing the first entity string and the second entity string through a ML model to generate a scalar confidence score by:
providing, by an embedding layer of the ML model, a first embedding based on the first entity string and a second embedding based on the second entity string,
generating, by a decomposable attention layer of the ML model, a vector based on the first embedding and the second embedding, and
generating, by an activation layer of the ML model, the scalar confidence score, the scalar confidence score representing a likelihood that the first entity matches the second entity; and
determining that the first entity matches the second entity based on the scalar confidence score.

### Claim 16 (depends on 15)

The system of claim 15, wherein the second entity string comprises a concatenation of a first value of a first field and a second value of a second field of a table that stores the second data, each of the first value and the second value comprising a respective portion of the second data.

### Claim 17 (depends on 16)

The system of claim 16, wherein the second entity string further comprises at least one padding character between the first value and the second value.

### Claim 18 (depends on 15)

The system of claim 15, wherein the ML model is trained using a binary cross-entropy loss function.

### Claim 19 (depends on 15)

The system of claim 15, wherein the activation layer comprises a sigmoid activation function.

### Claim 20 (depends on 15)

The system of claim 15, wherein operations further comprise generating a set of negative training data, wherein training of the ML model is performed at least partially based on the set of negative training data.
