Abnormity severity estimation method and device based on medical big language model, equipment and medium

Through the abnormality severity prediction method based on the medical large language model, the problem in the existing technology that it is difficult to accurately predict the severity of the patient's physical abnormality is solved, the accurate judgment of the severity and early intervention are achieved, and the allocation of medical resources is improved. Efficiency of patient health management.

CN118629664AInactive Publication Date: 2024-09-10RUIJIN HOSPITAL AFFILIATED TO SHANGHAI JIAO TONG UNIV SCHOOL OF MEDICINE
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410962858.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-17
Publication Date
2024-09-10
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing technology makes it difficult to accurately predict the severity of a patient's physical abnormalities, resulting in the inability to carry out early intervention in a timely manner and affecting the allocation of medical resources and patient health management.

Method used

An abnormality severity estimation method based on the medical large language model is adopted. By collecting and analyzing the patient's medical record data and discharge summary, term alignment and matching is performed, a severity estimation sample is constructed, and a hybrid expert network low-rank adaptation method is used to predict the severity of the abnormality. The medical large language model is fine-tuned and trained to generate an estimated severity level.

Benefits of technology

It achieves accurate estimation of the severity of patients' physical abnormalities, improves the efficiency of medical resource allocation and the timeliness of early intervention, reduces the risk of disease deterioration, and enhances patients' trust and satisfaction with medical services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118629664A
    Figure CN118629664A
Patent Text Reader

Abstract

The invention discloses an anomaly severity pre-estimation method, device and equipment based on a medical big language model and a medium, and relates to the technical field of artificial intelligence, and the method comprises the steps: carrying out the anomaly recognition of medical record data and hospital discharge checks, and obtaining the abnormal data of medical records and the abnormal data of follow-up visit suggestions; performing term alignment, matching the medical record abnormal data after term alignment with the follow-up visit suggestion abnormal data, and constructing a severity pre-estimation sample; the method comprises the following steps: acquiring a medical big language model, converting the medical big language model into an input instruction, performing fine-tuning training on the medical big language model, and performing format conversion and construction deployment on the trained medical big language model to obtain a target medical big language model; and inputting the medical record abnormal data into the target medical big language model, outputting a severity pre-estimation level, and combining the severity pre-estimation level with the follow-up visit suggestion to generate a severity pre-estimation result of the patient abnormality. According to the method, the body abnormity severity of the patient can be accurately estimated, early intervention of the patient is timely and effectively helped, and the sustainability of the whole medical system is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a method, device, equipment and medium for predicting the severity of an abnormality based on a large medical language model. Background Art

[0002] At present, electronic medical records with discharge summaries as the core have become important data in the medical field. There are clear priorities for abnormal signals in patients (especially elderly patients). For example, the severity of abnormal urine protein is usually higher than the history of osteoporosis. Severe abnormalities should be followed up as soon as possible, while mild abnormalities can be followed up in time or only daily treatment. At present, there is no ready-made complete data set to accurately predict the severity of physical abnormalities, and the assessment of severity often needs to rely on the doctor's professional knowledge and experience. In addition, the determination of severity depends on the doctor's professional judgment. The professional knowledge differences between different doctors are often very large. Due to the limitations of professional fields, there are significant differences in the writing standards of different departments and even different doctors. This makes it difficult to write the severity in the follow-up recommendations, affecting the final follow-up, and thus it is impossible to accurately estimate the severity of the patient's physical abnormalities.

[0003] From the above, it can be seen that how to accurately estimate the severity of patients' physical abnormalities, promptly and effectively help patients with early intervention, reduce the risk of disease deterioration, and improve the sustainability of the overall medical system are issues that need to be resolved in this field. Summary of the invention

[0004] In view of this, the purpose of the present invention is to provide a method, device, equipment and medium for estimating the severity of abnormalities based on a medical large language model, which can accurately estimate the severity of patients' physical abnormalities, timely and effectively help patients to intervene early, reduce the risk of disease deterioration, and improve the sustainability of the overall medical system. The specific scheme is as follows:

[0005] In a first aspect, the present application discloses a method for estimating the severity of an abnormality based on a medical large language model, comprising:

[0006] Collecting the patient's medical record data and a discharge summary including follow-up recommendations, and performing abnormality identification on the medical record data and the discharge summary to obtain abnormal medical record data and abnormal follow-up recommendation data;

[0007] Performing term alignment on the abnormal medical record data and the abnormal follow-up recommendation data, and matching the abnormal medical record data and the abnormal follow-up recommendation data after the term alignment to construct a severity estimation sample;

[0008] Converting the severity estimation sample into an input instruction, using the input instruction to fine-tune the preset medical big language model to obtain the trained medical big language model, and converting the format of the trained medical big language model and building and deploying it to obtain a target medical big language model;

[0009] The abnormal medical record data is input into the target medical big language model to output a severity estimation level, and the severity estimation level is combined with the follow-up recommendation in the discharge summary to generate a severity estimation result of the patient's abnormality.

