# US 2025/0165537 A1 · Method and apparatus for knowledge representation and reasoning in accounting

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

- Number: US 2025/0165537 A1
- Document ID: US20250165537A1
- Status: Published application
- Kind: A1
- Application number: 19/030,691
- Filed: 2025-01-17
- Published: 2025-05-22
- Earliest claimed: 2023-03-09
- Assignees: PwC Product Sales LLC
- Applicants: PwC Product Sales LLC
- Inventors: Paul SHEWARD; Chung-Sheng LI; Scott LIKENS; Saverio FATO; Joseph Doyle HARRINGTON; Joseph David VOYLES; Jonathan B. RHINE; Alexander Nicholas BOLDIZSAR; Winnie CHENG; Todd Christopher MORRILL; Yuan WAN; William Spotswood SEWARD
- Web page: https://patentgrep.com/patent/US20250165537A1

## CPC

- G06F 16/906: Clustering; Classification
- G06F 16/9024: {Graphs; Linked lists (G06F16/9027 takes precedence)}
- G06F 16/90335: {Query processing}
- G06F 40/295: Named entity recognition
- G06F 40/30: Semantic analysis
- G06N 5/022: Knowledge engineering; Knowledge acquisition
- G06N 5/04: Inference or reasoning models
- G06Q 40/12: Accounting
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- 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

An exemplary system for constructing data structures that can perform inferential reasoning to answer input queries may receive input data, extract and cluster entities in the input data into topic clusters, and for a first topic cluster construct a data structure comprising a plurality of nodes, wherein nodes of the data structure respectively represent a topic entity extracted from the input data and grouped into the first topic cluster, and wherein a first node of the data structure is associated with a second node of the data structure based on the first node and the second node respectively representing a first topic entity and a second topic entity associated in the input data with a common one of the one or more identified linguistic modalities. An exemplary system comprising the data structure may receive an input query and generate a response to the input query using the data structure.

## Claims

### Claim 1

A system for automatically generating a response to an input query, the system comprising one or more processors configured to cause the system to:
receive, by the system, an input query;
automatically identify a topic cluster associated with the input query based on one or both of a first topic prediction model and second topic prediction model, wherein the topic cluster comprises a plurality of topic entities;
direct the input query to a data structure associated with the identified topic cluster, wherein the data structure comprises a plurality of nodes, each node representing one of the topic entities in the topic cluster, and wherein at least one of the nodes in the topic cluster is associated with one or more of the other nodes in the topic cluster based on one or more linguistic modalities, the linguistic modalities defining a relationship linking the respective nodes; and
generating a response to the input query.

### Claim 2 (depends on 1)

The system of claim 1, wherein generating a response to the input query comprises selecting, based on the data structure comprising the identified topic cluster, a response from a predefined group of responses.

### Claim 3 (depends on 1)

The system of claim 1, wherein generating a response to the input query comprises generating, using the associated nodes of the data structure, a response to the input query.

### Claim 4

A method for automatically generating a response to an input query, the method comprising:
receiving, by a computer, an input query;
automatically identifying a topic cluster associated with the input query based on one or both of a first topic prediction model and second topic prediction model, wherein the topic cluster comprises a plurality of topic entities;
directing the input query to a data structure associated with the identified topic cluster, wherein the data structure comprises a plurality of nodes, each node representing one of the topic entities in the topic cluster, and wherein at least one of the nodes in the topic cluster is associated with one or more of the other nodes in the topic cluster based on one or more linguistic modalities, the linguistic modalities defining a relationship linking the respective nodes; and
generating a response to the input query.

### Claim 5

A non-transitory computer readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by one or more processors of an electronic device, cause the electronic device to:
receive an input query;
automatically identify a topic cluster associated with the input query based on one or both of a first topic prediction model and second topic prediction model, wherein the topic cluster comprises a plurality of topic entities;
direct the input query to a data structure associated with the identified topic cluster, wherein the data structure comprises a plurality of nodes, each node representing one of the topic entities in the topic cluster, and wherein at least one of the nodes in the topic cluster is associated with one or more of the other nodes in the topic cluster based on one or more linguistic modalities, the linguistic modalities defining a relationship linking the respective nodes; and
generate a response to the input query.

### Claim 6 (depends on 1)

The system of claim 1, wherein the first prediction model is a trained semantic classification model.

### Claim 7 (depends on 6)

The system of claim 6, wherein the second prediction model is a semantic embedding model.

### Claim 8 (depends on 7)

The system of claim 7, wherein the semantic embedding model is configured to:
extract a plurality of query entities from the input query;
apply a clustering process to generate one or more clusters of query nodes;
compute an average semantic embedding for one or more of the generated clusters of query nodes, wherein each average semantic embedding represents a generated cluster of query nodes;
compute an average semantic embedding for one or more topic clusters of a plurality of topic clusters, wherein each average semantic embedding represents a topic cluster; and
select a topic cluster for the input query based on a comparison of at least one average semantic embedding representing a generated cluster and at least one average semantic embedding representing a topic cluster.

### Claim 9 (depends on 1)

The system of claim 1, wherein the one or more processors are configured to cause the system to: identify the topic cluster based on a prediction by both the first and second topic prediction model.

### Claim 10 (depends on 1)

The system of claim 1, wherein the input query is a natural language input.

### Claim 11 (depends on 1)

The system of claim 1, wherein the input query is extracted from structured or unstructured textual data.

### Claim 12 (depends on 11)

The system of claim 11, wherein the input query is extracted from a predefined set of questions and answers.

### Claim 13 (depends on 1)

The system of claim 1, wherein generating the response to the input query comprises: generating, using the interconnected nodes of the data structure, a response to the input query.

### Claim 14 (depends on 1)

The method of claim 1, wherein generating the response to the input query comprises:
traversing between the at least one node in the topic cluster and the one or more other associated nodes using one or more edges connecting the nodes; and
generating a response to the input query based on the traversed nodes and edges.

### Claim 15 (depends on 1)

The system of claim 1, wherein generating the response to the input query comprises: selecting, based on the data structure comprising the identified topic cluster, a response from a predefined group of responses.

### Claim 16 (depends on 1)

The system of claim 1, wherein the generated response comprises at least one of: a natural language description of an accounting topic, a natural language description of a business entity, a natural language description of an audit method, a natural language description of a mathematical relationship, and a natural language explanation of the generated response to the input query.

### Claim 17 (depends on 1)

The system of claim 1, wherein the data structure is a knowledge graph.

### Claim 18 (depends on 1)

The system of claim 1, wherein the one or more linguistic modalities comprise at least one of a deontic linguistic modality and an epistemic linguistic modality.
