# US 2023/0274824 A1 · Transformer-based neural network for jointly predicting length of stay and critical interventions for patients

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

- Number: US 2023/0274824 A1
- Document ID: US20230274824A1
- Status: Published application
- Kind: A1
- Application number: 18/114,368
- Filed: 2023-02-27
- Published: 2023-08-31
- Earliest claimed: 2022-02-28
- Assignees: Tata Consultancy Services Limited
- Applicants: Tata Consultancy Services Limited
- Inventors: Tirthankar Dasgupta; Lipika Dey; Sudeshna Jana; Abir Naskar
- Web page: https://patentgrep.com/patent/US20230274824A1

## CPC

- G06N 3/045: Combinations of networks
- G16H 40/20: for the management or administration of healthcare resources or facilities, e.g. managing hospital staff or surgery rooms
- G06N 3/0442: characterised by memory or gating, e.g. long short-term memory [LSTM] or gated recurrent units [GRU]
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N 3/088: Non-supervised learning, e.g. competitive learning
- G06N 3/09: Supervised learning
- G16H 10/60: for patient-specific data, e.g. for electronic patient records
- G16H 15/00: ICT specially adapted for medical reports, e.g. generation or transmission thereof
- G16H 40/67: for remote operation
- G16H 50/20: for computer-aided diagnosis, e.g. based on medical expert systems
- G16H 50/30: for calculating health indices; for individual health risk assessment
- G16H 50/70: for mining of medical data, e.g. analysing previous cases of other patients
- G06N 3/048: Activation functions
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G16H: HEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA

## Abstract

Currently systems for Length of Stay (LoS) and clinical interventions for patients work independent of each other. However, they are highly interdependent decisions for overall medical predictions for patients. Embodiments disclosed provide a method and system for transformer-based Neural Network (NN) for jointly predicting LoS and critical interventions for patients admitted to medical facilities. A joint NN model, comprising Bidirectional Encoder Representations from Transformers (BERT) model as one of the layers, processes first day clinical notes, available in an unstructured data format, and a plurality of medical attributes of the patient available in a structured data. Further, the joint NN model jointly predicts s (a) the LoS of the patient into one of the classes comprising LONG and SHORT and (b) a Type of Intervention (ToI) for the patient into one among a plurality of classes with each class of the ToI comprising a list of critical clinical interventions.

## Claims

### Claim 1

A processor implemented method for predicting Length of Stay (LoS) and Type of Intervention (ToI) for patients, the method comprising:
obtaining, via one or more hardware processors, medical information associated with a patient among a plurality of patients admitted to a medical facility, the medical information comprising:
a) first day clinical notes of the patient, available in an unstructured data format, wherein the first day clinical notes are spread across a plurality of pages; and
b) a plurality of medical attributes of the patient available in a structured data format;
applying, via the one or more hardware processors, a contextual segmentation technique to segment the first day clinical notes spread across the plurality of pages into a plurality of segments in accordance with a plurality of pre-identified target subsections;
processing, via the one or more hardware processors, each of the plurality of segments of the first day clinical notes using Term Frequency-Inverted Document Frequency (TF-IDF) vectorization to generate a plurality of word level vectorizations, a plurality of key phrase level vectorizations, and a plurality of clinical entity level vectorizations for each of the plurality of segments, wherein the clinical entity level vectorizations providing contextual embedding capturing domain terms, are obtained using a clinical domain-specific Bidirectional Encoder Representations from Transformers (BERT) model fed to a Bidirectional Long Short Term Memory (Bi-LSTM) layer;
computing, via the one or more hardware processors, a plurality of Severity of Illness (SOI) scores based on the plurality of medical attributes; and
receiving, by a joint Neural Network (joint NN) model executed by the one or more hardware processors, input feature vectors in terms of the word level vectorizations, the key phrase level vectorization, the clinical entity level vectorizations and the plurality of SOI scores to (a) predict the LoS of the patient into one of the classes comprising LONG and SHORT, and (b) predict the ToI for the patient into one among a plurality of classes when the predicted class for LoS is LONG, with each class of the ToI comprising a list of critical clinical interventions, wherein the joint NN model comprises a fully connected layer connected to the Bi-LSTM layer that jointly perform the LoS and the ToI classification tasks, and wherein the joint NN model is jointly trained by minimizing a cross-entropy loss function which is a joint loss Ljoint obtained by a linear combination of a LoS loss (L1) and a ToI loss (L2).

### Claim 2 (depends on 1)

The method of claim 1, wherein training of the joint NN model is based on:
a) the joint loss, represented mathematically as:
Ljoint(θ)=λ*L1(θ)+(1−λ)*IToI=1*L2(θ), where λ controls contribution of losses of individual classification tasks in the joint loss, IToI=1 is an indicator function which activates a causal relation labeling loss only when a corresponding ToI classification label is 1 to prevent a LoS classification loss from back propagating when a corresponding ToI classification label is 0;
b) the LoS loss (L1), represented mathematically as:
L1(θ)=−Σt=1MΣk=1Kŷlog (y), where ŷ is a vector representation of a predicted output class of the LoS by the joint NN model for a set of input sentence xt associated with training first day clinical notes and K represent the number of classes of the LoS; and
c) the ToI loss (L2) is represented mathematically as:
L2(θ)=−Σt=1NΣj=1J{circumflex over (p)}log(p), where {circumflex over (p)} is a predicted output class of ToI by the joint NN model, and J represent number of classes of the ToI.