[0010] Optionally, the collecting of the patient's medical record data and a discharge summary including follow-up recommendations, and performing abnormality identification on the medical record data and the discharge summary to obtain abnormal medical record data and abnormal follow-up recommendation data, includes:

[0011] Collect the patient's desensitized medical record data and discharge summary including follow-up recommendations from the electronic medical record system; the medical record data includes admission records, examination reports, test reports, treatment records, and consultation records;

[0012] The abnormality recognition model is used to perform abnormality recognition on the medical record data and the discharge summary to obtain abnormal medical record data and abnormal follow-up recommendation data.

[0013] Optionally, the performing term alignment on the abnormal medical record data and the abnormal follow-up recommendation data includes:

[0014] A medical knowledge graph model and a BGE vector representation model are used to perform term alignment on the abnormal medical record data and the abnormal follow-up recommendation data; the medical knowledge graph model is OMAHA.

[0015] Optionally, matching the abnormal medical record data and the abnormal follow-up recommendation data after the term alignment to construct a severity estimation sample includes:

[0016] Matching the medical record abnormal data and the follow-up suggestion abnormal data after term alignment to obtain matching success abnormal data and matching failure abnormal data;

[0017] The successfully matched abnormal data is used as a positive sample, and the unmatched abnormal data is used as a negative sample to construct a severity estimation sample.

[0018] Optionally, converting the severity estimation sample into an input instruction includes:

[0019] Design instruction fine-tuning tasks based on instruction conversion rules;

[0020] The severity estimation samples are converted into input instructions according to the instruction fine-tuning task.

[0021] Optionally, the fine-tuning training of a preset medical large language model using the input instruction to obtain the trained medical large language model includes:

[0022] The pre-trained medical large language model is fine-tuned using the input instruction and a hybrid expert network low-rank adaptation method to obtain the trained medical large language model.

[0023] Optionally, the format conversion and deployment of the trained medical big language model to obtain a target medical big language model includes:

[0024] The trained medical big language model is converted into an efficient reasoning format supported by the natural language processing model, and a Docker image of the natural language processing model and its dependencies is built and installed to complete the deployment of the trained medical big language model and obtain the target medical big language model.

[0025] In a second aspect, the present application discloses a device for estimating the severity of an abnormality based on a large medical language model, comprising:

[0026] An abnormality identification module is used to collect the patient's medical record data and the discharge summary including the follow-up recommendation, and perform abnormality identification on the medical record data and the discharge summary to obtain abnormal medical record data and abnormal follow-up recommendation data;

[0027] A term alignment and matching module, used for performing term alignment on the abnormal medical record data and the abnormal follow-up recommendation data, and matching the abnormal medical record data and the abnormal follow-up recommendation data after term alignment to construct a severity estimation sample;

[0028] A fine-tuning training module, used to convert the severity estimation sample into an input instruction, use the input instruction to perform fine-tuning training on a preset medical big language model to obtain the trained medical big language model, perform format conversion and build and deploy the trained medical big language model to obtain a target medical big language model;

[0029] The severity estimation module is used to input the abnormal medical record data into the target medical large language model to output a severity estimation level, and combine the severity estimation level with the follow-up recommendation in the discharge summary to generate a severity estimation result of the patient's abnormality.

[0030] In a third aspect, the present application discloses an electronic device, comprising:

[0031] Memory, used to store computer programs;

[0032] A processor is used to execute the computer program to implement the aforementioned abnormality severity prediction method based on a large medical language model.

[0033] In a fourth aspect, the present application discloses a computer storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the steps of the aforementioned method for estimating the severity of abnormalities based on a large medical language model are implemented.

[0034] It can be seen that the present application provides a method for estimating the severity of abnormalities based on a medical big language model, including collecting the patient's medical record data and a discharge summary including follow-up recommendations, performing abnormality identification on the medical record data and the discharge summary to obtain abnormal medical record data and abnormal follow-up recommendation data; performing term alignment on the abnormal medical record data and the abnormal follow-up recommendation data, matching the abnormal medical record data and the abnormal follow-up recommendation data after term alignment to construct a severity estimation sample; converting the severity estimation sample into an input instruction, using the input instruction to fine-tune the preset medical big language model to obtain the trained medical big language model, formatting and building and deploying the trained medical big language model to obtain a target medical big language model; inputting the abnormal medical record data into the target medical big language model to output a severity estimation level, combining the severity estimation level with the follow-up recommendation in the discharge summary to generate a severity estimation result of the patient's abnormality. This application can comprehensively mine the abnormalities in the patient's test report and discharge summary by aligning and matching the terms of medical record data and follow-up data, construct severity estimation samples, and combine the medical big language model to accurately judge the severity of different abnormalities, effectively helping patients pay attention to more serious follow-up abnormalities and arrange subsequent follow-up in an orderly manner. Output the severity estimation level, combine the follow-up suggestions with the generated severity estimation results of the patient's abnormalities, and accurately estimate the severity of the patient's physical abnormalities, improve the efficiency of medical resource allocation, and promptly and effectively help patients with early intervention and reduce the risk of disease deterioration, thereby improving patients' trust and satisfaction with medical services and improving the sustainability of the overall medical system. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0036] Figure 1 A flow chart of a method for estimating the severity of an abnormality based on a medical large language model disclosed in this application;

