Augmenting clinical notes with supporting evidence using generative machine learning systems
The system addresses hallucinations and multi-modal data challenges in clinical note generation by using a generative neural network with a separate machine learning system to retrieve evidence and expand context, enhancing the accuracy and completeness of clinical notes.
Patent Information
- Application Number
- US19/301850
- Authority / Receiving Office
- US · United States
- Patent Type
- Applications(United States)
- Current Assignee / Owner
- Priority Date
- 2025-05-28
- Filing Date
- 2025-08-15
- Publication Date
- 2026-12-03
AI Technical Summary
Generative neural networks used for clinical note generation often hallucinate, producing factually incorrect outputs, and struggle with multi-modal data integration and limited context windows, impacting the accuracy and completeness of clinical notes.
A system utilizing a generative neural network and a separate generative machine learning system to identify passages needing augmentation, retrieve supporting evidence from electronic medical records and medical literature, and process audio data through speech-to-text, with an iterative approach to expand the context window, reducing hallucinations and enhancing accuracy.
The system reduces the likelihood of hallucinations and improves the factual accuracy and completeness of clinical notes by integrating multi-modal data and expanding the effective context window, ensuring the notes are grounded in reality.
Smart Images

Figure US20260388741A1-D00000_ABST
Abstract
Description
CROSS-REFERENCE TO RELATED APPLICATION
[0001] This application claims priority to U.S. Provisional Application No. 63 / 813,566, filed on May 28, 2025. The disclosure of the prior application is considered part of and is incorporated by reference in the disclosure of this application.BACKGROUND
[0002] This specification relates to processing data using machine learning models.
[0003] Machine learning models receive an input and generate an output, e.g., a predicted output, based on the received input. Some machine learning models are parametric models and generate the output based on the received input and on values of the parameters of the model.
[0004] Some machine learning models are deep models that employ multiple layers of models to generate an output for a received input. For example, a deep neural network is a deep machine learning model that includes an output layer and one or more hidden layers that each apply a non-linear transformation to a received input to generate an output.SUMMARY
[0005] This specification describes a system implemented as computer programs on one or more computers in one or more locations that can automatically generate a clinical note for a patient using a generative neural network. Further, the system can leverage a generative machine learning system to automatically augment sections of the clinical note with supporting evidence.
[0006] According to an aspect, there is provided a method performed by one or more computers, the method comprising: receiving a request to generate a clinical note for a patient; automatically generating the clinical note for the patient using a generative neural network that processes a network input comprising at least patient data extracted from a set of electronic medical record data for the patient. Generating the clinical note may comprise: identifying a passage of the clinical note as requiring augmentation with supporting evidence; generating supporting evidence for the passage of the clinical note using a generative machine learning system; and augmenting the clinical note to include the supporting evidence; and outputting the clinical note for the patient.
[0007] The method may further comprise, prior to generating the clinical note: obtaining an audio recording of an interaction between a healthcare provider and the patient; and processing a model input derived from the audio recording using a speech-to-text machine learning model to generate a transcript of the audio recording. The network input that is processed by the generative neural network to generate the clinical note may further comprise the transcript of the audio recording.
[0008] Generating supporting evidence for the passage of the clinical note using the generative machine learning system may comprise: generating, by the generative neural network, a network output that invokes the generative machine learning system to generate supporting evidence for the passage of the clinical note; and in response, invoking the generative machine learning system to generate the supporting evidence for the passage of the clinical note.
[0009] invoking the generative machine learning system to generate the supporting evidence for the passage of the clinical note may comprise: performing an automated retrieval step to obtain a set of text chunks that are predicted to be relevant to generating supporting evidence for the passage of the clinical note; and processing a network input that may comprise: (i) an instruction to generate supporting evidence, (ii) the passage of the clinical note, and (iii) the set of text chunks, using a synthesis generative neural network to generate a network output that defines supporting evidence for the passage of the clinical note.
[0010] Performing the automated retrieval step to obtain the set of text chunks that are predicted to be relevant to generating supporting evidence for the passage of the clinical note may comprise obtaining the set of text chunks from one or more databases, comprising a database of electronic medical record data for the patient, or a database of medical literature, or both.
[0011] Obtaining the set of text chunks from one or more databases may comprise: performing an embedding-based comparison of: (i) the passage of the clinical note, and (ii) text chunks from the one or more databases.
[0012] Augmenting the clinical note to include the supporting evidence may comprise augmenting the clinical note to include citations of documents from which the text chunks were extracted.
[0013] The generative neural network may generate the passage of the clinical note that requires augmentation with supporting evidence.
[0014] Identifying the passage of the clinical note as requiring augmentation with supporting evidence may comprise: receiving, from a user and by way of a user interface, a selection of the passage of the clinical note along with a user input that identifies the passage of the clinical note as requiring augmentation with supporting evidence.
[0015] The method may further comprise: determining, using the generative neural network, that the supporting evidence is not consistent with the passage of the clinical note; and in response, generating a notification that the supporting evidence is not consistent with the passage of the clinical note.
[0016] The method may further comprise presenting the notification on a user interface.
[0017] Generating the clinical note may comprise: maintaining and iteratively updating a set of intermediate data over a plurality of iterations, comprising, at each iteration: generating, using the generative neural network and based at least in part on the set of intermediate data, a network output that invokes the generative machine learning system to: (i) generate a response to an internal query based on electronic medical record data for the patient, or (ii) generate a response to an internal query based on a database of medical literature; in response, invoking one or more instances of the generative machine learning system to generate responses to one or more internal queries; and augmenting the set of intermediate data based on the responses to the internal queries.
[0018] The method may further comprise, after a final iteration of the plurality of iterations, processing the set of intermediate data using the generative neural network to generate the clinical note.
[0019] The network input to the generative neural network may further comprise an instruction to generate the clinical note.
[0020] The generative neural network may be trained at least in part by reinforcement learning with human feedback.
[0021] The generative neural network may be an auto-regressive large language model.
[0022] The method may further comprise: receiving, from a user, a natural language request to modify the clinical note; and processing a network input comprising: (i) the clinical note, and (ii) the natural language request to modify the clinical note, using the generative neural network to generate a network output that defines a modified clinical note that has been modified consistent with the natural language request from the user.
[0023] The method may further comprise presenting the clinical note on a display or storing the clinical note in an electronic medical record for the patient.
[0024] According to another aspect, there is provided one or more computer-readable storage media encoded with instructions that, when executed by one or more computers, cause the one or more computers to perform the operations of the above method aspects.
[0025] According to a further aspect, there is provided a system comprising one or more computers and one or more storage devices storing instructions that when executed by one or more computers cause the one or more computers to perform the respective operations of the above method aspects.
[0026] The subject matter described in this specification can be implemented in particular embodiments so as to realize one or more of the following advantages.
[0027] The system described in this specification can automatically generate clinical notes using a generative neural network. A technical issue that arises when using generative neural networks to generate clinical notes is the propensity of such neural networks to “hallucinate”—that is, to generate outputs that are syntactically plausible yet are factually incorrected or fabricated. The system described in this specification can reduce the likelihood of hallucinations by the generative neural network, and can mitigate the risks of hallucinations if they do occur.
[0028] In more detail, as part of generating a clinical note using the generative neural network, the system identifies passages in the clinical note that require augmentation with supporting evidence, and then leverages a separate generative machine learning system to generate that supporting evidence. For instance, the generative machine learning system can automatically retrieve and integrate relevant content from electronic medical record data for the patient and from a database of medical literature to generate supporting evidence for passages in the clinical note.
[0029] Supporting evidence that is generated using the generative machine learning system is visible to the generative neural network and can be exploited by the generative neural to automatically detect inconsistencies that are hallmarks of hallucination. This has the effect of reducing the likelihood of hallucinations by the generative neural network. Further, if such hallucinations do occur, they may be more immediately apparent to a user, e.g., due to aspects of the clinical note that are generated by the generative neural network being contradictory with aspects of the supporting evidence integrated into the clinical note by the separate generative machine learning system. The system thus provides a technical solution to the technical problem of hallucination that arises in the field of the generative machine learning.
[0030] Clinical notes often document interactions of patients with healthcare providers. In many situations, patients and healthcare providers communicate verbally during office visits. The system described in this specification can use one or more microphones to generate audio data that captures verbal interactions between patients and healthcare providers. A technical issue that arises when generating clinical notes using an automated machine learning approach is the modality-discrepancy between electronic medical record datap13 which is often represented using text—and audio data. Integrating data from both modalities—audio and text—may be required to generate an accurate and comprehensive clinical note, but generative neural networks often struggle with processing mixed modality inputs.
[0031] To address this issue, the system can leverage a speech-to-text machine learning model to automatically generate a transcript of the audio data, thus projecting the audio data into the same natural language space as much of the electronic medical record data and facilitating processing by the generative neural network. The system thus provides a technical solution to specific technical problem that arises when processing multi-modal data using generative neural networks.
[0032] Typically, generative neural networks have a fixed size context window that defines a maximum size of prompt that can be processed by the generative neural network. A technical issue that arises when generating clinical notes using a generative neural network is that the size of the context window may be insufficient to hold large amounts of information from different sources, e.g., including electronic medical record data and medical literature, that are required to generate an accurate, comprehensive, and fully documented clinical note.
[0033] The system described in this specification provides a technical solution to the technical problem of limited context window sizes. In more detail, the system can generate a clinical note by an iterative process where, at each iteration, the system generates a set of “internal queries” that request information that is predicted to be relevant to generating the clinical note. The system can generate a respective response to each of the internal queries using a generative machine learning system, and then update a set of intermediate data using the responses to the internal queries before proceeding to the next iteration. The system can thus break down the task of generating the clinical note into a plurality of simpler tasks involving answering internal queries which can be separately and independently processed by a generative machine learning system, thus multiplying the effective size of the context window that is available for generating the clinical note.
[0034] The details of one or more embodiments of the subject matter described in this specification are set forth in the accompanying drawings and the description below. Other features, aspects, and advantages of the subject matter will become apparent from the description, the drawings, and the claims.BRIEF DESCRIPTION OF THE DRAWINGS
[0035] FIG. 1 is a diagram of an example environment.
[0036] FIG. 2 is a flow diagram of an example process for generating a clinical note for a patient.
[0037] FIG. 3 is a flow diagram of sub-steps of one of the steps of the process of FIG. 2 for updating a set of intermediate data.
[0038] FIG. 4 is a flow diagram of sub-steps of one of the steps of the process of FIG. 2 for augmenting the clinical note to include supporting evidence.
[0039] Like reference numbers and designations in the various drawings indicate like elements.DETAILED DESCRIPTION
[0040] FIG. 1 is a diagram of an example environment 105 that includes a clinical assistance system 100, a healthcare professional 101, and a patient 103. The healthcare professional 101 is providing clinical healthcare services, such as diagnosis, treatment, consultation, and medication management, to the patient 103. The environment 105 can include more than one healthcare professional, more than one patient, or both.
[0041] For example, the environment 105 can be an examination room in a doctor's office or a clinic. As another example, the environment 105 can be a patient room, an operating, or an intensive care unit (ICU) in a hospital. As another example, the environment 105 can be an ambulatory surgery center in an outpatient center. As another example, the environment 105 can be a therapist / counselor office in a mental health facility.
[0042] Despite FIG. 1 illustrates the healthcare professional 101 and the patient 103 as being physically proximate to one another, this may not always be the case. For example, in some cases, the environment 105 may be a virtual healthcare environment where the healthcare professional 101 provides the clinical healthcare services using electronic communications to the patient 103 that is physically remote from the healthcare professional 101.
[0043] The environment 105 includes a network, such as a local area network (LAN), a wide area network (WAN), the Internet, or a combination thereof. The network connects the clinical assistance system 100 and a client device 104 of the healthcare professional 101. A client device 104 is an electronic device capable of requesting and receiving data over the network. Examples of client devices 104 that can be used by the healthcare professional 101 include desktop computers, laptop computers, tablets, smartphones, digital assistant devices, cross reality devices (e.g., augmented reality devices, virtual reality devices, or mixed reality devices), and other electronic devices.
[0044] The client device 104 runs a user application, such as a web browser or a healthcare application, that facilitates the sending and receiving of data over the network, e.g., sending data to and receiving data from the clinical assistance system 100. The user application can run entirely locally on the client device 104, or run both locally and in the cloud, e.g., remotely in the clinical assistance system 100.
[0045] The clinical assistance system 100 is an example of a system implemented as computer programs on one or more computers in one or more locations that can automatically generate a clinical note 112 for the patient 103. Further, the clinical assistance system 100 can automatically augment sections of the clinical note 112 with supporting evidence.
[0046] The clinical assistance system 100 includes a generative neural network 110, a generative machine learning system 120, and an automatic speech recognition (ASR) model 130. The generative machine learning system 120 includes a synthesis generative neural network 124 that is separate from the generative neural network 110. That is, the generative neural network 110 and the synthesis generative neural network 124 have distinct sets of neural network parameters.
[0047] In operation, the clinical assistance system 100 receives a request 102 to generate the clinical note 112 for the patient 103 and, in response, generates the clinical note 112 using the components of the system.
[0048] Once generated, the clinical assistance system 100 can provide the clinical note 112 to the healthcare professional 101, the patient 103, or both. For example, the clinical note 112 can be presented on a display of the client device 104, e.g., in a user interface of the user application running on the client device 104. As another example, the clinical note 112 can be sent as a text message or email to the patient 103.
[0049] Additionally or alternatively, the clinical assistance system 100 can provide the clinical note 112 to another system for further processing, or store the clinical note 112 in a storage device for some future purpose. For example, the clinical note 112 can be stored as part of the set of electronic medical record (EMR) data for the patient 103.
[0050] The clinical assistance system 100 has access to an electronic medical record (EMR) database 150. The EMR database 150 may be local to the clinical assistance system 100. For example, they can reside on the same server. Alternatively, the EMR database 150 may be an external database accessible by the clinical assistance system 100.
[0051] The EMR database 150 stores a respective set of EMR data or each of a plurality of patients. In some implementations, the EMR database 150 is configured to control access to EMR data such that only authorized healthcare professional may access and / or edit the EMR data. The set of EMR data for a patient may, for example, include patient demographic information, family medical history, past medical history, lifestyle information, preexisting medical conditions, current medications, allergies, surgical history, past medical screenings and procedures, past hospitalizations and visits, etc.
[0052] The clinical assistance system 100 also has access to one or more external databases 160. The one or more external databases 160 are typically remote from the clinical assistance system 100 and, in some implementations, from each other. For example, they can reside on the distinct servers.
[0053] The one or more external databases 160 can include any database or any combination of databases that store a corpus of electronic documents. Examples of electronic documents include webpages, word processing documents, spreadsheet documents, presentation documents, portable document format (PDF) documents and so on.
[0054] An external database 160 may include vast numbers of electronic documents, e.g., at least 100,000 electronic documents, or at least 1,000,000 electronic documents, or at least 10,000,000 electronic documents. An external database 160 may dynamically change over time, e.g., as new electronic documents are added, or as existing electronic documents are updated or removed, etc.
[0055] In some implementations, the one or more external databases 160 include one or more curated databases of medical literature. For example, the clinical assistance system 100 can have access to an external database 160 that is a medical database that stores a corpus of medical documents. A medical document is an electronic document that includes medical-related content.
[0056] The corpus of medical documents stored in the medical database may for example include webpages and other electronic documents accessible through the Internet. Additionally or alternatively, the corpus of medical documents may, for example, be part of a proprietary medical database, e.g., of a scientific content publisher (e.g., a physical science content publisher, a life science content publisher, a health science content publisher, or a social science content publisher), a technical content publisher, a medical content publisher, or other organization.
[0057] The clinical assistance system 100 uses the automatic speech recognition (ASR) model 130, also referred to as a speech-to-text machine learning model, to transcribe the speech represented by the audio included in an audio recording, i.e., transcribe the utterances spoken by the one or more speakers during a conversation.
[0058] The ASR model 130 is configured to receive a model input that includes the audio recording, data derived from the audio recording, or both, and process the model input to generate a model output that includes a transcript of the speech represented by audio included in the audio recording.
[0059] The audio recording can be made by one or more recording devices in the environment 105 where the verbal interaction between the healthcare professional 101 and the patient 103 takes place. The recording devices could, for example, include a microphone of the workstation of the healthcare professional 101, and / or audio recording software installed on the client device 104. Thus, the audio included in an audio recording represents utterances spoken by the healthcare professional 101 and the patient 103.
[0060] In some implementations, the ASR model 130 can implement a speech recognition neural network, e.g., a recurrent neural network or an attention neural network, or another machine learning model, which has been trained on training data including audio data with corresponding transcripts. In some implementations, the ASR model 130 can implement a statistical speech recognition model, e.g., a Hidden Markov model (HMM) or a dynamic time warping (DTW) model.
[0061] The clinical assistance system 100 uses the generative neural network 110 to generate a plurality of sections of the clinical note 112 based on (i) patient data extracted from a set of EMR data for the patient 103 stored in the EMR database 150 and (ii) the transcript of the speech represented by audio included in the audio recording generated by the ASR model 130. Each section can be a phrase, sentence, paragraph, or passage within the clinical note 112.
[0062] For example, the clinical assistance system 100 can provide a network input that includes (i) an instruction to generate clinical note, (ii) the patient data extracted from a set of EMR data for the patient 103 stored in the EMR database 150, and (iii) the transcript of the speech represented by audio included in the audio recording, and process the network input using the generative neural network 110 to generate a network output that defines the plurality of sections of the clinical note 112.
[0063] In general the instruction can include text in some natural language that, when processed as part of the network input by the generative neural network 110, causes it to generate the plurality of sections of the clinical note 112.
[0064] To overcome the limitations posed by the fixed size context window of the generative neural network 110, which defines a maximum size of the network input that can be processed by it, some implementations of the clinical assistance system 100 generate the clinical note 112 using the generative neural network 110 by performing an iterative process that includes multiple iterations.
[0065] In other words, in some implementations, the clinical assistance system 100 generates the clinical note 112 over the multiple iterations. The clinical assistance system 100 maintains a set of intermediate data 115 which is iteratively updated over the multiple iterations.
[0066] Prior to the first iteration, the clinical assistance system 100 initializes the set of intermediate data 115 based on (i) the patient data and (ii) the transcript of the speech, and then iteratively updates the set of intermediate data 115 at each of the multiple iterations using information that is predicted to be relevant to generating the clinical note 112.
[0067] After the final iteration of the multiple iterations, the clinical assistance system 100 processes the set of intermediate data 115 that has been updated as of the final iteration using the generative neural network 110 to generate the clinical note 112.
[0068] As will be explained further below with reference to FIG. 3, at each iteration, the relevant information to be used to update the set of intermediate data 115 includes responses to internal queries that are generated by the synthesis generative neural network 124 included in the generative machine learning system 120 based on data obtained from the EMR database 150, data obtained from the one or more external databases 160, or both.
[0069] In this way the clinical assistance system 100 breaks down the task of generating the clinical note into a plurality of simpler tasks involving answering internal queries which can be separately and independently processed by one or more instances of the generative machine learning system 120, thus multiplying the effective size of the context window that is available for generating the clinical note 112.
[0070] Clinical notes are a cornerstone of effective healthcare practice, serving as the primary means of communication among healthcare providers. Clinical notes offer a detailed account of patient interactions, including symptoms, diagnoses, treatment plans, and follow-up care, enabling continuity and coordination in clinical healthcare services. Accurate and comprehensive documentation enhances patient safety by reducing medical errors and supports informed decision-making throughout the care process.
[0071] Nevertheless, automatically generating clinical notes leveraging artificial intelligence has its own technical challenges that negatively impact the quality of the AI-generated clinical notes. Among others, one of the technical challenges stems from the propensity of such generative neural networks to “hallucinate”-that is, to generate outputs that are syntactically plausible yet are factually incorrected or fabricated.
[0072] To that end, as part of the generation process, the clinical assistance system 100 uses the synthesis generative neural network 124 included in the generative machine learning system 120 to generate supporting evidence for each of one or more of the plurality of sections of the clinical note 112 that have been generated by using the generative neural network 110 and, in some implementations, together with the generative machine learning system 120 and as a result of performing the iterative process.
[0073] As will be explained further below with reference to FIG. 4, the synthesis generative neural network 124 generates the supporting evidence based on data obtained from the EMR database 150, data obtained from the one or more external databases 160, or both.
[0074] In some implementations where the clinical assistance system 100 generates the clinical note 112 by performing an iterative process, the data processed by the synthesis generative neural network 124 to generate the supporting evidence will generally be different from the data processed by the synthesis generative neural network 124 to generate the responses to the internal queries.
[0075] Once the supporting evidence for each of the one or more sections of the clinical note 112 have been generated, the clinical assistance system 100 uses the supporting evidence to augment the clinical note 112. There are many ways in which the supporting evidence can be used to augment the clinical note 112.
[0076] In some implementations, the clinical assistance system 100 augments the clinical note by adding the supporting evidence to the clinical note 112. Thus, the clinical note 112 will include the plurality of sections that have been generated by the generative neural network 110, as well as the supporting evidence for each of the one or more sections of the clinical note 112 have been generated by the synthesis generative neural network 124.
[0077] In some implementations, the clinical assistance system 100 adds to the clinical note 112 a citation of each source electronic document stored in the one or more external databases 160 from which the data processed by the synthesis generative neural network 124 to generate the supporting evidence is obtained. For example, an in-text citation, which is a brief reference to a source electronic document, within the body of the clinical note 112 can be added. Necessary information for locating the origin the source electronic document can also be added to a citation listing, which may be appended to the end of the clinical note 112.
[0078] In either implementation, if such hallucinations by the generative neural network 110 do occur, the clinical assistance system 100 is able to make them more immediately apparent to the healthcare professional 101, e.g., due to aspects of the clinical note that are generated by the generative neural network 110 being contradictory with aspects of the supporting evidence integrated into the clinical note 112 by the separate generative machine learning system 130.
[0079] In some implementations, the clinical assistance system 100 automatically evaluates the one or more sections of the clinical note 112 that have been generated by the generative neural network 110 against their supporting evidence and, in the case of inconsistency between a given section and its supporting evidence, generates a notification that the supporting evidence is not consistent with the given section of the clinical note 112.
[0080] The notification may then be presented by the system for display together with the clinical note 112 on the user interface of the user application running on the client device 104.
[0081] The notification may be text based, audio based, and / or graphics based. The notification makes any hallucinations by the generative neural network 110 further apparent to the healthcare professional 101.
[0082] For example, the determination that an inconsistency between a given section and its supporting evidence exists can be made by using the generative neural network 110. The clinical assistance system 100 can provide a network input that includes (i) a given section of the clinical note 112 that has been generated by the generative neural network 110, (ii) the supporting evidence for the given section of the clinical note 112 has been generated by the synthesis generative neural network 124, and (iii) an instruction to evaluate consistency between given section of the clinical note 112 and the supporting evidence, and process the network input using the generative neural network 110 to generate a network output that defines whether or not the given section of the clinical note 112 is consistent with its the supporting evidence.
[0083] In general the instruction can include text in some natural language that, when processed as part of the network input by the generative neural network 110, causes it to generate the network output that defines whether or not the given section of the clinical note 112 is consistent with its supporting evidence.
[0084] In the case of inconsistency between the given section and its supporting evidence, some implementations of the clinical assistance system 100 can modify the given section of the clinical note 112 based on its supporting evidence.
[0085] In some implementations, the modification is done in an automatic manner. For example, the clinical assistance system 100 could use the generative neural network 110 to automatically augment the given section in the clinical note 112.
[0086] For example, the clinical assistance system 100 can provide a network input that includes (i) the given section of the clinical note 112 that has been generated by using at least the generative neural network 110, (ii) the supporting evidence for the given section of the clinical note 112 has been generated by the synthesis generative neural network 124, and (iii) an instruction to modify the clinical note based on the supporting evidence, and process the network input using the generative neural network 110 to generate a network output to generate a network output that defines a modified clinical note that has been modified consistent with the supporting evidence for the given section of the clinical note 112.
[0087] In general the instruction can include text in some natural language that, when processed as part of the network input by the generative neural network 110, causes it to generate the network output that defines the modified clinical note. For example, the modified clinical note can include a modification, replacement, or other correction to a part or entirety of the given section of the clinical note 112.
[0088] In this way, supporting evidence that is generated using the generative machine learning system 120 based on data obtained from the EMR database 150, the one or more external databases 160, or both is made visible to the generative neural network 110 and can be exploited by the generative neural network 110 to automatically detect inconsistencies that are hallmarks of hallucination. This has the effect of reducing the likelihood of hallucinations by the generative neural network 110.
[0089] In some other implementations, the modification is done only in response to received requests. For example, the clinical assistance system 100 would not augment the given section in the clinical note 112 using the generative neural network 110 until after a request has been received from the healthcare professional 101 to modify the clinical note (although the notification about the inconsistency may always be presented regardless of whether the clinical note 112 is eventually modified).
[0090] For example, the clinical assistance system 100 can receive, from the healthcare professional 101 and by way of the user interface of the user application running on the client device 104, a request to modify the given section in the clinical note 112 in response to viewing the notification about the inconsistency. For example, the request can be in the form of a click input or other selecting input. As another example, the request can be in the form of a keyboard input. As another example, the request can be a natural language request that is in the form of a voice input.
[0091] Relative to having a single generative neural network to generate both clinical notes and their supporting evidence, having separate generative neural networks for clinical notes and their supporting evidence provides a more effective approach to alleviate hallucinations and improving overall accuracy by leveraging the strengths of different AI models and introduces a valuable layer of verification. As a result the quality of the clinical notes can be improved. For example the clinical notes 112 generated by the clinical assistance 100 are more likely to be factually accurate and grounded in reality.
[0092] A neural network is called a “generative” neural network when it has the capability to generate new content that is previously unseen during the training of the neural network. For example, a generative neural network can generate sequences of tokens that were previously unseen in the training data that was used to train the generative neural network.
[0093] Each generative neural network described in this specification can be a large language model that has been configured through training to enable it to receive an input sequence made up of tokens selected from a vocabulary and auto-regressively generates an output sequence made up of tokens from the vocabulary. That is, each generative neural network can be an “auto-regressive” language model. Thus, each network input mentioned above can be represented in the form of an input sequence; similarly, each network output mentioned above can be represented in the form of an output sequence.
[0094] A large language model is a neural network that includes many neural network parameters. For example, each generative neural network can include, e.g., at least one million parameters, or at least one billion parameters, or at least one trillion parameters.
[0095] The vocabulary of tokens can include any of a variety of tokens that represent text symbols or other symbols. For example, the vocabulary of tokens can include one or more of characters, sub-words, words, punctuation marks, numbers, or other symbols that appear in a corpus of natural language text.
[0096] More specifically, the auto-regressively generated output sequence is created by generating each particular token in the output sequence conditioned on a current input sequence that includes any tokens that precede the particular text token in the output sequence, i.e., the tokens that have already been generated for any previous positions in the output sequence that precede the particular position of the particular token, and the tokens included in the input sequence.
[0097] To generate a particular token at a particular position within an output sequence, a generative neural network can process the current input sequence to generate a score distribution, e.g., a probability distribution, that assigns a respective score, e.g., a respective probability, to each token in the vocabulary of tokens. The generative neural network can then select, as the particular token, a token from the vocabulary using the score distribution. For example, the generative neural network can greedily select the highest-scoring token or can sample, e.g., using nucleus sampling or another sampling technique, a token from the distribution.
[0098] Each generative neural network can include a respective set of neural network parameters, e.g., defining the weights and, optionally, bias associated with the layers of the neural network, and the set of neural network parameters can have values learned through training to cause the generative neural network to perform its described functions.
[0099] Each generative neural network described in this specification can have any appropriate language model architecture which enables the neural network to perform its described functions. In particular, each generative neural network can include any appropriate types of neural network layers (e.g., fully-connected layers, attention layers, embedding layers, activation layers, etc.) in any appropriate number (e.g., 5 layers, 10 layers, or 50 layers) and connected in any appropriate configuration (e.g., as a linear sequence of layers).
[0100] For example, each generative neural network can have any of a variety of Transformer-based neural network architectures, e.g., encoder-only Transformer architectures, encoder-decoder Transformer architectures, decoder-only Transformer architectures, other attention-based architectures, and so on.
[0101] A Transformer-based neural network is characterized by having a sequence of attention layers. Each attention layer has an attention mechanism. There are many different attention mechanisms that may be used. For example, a self-attention layer has a self-attention mechanism, and a cross-attention layer has a cross-attention mechanism.
[0102] Examples of the Transformer-based neural network architectures include those described in Anil, Rohan, et al. “Palm 2 technical report.” arXiv preprint arXiv:2305.10403(2023 ); Grattafiori, Aaron, et al. “The Ilama 3 herd of models.” arXiv preprint arXiv:2407.21783(2024 ); and Jiang, Albert Q., et al. “Mixtral of experts.” arXiv preprint arXiv:2401.04088 (2024).
[0103] Prior to being used to generate clinical notes 112, the generative neural networks are trained, e.g., by the clinical assistance system 100 or another training system, on training data to determine trained values of the respective sets of neural network parameters of the generative neural networks.
[0104] In some implementations, the clinical assistance system 100 or the other training system pre-trains the generative neural network 110 (or, analogously, the synthesis generative neural network 124) based on optimizing an unsupervised objective function or a self-supervised function.
[0105] For example, the clinical assistance system 100 or the other training system can train the generative neural network 110 (or, analogously, the synthesis generative neural network 124) on a language modeling task, e.g., a task that requires predicting, given a current sequence of text tokens, the next token that follows the current sequence in a training data set. Equivalently, the language modeling task requires, for each given text sequence in the training data set, predicting a second portion of the given text sequence that followed a first portion of the given text sequence. As a particular example, the generative neural network 110 can be pre-trained on a maximum-likelihood objective function on a large dataset of text, e.g., text that is publicly available from the Internet or another text corpus.
[0106] During the pre-training, the generative neural network 110 (or, analogously, the synthesis generative neural network 124) can have been trained on text sequences that collectively include many tokens, e.g., at least one million, or at least one billion, or at least one trillion tokens.
[0107] In some implementations, the clinical assistance system 100 or the other training system fine-tunes, i.e., further trains, the generative neural network 110 (or, analogously, the synthesis generative neural network 124) compared to a baseline generative neural network, e.g., after the generative neural network 110 is pre-trained to determine trained values of neural network parameters, in order to determine further updates to some or all of the trained values.
[0108] For example, the clinical assistance system 100 or the other training system can further train the generative neural network 110 on a set of fine-tuning training examples based at least in part on using a reinforcement learning with human feedback (RLHF) technique, a supervised fine-tuning (SFT) technique, or the like. Each fine-tuning training example includes a training network input that includes a set of patient-related data and, optionally, a target network output that includes a target clinical note to be generated based on the patient-related data.
[0109] FIG. 2 is a flow diagram of an example process 200 for generating a clinical note for a patient. For convenience, the process 200 will be described as being performed by one or more systems of one or more computers located in one or more locations. For example, a clinical assistance system, e.g., the clinical assistance system 100 of FIG. 1, appropriately programmed in accordance with this specification, can perform the process 200.
[0110] The clinical assistance system receives a request to generate a clinical note for a patient in an environment that includes the patient and a healthcare professional (step 202). The request can be received by the clinical assistance system in any of the variety of ways.
[0111] In some implementations, the request can be sent by a client device of the healthcare professional, e.g., by way of a user application included in the client device, and received by the clinical assistance system. For example, the request can be in the form of a click input or other selecting input. As another example, the request can be in the form of a keyboard input. As another example, the request can be a natural language request that is in the form of a voice input.
[0112] In some implementations, the request is an automated request that is sent by the client device and received by the clinical assistance system. In some implementations, the request is an automated request that is generated by the clinical assistance system. For example, the automated request can be either sent by the user application included in the client device or generated by the clinical assistance system after the conversation between the healthcare professional and the patient has ended. As another example, the automated request can be one of a sequence of automated requests that is either periodically sent by the user application included in the client device or periodically generated by the clinical assistance system throughout the conversation between the healthcare professional and the patient.
[0113] The clinical assistance system generates, automatically and with minimal user involvement, the clinical note for the patient by using both the generative neural network and the generative machine learning system (step 204).
[0114] Step 204 is explained in more detail below with reference to FIG. 3, which illustrates how the clinical note can be generated by performing an iterative process that uses both the generative neural network and the generative machine learning system. The generative machine learning system includes a synthesis generative neural network that is separate from the generative neural network.
[0115] Step 204 is explained in more detail below with further reference to FIG. 4, which illustrates how the clinical note, once generated, e.g., by performing an iterative process that uses both the generative neural network and the generative machine learning system, can be augmented using supporting evidence.
[0116] Once generated, the clinical assistance system outputs the clinical note for the patient (step 206). For example, the clinical note can be provided for presentation on a display of the client device, e.g., in the user interface of the user application running on the client device. As another example, the clinical note can be sent as a text message or email to the patient. As another example, the clinical note can be provided to another system for further processing, or stored in a storage device for some future purpose. For example, the clinical note can be stored as part of the electronic medical record data for the patient.
[0117] As a particular example of further processing the clinical note, the clinical assistance system can allow the healthcare professional to gather more information by asking questions and getting information retrieved from and grounded in the patient context (including the entire set of EMR data for the patient, transcripts of audio recordings of previous visits, etc.), the one or more external databases, or both. For example, after the patient visit, the clinical assistance system can allow the healthcare professional to ask, e.g., in the user interface of the user application running on the client device, “what is the standard of care for controlling high blood pressure in this patient?” and generate a response that will be contextualized by the details of the patient and the visit while giving the evidence-based answer from the data retrieved from the patient context and the external databases. Once generated, the response can be used to augment the clinical note, e.g., added to the clinical note.
[0118] In some implementations, the clinical assistance system generates the clinical note by performing an iterative process that includes multiple iterations. The clinical assistance system maintains a set of intermediate data which is iteratively updated over the multiple iterations.
[0119] FIG. 3 is a flow diagram of sub-steps 302-306 of step 204 of the process of FIG. 2 for updating the set of intermediate data. Each iteration of the sub-steps 302-306 corresponds to an iteration in the iterative process. The clinical assistance system can repeatedly perform iterations of the sub-steps 302-306 to update the set of intermediate data.
[0120] The system can continue performing iterations of the sub-steps 302-306 until termination criteria have been satisfied, e.g., until a threshold number of iterations of the sub-steps 302-306 have been performed, until a threshold amount of wall clock time has elapsed, or until a maximum data size for the set of intermediate data is reached.
[0121] Prior to the first iteration, the clinical assistance system initializes the set of intermediate data, i.e., generates an initial set of intermediate data, based on (i) the patient data extracted from a set of EMR data for the patient stored in the EMR database and (ii) the transcript of the speech represented by audio included in the audio recording. The transcript is generated by the ASR model.
[0122] The patient data can be a subset of the set of EMR data for the patient stored in the EMR database. Thus, the patient data may have a smaller data size than the entire set of EMR data for the patient. For example, before the patient visit, the clinical assistance system can allow the healthcare professional to ask questions against the patient's historical record, e.g., in the user interface of the user application running on the client device, and can further allow the healthcare professional to automatically extract, as the patient data, a subset of EMR data from the set of EMR data for the patient stored in the EMR database. In implementations this can be accomplished through large-scale retrieval against all the set of EMR data for the patient.
[0123] At each iteration, the clinical assistance system generates, using the generative neural network and based at least in part on the set of intermediate data, one or more network outputs that define one or more internal queries that request additional, relevant information (step 302). The one or more internal queries include one or more first internal queries that request relevant information from the set of EMR data for the patient, one or more internal second queries that request relevant information from one or more databases of medical literature, or both.
[0124] For example, to generate the one or more first (or, analogously, second) internal queries, the clinical assistance system can provide a network input that includes (i) an instruction to generate the first (or, analogously, second) internal queries, and (ii) the set of intermediate data, and process the network input using the generative neural network to generate a network output that defines the one or more first (or, analogously, second) internal queries.
[0125] In general the instruction can include text in some natural language that, when processed as part of the network input by the generative neural network, causes it to generate the first internal queries that request additional information from the set of EMR data for the patient that is relevant to the conversation between the healthcare professional and the patient, but not yet included in the set of intermediate data; or, analogously, the second internal queries that request additional information from the one or more external databases that is relevant to the conversation but not yet included.
[0126] In response, the clinical assistance system invokes one or more instances of the generative machine learning system, which includes the synthesis generative neural network that is separate from the generative neural network, to generate a response to each of the one or more internal queries (step 304).
[0127] Each first internal query invokes an instance of the generative machine learning system to generate a response to the first internal query based on set of EMR data for the patient stored in the EMR database. Each second internal query invokes an instance of the generative machine learning system to generate a response to the second internal query based on one or more electronic documents stored in the one or more external databases.
[0128] For example, for each first (or second) internal query, the generative machine learning system can provide a network input that includes (i) an instruction to generate a response to the first (or second) internal query, (ii) data obtained from the set of EMR data for the patient stored in the EMR database (or data obtained from the one or more electronic documents stored in the one or more external databases), and optionally, (iii) the set of intermediate data, and process the network input using the synthesis generative neural network to generate a network output that defines the response to the first (or second) internal query.
[0129] For each first (or second) internal query, the data obtained from the set of EMR data for the patient stored in the EMR database (or the data obtained from the one or more electronic documents stored in the one or more external databases) can include a set of one or more text chunks that are predicted by the generative machine learning system to be relevant to the first (or second) internal query.
[0130] Each text chunk can be a phrase, sentence, paragraph, or passage within a source document (either the set of EMR data for the patient stored in the EMR database, or an electronic document stored in the one or more external databases). In some implementations, the text chunks can have about equal length as each other. In some implementations, a text chunk can have about equal length as a section within the clinical node whereas, in other implementations, a text chunk can have a different length than a section within the clinical node.
[0131] To obtain the set of text chunks, the generative machine learning system performs an automated retrieval step. There are many ways in which the automated retrieval step can be performed.
[0132] In some implementations, the generative machine learning system utilizes a semantic search algorithm to perform the automated retrieval step. The generative machine learning system identifies the set of text chunks based on semantic similarity between (i) the first (or second) internal query and (ii) the set of EMR data for the patient stored in the EMR database, or the electronic documents stored in the one or more external databases. A portion of the set of EMR data, or an electronic document or a portion thereof that has been identified as being relevant, i.e., when a semantic similarity there between satisfies a similarity threshold, to the first (or second) internal query is extracted as a text chunk in the set of text chunks.
[0133] In some implementations, the generative machine learning system utilizes a textual (e.g., non-semantic) search algorithm to perform the automated retrieval step. The generative machine learning system identifies, as a text chunk in the set of text chunks, a portion of the set of EMR data, an electronic document or a portion thereof, that contains certain keywords or phrases.
[0134] In some implementations where the generative machine learning system includes an embedding neural network, the generative machine learning system can use it to perform the automated retrieval step.
[0135] The generative machine learning system performs an embedding-based search algorithm based on an exact (i.e., brute-force) or approximate comparison of (i) an embedding of the first (or second) internal query, and (ii) an embedding of each of one or more portions of the set of EMR data for the patient stored in the EMR database, or an embedding of each of one or more portions of each electronic document stored in the one or more external databases.
[0136] A portion of the set of EMR data, or an electronic document or a portion thereof that has been identified as being similar, e.g., when an embedding distance therebetween satisfies a distance threshold, to the first (or second) internal query is extracted as a text chunk in the set of text chunks.
[0137] The embedding neural network can have any appropriate neural network architecture which enables the embedding neural network to process the first (or second) internal query or a portion thereof to generate an embedding of the first (or second) internal query or a portion thereof, process an electronic document or a portion thereof to generate an embedding of the electronic document or the portion thereof, or process the set of EMR data or a portion thereof to generate an embedding of the set of EMR data or the portion thereof.
[0138] An embedding is an ordered collection of numeric values in an embedding space. For example, an embedding can include one or more vectors of floating point or other numeric values that has a fixed dimensionality. The embeddings generally have the same dimensionality, i.e., the internal query embeddings, the electronic document embeddings, and the EMR data embeddings have the same number of numeric values.
[0139] For example, the embedding neural network can include any appropriate types of neural networks layers (e.g., fully-connected layers, embedding layers, attention layers, etc.) in any appropriate number (e.g., 5 layers, 10 layers, or 20 layers) and connected in any appropriate configuration (e.g., as a linear sequence of layers).
[0140] In some implementations, the clinical assistance system parallelizes the operations involved in the automated retrieval step performed with respect to each internal query, e.g., such that a response to a first internal query is generated substantially in parallel with a response to a second internal query. Parallelized processing reduces the latency in generating the response to the one or more internal queries.
[0141] For example, the generative machine learning system can distribute the one or more internal queries across a plurality of computing units. The plurality of computing units collectively implement operations-e.g., including the data retrieval operations, the response generation operations, or both-with respect to each of the one or more internal queries to process the one or more internal queries substantially in parallel.
[0142] Throughout this specification, a “computing unit” may be, e.g., a computer, a core within a computer having multiple cores, or other hardware or software, e.g., a dedicated thread, within a computer capable of independently perform operations. The computing units may include processor cores, processors, microprocessors, special-purpose logic circuitry, e.g., an FPGA (field-programmable gate array) or an ASIC (application-specific integrated circuit), e.g., an AI accelerator chip, or any other appropriate computing units. In some examples, the computing units are all the same type of computing unit. In other examples, the computing units may be different types of computing units. For example, one computing unit may be a CPU while other computing units may be GPUs.
[0143] The clinical assistance system augments (updates) the set of intermediate data based on the response to each of the one or more internal queries (step 306). Augmenting the set of intermediate data can include either adding the responses to the set of intermediate data, or alternatively replacing some existing data in the set with the responses.
[0144] After the final iteration of the multiple iterations, the clinical assistance system processes the set of intermediate data that has been updated as of the final iteration in the iterative process using the generative neural network to generate a plurality of sections of the clinical note. Thus, the clinical note is generated by using both the generative neural network and the generative machine learning system and as a result of performing the iterative process.
[0145] For example, the clinical assistance system can provide a network input that includes (i) an instruction to generate clinical note, (ii) the transcript of the speech represented by audio included in the audio recording, and (iii) the set of intermediate data that has been updated as of the final iteration in the iterative process, and process the network input using the generative neural network to generate a network output that defines the plurality of sections of the clinical note. In general the instruction can include text in some natural language that, when processed as part of the network input by the generative neural network, causes it to generate the plurality of sections of the clinical note.
[0146] FIG. 4 is a flow diagram of sub-steps 402-406 of step 204 of the process of FIG. 2 for augmenting the clinical note to include supporting evidence. The clinical assistance system can perform an iteration of the sub-steps 402-406 to generate supporting evidence for a section of the clinical note. By repeatedly performing one or more iterations of the sub-steps 402-406, the clinical assistance system can generate supporting evidence for each of one or more sections of the clinical note.
[0147] The clinical assistance system identifies a section of the clinical note as requiring augmentation with supporting evidence (step 402). There are many ways in which the clinical assistance system can make this identification.
[0148] In some implementations, the identification is made automatically and on-the-fly as the generative neural network auto-regressively generates the plurality of sections of the clinical note. In some of these implementations, all of the plurality of sections of the clinical note generated by the generative neural network may be identified as requiring augmentation with supporting evidence.
[0149] For example, the clinical assistance system can identify the most recently generated section among the plurality of sections of the clinical note as requiring augmentation with supporting evidence. That is, once the generative neural network finishes generating a complete section, the clinical assistance system can identify that section as requiring augmentation with supporting evidence.
[0150] In some implementations, the identification is made in response to received requests. For example, the clinical assistance system can receive, from the healthcare professional and by way of the user interface of the user application running on the client device, a selection of the section of the clinical note along with a user input that identifies the selection of the clinical note as requiring augmentation with supporting evidence.
[0151] The clinical assistance system generates supporting evidence for the section of the clinical note using the generative machine learning system, which includes the synthesis generative neural network that is separate from the generative neural network (step 404).
[0152] For example, the clinical assistance system can provide a network input that includes (i) an instruction to generate supporting evidence, (ii) the section of the clinical note, and (iii) data obtained from the set of EMR data for the patient stored in the EMR database, data obtained from the one or more external databases, or both, and process the network input using the synthesis generative neural network to generate a network output that defines supporting evidence for the section of the clinical note.
[0153] In general the instruction can include text in some natural language that, when processed as part of the network input by the synthesis generative neural network, causes it to generate the supporting evidence for the section of the clinical note. For any section of the clinical note, the supporting evidence is a collection of data that, when used to augment the section of the clinical note, improves the factual accuracy of the clinical note and, in some implementations, reduces the likelihood of hallucinations by the generative neural network.
[0154] The data obtained from the set of EMR data for the patient stored in the EMR database, or the data obtained from the one or more external databases, can include a set of one or more text chunks that are predicted by the generative machine learning system to be relevant to the section of the clinical note, or relevant to generating supporting evidence for the section of the clinical note.
[0155] To obtain the set of text chunks, the generative neural network system performs an automated retrieval step. Like in step 304 of FIG. 3, there are many ways in which the automated retrieval step can be performed.
[0156] In some implementations, the clinical assistance system utilizes a semantic search algorithm to identify a portion of the set of EMR data, or an electronic document or a portion thereof, as a text chunk in the set of text chunks.
[0157] In some implementations, the clinical assistance system utilizes a textual (e.g., non-semantic) search algorithm to identify a portion of the set of EMR data, or an electronic document or a portion thereof, as a text chunk in the set of text chunks.
[0158] In some implementations where the generative machine learning system also includes an embedding neural network, the clinical assistance system utilizes an embedding-based search algorithm based on a comparison of (i) an embedding of the section of the clinical note, and (ii) an embedding of each of one or more portions of the set of EMR data for the patient stored in the EMR database, or an embedding of each of one or more portions of each electronic document stored in the one or more external databases.
[0159] A portion of the set of EMR data, or an electronic document or a portion thereof that has been identified as being similar, e.g., when an embedding distance therebetween satisfies a distance threshold, to the section of the clinical note is extracted as a text chunk in the set of text chunks.
[0160] The embedding neural network can be either the same as or different from the embedding neural network discussed above with reference to step 304 of FIG. 3. An embedding is an ordered collection of numeric values in an embedding space. The embeddings generally have the same dimensionality, i.e., the clinical note embeddings, the electronic document embeddings, and the EMR data embeddings have the same number of numeric values.
[0161] The clinical assistance system augments (updates) the clinical note using the supporting evidence (step 406). Augmenting the clinical note using the supporting evidence improves the accurate and comprehensiveness of the supporting evidence and minimizes the impact caused by any hallucinations by the generative neural network when generating the clinical note, thereby reducing medical errors and providing better support for more informed decision-making throughout the care process.
[0162] There are many ways in which the supporting evidence can be used to augment the clinical note, as discussed above with reference to FIG. 1. For example, the clinical assistance system can add the supporting evidence to the clinical note, e.g., add the supporting evidence next to the section of the clinical note that has been identified as requiring augmentation with supporting evidence. As another example, the clinical assistance system can add to the clinical note a citation of each source electronic document stored in the one or more external databases 160 from which a text chunk in the set of text chunks was extracted.
[0163] This specification uses the term “configured” in connection with systems and computer program components. For a system of one or more computers to be configured to perform particular operations or actions means that the system has installed on it software, firmware, hardware, or a combination of them that in operation cause the system to perform the operations or actions. For one or more computer programs to be configured to perform particular operations or actions means that the one or more programs include instructions that, when executed by data processing apparatus, cause the apparatus to perform the operations or actions.
[0164] Embodiments of the subject matter and the functional operations described in this specification can be implemented in digital electronic circuitry, in tangibly-embodied computer software or firmware, in computer hardware, including the structures disclosed in this specification and their structural equivalents, or in combinations of one or more of them.
[0165] Embodiments of the subject matter described in this specification can be implemented as one or more computer programs, i.e., one or more modules of computer program instructions encoded on a tangible non-transitory storage medium for execution by, or to control the operation of, data processing apparatus. The computer storage medium can be a machine-readable storage device, a machine-readable storage substrate, a random or serial access memory device, or a combination of one or more of them. Alternatively or in addition, the program instructions can be encoded on an artificially-generated propagated signal, e.g., a machine-generated electrical, optical, or electromagnetic signal, that is generated to encode information for transmission to suitable receiver apparatus for execution by a data processing apparatus.
[0166] The term “data processing apparatus” refers to data processing hardware and encompasses all kinds of apparatus, devices, and machines for processing data, including by way of example a programmable processor, a computer, or multiple processors or computers. The apparatus can also be, or further include, special purpose logic circuitry, e.g., an FPGA (field programmable gate array) or an ASIC (application-specific integrated circuit). The apparatus can optionally include, in addition to hardware, code that creates an execution environment for computer programs, e.g., code that constitutes processor firmware, a protocol stack, a database management system, an operating system, or a combination of one or more of them.
[0167] A computer program, which may also be referred to or described as a program, software, a software application, an app, a module, a software module, a script, or code, can be written in any form of programming language, including compiled or interpreted languages, or declarative or procedural languages; and it can be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment. A program may, but need not, correspond to a file in a file system. A program can be stored in a portion of a file that holds other programs or data, e.g., one or more scripts stored in a markup language document, in a single file dedicated to the program in question, or in multiple coordinated files, e.g., files that store one or more modules, sub-programs, or portions of code. A computer program can be deployed to be executed on one computer or on multiple computers that are located at one site or distributed across multiple sites and interconnected by a data communication network.
[0168] In this specification the term “engine” is used broadly to refer to a software-based system, subsystem, or process that is programmed to perform one or more specific functions.
[0169] Generally, an engine will be implemented as one or more software modules or components, installed on one or more computers in one or more locations. In some cases, one or more computers will be dedicated to a particular engine; in other cases, multiple engines can be installed and running on the same computer or computers.
[0170] The processes and logic flows described in this specification can be performed by one or more programmable computers executing one or more computer programs to perform functions by operating on input data and generating output. The processes and logic flows can also be performed by special purpose logic circuitry, e.g., an FPGA or an ASIC, or by a combination of special purpose logic circuitry and one or more programmed computers.
[0171] Computers suitable for the execution of a computer program can be based on general or special purpose microprocessors or both, or any other kind of central processing unit. Generally, a central processing unit will receive instructions and data from a read-only memory or a random access memory or both. The essential elements of a computer are a central processing unit for performing or executing instructions and one or more memory devices for storing instructions and data. The central processing unit and the memory can be supplemented by, or incorporated in, special purpose logic circuitry. Generally, a computer will also include, or be operatively coupled to receive data from or transfer data to, or both, one or more mass storage devices for storing data, e.g., magnetic, magneto-optical disks, or optical disks. However, a computer need not have such devices. Moreover, a computer can be embedded in another device, e.g., a mobile telephone, a personal digital assistant (PDA), a mobile audio or video player, a game console, a Global Positioning System (GPS) receiver, or a portable storage device, e.g., a universal serial bus (USB) flash drive, to name just a few.
[0172] Computer-readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media and memory devices, including by way of example semiconductor memory devices, e.g., EPROM, EEPROM, and flash memory devices; magnetic disks, e.g., internal hard disks or removable disks; magneto-optical disks; and CD-ROM and DVD-ROM disks.
[0173] To provide for interaction with a user, embodiments of the subject matter described in this specification can be implemented on a computer having a display device, e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor, for displaying information to the user and a keyboard and a pointing device, e.g., a mouse or a trackball, by which the user can provide input to the computer. Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback, e.g., visual feedback, auditory feedback, or tactile feedback; and input from the user can be received in any form, including acoustic, speech, or tactile input. In addition, a computer can interact with a user by sending documents to and receiving documents from a device that is used by the user; for example, by sending web pages to a web browser on a user's device in response to requests received from the web browser. Also, a computer can interact with a user by sending text messages or other forms of message to a personal device, e.g., a smartphone that is running a messaging application, and receiving responsive messages from the user in return.
[0174] Data processing apparatus for implementing machine learning models can also include, for example, special-purpose hardware accelerator units for processing common and compute-intensive parts of machine learning training or production, i.e., inference, workloads.
[0175] Machine learning models can be implemented and deployed using a machine learning framework, e.g., a TensorFlow framework, or a Jax framework.
[0176] Embodiments of the subject matter described in this specification can be implemented in a computing system that includes a back-end component, e.g., as a data server, or that includes a middleware component, e.g., an application server, or that includes a front-end component, e.g., a client computer having a graphical user interface, a web browser, or an app through which a user can interact with an implementation of the subject matter described in this specification, or any combination of one or more such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication, e.g., a communication network. Examples of communication networks include a local area network (LAN) and a wide area network (WAN), e.g., the Internet.
[0177] The computing system can include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. In some embodiments, a server transmits data, e.g., an HTML page, to a client device, e.g., for purposes of displaying data to and receiving user input from a user interacting with the device, which acts as a client. Data generated at the client device, e.g., a result of the user interaction, can be received at the server from the device.
[0178] While this specification contains many specific implementation details, these should not be construed as limitations on the scope of any invention or on the scope of what may be claimed, but rather as descriptions of features that may be specific to particular embodiments of particular inventions. Certain features that are described in this specification in the context of separate embodiments can also be implemented in combination in a single embodiment.
[0179] Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination. Moreover, although features may be described above as acting in certain combinations and even initially be claimed as such, one or more features from a claimed combination can in some cases be excised from the combination, and the claimed combination may be directed to a subcombination or variation of a subcombination.
[0180] Similarly, while operations are depicted in the drawings and recited in the claims in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. In certain circumstances, multitasking and parallel processing may be advantageous. Moreover, the separation of various system modules and components in the embodiments described above should not be understood as requiring such separation in all embodiments, and it should be understood that the described program components and systems can generally be integrated together in a single software product or packaged into multiple software products.
[0181] Particular embodiments of the subject matter have been described. Other embodiments are within the scope of the following claims. For example, the actions recited in the claims can be performed in a different order and still achieve desirable results. As one example, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some cases, multitasking and parallel processing may be advantageous.
Claims
1. A method performed by one or more computers, the method comprising:receiving a request to generate a clinical note for a patient;automatically generating the clinical note for the patient using a generative neural network that processes a network input comprising at least patient data extracted from a set of electronic medical record data for the patient, wherein generating the clinical note comprises:identifying a passage of the clinical note generated by the generative neural network as requiring augmentation with supporting evidence;generating supporting evidence for the passage of the clinical note using a synthesis generative neural network that is separate from the generative neural network, the synthesis generative neural network and the generative neural network having distinct sets of neural network parameters; andaugmenting the clinical note by modifying the passage of the clinical note using the generative neural network based on the supporting evidence generated by the synthesis generative neural network; andoutputting the clinical note for the patient.
2. The method of claim 1, further comprising, prior to generating the clinical note:obtaining an audio recording of an interaction between a healthcare provider and the patient; andprocessing a model input derived from the audio recording using a speech-to-text machine learning model to generate a transcript of the audio recording;wherein the network input that is processed by the generative neural network to generate the clinical note further comprises the transcript of the audio recording.
3. The method of claim 1, wherein generating supporting evidence for the passage of the clinical note using the synthesis generative neural network comprises:generating, by the generative neural network, a network output that invokes a generative machine learning system that includes the synthesis generative neural network to generate supporting evidence for the passage of the clinical note; andin response, invoking the generative machine learning system to generate the supporting evidence for the passage of the clinical note.
4. The method of claim 3, wherein invoking the generative machine learning system to generate the supporting evidence for the passage of the clinical note comprises:performing an automated retrieval step to obtain a set of text chunks that are predicted to be relevant to generating supporting evidence for the passage of the clinical note; andprocessing a network input that comprises: (i) an instruction to generate supporting evidence, (ii) the passage of the clinical note, and (iii) the set of text chunks, using a-the synthesis generative neural network to generate a network output that defines supporting evidence for the passage of the clinical note.
5. The method of claim 4, wherein performing the automated retrieval step to obtain the set of text chunks that are predicted to be relevant to generating supporting evidence for the passage of the clinical note comprises:obtaining the set of text chunks from one or more databases, comprising a database of electronic medical record data for the patient, or a database of medical literature, or both.
6. The method of claim 4, wherein obtaining the set of text chunks from one or more databases comprises:performing an embedding-based comparison of: (i) the passage of the clinical note, and (ii) text chunks from the one or more databases.
7. The method of claim 4, wherein augmenting the clinical note to include the supporting evidence comprises augmenting the clinical note to include citations of documents from which the text chunks were extracted.
8. The method of claim 1, wherein the generative neural network generates the passage of the clinical note that requires augmentation with supporting evidence.
9. The method of claim 1, wherein identifying the passage of the clinical note as requiring augmentation with supporting evidence comprises:receiving, from a user and by way of a user interface, a selection of the passage of the clinical note along with a user input that identifies the passage of the clinical note as requiring augmentation with supporting evidence.
10. The method of claim 1, further comprising:determining, using the generative neural network, that the supporting evidence is not consistent with the passage of the clinical note; andin response, generating a notification that the supporting evidence is not consistent with the passage of the clinical note.
11. The method of claim 1, further comprising presenting the notification on a user interface.
12. The method of claim +3, wherein generating the clinical note comprises:maintaining and iteratively updating a set of intermediate data over a plurality of iterations, comprising, at each iteration:generating, using the generative neural network and based at least in part on the set of intermediate data, a network output that invokes the generative machine learning system to:(i) generate a response to an internal query based on electronic medical record data for the patient, or(ii) generate a response to an internal query based on a database of medical literature;in response, invoking one or more instances of the generative machine learning system to generate responses to one or more internal queries; andaugmenting the set of intermediate data based on the responses to the internal queries.
13. The method of claim 12, further comprising, after a final iteration of the plurality of iterations, processing the set of intermediate data using the generative neural network to generate the clinical note.
14. The method of claim 1, wherein the network input to the generative neural network further comprises an instruction to generate the clinical note.
15. The method of claim 1, wherein the generative neural network is trained at least in part by reinforcement learning with human feedback.
16. The method of claim 1, wherein the generative neural network is an auto-regressive large language model.
17. The method of claim 1, further comprising:receiving, from a user, a natural language request to modify the clinical note; andprocessing a network input comprising: (i) the clinical note, and (ii) the natural language request to modify the clinical note, using the generative neural network to generate a network output that defines a modified clinical note that has been modified consistent with the natural language request from the user.
18. The method of claim 1, further comprising presenting the clinical note on a display or storing the clinical note in an electronic medical record for the patient.
19. A system comprising:one or more computers; andone or more storage devices communicatively coupled to the one or more computers, wherein the one or more storage devices store instructions that, when executed by the one or more computers, cause the one or more computers to perform operations comprising:receiving a request to generate a clinical note for a patient;automatically generating the clinical note for the patient using a generative neural network that processes a network input comprising at least patient data extracted from a set of electronic medical record data for the patient, wherein generating the clinical note comprises:identifying a passage of the clinical note generated by the generative neural network as requiring augmentation with supporting evidence;generating supporting evidence for the passage of the clinical note using a synthesis generative neural network that is separate from the generative neural network, the synthesis generative neural network and the generative neural network having distinct sets of neural network parameters; andaugmenting the clinical note by modifying the passage of the clinical note using the generative neural network based on the supporting evidence generated by the synthesis generative neural network; andoutputting the clinical note for the patient.
20. One or more non-transitory computer storage media storing instructions that when executed by one or more computers cause the one or more computers to perform operations comprising:receiving a request to generate a clinical note for a patient;automatically generating the clinical note for the patient using a generative neural network that processes a network input comprising at least patient data extracted from a set of electronic medical record data for the patient, wherein generating the clinical note comprises:identifying a passage of the clinical note generated by the generative neural network as requiring augmentation with supporting evidence;generating supporting evidence for the passage of the clinical note using a synthesis generative neural network that is separate from the generative neural network, the synthesis generative neural network and the generative neural network having distinct sets of neural network parameters; andaugmenting the clinical note by modifying the passage of the clinical note using the generative neural network based on the supporting evidence generated by the synthesis generative neural network; andoutputting the clinical note for the patient.
