# US 2022/0284307 A1 · Decision tree native to graph database

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

- Number: US 2022/0284307 A1
- Document ID: US20220284307A1
- Status: Published application
- Kind: A1
- Application number: 17/193,432
- Filed: 2021-03-05
- Published: 2022-09-08
- Earliest claimed: 2021-03-05
- Assignees: Oracle Financial Services Software Limited
- Applicants: Oracle Financial Services Software Limited
- Inventors: Richard Anthony McQUEARY, III
- Web page: https://patentgrep.com/patent/US20220284307A1

## CPC

- G06N 5/01: Dynamic search techniques; Heuristics; Dynamic trees; Branch-and-bound
- G06N 5/022: Knowledge engineering; Knowledge acquisition
- G06F 16/9024: {Graphs; Linked lists (G06F16/9027 takes precedence)}
- G06N 3/126: Evolutionary algorithms, e.g. genetic algorithms or genetic programming
- G06N 5/04: Inference or reasoning models
- G06N 20/20: Ensemble learning
- G06Q 10/0635: Risk analysis of enterprise or organisation activities
- G06Q 30/0185: {Product, service or business identity fraud}
- G06Q 40/03: Credit; Loans; Processing thereof
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06Q: INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR

## Abstract

Systems, methods, and other embodiments associated with decision tree machine learning native to a graph database are described. In one embodiment, a method includes receiving an objective property value of a training graph for a graph-native decision tree to be trained to predict; determining feasible ranges of values from the training graph; automatically generating a graph query language grammar for graph-native decision trees based on the feasible ranges; progressively evolving output decision trees in a graph query language from the graph query language grammar to generate a final decision tree that accurately predicts the objective property value; and storing the final decision tree for subsequent execution against a target graph.

## Claims

### Claim 1

A non-transitory computer-readable medium that includes stored thereon computer-executable instructions that when executed by at least a processor of a computer cause the computer to:
receive an objective property value of a training graph for a graph-native decision tree to be trained to predict;
determine feasible ranges of values from the training graph;
automatically generate a graph query language grammar for graph-native decision trees based on the feasible ranges;
progressively evolve output decision trees in a graph query language from the graph query language grammar to generate a final decision tree that accurately predicts the objective property value; and
store the final decision tree for subsequent execution against a target graph.

### Claim 2 (depends on 1)

The non-transitory computer-readable medium of claim 1:
wherein the computer-executable instructions to determine feasible ranges of values further comprise instructions that cause the computer to:
determine a minimum and maximum value for each property of each edge and node in the training graph, and
determine an average number of edges connected to each node in the training graph; and
wherein the computer-executable instructions to automatically generate a graph query language grammar further comprise instructions to cause the computer to:
automatically write a base match structure for an average of the number of edges from a node into the grammar,
automatically write a node identifier structure for the number of nodes that can be connected by the average of the number of edges into the grammar, and
for each of the properties, automatically write a base where structure including the minimum and maximum values for the property.

### Claim 3 (depends on 1)

The non-transitory computer-readable medium of claim 1, wherein the instructions that cause the computer to progressively evolve decision trees to reach a final decision tree further cause the computer to:
produce an initial current generation set of genotypes of random bit series;
for each genotype in the current generation set
extract a block of bits from the genotype and parse the bits as an integer;
determine a remainder of the integer divided by a quantity of alternative structures for a nonterminal symbol in the graph query language grammar;
select one of the alternative structures based on the remainder;
generate an output decision tree by inserting into an output decision tree
terminal symbols of the selected alternative structure, and
terminal symbols identified by resolving the non-terminal symbols as indicated by the genotype,
in the order that the terminal and nonterminal symbols appear in the selected alternative structure;
execute the output decision tree on the training graph;
evaluate the fitness of the output decision tree; and
rank the output decision trees for each genotype in the current generation set by fitness.

### Claim 4 (depends on 3)

The non-transitory computer-readable medium of claim 3, wherein the instructions that cause the computer to progressively evolve decision trees to reach a final decision tree further cause the computer to:
add genotypes of a top-ranked subset of the output decision trees to a next generation set;
discard genotypes of a bottom-ranked subset of the output decision trees;
randomly flip a bit of each genotype of a middle-ranked subset of the output decision trees and add the modified genotype to the next generation set;
repeat randomly flipping a bit of each genotype of the top-ranked group of output decision trees and adding the modified genotype to the next generation set until the next generation set is the same size as the current generation set; and
in response to reaching a final generation set, promote one of the top-ranked subset of output decision trees of the final generation to be the final decision tree.

### Claim 5 (depends on 1)

The non-transitory computer-readable medium of claim 1, wherein the objective property value is a label of an edge of the training graph.

### Claim 6 (depends on 1)

The non-transitory computer-readable medium of claim 1, wherein the final decision tree is stored in a set of decision trees that together make up a random decision forest.

### Claim 7 (depends on 1)

The non-transitory computer-readable medium of claim 1, wherein the instructions further cause the computer to execute the final decision tree against the target graph to predict a property of the target graph.

### Claim 8

A computer-implemented method comprising:
receiving an objective property value of a training graph for a graph-native decision tree to be trained to predict;
determining feasible ranges of values from the training graph;
automatically generating a graph query language grammar for graph-native decision trees based on the feasible ranges;
progressively evolving output decision trees in a graph query language from the graph query language grammar to generate a final decision tree that accurately predicts the objective property value; and
storing the final decision tree for subsequent execution against a target graph.

### Claim 9 (depends on 8)

