# US 2022/0284309 A1 · Aligning knowledge graphs using subgraph typing

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

- Number: US 2022/0284309 A1
- Document ID: US20220284309A1
- Status: Published application
- Kind: A1
- Application number: 17/191,518
- Filed: 2021-03-03
- Published: 2022-09-08
- Earliest claimed: 2021-03-03
- Assignees: Robert Bosch GmbH
- Applicants: Robert Bosch GmbH
- Inventors: HyeongSik Kim
- Web page: https://patentgrep.com/patent/US20220284309A1

## CPC

- G06N 5/02: Knowledge representation; Symbolic representation
- G06F 18/214: Generating training patterns; Bootstrap methods, e.g. bagging or boosting
- G06F 18/22: Matching criteria, e.g. proximity measures
- G06F 18/25: Fusion techniques
- G06F 18/29: {Graphical models, e.g. Bayesian networks}
- G06N 20/00: Machine learning
- G06F 18/295: {Markov models or related models, e.g. semi-Markov models; Markov random fields; Networks embedding Markov models}
- G06N 5/022: Knowledge engineering; Knowledge acquisition
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Systems and methods for aligning knowledge graphs. A subgraph type is assigned to each node of a plurality of nodes in a first knowledge graph and a second knowledge graph. The assigned subgraph type for each node is determined based on the labels of a plurality of edges and/or other nodes coupled to the node in the knowledge graph. An initial matching is performed to identify a plurality of candidate node-node pairs each including one node from each knowledge graph. A candidate node-node pair is identified as a valid node-node mapping based at least in part on a determination that the subgraph type combination of the candidate node-node pair matches a subgraph type combination of another candidate node-node pair that has previously been confirmed as a valid node-node mapping. In some implementations, a machine-learning model is trained to use the aligned knowledge graphs.

## Claims

### Claim 1

A computer-based method for aligning knowledge graphs, the method comprising:
assigning, by an electronic controller, a subgraph type to each node of a plurality of nodes in a first knowledge graph and a second knowledge graph, wherein the first knowledge graph and the second knowledge graph each include a plurality of nodes each coupled to one or more other nodes by a plurality of edges, wherein the assigned subgraph type to a node is defined by at least one selected from a group consisting of a set of labels of one or more edges extending from the node and a set of labels of other nodes to which the node is coupled;
performing, by the electronic controller, an initial matching to the first knowledge graph and the second knowledge graph to identify a plurality of candidate node-node pairs, wherein each candidate node-node pair of the plurality of candidate node-node pairs includes a node from the first knowledge graph and a node from the second knowledge graph;
identifying a first candidate node-node pair as a first valid node-node mapping; and
identifying a second candidate node-node pair as a second valid node-node mapping based at least in part on a determination that a subgraph type combination of the second candidate node-node pair matches a subgraph type combination of the first candidate node-node pair, wherein the subgraph type combination of a candidate node-node pair includes the subgraph type assigned to the node from the first knowledge graph and the subgraph type assigned to the node from the second knowledge graph in the candidate node-node pair.

### Claim 2 (depends on 1)

The method of claim 1, wherein assigning the subgraph type to each node of the plurality of nodes includes:
identifying, for each node of the plurality nodes, the labels of each edge extending directly from the node; and
defining the subgraph type of the node as a set including the labels of each edge extending directly from the node.

### Claim 3 (depends on 1)

The method of claim 1, wherein assigning the subgraph type to each node of the plurality of nodes includes:
identifying, for each node of the plurality of nodes, the labels of each other node that is coupled to the node within a distance of one edge from the node; and
defining the subgraph type of the node as a set including the labels of each other node that is coupled to the node within the distance of one edge from the node.

### Claim 4 (depends on 1)

The method of claim 1, wherein performing the initial matching includes:
identifying a label associated with a target node in the first knowledge graph;
applying a string matching to identify all nodes in the second knowledge graph with a label matching the label associated with the target node; and
identifying the target node in the first knowledge graph and each identified node in the second knowledge graph each as a separate candidate node-node pair.

### Claim 5 (depends on 4)

The method of claim 4, wherein identifying the first candidate node-node pair as the first valid node-node mapping includes:
assigning a confidence score to each candidate node-node pair of the plurality of candidate node-node pairs, wherein the assigned confidence score is based at least in part on a number of other nodes from the second knowledge graph to which the target node is matched by the string matching; and
identifying the first candidate node-node pair as the first valid node-node mapping in response to determining that the confidence score assigned to the first candidate node-node pair exceeds a threshold.

### Claim 6 (depends on 5)

The method of claim 5, wherein assigning the confidence score to each candidate node-node pair includes assigning a confidence score value that exceeds the threshold in response to determining that the target node from the first knowledge graph is matched with only one node from the second knowledge graph.

### Claim 7 (depends on 5)

