A natural language processing automatic table typing method based on Padua scale

Through the natural language processing automatic tabulation method based on the Padua scale, the natural language processing model is used to intelligently evaluate the medical history and course records in the electronic medical records, which solves the high cost and inefficiency problems of manual judgment of VTE risk in clinical practice, and achieves Automated assessment of VTE history and related disease information improves assessment accuracy and efficiency.

CN114898886BActive Publication Date: 2024-09-20KUNMING UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210620012.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-02
Publication Date
2024-09-20
Estimated Expiration
2042-06-02

AI Technical Summary

Technical Problem

Clinically, the prevention of venous thromboembolism relies on manual judgment, which results in high labor costs and may ignore other issues. It is difficult for existing technology to effectively and automatically assess patients' VTE history and related disease information.

Method used

The natural language processing automatic tabulation method based on the Padua scale is used to obtain the ICD-10 diagnostic classification content, build a natural language processing model, train two-classification and five-classification models, and preprocess the past medical history and disease course records in electronic medical records. and intelligent assessment to generate intelligent assessment results of the Padua scale.

Benefits of technology

It effectively reduces the workload of clinicians in assessing patients' VTE risk and improves the accuracy and efficiency of automatic assessment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114898886B
    Figure CN114898886B
Patent Text Reader

Abstract

The present invention relates to a natural language processing automatic table-making method based on the Padua scale, which belongs to the field of natural language processing and medical information. Among them, it includes obtaining the text content of the diagnosis category corresponding to the Padua scale in the ICD-10 international diagnostic classification; training a natural language processing model with the diagnosis category and the diagnosis text. Processing the hospital's electronic medical records to obtain the diagnostic information in the structured medical history and course records; using the diagnostic information to input the natural language processing model to automatically evaluate the Padua scale. The natural language processing automatic table-making method based on the Padua scale provided by the present invention can effectively use electronic medical record data to intelligently evaluate the Padua scale.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention provides a natural language processing automatic table typing method based on the Padua scale, which belongs to the field of natural language processing and medical information technology. Background Art

[0002] With the development of the times, natural language processing (NLP) has great research prospects in the field of medical information. Medical text contains a large amount of rich medical information (diagnosis reports, imaging reports, etc.), which is an important text resource for disease prediction, personalized information recommendation, clinical decision support, etc.

[0003] From the perspective of demand, venous thromboembolism (VTE) is a general term for deep vein thrombosis and pulmonary embolism. Studies have reported that about 10 million cases of VTE occur worldwide each year, and almost 1 or 2 people in every 1,000 suffer from venous thrombosis. VTE has become the third leading cause of death from cardiovascular disease after ischemic heart disease and stroke, and is a major burden of non-communicable diseases worldwide. Therefore, the prevention of venous thrombosis has become a key task for doctors in clinical practice.

[0004] However, in most cases, manual judgment is still used to score patients' VTE, which is a huge waste of manpower. In addition, if a patient is admitted to the hospital for problems unrelated to thrombosis, the doctor may ignore some previous problems and make the previous thrombosis situation forgotten and drowned. Summary of the invention

[0005] In view of the above-mentioned defects or deficiencies in the prior art, the present invention provides a natural language processing automatic typing method based on the Padua scale to solve the problem of automatic Padua evaluation of active cancer, previous history of VTE, heart failure and / or respiratory failure, acute myocardial infarction or ischemic stroke, acute infection and / or rheumatic disease items under Chinese conditions.

[0006] The technical solution of the present invention is: a natural language processing automatic table-making method based on the Padua scale, the method comprising:

[0007] These include:

[0008] Step 1: Obtain the diagnostic language content corresponding to the Padua scale in the ICD-10 international diagnostic classification, pre-process the reported diagnostic content, and obtain the diagnostic category data after data processing;

[0009] Step 2: Preprocess the category data obtained in Step 1, build a natural language processing model, and use the diagnostic category data to train a two-category model for judging "past medical history" and a five-category model for judging "medical course record";

[0010] Step 3: Obtain the medical history and preliminary diagnosis and supplementary diagnosis in the medical records in the hospital's electronic medical records, and pre-process the medical history and diagnosis;