[0037] Figure 2 A schematic diagram of low-rank adaptation of a hybrid expert network disclosed in this application;

[0038] Figure 3 This is an example diagram of a discharge summary and severity estimation result disclosed in this application;

[0039] Figure 4 A flow chart of a method for estimating the severity of an abnormality based on a medical large language model disclosed in this application;

[0040] Figure 5 A severity estimation flow chart disclosed in this application;

[0041] Figure 6 This is a schematic diagram of the structure of an abnormality severity estimation device based on a medical large language model disclosed in the present application;

[0042] Figure 7 A structural diagram of an electronic device provided for this application. DETAILED DESCRIPTION

[0043] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0044] At present, electronic medical records with discharge summaries as the core have become important data in the medical field. There are clear priorities for abnormal signals in patients (especially elderly patients). For example, the severity of abnormal urine protein is usually higher than the history of osteoporosis. Severe abnormalities should be followed up as soon as possible, while mild abnormalities can be followed up in time or only treated daily. At present, there is no ready-made complete data set to accurately predict the severity of physical abnormalities, and the assessment of severity often needs to rely on the professional knowledge and experience of doctors. In addition, the determination of severity depends on the professional knowledge judgment of doctors. The professional knowledge differences between different doctors are often very large. Due to the limitations of professional fields, there are significant differences in the writing standards of different departments and even different doctors. This makes it difficult to write the severity in the follow-up recommendations, affecting the final follow-up, and thus it is impossible to accurately estimate the severity of the patient's physical abnormalities. As can be seen from the above, how to accurately estimate the severity of patients' physical abnormalities, timely and effectively help patients with early intervention, reduce the risk of disease deterioration, and improve the sustainability of the overall medical system is a problem to be solved in this field.

[0045] See also Figure 1 As shown, the embodiment of the present invention discloses a method for estimating the severity of abnormalities based on a medical large language model, which may specifically include:

[0046] Step S11: Collect the patient's medical record data and a discharge summary including follow-up recommendations, and perform abnormality identification on the medical record data and the discharge summary to obtain abnormal medical record data and abnormal follow-up recommendation data.

[0047] Step S12: performing term alignment on the abnormal medical record data and the abnormal follow-up recommendation data, and matching the abnormal medical record data and the abnormal follow-up recommendation data after the term alignment to construct a severity estimation sample.

[0048] In this embodiment, term alignment is performed on the medical record abnormal data and the follow-up suggestion abnormal data, and the medical record abnormal data and the follow-up suggestion abnormal data after term alignment are matched to obtain successfully matched abnormal data and failed matched abnormal data, and the successfully matched abnormal data is used as a positive sample, and the failed matched abnormal data is used as a negative sample to construct a severity estimation sample.

[0049] Specifically, the abnormalities in the patient's medical record data during hospitalization (actual abnormalities) are matched with the abnormalities in the discharge summary written by the doctor (abnormalities that the doctor considers important), and the matched abnormal parts are used as positive samples, and the unmatched parts are used as negative samples. For example, if the patient's physical examination shows that "fatty liver" and "red blood cell count" are abnormal, and the follow-up recommendation module in the discharge summary written by the doctor only writes "fatty liver", then "fatty liver" can be used as a positive sample and "red blood cell count" as a negative sample to construct a severity estimation model sample. Finally, the mined positive and negative samples are counted and divided into multiple levels according to their positive sample ratio (such as "severity level 3" when the positive sample ratio is higher than 60%, and "severity level 1" when the positive sample ratio is lower than 30%), and the final severity estimation sample is used.

[0050] Step S13: convert the severity estimation sample into an input instruction, use the input instruction to fine-tune the preset medical big language model to obtain the trained medical big language model, convert the format of the trained medical big language model and build and deploy it to obtain the target medical big language model.

[0051] In this embodiment, an instruction fine-tuning task is designed according to an instruction conversion rule, the severity estimation sample is converted into an input instruction according to the instruction fine-tuning task, and the pre-trained medical big language model is fine-tuned using the input instruction and a hybrid expert network low-rank adaptation method to obtain the trained medical big language model, and the trained medical big language model is converted into an efficient reasoning format supported by a natural language processing model, and a Docker image of the natural language processing model and its dependencies is built and installed to complete the deployment of the trained medical big language model and obtain the target medical big language model.

[0052] Since the samples of severity estimation mined from electronic medical record data cannot be directly input into the model for training and prediction, it is necessary to design them into instructions that can be understood by the large language model. In other words, for the task of severity estimation, this patent designs an instruction fine-tuning task, the specific format of which is shown in Table 1 below:

