# US 2025/0147957 A1 · Accuracy and providing explainability and transparency for query response using machine learning models

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

- Number: US 2025/0147957 A1
- Document ID: US20250147957A1
- Status: Published application
- Kind: A1
- Application number: 18/935,017
- Filed: 2024-11-01
- Published: 2025-05-08
- Earliest claimed: 2023-11-08
- Assignees: Data Squared USA Inc.
- Applicants: Data Squared USA Inc.
- Inventors: Michael August VERKRUYSE; Jeffrey James DALGLIESH; Jon Travis BREWTON; Alexander ELKHOLY; Ashmita MITTAL
- Web page: https://patentgrep.com/patent/US20250147957A1

## CPC

- G06F 16/24522: {Translation of natural language queries to structured queries}
- G06F 16/243: {Natural language query formulation}
- G06F 16/288: {Entity relationship models}
- G06F 16/9024: {Graphs; Linked lists (G06F16/9027 takes precedence)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The implementations herein disclose advanced systems and methods for integrating, analyzing, and reasoning over heterogeneous data at scale. In some implementations, the system comprises a synergistic data processing infrastructure featuring: a graph database core for unified data representation; specialized loaders for concurrent ingestion and processing of structured, unstructured, and time series data; a natural language reasoning engine leveraging large language models; and a multi-modal user interface.

## Claims

### Claim 1

A non-transitory, computer-readable storage medium comprising instructions recorded thereon, wherein the instructions when executed by at least one data processor of a system, cause the system to:
receive, via a user interface displayed at a user device, a query, wherein the query comprises natural language;
parse and translate, by a computer system, the natural language query into a graph traversal or database query operation;
perform, by the computer system, the graph traversal or database query operation on a graph database to identify one or more graph representations,
wherein the graph database comprises a plurality of graph representations defined by a graph schema, wherein each graph representation of the plurality of graph representations comprises:
a plurality of nodes, each node representing an entity or evidence related to an entity;
a plurality of edges, each edge connecting at least two nodes and defining a relationship between at least two entities represented by the at least two nodes; and
a plurality of properties, each property defining an attribute of one or more entities or one or more relationships;
and wherein each graph representation of the plurality of graph representations is derived from at least one of: structured data, unstructured data, or time series data;
retrieve, by the computer system, the one or more graph representations of the plurality of graph representations;
score the one or more graph representations based on a relevance of the one or more graph representations to the natural language query;
generate, by the computer system, a response to the natural language query, wherein generating the response comprises providing the set of relevant graph representations to a large language model (LLM), and wherein the response comprises:
natural language;
a visual representation of the graph traversal; and
an indicator of one or more nodes of the plurality of nodes and one or more edges of the plurality of edges within the visual representation, wherein the one or more nodes and one or edges are determined to be relevant to the query; and
display, by the user the user interface on the user device, the response to the natural language query.

### Claim 2

A system comprising:
at least one hardware processor; and
at least one non-transitory memory storing instructions, which, when executed by the at least one hardware processor, cause the system to:
receive, via a user interface displayed at a user device, a query, wherein the query comprises natural language;
parse and translate, by a computer system, the natural language query into a graph traversal or database query operation;
perform, by the computer system, the graph traversal or database query operation on a graph database to identify one or more graph representations, wherein the graph database comprises a plurality of graph representations defined by a graph schema, wherein each graph representation of the plurality of graph representations comprises:
a plurality of nodes, each node representing an entity or evidence related to an entity;
a plurality of edges, each edge connecting at least two nodes and defining a relationship between at least two entities represented by the at least two nodes; and
a plurality of properties, each property defining an attribute of one or more entities or one or more relationships;
and wherein each graph representation of the plurality of graph representations is derived from at least one of structured data, unstructured data, or time series data;
retrieving, by the computer system, the one or more graph representations of the plurality of graph representations;
scoring the one or more graph representations based on a relevance of the one or more graph representations to the natural language query;
generating, by the computer system, a response to the natural language query, wherein generating the response comprises providing the set of relevant graph representations to a large language model (LLM), and wherein the response comprises:
natural language;
a visual representation of the graph traversal; and
an indicator of one or more nodes of the plurality of nodes and one or more edges of the plurality of edges within the visual representation, wherein the one or more nodes and one or edges are determined to be relevant to the query; and
displaying, by the user the user interface on the user device, the response to the natural language query.

### Claim 3

A computer implemented method for query response, the method comprising:
receiving, via a user interface displayed at a user device, a query, wherein the query comprises natural language;
parsing and translating, by a computer system, the natural language query into a graph traversal or database query operation;
performing, by the computer system, the graph traversal or database query operation on a graph database to identify one or more graph representations, wherein the graph database comprises a plurality of graph representations defined by a graph schema, wherein each graph representation of the plurality of graph representations comprises:
a plurality of nodes, each node representing an entity or evidence related to an entity;
a plurality of edges, each edge connecting at least two nodes and defining a relationship between at least two entities represented by the at least two nodes; and
a plurality of properties, each property defining an attribute of one or more entities or one or more relationships;
and wherein each graph representation of the plurality of graph representations is derived from at least one of structured data, unstructured data, or time series data;
retrieving, by the computer system, the one or more graph representations of the plurality of graph representations;
scoring the one or more graph representations based on a relevance of the one or more graph representations to the natural language query;
generating, by the computer system, a response to the natural language query, wherein generating the response comprises providing the set of relevant graph representations to a large language model (LLM), and wherein the response comprises:
natural language;
a visual representation of the graph traversal; and
an indicator of one or more nodes of the plurality of nodes and one or more edges of the plurality of edges within the visual representation, wherein the one or more nodes and one or edges are determined to be relevant to the query; and
displaying, by the user the user interface on the user device, the response to the natural language query.

### Claim 4 (depends on 3)

The method of claim 3, wherein the graph database comprises a Neo4j, ArangoDB, or Amazon Neptune database, or wherein the graph database comprises a representation layer configured to interface with a relational database management system (RDBMS).

### Claim 5 (depends on 3)

The method of claim 3, wherein the unstructured data is ingested into the graph database by:
receiving, from a data source, one or more documents;
extracting text from the one or more documents;
extract data from the extracted text using one or more large language models (LLMs), wherein the one or more LLMs are prompted to extract the data according to a predefined schema;
transforming the extracted data into a graph representation according to the graph schema;
storing the graph representation in the graph database.

### Claim 6 (depends on 5)

The method of claim 5, further comprising, prior to transforming the extracted data:
categorizing the extracted data using pre-trained classification models, unsupervised clustering algorithms (e.g., k-means, hierarchical clustering), and/or zero-shot classification; and
grouping and/or clustering the categorized extracted data using hierarchical clustering algorithms, word and sentence embedding techniques, topic modeling algorithms, and/or semantic similarity measures.

### Claim 7 (depends on 5)

The method of claim 5, wherein the one or more documents comprise PDF files, plain text documents, rich text format (RTF) files, word documents, and/or image files containing text.

### Claim 8 (depends on 3)

The method of claim 3, wherein the structured data is ingested into the graph database by:
receiving, from a data source, one or more tabular data stores;
mapping the one or more tabular data stores to a graph representation using the graph schema, wherein the mapping comprises:
manually and/or automatically mapping a column of the one or more tabular data stores to a node of the plurality of nodes, an edge of the plurality of edges, or a property of the plurality of properties; and
storing the graph representation in the graph database.

### Claim 9 (depends on 3)

The method of claim 3, wherein the time series data is ingested into the graph database by:
receiving, from a data source, one or more temporal data sequences;
parsing and standardizing the one or more temporal data sequences to a common format;
detecting and correcting one or more missing data points within the one or temporal data sequences;
generating a graph representation of the one or more temporal data sequences using the graph schema;
storing the graph representation in the graph database and storing the one or more temporal data sequences in a storage location, wherein the graph representation comprises a reference to the storage location or a link to the one or more temporal data sequences.

### Claim 10 (depends on 9)

The method of claim 9, wherein the data source comprises a comma separated value (CSV) file with timestamp columns, a Javascript object notation (JSON) formatted time series, a specialized time series database, or a real-time data stream.

### Claim 11 (depends on 3)

The method of claim 3, wherein an edge of the plurality of edges defines a temporal relationship between the at least two entities represented by the at least two nodes, wherein the at least two nodes comprise time series nodes, and wherein the at least two entities comprise entities derived from the structured data or the unstructured data.

### Claim 12 (depends on 11)

The method of claim 11, wherein the temporal relationship is continuously updated based on one or more temporal data sequences received from a real-time data stream.

### Claim 13 (depends on 3)

The method of claim 3, wherein parsing and translating the natural language query into a graph traversal or database query operation comprises mapping the natural language query to a data category of the graph database and/or one or more nodes of the plurality of nodes.

### Claim 14 (depends on 3)

The method of claim 3, wherein parsing and translating the natural language query into a graph traversal or database query operation comprises:
generating an embedding for the natural language query using an embedding algorithm or a domain-specific embedding model; and
comparing the generated embedding to a pre-computed embedding associated with the unstructured data, structured data, or time series data using a similarity measure.

### Claim 15 (depends on 3)

The method of claim 3, wherein parsing and translating the natural language query into a graph traversal or database query operation comprises matching the natural language query to summaries of the structured data, unstructured data, and time series data based on embedding similarity.

### Claim 16 (depends on 3)

The method of claim 3, wherein scoring the one or more graph representations based on relevance comprises a combination of factors comprising category match strength, embedding similarity, and graph structural importance metrics.

### Claim 17 (depends on 3)

The method of claim 3, further comprising assigning, by the computer system, a confidence score to a plurality of parts of the generated response based on one or more factors including: data source reliability, consistency with multiple sources, and LLM confidence metrics.

### Claim 18 (depends on 3)

The method of claim 3, wherein providing the set of relevant graph representations to the LLM comprises:
formatting the set of relevant graph representations into a context document; and
providing the context document to the LLM.

### Claim 19 (depends on 3)

The method of claim 3, wherein each node representing an entity is linked to each node representing a same entity across the plurality of graph representations derived from at least one of the structured data, the unstructured data, and the time series data.

### Claim 20 (depends on 3)

The method of claim 3, further comprising training the LLM by inputting the response to the query to the LLM as training data.
