# US 2021/0342346 A1 · Hierarchical data searching using tensor searching, fuzzy searching, and bayesian networks

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

- Number: US 2021/0342346 A1
- Document ID: US20210342346A1
- Status: Published application
- Kind: A1
- Application number: 17/375,630
- Filed: 2021-07-14
- Published: 2021-11-04
- Earliest claimed: 2019-10-01
- Assignees: Aetna Inc.
- Applicants: Aetna Inc.
- Inventors: Daniel Carroll
- Web page: https://patentgrep.com/patent/US20210342346A1

## CPC

- G06F 16/2468: {Fuzzy queries}
- G06F 16/24578: {using ranking}
- G06F 16/9024: {Graphs; Linked lists (G06F16/9027 takes precedence)}
- G06N 7/01: Probabilistic graphical models, e.g. probabilistic networks
- G06N 7/02: using fuzzy logic (computing arrangements based on biological models G06N3/00; computing arrangements using knowledge-based models G06N5/00)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Methods and systems for performing a search over hierarchical data are provided. The method may be performed by a server comprising a processor and memory. The method includes receiving a query string from a user device. The query string is searched for via a tensor search of a graph structure to determine node tensor distance score for each node in the graph structure. The query string is searched for via a fuzzy search of the graph structure to determine node fuzzy distance score for each node in the graph structure. Nodes with relevant scores are determined by updating a Bayesian network representation with evidence based on the node tensor distance scores and the node fuzzy distance scores of each node. Relevant data from the nodes is sent with relevant scores to the user device.

## Claims

### Claim 1

A method for performing a search over hierarchical data, the method performed by a server comprising a processor and memory, the method comprising:
receiving a query string from a user device;
searching for the query string via a tensor search of a graph structure to determine node tensor distance score for each node in the graph structure;
searching for the query string via a fuzzy search of the graph structure to determine node fuzzy distance score for each node in the graph structure;
determining nodes with relevant scores by updating a Bayesian network representation with evidence based on the node tensor distance scores and the node fuzzy distance scores of each node; and
sending relevant data from the nodes with relevant scores to the user device.

### Claim 2 (depends on 1)

The method according to claim 1, further comprising:
determining, for each node in the graph structure, a combined score from the node tensor distance score and the node fuzzy distance score, wherein
determining the nodes with relevant scores comprises updating the Bayesian network representation with the evidence based on the combined score.

### Claim 3 (depends on 2)

The method according to claim 2, wherein determining the combined score comprises:
the combined score being 1 based on the node fuzzy distance score being above or equal to a similarity threshold; and
the combined score being a weighted average of the node tensor distance score and the node fuzzy distance score based on the node fuzzy distance score being below the similarity threshold.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the fuzzy search comprises determining a fuzzy distance metric of a Levenshtein distance where a character change between characters incur a penalty or a magnitude of a Euclidean distance between keys in a grid representation.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the tensor search comprises determining a sequence tensor for the node.

### Claim 6 (depends on 1)

The method according to claim 1, further comprising:
ingesting the hierarchical data to generate the graph structure; and
determining node tensor representation for each node in the graph structure, wherein the node tensor representation for each node is compared to a query string tensor representation during the tensor search.

### Claim 7 (depends on 6)

The method according to claim 6, wherein comparing the query string tensor representation to the node tensor representation for each node comprises determining cosine similarities between elements in the query string tensor representation and elements in the node tensor representation for each node.

### Claim 8 (depends on 6)

The method according to claim 6, wherein determining node tensor representation for each node in the graph structure comprises:
obtaining node data for a respective node, the node data comprising a phrase;
grouping compound words in the phrase to obtain one or more term groupings;
removing commonly used terms within the one or more term groupings;
removing terms not present in the embeddings dictionary from the one or more term groupings; and
determining the node tensor representation for the respective node as vector representations of the one or more term groupings.

### Claim 9 (depends on 8)

The method according to claim 8, wherein a parameter maximum number of words determines how many words are combined when grouping compound words in the phrase.

### Claim 10 (depends on 6)

The method according to claim 6, wherein the hierarchical data is in a JavaScript Object Notation (JSON) format.

### Claim 11 (depends on 1)

The method according to claim 1, wherein relevant data from the nodes with relevant scores is data from a specific hierarchical level.

### Claim 12

A server for performing a search over hierarchical data, the server comprising a processor and a non-transitory computer readable medium storing instructions thereon such that when the instructions are executed by the processor, the server performs the steps comprising:
receiving a query string from a user device;
searching for the query string via a tensor search of a graph structure to determine node tensor distance score for each node in the graph structure;
searching for the query string via a fuzzy search of the graph structure to determine node fuzzy distance score for each node in the graph structure;
determining nodes with relevant scores by updating a Bayesian network representation with evidence based on the node tensor distance scores and the node fuzzy distance scores of each node; and
sending relevant data from the nodes with relevant scores to the user device.

### Claim 13 (depends on 12)

The server according to claim 12, further performing the steps comprising:
determining, for each node in the graph structure, a combined score from the node tensor distance score and the node fuzzy distance score, wherein
determining the nodes with relevant scores comprises updating the Bayesian network representation with the evidence based on the combined score.

### Claim 14 (depends on 13)

The server according to claim 13, wherein determining the combined score comprises:
the combined score being based on the node fuzzy distance score being above or equal to a similarity threshold; and
the combined score being a weighted average of the node tensor distance score and the node fuzzy distance score based on the node fuzzy distance score being below the similarity threshold.

### Claim 15 (depends on 12)

The server according to claim 12, wherein the fuzzy search comprises determining a fuzzy distance metric of a Levenshtein distance where a character change between characters incur a penalty or a magnitude of a Euclidean distance between keys in a grid representation.

### Claim 16 (depends on 12)

The server according to claim 12, wherein the tensor search comprises determining a sequence tensor for the node.

### Claim 17 (depends on 12)

The server according to claim 12, further performing the steps comprising:
ingesting the hierarchical data to generate the graph structure; and
determining node tensor representation for each node in the graph structure, wherein the node tensor representation for each node is compared to a query string tensor representation during the tensor search.

### Claim 18 (depends on 17)

The server according to claim 17, wherein comparing the query string tensor representation to the node tensor representation for each node comprises determining cosine similarities between elements in the query string tensor representation and elements in the node tensor representation for each node.

### Claim 19 (depends on 17)

The server according to claim 17, wherein determining node tensor representation for each node in the graph structure comprises:
obtaining node data for a respective node, the node data comprising a phrase;
grouping compound words in the phrase to obtain one or more term groupings;
removing commonly used terms within the one or more term groupings;
removing terms not present in the embeddings dictionary from the one or more term groupings; and
determining the node tensor representation for the respective node as vector representations of the one or more term groupings.

### Claim 20

A non-transitory computer readable medium storing instructions thereon such that when the instructions are executed by a processor, the processor performs the steps comprising:
receiving a query string from a user device;
searching for the query string via a tensor search of a graph structure to determine node tensor distance score for each node in the graph structure;
searching for the query string via a fuzzy search of the graph structure to determine node fuzzy distance score for each node in the graph structure;
determining nodes with relevant scores by updating a Bayesian network representation with evidence based on the node tensor distance scores and the node fuzzy distance scores of each node; and
sending relevant data from the nodes with relevant scores to the user device.
