# US 2025/0165712 A1 · Systems and methods for providing explainability of natural language processing

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

- Number: US 2025/0165712 A1
- Document ID: US20250165712A1
- Status: Published application
- Kind: A1
- Application number: 18/514,251
- Filed: 2023-11-20
- Published: 2025-05-22
- Earliest claimed: 2023-11-20
- Assignees: GE Precision Healthcare LLC
- Applicants: GE Precision Healthcare LLC
- Inventors: Hrithik Auchar; Amar Kumar Gupta; Mahima Shaha
- Web page: https://patentgrep.com/patent/US20250165712A1

## CPC

- G06F 40/295: Named entity recognition
- G06F 40/30: Semantic analysis
- G06N 3/08: Learning methods
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Systems or techniques that facilitate systems and methods for providing explainability of natural language processing are provided. In various embodiments, a system can access a plain text clinical sentence. In various aspects, the system can generate, via execution of a first machine learning model, an assertion status classification label for a word of interest in the plain text clinical sentence. In various instances, the system can extract, from a hidden attention layer of the first machine learning model, word-wise attention scores corresponding to the plain text clinical sentence and render, on an electronic display, both the assertion status classification label and a graphical representation of the word-wise attention scores. In various cases, the system can determine, via execution of a second machine learning model, a reliability score for the assertion status classification label, based on the word-wise attention scores, and can render the reliability score on the electronic display.

## Claims

### Claim 1

A system, comprising:
a processor that executes computer-executable components stored in a non-transitory computer-readable memory, wherein the computer-executable components comprise:
an access component that accesses a plain text clinical sentence;
an assertion component that generates, via execution of a first machine learning model, an assertion status classification label for a word of interest in the plain text clinical sentence; and
a display component that extracts, from a hidden attention layer of the first machine learning model, word-wise attention scores corresponding to the plain text clinical sentence and renders, on an electronic display, both the assertion status classification label and a graphical representation of the word-wise attention scores.

### Claim 2 (depends on 1)

The system of claim 1, wherein the computer-executable components further comprise:
an entity component that identifies the word of interest via named entity recognition.

### Claim 3 (depends on 2)

The system of claim 2, wherein an embedding layer of the first machine learning model generates an embedding vector for each word of the plain text clinical sentence, thereby yielding a set of embedding vectors.

### Claim 4 (depends on 3)

The system of claim 3, wherein a first embedding vector in the set of embedding vectors corresponds to the word of interest, and wherein the hidden attention layer:
computes a query vector by applying first learned weights to the first embedding vector;
computes a key vector by applying second learned weights to the set of embedding vectors;
computes a value vector by applying third learned weights to the set of embedding vectors;
computes a first cross-product between the query vector and the key vector, thereby yielding an attention matrix;
applies a softmax function to the attention matrix, thereby yielding the word-wise attention scores;
computes a second cross-product between the value vector and the word-wise attention scores, thereby yielding an output; and
passes the output to a long short-term memory layer of the first machine learning model.

### Claim 5 (depends on 1)

The system of claim 1, wherein the assertion status classification label indicates that the plain text clinical sentence belongs to an uncertain class, a present class, an absent class, a conditional class, or an historical class.

### Claim 6 (depends on 1)

The system of claim 1, wherein the graphical representation of the word-wise attention scores visually indicates which words of the plain text clinical sentence the first machine learning model focused on when generating the assertion status classification label.

### Claim 7 (depends on 1)

The system of claim 1, wherein the computer-executable components further comprise:
a reliability component that determines, via execution of a second machine learning model, a reliability score for the assertion status classification label, based on the word-wise attention scores, and wherein the display component renders the reliability score on the electronic display.

### Claim 8 (depends on 7)

The system of claim 7, wherein the second machine learning model receives as input the plain text clinical sentence, the assertion status classification label, and the word-wise attention scores, and wherein the second machine learning model produces as output the reliability score.

### Claim 9

A computer-implemented method, comprising:
accessing, by a device operatively coupled to a processor, a plain text clinical sentence;
generating, by the device and via execution of a first machine learning model, an assertion status classification label for a word of interest in the plain text clinical sentence;
extracting, by the device and from a hidden attention layer of the first machine learning model, word-wise attention scores corresponding to the plain text clinical sentence; and
rendering, by the device and on an electronic display, both the assertion status classification label and a graphical representation of the word-wise attention scores.

### Claim 10 (depends on 9)

The computer-implemented method of claim 9, further comprising:
identifying, by the device, the word of interest via named entity recognition.

### Claim 11 (depends on 10)

The computer-implemented method of claim 10, wherein an embedding layer of the first machine learning model generates an embedding vector for each word of the plain text clinical sentence, thereby yielding a set of embedding vectors.

### Claim 12 (depends on 11)

The computer-implemented method of claim 11, wherein a first embedding vector in the set of embedding vectors corresponds to the word of interest, and wherein the hidden attention layer:
computes a query vector by applying first learned weights to the first embedding vector;
computes a key vector by applying second learned weights to the set of embedding vectors;
computes a value vector by applying third learned weights to the set of embedding vectors;
computes a first cross-product between the query vector and the key vector, thereby yielding an attention matrix;
applies a softmax function to the attention matrix, thereby yielding the word-wise attention scores;
computes a second cross-product between the value vector and the word-wise attention scores, thereby yielding an output; and
passes the output to a long short-term memory layer of the first machine learning model.

### Claim 13 (depends on 9)

The computer-implemented method of claim 9, wherein the assertion status classification label indicates that the plain text clinical sentence belongs to an uncertain class, a present class, an absent class, a conditional class, or an historical class.

### Claim 14 (depends on 9)

The computer-implemented method of claim 9, wherein the graphical representation of the word-wise attention scores visually indicates which words of the plain text clinical sentence the first machine learning model focused on when generating the assertion status classification label.

### Claim 15 (depends on 9)

The computer-implemented method of claim 9, further comprising:
determining, by the device and via execution of a second machine learning model, a reliability score for the assertion status classification label, based on the word-wise attention scores; and
rendering, by the device, the reliability score on the electronic display.

### Claim 16 (depends on 15)

The computer-implemented method of claim 15, wherein the second machine learning model receives as input the plain text clinical sentence, the assertion status classification label, and the word-wise attention scores, and wherein the second machine learning model produces as output the reliability score.

### Claim 17

A computer program product for facilitating systems and methods for providing explainability of natural language processing, the computer program product comprising a non-transitory computer-readable memory having program instructions embodied therewith, the program instructions executable by a processor to cause the processor to:
access a plain text sentence;
generate, via execution of a first machine learning model, an inferencing task result based on the plain text sentence;
extract, from a hidden attention layer of the first machine learning model, word-wise attention scores corresponding to the plain text sentence; and
render, on an electronic display, both the inferencing task result and a graphical representation of the word-wise attention scores.

### Claim 18 (depends on 17)

The computer program product of claim 17, wherein the graphical representation of the word-wise attention scores visually indicates which words of the plain text sentence the first machine learning model focused on when generating the inferencing task result.

### Claim 19 (depends on 17)

The computer program product of claim 17, wherein the program instructions are further executable to cause the processor to:
determine, via execution of a second machine learning model, a reliability score for the inferencing task result, based on the word-wise attention scores; and
render the reliability score on the electronic display.

### Claim 20 (depends on 19)

The computer program product of claim 19, wherein the second machine learning model receives as input the plain text sentence, the inferencing task result, and the word-wise attention scores, and wherein the second machine learning model produces as output the reliability score.