[0053] Table 1

[0054]

[0055] The instruction indicates what the user wants the large model to accomplish, the input is the specific exception, and the output is the severity level of the exception.

[0056] Fine-tune the instructions constructed based on severity samples, so that the medical language model can follow the instructions to complete the severity prediction. First, the medical language model trained based on medical record data is used as the base. Compared with the general large model, this model contains a vast amount of medical knowledge; then, this patent uses MoELoRA (Mixure of Experts Low-Rank Adaptation) to efficiently fine-tune the medical language model. The mixed expert network low-rank adaptation is shown in the figure. Figure 2 As shown in the figure. On the one hand, MoELoRA introduces a small number of low-rank matrices (relative to the overall number of model parameters) to achieve fine-tuning of large language models, greatly reducing the number of trainable parameters required for fine-tuning; on the other hand, MoELoRA generally introduces multiple expert networks and gating networks to improve the performance of the model without increasing the online overhead of the model. Finally, based on the accuracy of the severity estimation evaluated on the specified validation set, the optimal model is selected for subsequent use.

[0057] The format conversion and deployment process is as follows: After the model fine-tuning training is completed, the model is first converted from the format used during training, such as the checkpoint of PyTorch (an open source Python machine learning library), to the efficient inference format supported by VLLM. Next, a Docker image with VLLM and its dependencies (including necessary libraries and drivers) installed is built to meet the hardware and software requirements for model deployment. Then, the VLLM service is started and the converted model is loaded. According to the VLLM interface document, a request is constructed, including input text, generation parameters (such as maximum length, temperature value, top-p / top-k sampling, etc.), context information, etc., to obtain the target medical large language model.

[0058] Step S14: Input the abnormal medical record data into the target medical large language model to output a severity estimation level, and combine the severity estimation level with the follow-up recommendation in the discharge summary to generate a severity estimation result of the patient's abnormality.

[0059] In this embodiment, the patient's medical record abnormal data can be added to the network request header through a network request, and the severity estimation model server can be accessed to obtain the severity level of the abnormality. For each follow-up recommendation written by the doctor, or each follow-up recommendation in the discharge summary automatically generated using the large language model, it can be used as an input to the severity estimation service to generate the severity estimation result of the patient's abnormality. The results of the severity estimation can be specifically as follows: Figure 3 As shown in the figure, the more exclamation marks "!" there are, the more serious the condition is, that is, the more follow-up visits the patient needs after discharge. Figure 3 Both schistosomiasis liver disease and abnormal creatinine can endanger the life and health of patients, and require more urgent follow-up than common geriatric diseases such as a history of osteoporosis.

[0060] In this embodiment, the patient's medical record data and a discharge summary including follow-up recommendations are collected, and abnormalities are identified on the medical record data and the discharge summary to obtain abnormal medical record data and abnormal follow-up recommendation data; term alignment is performed on the abnormal medical record data and the abnormal follow-up recommendation data, and the abnormal medical record data and the abnormal follow-up recommendation data after term alignment are matched to construct a severity estimation sample; the severity estimation sample is converted into an input instruction, and a preset medical big language model is fine-tuned and trained using the input instruction to obtain the trained medical big language model, and the trained medical big language model is format-converted and deployed to obtain a target medical big language model; the abnormal medical record data is input into the target medical big language model to output a severity estimation level, and the severity estimation level is combined with the follow-up recommendation in the discharge summary to generate a severity estimation result of the patient's abnormality. This application can comprehensively mine the abnormalities in the patient's test report and discharge summary by aligning and matching the terms of medical record data and follow-up data, construct severity estimation samples, and combine the medical big language model to accurately judge the severity of different abnormalities, effectively helping patients pay attention to more serious follow-up abnormalities and arrange subsequent follow-up in an orderly manner. Output the severity estimation level, combine the follow-up suggestions with the generated severity estimation results of the patient's abnormalities, and accurately estimate the severity of the patient's physical abnormalities, improve the efficiency of medical resource allocation, and promptly and effectively help patients with early intervention and reduce the risk of disease deterioration, thereby improving patients' trust and satisfaction with medical services and improving the sustainability of the overall medical system.

[0061] See also Figure 4 As shown, the embodiment of the present invention discloses a method for estimating the severity of abnormalities based on a medical large language model, which may specifically include:

[0062] Step S21: Collect the patient's desensitized medical record data and discharge summary including follow-up recommendations from the electronic medical record system; the medical record data includes admission records, examination reports, test reports, treatment records and consultation records, and use an anomaly recognition model to perform anomaly recognition on the medical record data and the discharge summary to obtain abnormal medical record data and follow-up recommendation abnormal data.

