Anesthesia evaluation decision-making system based on large language model and retrieval enhancement technology
By adopting large language model and search enhancement technology in the anesthesia evaluation decision-making system, combined with the improved BART model, the problem of inaccurate evaluation of pre-ansthesia visit system is solved, the comprehensive and standardized anesthesia evaluation is achieved, and the quality of anesthesia is improved. Patient satisfaction.
Patent Information
- Application Number
- CN202410955273.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-11-22
AI Technical Summary
The existing pre-ansthesia visit system is limited by its business level and clinical experience, and it is difficult to achieve comprehensive and automated, resulting in inaccurate anesthesia assessment and high psychological stress during the perioperative period, which affects the quality of anesthesia and surgical prognosis.
Using an anesthesia evaluation decision-making system based on large language model and search enhancement technology, the preoperative visit module, electronic medical record management module and anesthesia evaluation module are combined with improved BART model and search enhancement technology to generate structured data and prompt generation unit Improve the output accuracy and controllability of large language models.
The comprehensive and standardized anesthesia evaluation has been achieved, the work efficiency of anesthesiologists has been improved, the perioperative safety of patients is ensured, the patient's hospitalization time and expenses are reduced, and the patient's satisfaction is enhanced.
Smart Images

Figure CN119007922A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the medical field and the artificial intelligence field, and in particular to an anesthesia assessment decision system based on a large language model and retrieval enhancement technology. Background Art
[0002] In recent years, with the rapid development of minimally invasive surgical techniques and accelerated rehabilitation medicine, patients have an increasing demand for personalized and comfortable medical care. However, due to unfamiliarity with the surgical environment, concerns about the unknown anesthesia process and surgical efficacy, patients will always experience varying degrees of psychological stress, such as anxiety, during the perioperative period, which in turn affects their cooperation. In order to enable patients to maintain the best physiological and psychological state during the perioperative period, preoperative visits should be optimized to alleviate patients' concerns, thereby improving the quality of anesthesia and the prognosis of surgical treatment.
[0003] Pre-anesthesia visits and evaluations are important links in ensuring the safety of surgical anesthesia for patients. However, the quality of pre-anesthesia visits is often affected by the following factors: 1) Due to the limitations of the professional level and clinical experience of the visiting personnel, the relevant information obtained from the visit may not be the most comprehensive pre-operative visit information, and it is difficult to achieve the best pre-operative evaluation effect; 2) Patients often leave the ward the day before surgery due to being busy with various pre-operative preparations, missing the opportunity to communicate face-to-face with the anesthesiologist; 3) The imbalance between the rapid development of the medical industry and the huge gap in the number of anesthesiologists has led to most anesthesiologists having to complete the day's anesthesia surgery safety assurance work overtime, and pre-operative visits can only be completed in the intervals between anesthesia surgeries, affecting the quality of visits.
[0004] In summary, it is necessary to establish a new digital anesthesia visit and evaluation system based on the "Expert Consensus on Pre-anesthesia Visit and Evaluation (2021)" to achieve comprehensive and automated visits, thereby improving the work efficiency of anesthesiologists and ensuring the perioperative safety of patients.
[0005] With the continuous development of information technology, medical informatization has become the focus of medical advancement. Large language models (LLMs) can receive a large amount of training data and store extensive knowledge in the weights of neural networks. However, when we prompt large models to generate knowledge beyond the training data, such as the latest knowledge, knowledge in a specific field, etc., the output of LLMs may lead to inaccurate facts, which is what we often call model hallucination. At the same time, text descriptions generated directly using large language models may not meet high controllability requirements - first, when using large language models directly to generate text descriptions, large language models will describe in detail all attributes and attribute values in structured data, resulting in a lack of focus in the generated text; second, the direct use of large language models lacks fine-grained control, such as the order of generation. Summary of the invention
[0006] In order to solve the above problems, additional information sources such as external knowledge bases are introduced through retrieval augmentation (RAG) technology, and the accuracy, controllability and relevance of large language responses are improved through the retrieved evidence, thereby effectively reducing the problems of erroneous information generation and granularity control.
[0007] To achieve the above object, the present invention provides an anesthesia assessment decision system based on a large language model and retrieval enhancement technology, comprising:
[0008] Preoperative visit module, electronic medical record management module and anesthesia assessment module; among them,
[0009] Electronic medical record module, including basic patient information and diagnosis and treatment information;
[0010] The preoperative visit module includes a playback unit for playing anesthesia-related knowledge popularization videos to the patient; a visit unit for selecting corresponding visit questionnaires to ask questions to the patient based on the patient information extracted from the electronic medical record module before anesthesia, and sending the generated visit records and anesthesia assessment forms to the electronic medical record module or the anesthesia assessment module;
[0011] The anesthesia assessment module is used to receive the visit records and anesthesia assessment forms sent by the preoperative visit module, input them into the large language model after encoding, and generate a comprehensive anesthesia report, including the anesthesia plan and risk grading assessment index.
[0012] Furthermore, the preoperative visit module, based on the "Expert Consensus on Preanesthesia Visit and Evaluation (2021)", provides patient education and preoperative visits.
[0013] Furthermore, it also includes a robot consultation module for providing patients with answers to anesthesia-related questions; preferably, the robot consultation module uses the large language model of the anesthesia assessment module to generate answers.
[0014] Furthermore, it includes the doctor side and the patient side; the functions of the patient side include pre-anesthesia visits, electronic medical record generation and health education; the functions of the doctor side include confirmation of visit record contents, anesthesia evaluation and comprehensive report generation.
[0015] Furthermore, the anesthesia assessment module includes a case library, a planning sequence generation unit and a prompt generation unit, wherein:
[0016] The planning sequence generation unit generates structured data from the visit records and anesthesia assessment forms, and then generates planning sequences from the structured data through the improved BART model; in the improved BART model, the K matrix and V matrix headers of the multi-head attention modules of all Transformer blocks are embedded in a set of trainable vectors, and the i-th head The attention score calculation process is changed to:
[0017] hea d i =&Attention Q i , K i , V i # =&softmax Q i P k i : K i T d k [ P v i : V i ]
[0018] in, , Respectively , Prefix for matrix fragments, [:] Represents the concatenation operation of the matrix;
[0019] The prompt generation unit is used to compose a comprehensive prompt from task descriptions, examples, instructions, and structured data.
[0020] Furthermore, the training process of the improved BART model includes:
[0021] S11. Use the prefix-tuning method to embed the trainable vectors into the K matrix and V matrix headers of the multi-head attention modules of all Transformer blocks in the BART model.
[0022] S12, initializing anesthesia-related prefixes with vector representations of anesthesia-related phrases;
[0023] S13, mapping the initial anesthesia-related prefix vector to an anesthesia-related prefix vector by reparameterization;
[0024] S14. Compare the difference between the planning sequence generated by the improved BART model and the actual planning sequence of the input structured data, iteratively update the anesthesia-related prefix vector; and take the anesthesia-related prefix with the smallest difference between the generated planning sequence and the actual planning sequence as the final result.
[0025] Furthermore, in step S13, the re-parameterization process includes:
[0026] Use a multi-layer perceptron MLP to map the initialized prefix vector;
[0027] The mapped prefix vector is embedded into the initial BART model to obtain the improved BART model.
[0028] Furthermore, the cross entropy is used as the learning target to calculate the gap between the generated planning sequence and the true planning sequence, which is expressed as:
[0029]
[0030] in, It represents the parameter introduced by prefix-tuning. The model iteratively updates the parameter during the training process. D represents structured data, P represents the planning sequence, and i represents the i-th attribute name.
[0031] Further, the prompt generating unit includes:
[0032] S21. Construct descriptive text to clarify the input and output forms of the structured data to text generation task;
[0033] S22. Retrieve case libraries based on structured data-text description pairs, generate examples, and provide reference examples for the large language model;
[0034] S23. Design control instructions to achieve fine-grained control over generated content;
[0035] S24, concatenate descriptive text, examples, control instructions, and input structured data into a comprehensive prompt, and transmit it to the large language model.
[0036] Furthermore, in S22, the process of generating an example includes:
[0037] (1) According to the order in which the attribute names appear in the text description R corresponding to the structured data D, select the attribute names of the important attributes in the structured data and combine them into the corresponding planning sequence P;
[0038] (2) Construct an example set S, where each example is a triple of (D, R, P);
[0039] (3) Use the complete matching strategy to match the planning sequence P generated by the planning sequence generation unit with each triple P in S. If there is a complete match for P, the corresponding (D, R) in the triple is used as the generation example of the comprehensive prompt. If not, the triple (D, R) corresponding to P with the most attribute names in P in the example set S is used as the example of the comprehensive prompt.
[0040] Compared with the existing systems, the anesthesia assessment decision system based on the large language model and retrieval enhancement technology provided by the present invention has the following beneficial effects:
[0041] (1) To carry out clinical innovation and translational research, we should target clinical pain points, proceed from the vital interests of patients, and use information technology to achieve the systematization and traceability of preoperative visit information.
[0042] (2) Utilize retrieval-enhanced generation technology to retrieve information from the database to assist the large language model (LLM) in generating answers and form real-time dynamic feedback for human-computer interaction, and establish a new digital anesthesia visit evaluation system to achieve comprehensive and standardized visits, thereby improving the work efficiency of anesthesiologists and ensuring the perioperative safety of patients.
[0043] (3) By accurately obtaining the patient's relevant medical history information and achieving the best effect of preoperative visits by medical staff, the best plans for preoperative preparation, anesthesia and surgery can be formulated in advance, which is conducive to ensuring the smooth and safe progress of the operation and improving the patient's hospitalization experience and satisfaction, thereby shortening the patient's hospitalization time and reducing the total hospitalization costs.
[0044] (4) The complex structured data to text generation task is split into two parts: planning generation and text generation, thereby ensuring that the large language model is competent, alleviating the hallucination phenomenon of the large language model, and enhancing the controllability of the generation results. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0046] Figure 1 A schematic diagram of the structure of an anesthesia assessment decision system according to an embodiment of the present invention;
[0047] Figure 2 A schematic diagram of an improved BART model structure according to an embodiment of the present invention;
[0048] Figure 3 A schematic diagram of a training process of anesthesia-related prefixes according to an embodiment of the present invention;
[0049] Figure 4 A schematic diagram of a comprehensive prompt generation process according to an embodiment of the present invention. DETAILED DESCRIPTION
[0050] In order to make the purpose, technical scheme and advantages of the embodiment of the present invention clearer, the technical scheme in the embodiment of the present invention will be clearly and completely described in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is a part of the embodiment of the present invention, not all of the embodiments. In the absence of conflict, the examples in this application can be combined with each other. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work belong to the scope of protection of the present invention.
[0051] The anesthesia assessment decision system based on large language model and retrieval enhancement technology proposed in the present invention is as follows: Figure 1 As shown, it includes preoperative visit module, electronic medical record management module and anesthesia assessment module.
[0052] The electronic medical record module includes the patient's name, height, weight and other basic information, as well as examination reports, medical conditions, medications, doctor's orders and other medical information.
[0053] The preoperative visit module includes a health education unit, which is used to inform patients of preoperative precautions and relieve patients' preoperative tension and anxiety, such as playing a two-minute anesthesia-related knowledge popular science video to patients; the visit unit is used to select the corresponding visit questionnaire to ask patients questions before anesthesia based on the patient's basic information extracted from the electronic medical record (age, history of heart disease, special physiological period for women, reason for anesthesia, etc.). The question setting adopts a step-by-step approach and proceeds sequentially according to the content of the visit. For example, the corresponding anesthesia assessment scale is intelligently matched according to the patient's visit information, and the patient is guided to complete a series of information filling. A report is generated according to the classification for the patient to view and confirm or modify, and the report is sent to the electronic medical record module or the anesthesia assessment module. In one embodiment, based on the "Expert Consensus on Pre-Anesthetic Visits and Evaluations (2021)", patients can be educated and visited preoperatively.
[0054] The anesthesia assessment module is used to receive the patient visit records and anesthesia assessment forms sent by the preoperative visit module, and after encoding, input them into the large language model to generate a comprehensive anesthesia report, including anesthesia plan, risk grading assessment index, etc., to assist anesthesiologists in making clinical decisions.
[0055] In one embodiment, the present invention further comprises a robotic consultation module for providing 24-hour automatic assistance to patients on issues related to anesthesia delivery and the like.
[0056] The present invention includes a doctor side and a patient side. The functions of the patient side include pre-anesthesia visits, electronic medical record generation and health education. The functions of the doctor side include confirmation of visit record content, anesthesia evaluation and comprehensive report generation, that is, the doctor can view the patient's electronic medical record and perform anesthesia evaluation.
[0057] In one embodiment, a large language model is used in the anesthesia assessment module, such as ChatGPT, Baidu's Wenxin Yiyan, Gemini, etc., but as described in the background technology, there are problems with hallucinations and controllability when only this model is used. Therefore, in this embodiment, the input of the large language model is improved to improve the accuracy of the output of the large language model and the granularity of control over it. The anesthesia assessment module includes a case library, a planning sequence generation unit, and a prompt generation unit. The case library includes patient basic information, diagnosis and treatment information, anesthesia assessment form, anesthesia comprehensive report and other contents, which can have both positive samples and negative samples.
[0058] In the planning sequence generation unit, the visit records and anesthesia assessment forms are converted into structured data, and then the improved BART model is used to generate the planning sequence from the structured data. The existing technology can be used to extract attributes, etc. The structured data contains n attribute name-attribute value pairs. , the planning sequence contains all the important attribute names in the structured data. For example, the structured data is: name: Zhang San; disease: breast cancer; surgery time: January 2022, etc., and the planning sequence is: name, disease, surgery time. The structured data used for training can be obtained from the case library; its real planning sequence can be manually calibrated in advance.
[0059] The BART model is composed of 8 others from The model was first proposed by scholars at the end of October 2019. The model inherits the standard 6-layer encoder and 6-layer decoder architecture of the Transformer, in which the encoder uses a mask mechanism to build a bidirectional language model, while the decoder generates output in an autoregressive manner. The Transformer architecture in the BART model maps the Q, K, and V matrices of the multi-head attention module to each attention head and calculates the score of each attention head:
[0060]
[0061] in, , , Respectively Corresponding , , Matrix fragment, Represents the dimension of the attention hidden state of each head.
[0062] In the improved BART model, the K matrix and V matrix of the multi-head attention module of all Transformer blocks are embedded in a set of trainable vectors, and the i-th head The attention score calculation process is changed to:
[0063] hea d i =&Attention Q i , K i , V i # =&softmax Q i P k i : K i T d k [ P v i : V i ]
[0064] in, , Respectively , Prefix for matrix fragments, [:] Represents the concatenation operation of the matrix. The modified Transformer module structure is as follows Figure 2In this method, corresponding prefixes are added to the encoder and decoder of the pre-trained model BART, and the number of parameters introduced is less than 1% of the original BART parameters.
[0065] The training process of the improved BART model is as follows Figure 3 As shown, including:
[0066] S11. Use the prefix-tuning method to embed the trainable vectors into the K matrix and V matrix headers of the multi-head attention modules of all Transformer blocks in the BART model.
[0067] S12, initializing anesthesia-related prefixes with vector representations of anesthesia-related phrases;
[0068] S13, mapping the initial anesthesia-related prefix vector to an anesthesia-related prefix vector by reparameterization;
[0069] S14, comparing the difference between the planning sequence generated by the improved BART model and the real planning sequence of the input structured data, iteratively updating the anesthesia-related prefix vector; taking the anesthesia-related prefix with the smallest difference between the generated planning sequence and the real planning sequence as the final result;
[0070] In step S13, in order to ensure the stability of the training process under the condition of data scarcity and obtain anesthesia-related prefixes with better fitting effect, it is necessary to further optimize the update of anesthesia-related prefixes, that is, reparameterization. The specific process is: first use the multi-layer perceptron MLP to map the initialized prefix vector, and then embed the mapped prefix vector into the initial BART model to obtain an improved BART model. The reparameterization process can be expressed as:
[0071]
[0072]
[0073] in, , After MLP mapping , Anesthesia-related prefixes for matrix fragments, Represents the parameters introduced by MLP. The reparameterization strategy can reduce the sensitivity of Prefix-tuning to the initial prefix, and can optimize the anesthesia-related prefix by adjusting the internal parameters of MLP to enhance the stability of the training process. In addition, since the prefix vector mapped by MLP will be saved as the anesthesia-related prefix after the training process, the additional parameters introduced by MLP It will not participate in the subsequent inference stage, so it will not increase the storage burden and inference burden.
[0074] The BART model needs to judge the importance of each attribute based on the specific attribute value and the overall structure of the structured data, and retain the attribute names with higher importance as the planning sequence. During the training process, the importance of the attribute is related to the position of the attribute in the text description. The more the attribute appears in the front, the higher the importance. Therefore, the improved BART model can learn names, diseases, medications, scores, etc., while the operation time is relatively unimportant and will be ranked later. If there is no process for generating a planning sequence, the BART model will assume that all attributes in the structured data are equally important when generating text, so the generated text content will also have no focus. During the training process, the difference between the planning sequence generated by the method in this paper and the real planning sequence in the training data set is learned, and then the anesthesia-related prefixes are iteratively updated, so that the final generated planning sequence is close to the real planning sequence.
[0075] For a specific training instance , using cross entropy as the learning objective to judge the gap between the generated planning sequence and the true planning sequence, which can be expressed as:
[0076]
[0077] in, It indicates the parameters introduced by Prefix-tuning. The model will iteratively update these parameters during the training process. D indicates structured data, P indicates the planning sequence, and i indicates the i-th attribute name. It should be noted that during the entire training process, the parameters of the pre-trained model BART All remain frozen and do not participate in updates.
[0078] A prompt generation unit is used to combine task descriptions, examples, instructions, and structured data into a comprehensive prompt. In order to guide the large language model to generate text results with stronger controllability and fidelity, the present invention generates comprehensive prompts based on the planning sequence, and provides clear guidance for the large language model, so that the large language model can more accurately understand the user's intentions and generate relevant answers or texts. Although traditional methods also have prompts, the prompt methods and content are often too simple. For example, some prompt methods only describe the tasks that need to be done by the large language model, which can only make the model understand what tasks to do, but cannot enable the model to learn how to complete the tasks. Therefore, this method designs a comprehensive prompt for the large language model, thereby ensuring that the model understands the content of the task and completes the task according to the user's wishes.
[0079] In order to make full use of the planning sequence, this method introduces generation examples and control instructions based on the ability of the large language model to align with the user's intention, so as to give full play to the ability of the large language model and make more full use of the planning sequence. At the same time, the composition of the comprehensive prompt is concise and flexible, and does not require a lot of time-consuming design of prompt words like the thinking chain method.
[0080] The process of designing and constructing comprehensive prompts is as follows Figure 4 As shown, it mainly includes:
[0081] S21. Construct descriptive text to clarify the input and output forms of the structured data to text generation task;
[0082] Providing a task description to a large language model can better stimulate its ability to align with user intent, thereby improving the performance of the model in various tasks. Therefore, this method uses a descriptive text for anesthesia-related fields as the first part of the comprehensive prompt. For example, the following task description can be designed: "You need to generate an anesthesia assessment plan for it based on the input form. The following is an example for your reference: "This description can not only clarify the task content for the large language model, but also lead to the content of the subsequent comprehensive prompt, making the comprehensive prompt more coherent as a whole. This part is similar to the traditional prompt method, that is, only one sentence is needed to describe the task, but because the comprehensive prompt also includes generation examples and control instructions, the second half of the sentence in the above quotation marks is added to make the comprehensive prompt more coherent as a whole, which is convenient for the large language model to understand the prompt content.
[0083] S22. Retrieve the case library based on the structured data-text description pair, generate examples, and provide reference examples for the large language model.
[0084] The large language model can learn to generate the correspondence between the structured data and the text description in the instance, so when receiving structured data, it can imitate the content of the example to generate the corresponding text description.
[0085] Retrieval enhancement is a technique that combines the input with a set of related supporting documents, which are added to the input prompt and fed into the text generator together to produce the final output. RAG effectively combines the parametric knowledge of large language models and non-parametric external knowledge bases, becoming one of the key methods for implementing large language models. Although RAG technology has been greatly developed, its accuracy still needs to be improved.
[0086] In the present invention, the process of designing an example includes:
[0087] (1) According to the order in which the attribute names appear in the text description R corresponding to the structured data D, select the attribute names of the important attributes in the structured data and combine them into the corresponding planning sequence P. It should be noted that the method for obtaining the planning sequence here is to directly screen the text description data in the case library; the importance of the attribute is determined by the order in which the attribute appears in the text description, and the earlier it appears, the higher the importance. Because the data provided to the large language model as an example cannot be wrong, otherwise it will have a great impact on the model performance, so here it is more recommended to adopt a manual selection method to ensure the absolute accuracy of this part of the sample.
[0088] (2) Construct an example set S, where each example is a triple of (D, R, P);
[0089] (3) Use the complete matching strategy to match the planning sequence P generated by the planning sequence generation unit with each triple P in S. If there is a complete match for P, the corresponding (D, R) in the triple is used as the generation example of the comprehensive prompt. If not, the triple (D, R) corresponding to P with the most attribute names in P in the example set S is used as the example of the comprehensive prompt.
[0090] S23. Design control instructions to achieve fine-grained control over generated content.
[0091] In one embodiment, the instructions include length instructions, form instructions, and coverage instructions. The length instruction is used to limit the length and sentence structure of the generated text description, such as limiting the text description to a single sentence; the form instruction is used to stimulate the learning ability of the large language model, so that it learns the correspondence between the structured data and the text description in the sample example, and imitates the generated text description; the coverage instruction is used to use the understanding ability of the large language model itself to generate content that can cover all attributes mentioned in the planned sequence.
[0092] The instructions can be used to control the fine-grained features of the text generated by the model in more detail, including the number of sentences in the output content, the content form, and the attributes that need to be included. For example, the length instruction can be used to limit the generated text to a single sentence form, the form instruction can be used to make the large language model refer to the text description of the example provided in step S22, and the coverage instruction can be used to ensure that the generated text can cover all attributes of the planned sequence P.
[0093] S24, combining descriptive text, examples, control instructions, and input structured data into a comprehensive prompt.
[0094] Input the designed comprehensive prompts into the large language model to generate the corresponding comprehensive report. Generally speaking, the large language model needs to adjust the parameters through low-rank adaptation fine-tuning technology. The present invention generates comprehensive prompts through retrieval enhancement technology, without adjusting the internal parameters and structure of the large language model, so as to fully identify and understand the user's intention, and combine with fine-grained control instructions, so as to guide the large language model to generate higher-quality text results under the premise of controllable and substantial saving of computing resources, and such high-quality text is difficult to obtain using only a large language model.
[0095] In one embodiment, the robot consultation module can also generate answers using the anesthesia assessment module. In this case, the data input into the big data model does not need to generate comprehensive prompts. The structured data only needs to be encoded through the improved BART model and then input into the big model to obtain the answer. Moreover, since the improved BART model has anesthesia-related prefixes, the accuracy of the answer is improved.
[0096] Those skilled in the art will appreciate that the foregoing embodiments are intended only to illustrate the technical solutions of the present invention, rather than to limit the present invention. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will appreciate that they may modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements on some or all of the technical features therein. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope defined by the claims of the present invention.
Claims
1. An anesthesia assessment decision system based on a large language model and retrieval enhancement technology, characterized in that: The system includes a preoperative visit module, an electronic medical record management module and an anesthesia assessment module; wherein, Electronic medical record module, including basic patient information and diagnosis and treatment information; The preoperative visit module includes a playback unit for playing anesthesia-related knowledge popularization videos to the patient; a visit unit for selecting corresponding visit questionnaires to ask questions to the patient based on the patient information extracted from the electronic medical record module before anesthesia, and sending the generated visit records and anesthesia assessment forms to the electronic medical record module or the anesthesia assessment module; The anesthesia assessment module is used to receive the visit records and anesthesia assessment forms sent by the preoperative visit module, input them into the large language model after encoding, and generate a comprehensive anesthesia report, including the anesthesia plan and risk grading assessment index.
2. The anesthesia assessment decision system according to claim 1, characterized in that: The preoperative visit module, based on the "Expert Consensus on Preanesthetic Visits and Evaluations (2021)", provides patient education and preoperative visits.
3. The anesthesia assessment decision system according to claim 1, characterized in that: It also includes a robot consultation module for providing patients with answers to anesthesia-related questions; preferably, the robot consultation module uses the large language model of the anesthesia assessment module to generate answers.
4. The anesthesia assessment decision system according to claim 1, characterized in that: It includes the doctor side and the patient side; the functions of the patient side include pre-anesthesia visits, electronic medical record generation and health education; the functions of the doctor side include confirmation of visit record contents, anesthesia evaluation and comprehensive report generation.
5. The anesthesia assessment decision system according to claim 1, characterized in that: The anesthesia assessment module includes a case library, a planning sequence generation unit, and a prompt generation unit, among which: The planning sequence generation unit generates structured data from the visit records and anesthesia assessment forms, and then generates planning sequences from the structured data through the improved BART model; in the improved BART model, the K matrix and V matrix headers of the multi-head attention modules of all Transformer blocks are embedded in a set of trainable vectors, and the i-th head The attention score calculation process is changed to: in, , Respectively , Prefix for matrix fragments, Represents the concatenation operation of the matrix; The prompt generation unit is used to compose a comprehensive prompt from task descriptions, examples, instructions, and structured data.
6. The anesthesia assessment decision system according to claim 5, characterized in that: The training process of the improved BART model includes: S11. Use the prefix-tuning method to embed the trainable vectors into the K matrix and V matrix headers of the multi-head attention modules of all Transformer blocks in the BART model. S12, initializing anesthesia-related prefixes with vector representations of anesthesia-related phrases; S13, mapping the initial anesthesia-related prefix vector to an anesthesia-related prefix vector by reparameterization; S14. Compare the difference between the planning sequence generated by the improved BART model and the actual planning sequence of the input structured data, iteratively update the anesthesia-related prefix vector; and take the anesthesia-related prefix with the smallest difference between the generated planning sequence and the actual planning sequence as the final result.
7. The anesthesia assessment decision system according to claim 6, characterized in that: In step S13, the re-parameterization process includes: Use a multi-layer perceptron MLP to map the initialized prefix vector; The mapped prefix vector is embedded into the initial BART model to obtain the improved BART model.
8. The anesthesia assessment decision system according to claim 6, characterized in that: The gap between the generated planning sequence and the true planning sequence is calculated using cross entropy as the learning objective.
9. The anesthesia assessment decision system according to claim 5, characterized in that: The prompt generation unit includes: S21. Construct descriptive text to clarify the input and output forms of the structured data to text generation task; S22. Retrieve case libraries based on structured data-text description pairs, generate examples, and provide reference examples for the large language model; S23. Design control instructions to achieve fine-grained control over generated content; S24, concatenate descriptive text, examples, control instructions, and input structured data into a comprehensive prompt, and transmit it to the large language model.
10. The anesthesia assessment decision system according to claim 9, characterized in that: In S22, the process of generating an example includes: (1) According to the order in which the attribute names appear in the text description R corresponding to the structured data D, select the attribute names of the important attributes in the structured data and combine them into the corresponding planning sequence P; (2) Construct an example set S, where each example is a triple of (D, R, P); (3) Use the complete matching strategy to match the planning sequence P generated by the planning sequence generation unit with each triple P in S. If there is a complete match for P, the corresponding (D, R) in the triple is used as the generation example of the comprehensive prompt. If not, the triple (D, R) corresponding to P with the most attribute names in P in the example set S is used as the example of the comprehensive prompt.
Citation Information
Cited By
Perioperative patient anesthesia risk assessment method and system based on past medical history
CN119418936A
