Construction method and device for analyzing medical advice large language model, medium and equipment

By building a standard index library and knowledge graph in the medical field, using large language models to standardize medical order information, the complexity and non-standardization of medical order information are solved, automated identification and structured processing are realized, and data sharing and clinical practice are improved. Support for the application.

CN118886486APending Publication Date: 2024-11-01天道金科股份有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411114861.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-14
Publication Date
2024-11-01

AI Technical Summary

Technical Problem

Due to its complexity and non-standardity, it is difficult to achieve accurate mining and in-depth analysis through traditional data processing methods, resulting in the failure to effectively release its potential value.

Method used

Build a standard index library and knowledge graph in the medical field, identify medical indicators and labels in medical orders through basic large language models, perform standardized conversion and alias matching, and iteratively optimize the model to achieve accurate analysis and structured processing of medical orders.

Benefits of technology

It realizes the automated identification and standardized processing of medical order information, reduces manual intervention and error rates, supports data exchange and sharing between different medical institutions, and provides comprehensive patient information support for medical big data analysis and clinical decision-making.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118886486A_ABST
    Figure CN118886486A_ABST
Patent Text Reader

Abstract

The invention discloses a medical advice analysis large language model construction method and device, a medium and equipment, and relates to the technical field of natural language large models. By constructing a medical field standard index library and a knowledge graph, automatic identification and standardized processing of medical indexes and labels in medical advice texts are realized, and manual intervention and an error rate are reduced; the standardized medical advice data is beneficial to data exchange and sharing among different medical institutions, and support is provided for medical big data analysis and clinical application; the analyzed doctor's advice data can provide comprehensive patient information support for doctors, assist clinical decision making and provide rich data resources for medical scientific research.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of natural language large models, and in particular to a method, device, medium and equipment for constructing a large language model for parsing medical orders. Background Art

[0002] In the current rapid progress of medical informatization, medical order information, as a core component of clinical diagnosis and treatment activities, carries key medical knowledge and diagnosis and treatment logic. They are often in the form of unstructured or semi-structured text, such as handwritten medical records by doctors, free text input in electronic medical record systems, etc. Although this information can be comprehensively and thoroughly recorded and stored with the help of information technology, due to its inherent complexity and non-standardization, the medical knowledge and professional logic laws in the diagnosis and treatment process are difficult to accurately mine and deeply analyze through traditional data processing methods. This situation has led to the inability to effectively utilize medical order information. Due to the lack of a unified and standardized data structure, a large amount of medical order text data is like an untapped treasure house, and its potential value cannot be effectively released.

[0003] Therefore, the structured processing and in-depth utilization of medical order information has become an important issue in the process of medical informatization. Summary of the invention

[0004] In order to solve at least one of the technical problems mentioned in the background technology, the purpose of the present application is to provide a method, device, medium and equipment for constructing a large language model for parsing medical orders, which can identify non-standard indicators and labels, perform standardized conversion, mapping and alias measurement unit processing on medical orders, and realize accurate parsing and structured processing of medical orders through iterative optimization of the model.

[0005] To achieve the above objectives, this application provides the following technical solutions: In a first aspect, an embodiment of the present application provides a method for constructing a large language model for parsing medical orders, comprising the following steps: Obtain multiple medical order texts, and use the basic large language model to identify various medical indicators and medical labels from the medical order texts; Using a medical field standard indicator library, converting medical indicators and medical labels into standardized medical indicators and medical labels, wherein the medical field standard indicator library includes standardized medical indicators and medical labels in the medical field; Using the medical field knowledge graph, the standardized medical indicators and medical labels are alias matched and the units are unified. The medical field knowledge graph includes the alias relationship of various medical terms and the conversion relationship of measurement units to obtain the final standardized indicators; Multiple medical order texts and the corresponding final standardized indicators are divided into a training set, a test set and a validation set. Based on the training set, the test set and the validation set, the basic large language model is iteratively trained until the loss function converges, thereby obtaining a trained large language model for parsing medical orders.

[0006] Furthermore, the construction process of the medical field standard indicator library includes: Counting the frequencies of the medical indicators and the medical labels, and calculating the degree of standardization; Medical indicators and medical labels with a standardization degree greater than a preset threshold are included in the standard indicator library in the medical field, and the unstructured labels therein are converted into structured key-value pairs.

[0007] Furthermore, when constructing the medical field knowledge graph, it also includes a dynamic update mechanism to regularly obtain the latest data from authoritative medical resources and update the alias relationships and conversion relationships of measurement units in the medical field knowledge graph.