[0063] In this embodiment, desensitized data is collected from the electronic medical record system, including the patient's medical record data during hospitalization and the discharge summary written by the doctor. The medical record data mainly includes patient-dimensional reports such as admission records, examination reports, test reports, treatment records, and consultation records, the purpose of which is to capture comprehensive abnormal signals of the patient. The discharge summary written by the doctor describes the full-dimensional report of the patient during hospitalization, and provides follow-up recommendations and daily care for the patient after discharge. Abnormalities in the follow-up recommendations in the discharge summary can be regarded as serious abnormalities considered by the doctor.

[0064] Then, based on the anomaly recognition model, the anomalies revealed during the patient's hospitalization and past history are identified from the medical record data during the hospitalization, and the anomalies that the doctor considers "important" are extracted from the text of the discharge summary written by the doctor. Specifically, the text reports of the tests, examinations, admission records, consultations, etc. performed during the patient's hospitalization are used as input, and the anomaly recognition model based on the medical big model is used to extract the abnormal information as all the anomalies exposed during the patient's hospitalization; similarly, the anomaly recognition model based on the medical big model is used to extract the anomalies in the patient's discharge summary as the anomalies that the doctor considers important.

[0065] Step S22: Use the medical knowledge graph model and the BGE vector representation model to perform term alignment on the abnormal medical record data and the abnormal follow-up recommendation data, and match the abnormal medical record data and the abnormal follow-up recommendation data after term alignment to construct a severity estimation sample; the medical knowledge graph model is OMAHA.

[0066] In this embodiment, due to the inconsistency between the anomalies in the patient's medical record data during hospitalization and the anomalies written by the doctor, such as the abbreviations or aliases used by the doctor, it will be difficult to determine which anomalies are considered "important" by the doctor. To this end, this patent uses an integrated term alignment solution, first using knowledge graph alignment to obtain preliminary results, and then using vector matching to advancedly process abnormal terms:

[0067] Knowledge graph term alignment: With the help of the knowledge graph's term alignment capability, anomalies in two different dimensions are mapped to the same dimension. Specifically, all anomalies are taken as input using the medical knowledge graph OMAHA, and with the help of the term alignment capability contained in the knowledge graph, all anomalies are mapped to a unified standardized writing. For example, descriptions of reduced thyroid function such as "hypothyroidism", "hypothyroidism", and "low thyroid function" can all be standardized as "hypothyroidism";

[0068] Vector matching alignment: For the parts that cannot be aligned with the knowledge graph, the BGE vector representation model is used to represent both parts of the anomaly as vectors, and the correlation between the two parts of the anomaly is judged based on the vector similarity. For example, if the two anomalies "adenomyosis" and "possible adenomyosis" cannot be aligned through the knowledge graph terms, but the similarity of their corresponding vectors is higher than the threshold, it can be considered that the two anomalies actually describe the same anomaly.

[0069] Step S23: convert the severity estimation sample into an input instruction, use the input instruction to fine-tune the preset medical big language model to obtain the trained medical big language model, convert the format of the trained medical big language model and build and deploy it to obtain the target medical big language model.

[0070] Step S24: Input the abnormal medical record data into the target medical large language model to output a severity estimation level, and combine the severity estimation level with the follow-up recommendation in the discharge summary to generate a severity estimation result of the patient's abnormality.

[0071] This application proposes a follow-up abnormality severity estimation framework based on a medical big language model. The framework takes the abnormalities in various test reports of patients as input and can accurately estimate the severity of each abnormal body signal. The framework is divided into the following three parts:

[0072] (1) Severity sample mining: Automatically mine model training samples from hospital discharge summary data, mainly including raw data collection, anomaly identification, term alignment, severity sample generation and other steps;

[0073] (2) Severity estimation based on the medical big model: Construct a severity estimation training task, use the medical big language model as the base for training, and perform format conversion and deployment to obtain the target medical big language model;

[0074] (3) Abnormal signal severity estimation system: Build a model estimation engine, use various tests and examinations of the patient as input, predict the follow-up recommendations for various abnormalities, and provide feasible solutions integrated into the follow-up recommendations to generate an estimation result of the severity of the patient's abnormality.

[0075] Based on the above three parts, it is possible to automatically mine severity estimation samples from massive electronic medical record data and train a severity estimation model based on this data. Figure 5 As shown in the figure, the steps are as follows: (1) Collect the patient's medical record data and the discharge summary including follow-up recommendations; (2) Use the anomaly recognition model to identify anomalies in the medical record data and discharge summary to obtain medical record anomaly data and follow-up recommendation anomaly data; (3) Use the medical knowledge graph model and BGE vector representation model to align the medical record anomaly data and follow-up recommendation anomaly data; (4) Match the medical record anomaly data and follow-up recommendation anomaly data after term alignment to construct a severity estimation sample; (5) Convert the severity estimation sample into an input instruction, and use the input instruction to fine-tune the preset medical big language model to obtain the trained medical big language model; (6) Convert the format of the trained medical big language model and build and deploy it to obtain the target medical big language model, and input the medical record anomaly data into the target medical big language model to output the severity estimation level; (7) Combine the severity estimation level with the follow-up recommendation in the discharge summary to generate the patient's abnormal severity estimation result.