[0011] Step 4: Input the processed diagnostic information in the medical history and medical records into the pre-built natural language processing model to obtain the Padua scale intelligent assessment results based on the patient's case.

[0012] As a further solution of the present invention, the specific steps of Step 1 are as follows:

[0013] Step 1.1. Classify and sort the five categories in the Padua scale: "active malignant tumor, the patient has previous local or distant metastasis and / or chemotherapy and radiotherapy within 6 months", "previous venous thromboembolism", "heart and / or respiratory failure", "acute myocardial infarction and / or ischemic stroke", and "acute infection and / or rheumatic disease" to obtain the positive sample data set of the corresponding category diagnosis.

[0014] Step 1.2. Select 10% of the positive samples and randomly integrate frequently appearing diagnostic sentences such as "to be checked", "?", "undetermined" into the positive samples as the first part of the negative samples;

[0015] Step 1.3. The medical diagnoses in ICD-10 that are obviously opposite to the positive samples constitute the second part of the negative samples;

[0016] Step 1.4. Randomly select 60% of the ICD-10 medical diagnoses of non-positive and non-negative samples one and two as negative samples three.

[0017] As a further solution of the present invention, the specific steps of Step 2 are as follows:

[0018] Step 2.1, preprocess the data obtained in Step 1, including splitting the training model data and data mapping;

[0019] Step 2.2. Build a model structure for determining the Padua category. First, use the processed ICD-10 data as the input of the ALbert layer, then input the ALbert model as the Embedding into the BILSTM layer to extract each character feature, and then input the output of the first BILSTM layer into the second BILSTM layer. Take the last cell state C of the second BILSTM layer t As a whole diagnostic information is input into the final classification level;

[0020] Step 2.3. Use the binary classification model for judging "past history" and the five-category model for judging "medical record" to train "previous venous thromboembolism" and "active malignant tumor, the patient has previous local or distant metastasis and / or received chemotherapy and radiotherapy within 6 months", "heart and / or respiratory failure", "acute myocardial infarction and / or ischemic stroke", "acute infection and / or rheumatic disease", respectively. The binary classification model and the five-category model use focal loss and cross entropy loss, respectively.

[0021] As a further solution of the present invention, Step 3 includes:

[0022] Step 3.1. Use regular expressions to extract the diagnosis information from the medical history in the electronic medical records as the medical history list;

[0023] Step 3.2. Use regular expressions to extract the preliminary diagnosis in the medical record and the diagnostic information in the supplementary diagnosis as the medical record List.

[0024] As a further solution of the present invention, Step 4 includes preprocessing the diagnosis text, diagnosis identification based on past history, and preliminary diagnosis and supplementary diagnosis identification based on medical records. The specific steps are as follows:

[0025] Step 4.1. Preprocess the medical history list and medical record list obtained in Step 3 by using the data mapping method in Step 2.1 to obtain the processed medical history list and medical record list;

[0026] Step 4.2. Use the two-category model for judging "past medical history" and the five-category model for judging "medical record" trained in Step 2;

[0027] Step 4.3. Input the medical history list and medical record list obtained in Step 4.1 into the binary classification model and the five-classification model in Step 4.2 respectively to distinguish each diagnosis one by one;

[0028] Step 4.4. Perform deduplication statistics on the discrimination results obtained in step 4.3, and finally obtain the scoring results of the Padua scale;

[0029] Step4.5. Encapsulate Step4.1 to Step4.4 to provide an interface to provide services to the outside.

[0030] The beneficial effect of the present invention is that the present invention introduces natural language processing technology, and can perform intelligent evaluation on the medical history and medical records in the electronic medical records according to the Padua scale, which can effectively reduce the workload of clinicians in evaluating the VTE risk of patients. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 It is a flow chart of the natural language processing automatic table typing method based on the Padua scale disclosed in the present invention;

[0032] Figure 2 It is a model structure diagram disclosed by the present invention;

[0033] Figure 3 It is a training and prediction flow chart of the natural language processing automatic typing model of the Padua scale disclosed in the invention;