[0008] Furthermore, the step of converting the medical indicators and medical labels into standardized medical indicators and medical labels includes: Using a vector database, the identified medical indicators and medical labels are mapped with standardized medical indicators and medical labels in the medical field standard indicator library to determine the corresponding relationship between the two; According to the corresponding relationship, the medical indicators and medical labels are converted into standardized medical indicators and medical labels.

[0009] In a second aspect, the embodiment of the present application further provides a device for constructing a large language model for parsing medical orders, comprising: The preliminary recognition module is used to obtain multiple medical order texts and use the basic large language model to identify various medical indicators and medical labels from the medical order texts; A standardized conversion module, used to convert medical indicators and medical labels into standardized medical indicators and medical labels by using a medical field standard indicator library, wherein the medical field standard indicator library includes standardized medical indicators and medical labels in the medical field; The final standardization processing module is used to use the medical field knowledge graph to perform alias matching and unit unification on the standardized medical indicators and medical labels. The medical field knowledge graph includes the alias relationship of various medical terms and the conversion relationship of measurement units to obtain the final standardized indicators; The training module is used to divide multiple medical order texts and the corresponding final standardized indicators into a training set, a test set and a validation set, and iteratively train the basic large language model based on the training set, the test set and the validation set until the loss function converges, thereby obtaining a trained large language model for parsing medical orders.

[0010] Furthermore, it also includes a medical field standard indicator library construction module, and the medical field standard indicator library construction module includes: A calculation unit, used for counting the frequencies of the medical indicators and the medical labels, and calculating the degree of standardization; A construction unit is used to incorporate medical indicators and medical labels with a standardization degree greater than a preset threshold into a standard indicator library in the medical field, and convert the unstructured labels therein into a structured key-value pair form.

[0011] Furthermore, it also includes a dynamic update module for the medical field knowledge graph, which is used to regularly obtain the latest data from authoritative medical resources and update the alias relationships and conversion relationships of measurement units in the medical field knowledge graph.

[0012] Furthermore, the standardized conversion module includes: A mapping unit, used to map the identified medical indicators and medical labels with the standardized medical indicators and medical labels in the medical field standard indicator library using the vector database to determine the corresponding relationship between the two; The conversion unit is used to convert the medical indicators and medical labels into standardized medical indicators and medical labels according to the corresponding relationship.

[0013] In a third aspect, an embodiment of the present application further provides a computer storage medium on which a computer program is stored, and when the program is executed by a processor, any of the methods for constructing a large language model for parsing medical orders as described above is implemented.

[0014] In a fourth aspect, an embodiment of the present application further provides a terminal device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein when the processor executes the computer program, it implements any of the methods for constructing a large language model for parsing medical orders as described above.

[0015] Compared with the existing technology, the beneficial effects of this application are: by constructing a standard indicator library and knowledge graph in the medical field, the automatic identification and standardized processing of medical indicators and labels in medical order texts are realized, reducing manual intervention and error rates; standardized medical order data facilitates data exchange and sharing between different medical institutions, and provides support for medical big data analysis and clinical applications; the parsed medical order data can provide doctors with comprehensive patient information support, assist clinical decision-making, and also provide rich data resources for medical research. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 A flowchart of a method for constructing a large language model for parsing medical orders provided in Example 1 of the present application; Figure 2A structural diagram of a device for building a large language model for parsing medical orders provided in Example 2 of the present application. DETAILED DESCRIPTION

[0017] The technical solutions in the embodiments of the present application are described clearly and completely below. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present application.

[0018] In order to solve the above-mentioned problems existing in the prior art, the embodiments of the present application provide a method, device, medium and equipment for constructing a large language model for parsing medical orders, which are described in detail below.

[0019] Embodiment 1: like Figure 1 As shown, Figure 1 A flowchart of a method for constructing a large language model for parsing medical orders provided in an embodiment of the present application. The method includes: Obtain multiple medical order texts and use the basic large language model to identify various medical indicators and medical labels from the medical order texts.

[0020] A large number of data sets containing medical order texts are collected from the electronic medical record systems of multiple hospitals, covering medical order records from different departments and different disease types, to ensure the diversity and comprehensiveness of the data.

[0021] Use pre-trained basic large language models (such as BERT, GPT, etc.) to perform preliminary processing on the collected medical order texts to identify the medical indicators and medical labels therein.