[0076] The innovations of this application are as follows: (1) Modeling content: Based on the electronic medical record development scenario, this application creatively proposes a method for estimating the severity of follow-up abnormalities based on a medical big model. By automatically mining samples from the discharge follow-up data of all departments of the hospital, combined with the medical knowledge contained in the medical big language model, the severity of different abnormalities can be accurately judged, effectively helping patients to pay attention to more serious follow-up abnormalities and arrange subsequent follow-up in an orderly manner; (2) Severity sample mining: Based on massive electronic medical record data, this application uses an anomaly recognition model to comprehensively mine anomalies in patient test reports and discharge summaries, and combines technologies such as knowledge graph term alignment and vector matching alignment to construct severity estimation samples; (3) Severity estimation based on medical big models: Based on the medical big language model, this application designs fine-tuning instructions in combination with the scenario of severity estimation, and adopts the low-rank adaptation method of the hybrid expert network to achieve efficient fine-tuning of the model, which can effectively estimate the severity of physical abnormalities of patients when they are discharged, thereby having a multi-faceted positive impact on the healthcare system, doctors, patients and their families.

[0077] The technical effects of this application are: (1) Improving the efficiency of medical resource allocation: By accurately identifying which abnormalities require emergency or priority treatment, hospitals and clinics can more reasonably allocate limited medical resources, such as expert time, intensive care beds, special examination equipment, etc., to ensure that patients who need it most receive timely treatment; (2) Optimizing patient management: Doctors can develop more personalized and targeted follow-up plans for patients based on the prediction results. For abnormalities predicted to be milder, they can be managed through remote monitoring, telephone follow-up, etc.; for abnormalities predicted to be severe, close clinical follow-up and early intervention when necessary can be arranged to reduce the risk of disease deterioration; (3) Enhancing patient safety and satisfaction: Accurately identifying and prioritizing severe abnormalities can help prevent complications and reduce readmission rates, thereby improving patient safety. At the same time, patients and their families can obtain clearer health guidance and psychological comfort, which will increase their trust and satisfaction with medical services; (4) Promote clinical decision support: It can be integrated into the electronic medical record system as a clinical decision support tool to provide doctors with instant analysis suggestions and assist doctors in making more accurate diagnosis and treatment choices, especially when facing complex cases; (5) Reduce medical costs: By preventing worsening of the disease and unnecessary emergency visits or hospitalizations, the overall cost of the healthcare system can be significantly reduced. In the long run, this will help reduce the economic burden on patients and improve the sustainability of the overall medical system.

[0078] In this embodiment, the patient's medical record data and a discharge summary including follow-up recommendations are collected, and abnormalities are identified on the medical record data and the discharge summary to obtain abnormal medical record data and abnormal follow-up recommendation data; term alignment is performed on the abnormal medical record data and the abnormal follow-up recommendation data, and the abnormal medical record data and the abnormal follow-up recommendation data after term alignment are matched to construct a severity estimation sample; the severity estimation sample is converted into an input instruction, and a preset medical big language model is fine-tuned and trained using the input instruction to obtain the trained medical big language model, and the trained medical big language model is format-converted and deployed to obtain a target medical big language model; the abnormal medical record data is input into the target medical big language model to output a severity estimation level, and the severity estimation level is combined with the follow-up recommendation in the discharge summary to generate a severity estimation result of the patient's abnormality. This application can comprehensively mine the abnormalities in the patient's test report and discharge summary by aligning and matching the terms of medical record data and follow-up data, construct severity estimation samples, and combine the medical big language model to accurately judge the severity of different abnormalities, effectively helping patients pay attention to more serious follow-up abnormalities and arrange subsequent follow-up in an orderly manner. Output the severity estimation level, combine the follow-up suggestions with the generated severity estimation results of the patient's abnormalities, and accurately estimate the severity of the patient's physical abnormalities, improve the efficiency of medical resource allocation, and promptly and effectively help patients with early intervention and reduce the risk of disease deterioration, thereby improving patients' trust and satisfaction with medical services and improving the sustainability of the overall medical system.

[0079] See also Figure 6 As shown, the embodiment of the present invention discloses a device for estimating the severity of abnormality based on a medical large language model, which may specifically include:

[0080] The abnormality identification module 11 is used to collect the patient's medical record data and the discharge summary including the follow-up recommendation, and perform abnormality identification on the medical record data and the discharge summary to obtain abnormal medical record data and abnormal follow-up recommendation data;

[0081] A term alignment and matching module 12, for performing term alignment on the abnormal medical record data and the abnormal follow-up recommendation data, and matching the abnormal medical record data and the abnormal follow-up recommendation data after term alignment to construct a severity estimation sample;

[0082] A fine-tuning training module 13 is used to convert the severity estimation sample into an input instruction, use the input instruction to perform fine-tuning training on a preset medical big language model to obtain the trained medical big language model, and perform format conversion and deployment on the trained medical big language model to obtain a target medical big language model;