[0034] Figure 4 It is a schematic diagram showing the calling of the Padua meter interface disclosed in the present invention. DETAILED DESCRIPTION

[0035] In order to further understand the structure, features and purpose of the present invention, the following description is given in conjunction with the accompanying drawings. The implementations described in the accompanying drawings are only used to illustrate the technical solutions of the present invention and are not intended to limit the present invention.

[0036] Embodiment 1, as Figure 1-Figure 4 As shown, a natural language processing automatic table typing method based on the Padua scale is provided, and the method comprises:

[0037] Step 1: Obtain the diagnostic language content corresponding to the Padua scale in the ICD-10 international diagnostic classification, pre-process the reported diagnostic content, and obtain the diagnostic category data after data processing. The final data quantity is shown in Table 1. The specific implementation steps are as follows:

[0038] Table 1 Data of each Padua scale item in the training set

[0039]

[0040] Step 1.1. Categorize and sort out the five categories of "active malignant tumors, patients with previous local or distant metastasis and / or chemotherapy and radiotherapy within 6 months", "previous venous thromboembolism", "heart and / or respiratory failure", "acute myocardial infarction and / or ischemic stroke", and "acute infection and / or rheumatic disease" in the Padua scale to obtain the corresponding diagnostic data set;

[0041] Step 1.2. Select 10% of the positive samples and randomly integrate frequently appearing diagnostic sentences such as "to be checked", "?", "undetermined" into the positive samples as the first part of the negative samples.

[0042] Step 1.3. The medical diagnoses in ICD-10 that are obviously opposite to the positive samples constitute the second part of the negative samples.

[0043] Step 1.4. Randomly select 60% of the ICD-10 medical diagnoses of non-positive and non-negative samples 2 as negative samples 3.

[0044] Step 2. Figure 1 As shown, the diagnostic category and diagnostic text are input into the constructed natural language processing model to train the natural processing model, including training the "past medical history" two-category model and the "medical record" five-category model based on the ICD-10 data sorted in Step 1. The specific implementation steps are as follows:

[0045] Step 2.1 performs data preprocessing on the data obtained in Step 1. Data preprocessing includes splitting training model data and data mapping.

[0046] Split training model data: Divide the prepared data into two parts according to the previous venous thrombosis data for training the binary classification model and the other data for training the five-classification model. The negative sample three of the binary classification model is 300 random samples from the negative sample three. The five-classification model uses all negative samples three. Split the processed data into a training set and a test set at a ratio of 8:2. Use the training set data to train the ALbert+BILSTM model.

[0047] Data mapping: First, adjust the input sequence to the specified size. If the number of diagnosis characters is less than 25, add 0 as padding, and if it is greater than 25, truncate the first 23 characters. Map each medical diagnosis to the corresponding number in the text vocabulary and add [CLS] and [SEP] at the beginning and end to represent the start and end respectively.

[0048] For example, “deep vein thrombosis of the left lower extremity” is processed as [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 102, 2340, 678, 5501, 3918, 7474, 5549, 6117, 3410, 103], where 102 and 103 represent the mapping positions of [CLS] and [SEP] respectively.

[0049] Secondly, the diagnostic overall sentence position information is mapped out.

[0050] For example, "deep vein thrombosis of the left lower limb" is processed as [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]. Because "deep vein thrombosis of the left lower limb" has only one sentence, so 0 means that this diagnosis sentence belongs to the first sentence.

[0051] Finally, due to the mapping in the first step, the model API can read the mapping of sentence word positions.

[0052] Step 2.2. Build a model structure for determining the Padua category. The ALbert+BILSTM model structure is as follows: Figure 2 As shown in the figure. First, the processed ICD-10 data is used as the input of the text vectorization ALbert layer, and then the ALbert model is used as the embedding input to the first BILSTM layer in the feature extraction layer to extract each character feature, and then the output of the first BILSTM layer is input to the second BILSTM layer. Take the last cell state C of the second BILSTM layer t As a whole diagnostic information input to the final classification level. The training process uses Adam as the optimizer and the learning rate is set to 0.00001.