[0022] Among them, medical labels are identifiers that classify or describe data individuals (such as users, products, events, etc.). They are more often quantitative information. For example, bilateral pupils cannot be observed, and the breathing sounds of both lungs are coarse and sputum sounds can be heard. Medical indicators are a set of quantifiable data standards that measure specific business areas or goals, usually in the form of key-value pairs, for example, gender = male, average urine volume = 1.9 ml / kg / h, etc.

[0023] For example, the doctor's order text is as follows: The child's temperature was normal last night. Under endotracheal intubation and assisted ventilation (SIMV mode, VT120ml, PEEP5cmH2O, F30 times / min, FiO2 40%), blood oxygen saturation was maintained within the normal range. There was no retention of milk nasogastric feeding. The average intake was 62.68ml / kg / d, the average output was 2.15ml / kg / d, and the average urine output was 1.9ml / kg / h. Physical examination: body temperature 37.1℃, P103 times / min, respiration 30 times / min, blood pressure 88 / 58mmHg, SpO297%, 2 bowel movements. The pupils on both sides could not be observed, the breath sounds on both lungs were coarse, and sputum sounds could be heard. The neurological examination was negative, the extremities were warm, CRT2s, no obvious rash was found on the whole body, and the feet were in the extended position.

[0024] The medical indicators and medical labels recognized by the basic large language model are as follows: body temperature = 37.1℃, blood pressure = 88 / 58mmHg, sputum sound can be heard, no obvious rash, etc.

[0025] Medical indicators and medical labels are converted into standardized medical indicators and medical labels by using the medical field standard indicator library. The medical field standard indicator library includes standardized medical indicators and medical labels in the medical field.

[0026] First, it is necessary to pre-build a standard indicator library in the medical field. The construction method is as follows: The frequency statistics of the massive amount of identified medical indicators and medical labels are performed to calculate the standardization degree of each indicator and label. The standardization degree can be measured by the ratio of the number of times the indicator or label appears in all medical order texts to the total number of texts.

[0027] Set a preset threshold (such as 10%) and include medical indicators and medical labels with a standardization degree greater than the threshold into the standard indicator library in the medical field.

[0028] In some embodiments, those medical indicators and medical labels with a standardization degree less than the threshold value may be due to the fact that some diseases are very rare, resulting in the low frequency of related medical indicators and labels in routine medical practice. These indicators and labels may not have been fully standardized or incorporated into the mainstream medical data system; it may also be that with the continuous deepening of medical research and the rapid development of medical technology, new medical indicators and labels may continue to emerge, and these new elements may not have been widely standardized in the initial stage. For such medical indicators and medical labels, they can be manually reviewed by experts and adjusted accordingly before being included in the medical field standard indicator library to ensure accuracy.

[0029] For the labels included in the standard library, they are converted from unstructured form to structured key-value pair form, for example, "bilateral pupils are observable" is converted to "bilateral pupil observation possibility = true", and "no milk retention in nasogastric feeding" is converted to "nasogastric milk retention amount = 0ml".

[0030] Next, standard conversion is performed using the standard indicator library in the medical field.

[0031] Through vector databases (such as Faiss, Milvus, etc.), the identified medical indicators and medical labels are similarly calculated with the entries in the standard indicator library in the medical field to find the most matching standardized indicators or labels.

[0032] According to the matching results, the original non-standard medical indicators and medical labels are replaced with the corresponding standardized forms.

[0033] For example, "blood pressure = 88 / 58 mmHg" is converted into the standard expression "systolic pressure = 88 mmHg diastolic pressure = 58 mmHg".

[0034] By using the medical knowledge graph, standardized medical indicators and medical labels are alias matched and the units are unified. The medical knowledge graph includes the alias relationships of various medical terms and the conversion relationships of measurement units to obtain the final standardized indicators.

[0035] Construct a medical knowledge graph: Integrate open source data resources on the Internet (such as the FDA database, PubMed documents, etc.) and authoritative medical information to construct a medical knowledge graph that includes drug aliases, treatment aliases, symptom aliases, and measurement unit conversion relationships.

[0036] Establish a dynamic update mechanism to regularly obtain the latest data from authoritative medical resources and update the alias relationships and unit conversion relationships in the knowledge graph.

[0037] Multiple medical order texts and the corresponding final standardized indicators are divided into training sets, test sets and validation sets. Based on the training sets, test sets and validation sets, the basic large language model is iteratively trained until the loss function converges to obtain a trained large language model for parsing medical orders.