[0083] The severity estimation module 14 is used to input the abnormal medical record data into the target medical large language model to output a severity estimation level, and combine the severity estimation level with the follow-up recommendation in the discharge summary to generate a severity estimation result of the patient's abnormality.

[0084] In this embodiment, the patient's medical record data and a discharge summary including follow-up recommendations are collected, and abnormalities are identified on the medical record data and the discharge summary to obtain abnormal medical record data and abnormal follow-up recommendation data; term alignment is performed on the abnormal medical record data and the abnormal follow-up recommendation data, and the abnormal medical record data and the abnormal follow-up recommendation data after term alignment are matched to construct a severity estimation sample; the severity estimation sample is converted into an input instruction, and a preset medical big language model is fine-tuned and trained using the input instruction to obtain the trained medical big language model, and the trained medical big language model is format-converted and deployed to obtain a target medical big language model; the abnormal medical record data is input into the target medical big language model to output a severity estimation level, and the severity estimation level is combined with the follow-up recommendation in the discharge summary to generate a severity estimation result of the patient's abnormality. This application can comprehensively mine the abnormalities in the patient's test report and discharge summary by aligning and matching the terms of medical record data and follow-up data, construct severity estimation samples, and combine the medical big language model to accurately judge the severity of different abnormalities, effectively helping patients pay attention to more serious follow-up abnormalities and arrange subsequent follow-up in an orderly manner. Output the severity estimation level, combine the follow-up suggestions with the generated severity estimation results of the patient's abnormalities, and accurately estimate the severity of the patient's physical abnormalities, improve the efficiency of medical resource allocation, and promptly and effectively help patients with early intervention and reduce the risk of disease deterioration, thereby improving patients' trust and satisfaction with medical services and improving the sustainability of the overall medical system.

[0085] In some specific embodiments, the abnormality identification module 11 may specifically include:

[0086] A data collection module is used to collect the patient's desensitized medical record data and discharge summary including follow-up recommendations from the electronic medical record system; the medical record data includes admission records, examination reports, test reports, treatment records and consultation records;

[0087] The abnormality identification module is used to use the abnormality identification model to perform abnormality identification on the medical record data and the discharge summary to obtain abnormal medical record data and follow-up recommendation abnormal data.

[0088] In some specific embodiments, the term alignment and matching module 12 may specifically include:

[0089] A term alignment module is used to perform term alignment on the abnormal medical record data and the abnormal follow-up recommendation data using a medical knowledge graph model and a BGE vector representation model; the medical knowledge graph model is OMAHA.

[0090] In some specific embodiments, the term alignment and matching module 12 may specifically include:

[0091] A matching module, used for matching the medical record abnormal data and the follow-up suggestion abnormal data after term alignment to obtain matching success abnormal data and matching failure abnormal data;

[0092] The severity estimation sample construction module is used to use the successfully matched abnormal data as positive samples and the failed matched abnormal data as negative samples to construct severity estimation samples.

[0093] In some specific embodiments, the fine-tuning training module 13 may specifically include:

[0094] A task design module is used to design instruction fine-tuning tasks according to instruction conversion rules;

[0095] An input instruction conversion module is used to convert the severity estimation sample into an input instruction according to the instruction fine-tuning task.

[0096] In some specific embodiments, the fine-tuning training module 13 may specifically include:

[0097] The fine-tuning training module is used to use the input instructions and adopt a hybrid expert network low-rank adaptation method to fine-tune the pre-trained medical large language model to obtain the trained medical large language model.

[0098] In some specific embodiments, the fine-tuning training module 13 may specifically include:

[0099] The deployment module is used to convert the trained medical big language model into an efficient reasoning format supported by the natural language processing model, and to build and install a Docker image of the natural language processing model and its dependencies to complete the deployment of the trained medical big language model and obtain the target medical big language model.

[0100] Figure 7A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the abnormality severity estimation method based on a medical large language model performed by the electronic device disclosed in any of the aforementioned embodiments.

[0101] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.

[0102] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon include an operating system 221, a computer program 222 and data 223, etc. The storage method can be temporary storage or permanent storage.

[0103] Among them, the operating system 221 is used to manage and control the hardware devices and computer programs 222 on the electronic device 20 to realize the calculation and processing of the data 223 in the memory 22 by the processor 21, which can be Windows, Unix, Linux, etc. In addition to including a computer program that can be used to complete the abnormality severity prediction method based on the medical big language model performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include a computer program that can be used to complete other specific tasks. In addition to including data transmitted from an external device and received by the abnormality severity prediction device based on the medical big language model, the data 223 can also include data collected by its own input and output interface 25, etc.

[0104] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0105] Furthermore, an embodiment of the present application also discloses a computer-readable storage medium, in which a computer program is stored. When the computer program is loaded and executed by a processor, the steps of the method for estimating the severity of abnormalities based on a medical large language model disclosed in any of the aforementioned embodiments are implemented.