### Claim 3 (depends on 1)

The method of claim 1, wherein the clinical domain-specific BERT model is a Clinical BioBERT model and is pretrained over a corpus of biomedical research articles.

### Claim 4 (depends on 1)

The method of claim 1, wherein the plurality of SOI scores comprise (a) a Sepsis Related Organ Failure Assessment (SOFA) score, (b) physiological assessment related scoring indicated by an Acute Physiology and Chronic Health Evaluation (APACHE), (c) a Simplified Acute Physiology Score (SAPS), and (d) an Oxford Acute Severity of Illness Score (OASIS).

### Claim 5 (depends on 1)

The method of claim 1, wherein the plurality of pre-identified target subsections are obtained by:
identifying a plurality of subsections present within the plurality of pages of a plurality of clinical notes from historical data of the medical facility, wherein each of the plurality of subsections comprising assessment, action, response, plan, social, psychosocial, and allergies; and
computing most frequent subsections from among the plurality of subsection, wherein the most frequent subsections are identified as the plurality of target subsections.

### Claim 6

A system for predicting Length of Stay (LoS) and Type of Intervention (ToI) for patients, the system comprising:
a memory storing instructions;
one or more Input/Output (I/O) interfaces; and
one or more hardware processors coupled to the memory via the one or more I/O interfaces, wherein the one or more hardware processors are configured by the instructions to:
obtain medical information associated with a patient among a plurality of patients admitted to a medical facility, the medical information comprising:
a) first day clinical notes of the patient, available in an unstructured data format, wherein the first day clinical notes are spread across a plurality of pages; and
b) a plurality of medical attributes of the patient available in a structured data format;
apply a contextual segmentation technique to segment the first day clinical notes spread across the plurality of pages into a plurality of segments in accordance with a plurality of pre-identified target subsections;
process each of the plurality of segments of the first day clinical notes using Term Frequency-Inverted Document Frequency (TF-IDF) vectorization to generate a plurality of word level vectorizations, a plurality of key phrase level vectorization and a plurality of clinical entity level vectorizations for each of the plurality of segments, wherein the clinical entity level vectorizations providing contextual embedding capturing domain terms are obtained using a clinical domain-specific Bidirectional Encoder Representations from Transformers (BERT) model fed to a Bidirectional Long Short Term Memory (Bi-LSTM) layer;
compute a plurality of Severity of Illness (SOI) scores based on the plurality of medical attributes; and
receive, by a joint Neural Network (joint NN) model executed by the one or more hardware processors, input feature vectors in terms of the word level vectorizations, the key phrase level vectorization, the clinical entity level vectorizations and the plurality of SOI scores to (a) predict the LoS of the patient into one of the classes comprising LONG and SHORT and (b) predict the ToI for the patient into one among a plurality of classes when the predicted class for LoS is LONG, with each class of the ToI comprising a list of critical clinical interventions, wherein the joint NN model comprises a fully connected layer connected to the Bi-LSTM layer that jointly perform the LoS and the ToI classification tasks, and wherein the joint NN model is jointly trained by minimizing a cross-entropy loss function which is a joint loss Ljoint obtained by a linear combination of a LoS loss (L1) and a ToI loss (L2).

### Claim 7 (depends on 6)

The system of claim 6, wherein the one or more hardware processors are configured to train of the joint NN model is based on:
a) the joint loss, represented mathematically as: Ljoint(θ)=λ*L1(θ)+(1−λ)*IToI=1*L2(θ), where λ controls contribution of losses of individual classification tasks in the joint loss, IToI=1 is an indicator function which activates a causal relation labeling loss only when a corresponding ToI classification label is 1 to prevent a LoS classification loss from back propagating when a corresponding ToI classification label is 0;
b) the LoS loss (L1), represented mathematically as: L1(θ)=−Σt=1MΣk=1Kŷlog (y), where ŷ is a vector representation of a predicted output class of the LoS by the joint NN model for a set of input sentence xt associated with training first day clinical notes and K represent the number of classes of the LoS; and
c) the ToI loss (L2) is represented mathematically as: L2(θ)=−Σt=1NΣj=1J{circumflex over (p)}log(p), where {circumflex over (p)} is a predicted output class of ToI by the joint NN model, and J represent number of classes of the ToI.

### Claim 8 (depends on 6)

The system of claim 6, wherein the clinical domain-specific BERT model is a Clinical BioBERT model and is pretrained over a corpus of biomedical research articles.

### Claim 9 (depends on 6)