[0053] Step 2.3. Use the binary classification model for judging "past history" and the five-category model for judging "medical record" to train "previous venous thromboembolism" and "active malignant tumor, the patient has previously had local or distant metastasis and (or) received chemotherapy and radiotherapy within 6 months", "heart and (or) respiratory failure", "acute myocardial infarction and (or) ischemic stroke", "acute infection and (or) rheumatic disease". The binary classification model and the five-category model use FocalLoss and cross entropy loss respectively.

[0054] Step 3. Obtain the medical history and preliminary diagnosis and supplementary diagnosis from the medical records in the hospital's electronic medical records, and pre-process the reported medical history and diagnosis.

[0055] Step 3.1. Use regular expressions to extract diagnostic information from medical history in electronic medical records. Specifically, Figure 1 , extract the semi-structured medical history into a List using the re regular expression API in Python.

[0056] For example: "Usually healthy: [General]; Medical history: [Has a history of "deep vein thrombosis of the left lower limb" for 1 year, **************, has a history of "cerebral infarction" for 1 year ******************" Use the re regular expression API in Python to extract it into List ["deep vein thrombosis of the left lower limb", "cerebral infarction"]. "*" represents omitted electronic medical records.

[0057] Step 3.2. Use regular expressions to extract the diagnostic information in the preliminary diagnosis and supplementary diagnosis in the medical record. Specifically, Figure 1 , extract the semi-structured electronic medical record information into a List using the re regular expression API in Python

[0058] For example: "IV. Preliminary diagnosis: 1. Sore throat, fever, abdominal pain, reasons to be determined 2. Acute pharyngitis 3. Hepatitis B virus, positive HBeAg 4. Vaccination reaction?. ******************************* Ward rounds record of the department director, condition analysis: ************************** Treatment opinion: ************************** Supplementary diagnosis: left kidney cyst, continue consolidation treatment, and continue to observe the changes in the condition." Extracted into List["Sore throat", "Fever", "Abdominal pain reasons to be determined", "Acute pharyngitis", "Hepatitis B virus, positive HBeAg", "Vaccination reaction?", "Left kidney cyst"]. "*" represents omitted electronic medical records.

[0059] Step 4. Input the processed diagnostic information from the medical history and medical records into the pre-built natural language processing model to obtain the Padua scale intelligent assessment results based on the patient's case. The specific implementation steps are as follows:

[0060] In order to evaluate the Padua scale of real case data, the present invention designs a set of evaluation processes in Step 4, as follows: Figure 3 As shown, the evaluation process is carried out in the following steps:

[0061] Step 4.1. Preprocess the medical history list and medical record list obtained in Step 3 by using the data mapping method in Step 2.1, so as to obtain the processed medical history list and medical record list.

[0062] Step 4.2. Use the two-category model for judging "medical history" and the five-category model for judging "medical record" trained in Step 2.

[0063] Step 4.3. Input the medical history list and medical record list obtained in Step 4.1 into the binary classification model and five-classification model in Step 4.2 respectively to judge each diagnosis one by one.

[0064] Step 4.4. Perform deduplication statistics on the discrimination results obtained in step 4.3, and finally obtain the scoring results of the Padua scale.

[0065] Step4.5. Encapsulate Step4.1 to Step4.4 to provide an interface to provide services to the outside world. The effect is as follows: Figure 4 As shown in the figure. In order to protect the privacy of patients, some information in the figure is replaced by "*". By using the "past history" and "medical record" in the electronic medical record as input, the items that need to be scored on the Padua scale for this patient are finally obtained.

[0066] The present invention discloses a natural language processing automatic table-making method based on the Padua scale, which is suitable for automatically assessing the VTE risk of patients based on the Padua scale in hospital electronic medical records. First, a deep learning method is used to train a model in combination with ICD-10 as a training set. Then, the trained binary classification model and five-classification model are used to judge the VTE risk of patients based on the "past history" in the electronic medical record and the diagnostic text information in the "medical record".

[0067] The specific implementation modes of the present invention are described in detail above in conjunction with the accompanying drawings, but the present invention is not limited to the above implementation modes, and various changes can be made within the knowledge scope of ordinary technicians in this field without departing from the purpose of the present invention.