The method of claim 5, wherein assigning the confidence score to each candidate node-node pair includes assigning the confidence score based at least in part on a degree of similarity between the labels of the nodes in the candidate node-node pair.

### Claim 8 (depends on 5)

The method of claim 5, wherein identifying a second candidate node-node pair as a second valid node-node mapping includes assigning an initial confidence score to the second node-node pair after performing the initial matching, wherein the initial confidence score does not exceed the threshold;
assigning an adjusted confidence score to the second node-node pair in response to determining that the subgraph type combination of the second candidate node-node pair matches the subgraph type combination of the first candidate node-node pair, wherein assigning the adjusted confidence score includes increasing the initial confidence score; and
identifying the second candidate node-node pair as the second valid node-node mapping in response to determining that the adjusted confidence score assigned to the second node-node pair exceeds the threshold.

### Claim 9 (depends on 5)

The method of claim 5, further comprising:
maintaining a type-type index including a listing of subgraph type combinations for each candidate node-node pair of the plurality of candidate node-node pairs that has been identified as a valid node-node mapping;
increasing the confidence score assigned to a third candidate node-node pair in response to determining that a subgraph type combination of the third candidate node-node pair is included in the type-type index; and
decreasing the confidence score assigned to a fourth candidate node-node pair in response to determining that a subgraph type combination of the fourth candidate node-node pair is not included in the type-type index.

### Claim 10 (depends on 1)

The method of claim 1, further comprising:
maintaining a type-type index including a listing of subgraph type combinations for each candidate node-node pair of the plurality of candidate node-node pairs that has been identified as a valid node-node mapping; and
identifying a third candidate node-node pair as not a valid node-node mapping based at least in part on a determination that a subgraph type combination of the third candidate node-node pair is not included in the type-type index,
wherein identifying the second candidate node-node pair as the second valid node-node mapping includes identifying the second candidate node-node pair as the second valid node-node mapping based at least in part on a determination that the subgraph type combination of the second candidate node-node pair is included in the type-type index.

### Claim 11 (depends on 1)

The method of claim 1, further comprising
assigning a confidence score to each candidate node-node pair of the plurality of candidate node-node pairs, wherein the assigned confidence score is determined based at least in part on a degree of similarity between the nodes, and wherein the confidence score is indicative of a probability that the candidate node-node pair is a valid node-node mapping; and
adjusting the confidence score of a candidate node-node pair based at least in part on a degree of similarity between the subgraph type combination of the candidate node-node pair and a subgraph type combination of another candidate node-node pair that has been identified as a valid node-node mapping.

### Claim 12 (depends on 1)

The method of claim 1, further comprising:
identifying a plurality of valid node-node mappings, wherein each valid node-node mapping identifies a node from the first knowledge graph and a node from the second knowledge graph that both represent a same real-world entity; and
producing as output an aligned knowledge graph based on the plurality of valid node-node mappings.
a number of other nodes from the second knowledge graph to which the target node is matched by the string matching; and
identifying the first candidate node-node pair as the first valid node-node mapping in response to determining that the confidence score assigned to the first candidate node-node pair exceeds a threshold.

### Claim 13 (depends on 1)

The method of claim 1, wherein each node of the plurality of nodes in the first knowledge graph and the second knowledge graph represents a real-world entity, wherein each other node to which the node is coupled represents a descriptive feature of the real-world entity, and wherein each edge includes a directional labeled edge identifying the type of descriptive feature of the other node coupled to the node by the directional labeled edge.

### Claim 14 (depends on 13)

The method of claim 13, wherein the real-world entity represented by each node of the plurality of nodes in the first knowledge graph and the second knowledge graph includes at least one selected from a group consisting of a city, a location, a country, a movie, and a family name.

### Claim 15 (depends on 1)

A method of training a machine-learning model, the method comprising:
aligning at least two knowledge graphs using the method of claim 1; and
training the machine-learning model to use the aligned knowledge graphs.

### Claim 16 (depends on 10)

The method of claim 10, wherein training the machine-learning model to use the aligned knowledge graphs includes training the machine-learning model to receive as input a natural language inquiry and to produce as output a natural language response, wherein the natural language response is determined using the aligned knowledge graphs.

### Claim 17 (depends on 16)

A system for natural language inquiry processing, the system including:
an input device;
an output device; and
a controller configured to
receive a natural language inquiry through the input device,
providing the natural language inquiry as input to a machine-learning model trained by the method of claim 16, and
generating an output through the output device, wherein the output includes a response to the natural language query and is generated based on the output of the machine-learning model.

### Claim 18 (depends on 17)

The system of claim 17, wherein the input device includes at least one selected from a group consisting of a microphone and a keyboard.

### Claim 19 (depends on 17)

The system of claim 17, wherein the output device includes at least one selected from a group consisting of a speaker and a display screen.