The system of claim 6, wherein the plurality of SOI scores comprise (a) a Sepsis Related Organ Failure Assessment (SOFA) score (b) physiological assessment related scoring indicated by an Acute Physiology and Chronic Health Evaluation (APACHE), (c) a Simplified Acute Physiology Score (SAPS) and (d) an Oxford Acute Severity of Illness Score (OASIS).

### Claim 10 (depends on 6)

The system of claim 6, wherein the one or more hardware processors are configured to obtain the plurality of pre-identified target subsections by:
identifying a plurality of subsections present within the plurality of pages of a plurality of clinical notes from historical data of the medical facility, wherein each of the plurality of subsections comprising assessment, action, response, plan, social, psychosocial, and allergies; and
computing most frequent subsections from among the plurality of subsection, wherein the most frequent subsections are identified as the plurality of target subsections.

### Claim 11

One or more non-transitory machine-readable information storage mediums comprising one or more instructions which when executed by one or more hardware processors cause a method for predicting Length of Stay (LoS) and Type of Intervention (ToI) for patients, the method comprising:
obtaining medical information associated with a patient among a plurality of patients admitted to a medical facility, the medical information comprising:
a) first day clinical notes of the patient, available in an unstructured data format, wherein the first day clinical notes are spread across a plurality of pages; and
b) a plurality of medical attributes of the patient available in a structured data format;
applying a contextual segmentation technique to segment the first day clinical notes spread across the plurality of pages into a plurality of segments in accordance with a plurality of pre-identified target subsections;
processing each of the plurality of segments of the first day clinical notes using Term Frequency-Inverted Document Frequency (TF-IDF) vectorization to generate a plurality of word level vectorizations, a plurality of key phrase level vectorizations, and a plurality of clinical entity level vectorizations for each of the plurality of segments, wherein the clinical entity level vectorizations providing contextual embedding capturing domain terms, are obtained using a clinical domain-specific Bidirectional Encoder Representations from Transformers (BERT) model fed to a Bidirectional Long Short Term Memory (Bi-LSTM) layer;
computing a plurality of Severity of Illness (SOI) scores based on the plurality of medical attributes; and
receiving, by a joint Neural Network (joint NN) model executed by the one or more hardware processors, input feature vectors in terms of the word level vectorizations, the key phrase level vectorization, the clinical entity level vectorizations and the plurality of SOI scores to (a) predict the LoS of the patient into one of the classes comprising LONG and SHORT, and (b) predict the ToI for the patient into one among a plurality of classes when the predicted class for LoS is LONG, with each class of the ToI comprising a list of critical clinical interventions, wherein the joint NN model comprises a fully connected layer connected to the Bi-LSTM layer that jointly perform the LoS and the ToI classification tasks, and wherein the joint NN model is jointly trained by minimizing a cross-entropy loss function which is a joint loss Ljoint obtained by a linear combination of a LoS loss (L1) and a ToI loss (L2).

### Claim 12 (depends on 11)

The one or more non-transitory machine-readable information storage mediums of claim 11, wherein training of the joint NN model is based on:
a) the joint loss, represented mathematically as: Ljoint(θ)=λ*L1(θ)+(1−λ)*IToI=1*L2(θ), where λ controls contribution of losses of individual classification tasks in the joint loss, IToI=1 is an indicator function which activates a causal relation labeling loss only when a corresponding ToI classification label is 1 to prevent a LoS classification loss from back propagating when a corresponding ToI classification label is 0;
b) the LoS loss (L1), represented mathematically as: L1(θ)=−Σt=1MΣk=1Kŷlog (y), where ŷ is a vector representation of a predicted output class of the LoS by the joint NN model for a set of input sentence xt associated with training first day clinical notes and K represent the number of classes of the LoS; and
c) the ToI loss (L2) is represented mathematically as: L2(θ)=−Σt=1NΣj=1J{circumflex over (p)}log(p), where {circumflex over (p)} is a predicted output class of ToI by the joint NN model, and J represent number of classes of the ToI.

### Claim 13 (depends on 11)

The one or more non-transitory machine-readable information storage mediums of claim 11, wherein the clinical domain-specific BERT model is a Clinical BioBERT model and is pretrained over a corpus of biomedical research articles.

### Claim 14 (depends on 11)

The one or more non-transitory machine-readable information storage mediums of claim 11, wherein the plurality of SOI scores comprise (a) a Sepsis Related Organ Failure Assessment (SOFA) score, (b) physiological assessment related scoring indicated by an Acute Physiology and Chronic Health Evaluation (APACHE), (c) a Simplified Acute Physiology Score (SAPS), and (d) an Oxford Acute Severity of Illness Score (OASIS).

### Claim 15 (depends on 11)

The one or more non-transitory machine-readable information storage mediums of claim 11, wherein the plurality of pre-identified target subsections are obtained by:
identifying a plurality of subsections present within the plurality of pages of a plurality of clinical notes from historical data of the medical facility, wherein each of the plurality of subsections comprising assessment, action, response, plan, social, psychosocial, and allergies; and
computing most frequent subsections from among the plurality of subsection, wherein the most frequent subsections are identified as the plurality of target subsections.