The computer-implemented method of claim 8:
wherein the determination of the feasible ranges of values further comprises:
determining a minimum and maximum value for each property of each edge and node in the training graph, and
determining an average number of edges connected to each node in the training graph; and
wherein the generation of the graph query language grammar further comprises:
automatically writing a base match structure for an average of the number of edges from a node into the grammar,
automatically writing a node identifier structure for the number of nodes that can be connected by the average of the number of edges into the grammar, and
for each of the properties, automatically writing a base where structure including the minimum and maximum values for the property.

### Claim 10 (depends on 8)

The computer-implemented method of claim 8, further comprising:
producing an initial generation set of genotypes of random bit series;
for each genotype in the initial generation set
extracting a block of bits from the genotype and parse the bits as an integer;
determining a remainder of the integer divided by a quantity of alternative structures for a nonterminal symbol in the graph query language grammar;
selecting one of the alternative structures based on the remainder;
generating an output decision tree by inserting into the output decision tree
the terminal symbols of the selected alternative structure, and
the terminal symbols identified by resolving the non-terminal symbols as indicated by the genotype
in the order that the terminal and nonterminal symbols appear in the selected alternative structure;
executing the output decision tree on the training graph;
evaluating the fitness of the output decision tree; and
ranking the output decision trees for each genotype in the initial generation set by fitness.

### Claim 11 (depends on 10)

The computer-implemented method of claim 10, further comprising:
adding genotypes of a top-ranked subset of the output decision trees to a next generation set;
discarding genotypes of a bottom-ranked subset of the output decision trees;
randomly flipping a bit of each genotype of a middle-ranked subset of the output decision trees and add the modified genotype to the next generation set;
repeating randomly flipping a bit of each genotype of the top-ranked group of output decision trees and adding the modified genotype to the next generation set until the next generation set is the same size as the initial generation set; and
in response to reaching a final generation set, promoting one of the top-ranked subset of output decision trees of the final generation to be the final decision tree.

### Claim 12 (depends on 11)

The computer-implemented method of claim 11, further comprising:
presenting the top-ranked subset of output decision trees of the final generation on a GUI for review; and
accepting a user input indicating a selection of the one of the top-ranked subset for promotion.

### Claim 13 (depends on 8)

The computer-implemented method of claim 8, wherein the objective property value is a label of a node of the training graph.

### Claim 14 (depends on 8)

The computer-implemented method of claim 8, wherein the depth of traversal of paths in the training graph is arbitrary during the progressive evolution of the output decision trees.

### Claim 15

A computing system comprising:
a processor;
a memory operably connected to the processor;
a non-transitory computer-readable medium operably connected to the processor and memory and storing computer-executable instructions that when executed by at least a processor of a computer cause the computer to:
receive an objective property value of a training graph for a graph-native decision tree to be trained to predict;
determine feasible ranges of values from the training graph;
automatically generate a graph query language grammar for graph-native decision trees based on the feasible ranges;
progressively evolve output decision trees in a graph query language from the graph query language grammar to generate a final decision tree that accurately predicts the objective property value; and
store the final decision tree for subsequent execution against a target graph.

### Claim 16 (depends on 15)

The computing system of claim 15,
wherein the computer-executable instructions to determine feasible ranges of values further comprise instructions that cause the computer to:
determine a minimum and maximum value for each property of each edge and node in the training graph, and
determine an average number of edges connected to each node in the training graph; and
wherein the computer-executable instructions to automatically generate a graph query language grammar further comprise instructions to cause the computer to:
automatically write a base match structure for an average of the number of edges from a node into the grammar,
automatically write a node identifier structure for the number of nodes that can be connected by the average of the number of edges into the grammar, and
for each of the properties, automatically write a base where structure including the minimum and maximum values for the property.

### Claim 17 (depends on 15)

The computing system of claim 15, wherein the computer-executable instructions further cause the computer to:
produce an initial generation set of genotypes of random bit series;
for each genotype in the initial generation set
extract a block of bits from the genotype and parse the bits as an integer;
determine a remainder of the integer divided by a quantity of alternative structures for a nonterminal symbol in the graph query language grammar;
select one of the alternative structures based on the remainder;
generate an output decision tree by inserting into the output decision tree
the terminal symbols of the selected alternative structure, and
the terminal symbols identified by resolving the non-terminal symbols as indicated by the genotype
in the order that the terminal and nonterminal symbols appear in the selected alternative structure;
execute the output decision tree on the training graph;
evaluate the fitness of the output decision tree;
rank the output decision trees for each genotype in the initial generation set by fitness;
add genotypes of a top-ranked subset of the output decision trees to a next generation set;
discard genotypes of a bottom-ranked subset of the output decision trees;
randomly flip a bit of each genotype of a middle-ranked subset of the output decision trees and add the modified genotype to the next generation set;
repeat randomly flipping a bit of each genotype of the top-ranked group of output decision trees and adding the modified genotype to the next generation set until the next generation set is the same size as the initial generation set; and
in response to reaching a final generation set, promote one of the top-ranked subset of output decision trees of the final generation to be the final decision tree.

### Claim 18 (depends on 15)

The computing system of claim 15, wherein the computer-executable instructions further cause the computer to store the final decision tree with a target database that includes the target graph.

### Claim 19 (depends on 15)

The computing system of claim 15, wherein the computer-executable cause the computer to progressively evolve output decision trees by grammatical evolution of the output decision trees from a Backus-Naur form grammar for property graph query language.

### Claim 20 (depends on 15)

The computing system of claim 15, wherein the final decision tree predicts the objective property value based at least in part on a path expression.