Claims

1. A natural language processing automatic table-making method based on the Padua scale, characterized in that: These include: Step 1: Obtain the diagnostic language content corresponding to the Padua scale in the ICD-10 international diagnostic classification, pre-process the reported diagnostic content, and obtain the diagnostic category data after data processing; Step 2: Preprocess the category data obtained in Step 1, build a natural language processing model, and use the diagnostic category data to train a two-category model for judging "past medical history" and a five-category model for judging "medical course record"; Step 3: Obtain the medical history and preliminary diagnosis and supplementary diagnosis in the medical records in the hospital's electronic medical records, and pre-process the medical history and diagnosis; Step 4: Input the processed diagnostic information in the medical history and medical records into the pre-built natural language processing model to obtain the Padua scale intelligent assessment results based on the patient's case; The specific steps of Step 1 are as follows: Step 1.

1. Arrange the corresponding diagnostic category data in ICD-10 according to the Padua scale items as positive sample category data; Step 1.

2. Select 10% of the positive samples and randomly integrate the uncertain words that appear in medical situations into the positive samples as the first part of the negative samples; Step 1.

3. The medical diagnoses in ICD-10 that are obviously opposite to the positive samples constitute the second part of the negative samples; Step 1.

4. Randomly select 60% of the ICD-10 medical diagnoses in the non-negative sample first part and the non-negative sample second part of the non-positive sample category data as negative sample three; The specific steps of Step 2 are as follows: Step 2.1: Preprocess the data obtained in Step 1. Data preprocessing includes splitting training model data and data mapping. Data mapping includes: First, adjust the input sequence to the specified size, fill the diagnosis with 0 characters if the number of characters is less than 25, and truncate the first 23 characters if the number of characters is greater than 25; map the medical diagnoses to the corresponding numbers in the text vocabulary and add [CLS] and [SEP] at the beginning and end to represent the start and end respectively; Secondly, the diagnostic overall sentence position information is mapped; Finally, due to the mapping in the first step, the model API can read the mapping of sentence word positions; Step 2.

2. Build a model structure for determining the Padua category. First, use the processed ICD-10 data as the input of the ALbert layer, and then input the ALbert model as the Embedding into the BILSTM layer to extract each character feature. Then, input the output of the first BILSTM layer into the second BILSTM layer, and take the last cell state C of the second BILSTM layer. t As a whole diagnostic information is input into the final classification level; Step 2.

3. Use the binary classification model for judging "past history" and the five-category model for judging "medical course record" to train "previous venous thromboembolism" and "active malignant tumor, the patient has previously had local or distant metastasis and / or received chemotherapy and radiotherapy within 6 months", "heart and / or respiratory failure", "acute myocardial infarction and / or ischemic stroke", "acute infection and / or rheumatic disease", respectively. The binary classification model and the five-category model use focal loss and cross entropy loss respectively; The Step 3 includes: Step 3.

1. Use regular expressions to extract the diagnosis information from the medical history in the electronic medical records as the medical history list; Step 3.

2. Use regular expressions to extract the diagnostic information in the preliminary diagnosis and supplementary diagnosis in the medical record as the medical record List; Step 4 includes preprocessing the diagnosis text, diagnosis recognition based on past history, and preliminary diagnosis and supplementary diagnosis recognition based on medical records. The specific steps are as follows: Step 4.

1. Preprocess the medical history list and medical record list obtained in Step 3 by using the data mapping method in Step 2.1 to obtain the processed medical history list and medical record list; Step 4.

2. Use the two-category model for judging "past medical history" and the five-category model for judging "medical record" trained in Step 2; Step 4.

3. Input the medical history list and medical record list obtained in Step 4.1 into the binary classification model and the five-classification model in Step 4.2 respectively to distinguish each diagnosis one by one; Step 4.

4. Perform deduplication statistics on the discrimination results obtained in step 4.3, and finally obtain the scoring results of the Padua scale; Step4.

5. Encapsulate Step4.1 to Step4.4 to provide an interface to provide services to the outside world.