[0106] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0107] The above is a detailed introduction to the abnormality severity prediction method, device, equipment and storage medium based on the medical large language model provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A method for estimating the severity of abnormalities based on a large medical language model. It is characterized in that include: Collecting the patient's medical record data and a discharge summary including follow-up recommendations, and performing abnormality identification on the medical record data and the discharge summary to obtain abnormal medical record data and abnormal follow-up recommendation data; Performing term alignment on the abnormal medical record data and the abnormal follow-up recommendation data, and matching the abnormal medical record data and the abnormal follow-up recommendation data after the term alignment to construct a severity estimation sample; Converting the severity estimation sample into an input instruction, using the input instruction to fine-tune the preset medical big language model to obtain the trained medical big language model, and converting the format of the trained medical big language model and building and deploying it to obtain a target medical big language model; The abnormal medical record data is input into the target medical big language model to output a severity estimation level, and the severity estimation level is combined with the follow-up recommendation in the discharge summary to generate a severity estimation result of the patient's abnormality.

2. The method for estimating the severity of abnormalities based on a large medical language model according to claim 1, It is characterized in that The collecting of the patient's medical record data and a discharge summary including follow-up recommendations, and performing abnormality identification on the medical record data and the discharge summary to obtain abnormal medical record data and abnormal follow-up recommendation data, includes: Collect the patient's desensitized medical record data and discharge summary including follow-up recommendations from the electronic medical record system; the medical record data includes admission records, examination reports, test reports, treatment records, and consultation records; The abnormality recognition model is used to perform abnormality recognition on the medical record data and the discharge summary to obtain abnormal medical record data and abnormal follow-up recommendation data.

3. The method for predicting the severity of abnormalities based on a large medical language model according to claim 1, It is characterized in that The term alignment of the abnormal medical record data and the abnormal follow-up recommendation data includes: A medical knowledge graph model and a BGE vector representation model are used to perform term alignment on the abnormal medical record data and the abnormal follow-up recommendation data; the medical knowledge graph model is OMAHA.

4. The method for predicting the severity of abnormalities based on a large medical language model according to claim 1, It is characterized in that The matching of the abnormal medical record data and the abnormal follow-up recommendation data after the term alignment to construct a severity estimation sample includes: Matching the medical record abnormal data and the follow-up suggestion abnormal data after term alignment to obtain matching success abnormal data and matching failure abnormal data; The successfully matched abnormal data is used as a positive sample, and the unmatched abnormal data is used as a negative sample to construct a severity estimation sample.

5. The method for predicting the severity of abnormalities based on a large medical language model according to claim 1, It is characterized in that The step of converting the severity estimation sample into an input instruction comprises: Design instruction fine-tuning tasks based on instruction conversion rules; The severity estimation samples are converted into input instructions according to the instruction fine-tuning task.

6. The method for predicting the severity of abnormalities based on a large medical language model according to claim 1, It is characterized in that The fine-tuning training of the preset medical language model using the input instruction to obtain the trained medical language model includes: The pre-trained medical large language model is fine-tuned using the input instruction and a hybrid expert network low-rank adaptation method to obtain the trained medical large language model.

7. The method for estimating the severity of abnormalities based on a large medical language model according to any one of claims 1 to 6, It is characterized in that The format conversion and deployment of the trained medical big language model to obtain a target medical big language model includes: The trained medical big language model is converted into an efficient reasoning format supported by the natural language processing model, and a Docker image of the natural language processing model and its dependencies is built and installed to complete the deployment of the trained medical big language model and obtain the target medical big language model.

8. An abnormality severity estimation device based on a large medical language model, It is characterized in that include: An abnormality identification module is used to collect the patient's medical record data and the discharge summary including the follow-up recommendation, and perform abnormality identification on the medical record data and the discharge summary to obtain abnormal medical record data and abnormal follow-up recommendation data; A term alignment and matching module, used for performing term alignment on the abnormal medical record data and the abnormal follow-up recommendation data, and matching the abnormal medical record data and the abnormal follow-up recommendation data after term alignment to construct a severity estimation sample; A fine-tuning training module, used to convert the severity estimation sample into an input instruction, use the input instruction to perform fine-tuning training on a preset medical big language model to obtain the trained medical big language model, perform format conversion and build and deploy the trained medical big language model to obtain a target medical big language model; The severity estimation module is used to input the abnormal medical record data into the target medical large language model to output a severity estimation level, and combine the severity estimation level with the follow-up recommendation in the discharge summary to generate a severity estimation result of the patient's abnormality.

9. An electronic device, It is characterized in that include: Memory, used to store computer programs; A processor, configured to execute the computer program to implement the abnormality severity prediction method based on a medical large language model as described in any one of claims 1 to 7.

10. A computer-readable storage medium, It is characterized in that Used to store a computer program; wherein, when the computer program is executed by a processor, the abnormality severity prediction method based on a medical large language model as described in any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • AI content abstract generation method and device

    CN119322846A