[0038] Based on the training set data, the basic large language model is fine-tuned to enable it to more accurately identify and convert medical indicators and labels in medical order texts.

[0039] After each training cycle, the test set is used to evaluate the performance of the model, including indicators such as accuracy and recall.

[0040] Adjust model parameters such as learning rate and batch size according to the performance on the validation set until the loss function converges and the model performance reaches a stable state.

[0041] Use the validation set to perform a final evaluation of the trained model to ensure that it maintains good performance on unseen data.

[0042] Deploy the trained large language model for parsing medical orders to actual application scenarios, such as electronic medical record systems, medical data analysis platforms, etc., to achieve automated parsing and standardized processing of medical order texts.

[0043] The embodiment of the present application provides a method for constructing a large language model for parsing medical orders. By constructing a standard indicator library and knowledge graph in the medical field, the automatic recognition and standardized processing of medical indicators and labels in the medical order text are realized, reducing manual intervention and error rate; standardized medical order data facilitates data exchange and sharing between different medical institutions, and provides support for medical big data analysis and clinical applications; the parsed medical order data can provide doctors with comprehensive patient information support, assist clinical decision-making, and also provide rich data resources for medical research.

[0044] Embodiment 2: like Figure 2 As shown, Figure 2 A structural diagram of a device for building a large language model for parsing medical orders provided in Example 2 of the present application. The device includes: The preliminary recognition module is used to obtain multiple medical order texts and use the basic large language model to identify various medical indicators and medical labels from the medical order texts.

[0045] The standardized conversion module is used to convert medical indicators and medical labels into standardized medical indicators and medical labels by using the medical field standard indicator library. The medical field standard indicator library includes standardized medical indicators and medical labels in the medical field.

[0046] The above-mentioned standardized conversion modules include: A mapping unit, used to map the identified medical indicators and medical labels with the standardized medical indicators and medical labels in the medical field standard indicator library using the vector database to determine the corresponding relationship between the two; The conversion unit is used to convert the medical indicators and medical labels into standardized medical indicators and medical labels according to the corresponding relationship.

[0047] The final standardization processing module is used to use the medical field knowledge graph to perform alias matching and unit unification of standardized medical indicators and medical labels. The medical field knowledge graph includes the alias relationships of various medical terms and the conversion relationships of measurement units to obtain the final standardized indicators.

[0048] The training module is used to divide multiple medical order texts and the corresponding final standardized indicators into training sets, test sets and validation sets. Based on the training sets, test sets and validation sets, the basic large language model is iteratively trained until the loss function converges, thereby obtaining a trained large language model for parsing medical orders.

[0049] The above-mentioned device for constructing a large language model for parsing medical orders also includes a medical field standard indicator library construction module, and the medical field standard indicator library construction module includes: A calculation unit, used to count the frequency of medical indicators and medical labels and calculate the degree of standardization; A construction unit is used to incorporate medical indicators and medical labels with a standardization degree greater than a preset threshold into a standard indicator library in the medical field, and convert the unstructured labels therein into a structured key-value pair form.

[0050] The above-mentioned device for constructing a large language model for parsing medical orders also includes a medical field knowledge graph dynamic update module, which is used to regularly obtain the latest data from authoritative medical resources and update the alias relationship and unit conversion relationship in the medical field knowledge graph.

[0051] The embodiment of the present application provides a device for constructing a large language model for parsing medical orders. By constructing a standard indicator library and knowledge graph in the medical field, the automatic recognition and standardized processing of medical indicators and labels in the medical order text are realized, reducing manual intervention and error rate; standardized medical order data facilitates data exchange and sharing between different medical institutions, and provides support for medical big data analysis and clinical applications; the parsed medical order data can provide doctors with comprehensive patient information support, assist clinical decision-making, and also provide rich data resources for medical research.

[0052] Embodiment three: Corresponding to the embodiment of the method for constructing a large language model for parsing medical orders, the embodiment of the present application also provides a computer storage medium on which a computer program is stored, and when the program is executed by a processor, any of the above-mentioned methods for constructing a large language model for parsing medical orders is implemented.

[0053] Embodiment 4: Corresponding to the embodiment of the method for constructing a large language model for parsing medical orders, the embodiment of the present application also provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any of the above-mentioned methods for constructing a large language model for parsing medical orders when executing the computer program.

[0054] It is obvious to those skilled in the art that the present application is not limited to the details of the above exemplary embodiments, and that the present application can be implemented in other specific forms without departing from the spirit or essential features of the present application. Therefore, no matter from which point of view, the embodiments should be regarded as exemplary and non-restrictive, and the scope of the present application is defined by the appended claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present application.

Claims

1. A method for constructing a large language model for parsing medical orders. It is characterized in that The following steps are involved: Obtain multiple medical order texts, and use the basic large language model to identify various medical indicators and medical labels from the medical order texts; Using a medical field standard indicator library, converting medical indicators and medical labels into standardized medical indicators and medical labels, wherein the medical field standard indicator library includes standardized medical indicators and medical labels in the medical field; Using the medical field knowledge graph, the standardized medical indicators and medical labels are alias matched and the units are unified. The medical field knowledge graph includes the alias relationship of various medical terms and the conversion relationship of measurement units to obtain the final standardized indicators; Multiple medical order texts and the corresponding final standardized indicators are divided into a training set, a test set and a validation set. Based on the training set, the test set and the validation set, the basic large language model is iteratively trained until the loss function converges, thereby obtaining a trained large language model for parsing medical orders.

2. The method for constructing a large language model for parsing medical orders according to claim 1, It is characterized in that The construction process of the medical field standard indicator library includes: Counting the frequencies of the medical indicators and the medical labels, and calculating the degree of standardization; Medical indicators and medical labels with a standardization degree greater than a preset threshold are included in the standard indicator library in the medical field, and the unstructured labels therein are converted into structured key-value pairs.

3. The method for constructing a large language model for parsing medical orders according to claim 1, It is characterized in that When constructing the medical field knowledge graph, it also includes a dynamic update mechanism to regularly obtain the latest data from authoritative medical resources and update the alias relationships and conversion relationships of measurement units in the medical field knowledge graph.

4. The method for constructing a large language model for parsing medical orders according to claim 1, It is characterized in that The step of converting the medical indicators and medical labels into standardized medical indicators and medical labels comprises: Using a vector database, the identified medical indicators and medical labels are mapped with standardized medical indicators and medical labels in the medical field standard indicator library to determine the corresponding relationship between the two; According to the corresponding relationship, the medical indicators and medical labels are converted into standardized medical indicators and medical labels.

5. A device for building a large language model for parsing medical orders, It is characterized in that include: The preliminary recognition module is used to obtain multiple medical order texts and use the basic large language model to identify various medical indicators and medical labels from the medical order texts; A standardized conversion module, used to convert medical indicators and medical labels into standardized medical indicators and medical labels by using a medical field standard indicator library, wherein the medical field standard indicator library includes standardized medical indicators and medical labels in the medical field; The final standardization processing module is used to use the medical field knowledge graph to perform alias matching and unit unification on the standardized medical indicators and medical labels. The medical field knowledge graph includes the alias relationship of various medical terms and the conversion relationship of measurement units to obtain the final standardized indicators; The training module is used to divide multiple medical order texts and the corresponding final standardized indicators into a training set, a test set and a validation set, and iteratively train the basic large language model based on the training set, the test set and the validation set until the loss function converges, thereby obtaining a trained large language model for parsing medical orders.

6. The device for constructing a large language model for parsing medical orders according to claim 5, It is characterized in that It also includes a medical field standard indicator library construction module, which includes: A calculation unit, used for counting the frequencies of the medical indicators and the medical labels, and calculating the degree of standardization; A construction unit is used to incorporate medical indicators and medical labels with a standardization degree greater than a preset threshold into a standard indicator library in the medical field, and convert the unstructured labels therein into a structured key-value pair form.

7. The device for constructing a large language model for parsing medical orders according to claim 5, It is characterized in that It also includes a dynamic update module for the medical field knowledge graph, which is used to regularly obtain the latest data from authoritative medical resources and update the alias relationships and conversion relationships of measurement units in the medical field knowledge graph.

8. The device for constructing a large language model for parsing medical orders according to claim 5, It is characterized in that The standardized conversion module includes: A mapping unit, used to map the identified medical indicators and medical labels with the standardized medical indicators and medical labels in the medical field standard indicator library using the vector database to determine the corresponding relationship between the two; The conversion unit is used to convert the medical indicators and medical labels into standardized medical indicators and medical labels according to the corresponding relationship.

9. A computer storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.

10. A terminal device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the method according to any one of claims 1 to 4 is implemented.