Heterogeneous table information fusion-based disease severity prediction method

By adopting the heterogeneous table information fusion method of the Transformer model in medical table data processing, and using the self-attention and cross-attention mechanisms to fuse structured and unstructured data, the information redundancy and heterogeneous data fusion in the existing technology are solved. It improves the accuracy of disease severity classification and model performance.

CN118690333APending Publication Date: 2024-09-24INST OF AUTOMATION CHINESE ACAD OF SCI
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411174672.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-26
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

Existing medical form data processing models mainly focus on single-structured data processing and cannot effectively integrate structured and unstructured data, resulting in redundant or missing information. They cannot fully utilize the semantic association and contextual information of text features, which increases the model's complexity. Complexity and dependencies.

Method used

A heterogeneous table information fusion method based on the Transformer model is designed. Through feature embedding and text processing modules, structured and unstructured data are processed separately, and self-attention and cross-attention mechanisms are used for data fusion to generate comprehensive Representation improves the ability to capture the intrinsic connections and interactions between data.

Benefits of technology

It achieves efficient processing and analysis of heterogeneous medical data, improves the accuracy and model performance of disease severity classification, and provides more reliable support for clinical decision-making.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118690333A
    Figure CN118690333A
Patent Text Reader

Abstract

The invention discloses a disease severity prediction method based on heterogeneous table information fusion, and belongs to the technical field of electronic data processing. The method comprises the following steps: step 1, carrying out feature embedding processing on structured data in an electronic case heterogeneous table information sample to obtain a comprehensive embedding vector; step 2, processing unstructured data in the electronic case heterogeneous table information sample based on a text processing module to obtain an embedded vector with complete context information; and step 3, fusing the comprehensive embedded vector and the embedded vector with complete context information by using a heterogeneous table information fusion device to obtain comprehensive vector representation of the heterogeneous table information sample of the electronic case, and outputting a disease severity prediction result. According to the invention, a heterogeneous data fusion technology is designed, the relationship between structured and unstructured data is better captured, the processing and analysis capability of medical heterogeneous data is improved, and thus the severity of an illness state is better predicted.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of electronic data processing, and in particular relates to a method for predicting the severity of a disease based on heterogeneous table information fusion. Background Art

[0002] Most of the medical table data in reality are heterogeneous data. In addition to common numerical features (such as blood pressure) and categorical features (such as gender), there are also many text features (such as the patient's medical diagnosis). Using heterogeneous data for effective analysis is of great significance for completing a variety of clinical tasks. For example, classifying the severity of the illness (mild, moderate and severe) of elderly patients with chronic diseases admitted to the hospital can optimize the allocation of medical resources and provide appropriate medical services. From the perspective of computer-aided diagnosis, the development of heterogeneous table data fusion technology is crucial to improving the accuracy and reliability of medical decision support systems.

[0003] Currently, most models for processing medical table data focus on processing data with a single structure. The main methods include: Code conversion: During the modeling process, text information in medical table data (such as patient "diagnosis", "drug use", etc.) is usually converted into structured data coded by ICD or ATC. However, these codes may lead to information loss, making it difficult to fully express the richness and details of the original text information; Text embedding: converting text features into embedded representations through natural language processing technology. However, it does not consider the semantic associations between text features and cannot fully utilize the contextual information in the text; Language model application: Use large language models to perform small sample classification of tabular data, and generate natural language strings by briefly describing the classification problem. However, many existing models require prior knowledge of entities in the text for effective processing and analysis, which increases the complexity and dependency of the model; Pre-designed language templates: All features are expressed as a text description through pre-designed language templates, and then embedded for representation. However, converting structured data into text descriptions may lead to information redundancy, increase the complexity of data processing, and make it difficult to learn effective information in later model training. Summary of the invention

[0004] To solve the above technical problems, the present invention provides a disease severity prediction method based on heterogeneous table information fusion. Different processing methods are adopted for the structured data and unstructured text feature data in the heterogeneous medical table data. Based on the Transformer model, a heterogeneous data fusion technology is designed to better capture the relationship between structured and unstructured data, thereby improving the processing and analysis capabilities of medical heterogeneous data.

[0005] To achieve the above purpose, the technical solution provided by the present invention is as follows: A method for predicting the severity of a disease based on heterogeneous table information fusion, the method comprising the following steps: Step 1: The structured data in the electronic medical record heterogeneous table information sample is processed by feature embedding to obtain a comprehensive embedding vector; Step 2: Based on the text processing module, the unstructured data in the heterogeneous table information sample of the electronic medical records is processed to obtain an embedding vector with complete context information; Step 3: Use the heterogeneous table information fuser to fuse the comprehensive embedding vector and the embedding vector with complete contextual information to obtain a comprehensive vector representation of the electronic medical record heterogeneous table information sample, and output the disease severity prediction result through linear transformation and Softmax function.

[0006] The beneficial effects of the present invention are: The present invention designs an effective prompt text function, and uses a pre-trained language model to generate a highly relevant and informative text summary on a real data set of chronic diseases in the elderly, so that the text features can better reflect the patient's actual condition.

[0007] The present invention designs a heterogeneous table information fusion architecture with self-attention and cross-attention mechanisms to effectively fuse structured data and unstructured text data to generate a comprehensive representation, which can more accurately capture the intrinsic connections and mutual influences between data.

[0008] The present invention proposes a novel idea for fusing heterogeneous medical form data features, which improves the performance of the model in classifying the severity of illness in elderly patients with chronic diseases, provides more reliable support for clinical decision-making, and has important application value and promotion potential. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] Figure 1 It is a principle block diagram of the disease severity prediction method based on heterogeneous table information fusion of the present invention; Figure 2 It is a flowchart of text feature processing; Figure 3 The schematic diagram of the heterogeneous table information fuser. DETAILED DESCRIPTION

[0010] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0011] The present invention provides a disease severity prediction method based on heterogeneous table information fusion, which improves the existing technology mainly in the following two aspects: First: Facing heterogeneous medical table data, different processing methods are adopted for structured data and unstructured data, including: a) For structured data, first, for numerical features, they are standardized to zero mean and unit variance, and mapped to the embedding space through linear transformation. Secondly, for categorical features, the category index is mapped to the embedding vector through the embedding layer and converted to a fixed-length vector through the lookup table. Through the above processing, structured data can be input into the model in a consistent format, improving the overall performance of the model.

[0012] b) For unstructured data, first, by building a prompt project, we use the pre-trained language model ChatGLM3 to associate text features and generate a text summary. Then, we use the long text embedding model BGE M3-Embedding to convert the generated text summary into an embedded representation. This processing method can better capture the rich information of unstructured text feature data.

[0013] Second: After processing structured and unstructured data, a heterogeneous data fusion architecture was designed based on the Transformer model to better capture the relationship between structured and unstructured data, thereby improving the processing and analysis capabilities of medical heterogeneous data. Including: a) Design a dual-tower architecture to process structured data and unstructured data respectively. For structured data, the self-attention mechanism is used to gradually extract and fuse information to form a high-dimensional representation of structured data; for unstructured data, the self-attention mechanism is used to effectively capture the semantic relationship and contextual dependency in text data to generate a deep representation of unstructured data. This architecture can make full use of the diversity of input data and realize complex feature interactions within the sequence, thereby improving the expressiveness of the model.

[0014] b) Introduce the cross-attention mechanism to enhance the information interaction between structured data and unstructured data. The structured data and unstructured data are interacted and fused through the cross-attention mechanism. In this way, the model can capture the key features of both types of data at the same time and generate a more comprehensive and accurate sample representation. This method solves the problems of information redundancy and insufficient fusion of heterogeneous data in the existing technology, and improves the performance and accuracy of the model when processing complex medical data.

[0015] like Figure 1 As shown in the figure, it is a principle block diagram of the disease severity prediction method based on heterogeneous table information fusion of the present invention. In the face of heterogeneous table data in electronic medical records, the unstructured data (category features and numerical features) are embedded and processed separately, and the comprehensive embedding vector of the structured data is obtained by splicing. , the text feature "for example: intermittent chest pain for 14 years, recurrence with uncontrolled blood pressure for more than 2 weeks..." is processed through the text processing module to obtain an embedding vector with complete context information Then, the heterogeneous table information fusion device is used to realize the interaction and fusion of structured data and unstructured data to obtain a comprehensive vector representation of the sample. Finally, the prediction result of the severity of the disease is output through linear transformation and softmax function. The specific steps are as follows: Step 1: Perform feature embedding processing on structured data. This includes: Step 1.1: For numerical features, standardize them to zero mean and unit variance, and map them to the first embedding vector through linear transformation; Step 1.2: For categorical features, the category index is mapped to a second embedding vector through the embedding layer, and the second embedding vector is converted into a fixed-length vector through a lookup table; Step 1.3: Concatenate the embedding vector of the numerical feature in step 1.1 with the fixed-length vector of the categorical feature in step 1.2 to form a comprehensive embedding vector of the structured data. .

[0016] Step 2: For unstructured data, process its text features based on the text processing module. Figure 2 As shown, all text features of the sample constitute a set , and the prompt function All the text features of the sample are combined in the form of "1st feature: value; 2nd feature: value..." to form a text feature set. , such as "..., clinical symptoms: acid reflux and heartburn after eating; main diagnosis: acute non-ST-segment elevation myocardial infarction; main reason for admission: precordial pain with palpitations...", prompt function The type is a template prompt function: "Based on the text feature set Generate a sentence in sequence: What are the patient's clinical symptoms? What is the main cause of diagnosis? ..." In the prompt function Under the guidance of , the pre-trained language model ChatGlm3 successively trains the text feature set The text features are described separately to obtain the text description of the first feature, the text description of the second feature, and so on, the text description of the i-th feature (i.e., the diagram input (x)), and finally connected to obtain the text summary (i.e., the output of the diagram (y)), and then the text summary As the input of the long text vector model BGE M3-Embedding, an embedding vector with complete context information is obtained The specific steps include: Step 2.1: Prompt function included in the text processing module and text feature set Based on the pre-trained language model ChatGLM3, it can generate text summaries that simultaneously meet the requirements of "retaining original data information, avoiding additional random reasoning, and having a stable text structure". .

[0017] Step 2.2: Use the long text vector model BGE M3-Embedding to generate the text summary Encoded into an embedding vector with full context information .

[0018] Step 3: Use the heterogeneous table information fuser to embed the comprehensive vector of the structured data processed in step 1 and the embedding vector with complete context information of the unstructured data after step 2 For fusion. Figure 3 As shown, the vectors and The data is input into the encoder of Transformer, and the complex feature interaction within the sequence is realized through the self-attention mechanism. The structured data representation S1 and the unstructured data representation S2 are further obtained. The cross attention mechanism is introduced, and S1 and S2 of different sequence information types are received as input respectively, where S1 is used as the query vector Q, and S2 is used as the key and value vectors K and V. The cross attention score is calculated by formula (1), where It represents the dimension of the key vector, realizing the comprehensive representation of structured data and unstructured data. Finally, the final prediction probability is obtained through linear transformation and softmax function, thereby realizing the prediction of the severity of the disease.

[0019] (1) Where CrossAttention represents the cross attention operation, softmax represents the normalization function, and the superscript T represents the transpose of the matrix.

[0020] Step 3.1: Comprehensive embedding vector of structured data Embedding vectors with full contextual information for unstructured data They are input into a dual-tower model consisting of N layers (set to 6 layers in the code) of Transformer encoder stacks. The processing flow of each layer is as follows: the multi-head self-attention mechanism calculates the attention weight and weighted sums the value vector. The attention output is connected and regularized through residual connection, and then passed to the feedforward network for nonlinear transformation, and then the second residual connection and regularization are performed. Finally, the structured data representation S1 and the unstructured data representation S2 are obtained respectively.

[0021] Step 3.2, introduce the cross-attention mechanism, calculate the attention weight of the structured data representation S1 through the multi-head self-attention mechanism and weighted sum the value vector. The attention output is used as the query vector Q of the multi-head cross-attention after residual connection and regularization. The unstructured data representation S2 is used as the key K and value vector V of the multi-head cross-attention for cross-attention fusion, so that the structured data can integrate useful information from the unstructured data, and then pass through the residual connection and regularization, and then pass it into the feedforward network for nonlinear transformation, and finally perform residual connection and regularization. Through the above steps of the cyclic L layer (set to 6 in the code), the comprehensive vector representation of the sample is obtained .

[0022] Step 3.3: Comprehensive vector representation of samples After linear transformation and softmax function, the predicted probability of the heterogeneous table information of the electronic case is output.

[0023] The disease severity prediction method based on heterogeneous table information fusion technology of the present invention is applied to a real data set of chronic diseases in the elderly, and the severity of the disease of hospitalized patients is classified (mild, moderate, severe). The experimental results of the method proposed in the present invention are compared with those of mainstream table data models (such as XGBoost, TabNet, and FT-Transformer), and the results are shown in Table 1 below.

[0024] Table 1

[0025] As can be seen from Table 1, by comparing with the mainstream table prediction model, the proposed model is ahead of other models in the four key evaluation indicators of accuracy, precision, recall and F1 score. Specifically, compared with the best comparison model, the accuracy of this model is improved by 7.87%, the precision is improved by 7.32%, the recall is improved by 30.31%, and the F1 score is improved by 30.59%. Further analysis of the F1 scores of the model in the three categories of mild, moderate and severe found that the proposed model has the best classification effect in the moderate and severe categories, which is consistent with the focus of clinicians.

[0026] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for predicting the severity of a disease based on heterogeneous table information fusion, characterized in that: The method comprises the following steps: Step 1: Perform feature embedding processing on the structured data in the heterogeneous table information sample of the electronic medical records to obtain a comprehensive embedding vector; Step 2: Based on the text processing module, the unstructured data in the heterogeneous table information sample of the electronic medical records is processed to obtain an embedding vector with complete context information; Step 3: Use the heterogeneous table information fuser to fuse the comprehensive embedding vector and the embedding vector with complete contextual information to obtain a comprehensive vector representation of the electronic medical record heterogeneous table information sample, and output the disease severity prediction result through linear transformation and Softmax function.

2. The method for predicting the severity of a disease based on heterogeneous table information fusion according to claim 1, characterized in that: The step 1 comprises: Step 1.1: For numerical features, standardize them to zero mean and unit variance, and map them to the first embedding vector through linear transformation; Step 1.2: For categorical features, the category index is mapped to a second embedding vector through the embedding layer, and the second embedding vector is converted into a fixed-length vector through a lookup table; Step 1.3: Concatenate the first embedding vector with the fixed-length vector to form a comprehensive embedding vector representing the structured data.

3. The method for predicting the severity of a disease based on heterogeneous table information fusion according to claim 1, characterized in that: The step 2 comprises: Step 2.1, under the guidance of the prompt text function included in the text processing module, the pre-trained language model ChatGLM3 sequentially describes each text feature of the text feature set in the heterogeneous table information of the electronic medical records, and splices the text descriptions of each text feature to generate a text summary; Step 2.2: Use the long text vector model BGE M3-Embedding to encode the generated text summary into an embedding vector with complete contextual information.

4. The method for predicting the severity of a disease based on heterogeneous table information fusion according to claim 1, characterized in that: The step 3 comprises: Step 3.1: Input the comprehensive embedding vector representing structured data and the embedding vector with complete context information representing unstructured data into the dual-tower model built by the Transformer encoder, and learn the internal representation of the sequence through the self-attention mechanism to obtain the structured data representation S1 and the unstructured data representation S2; Step 3.2, introduce the multi-head cross attention mechanism, use the structured data representation S1 as the query vector Q of the multi-head cross attention, use the unstructured data representation S2 as the key K and value vector V of the multi-head cross attention, perform cross attention fusion, and obtain the comprehensive vector representation of the electronic medical record heterogeneous table information sample; Step 3.3: The comprehensive vector representation of the heterogeneous table information samples of the electronic medical records is subjected to linear transformation and softmax function to output the probabilities of the three categories of disease severity: "mild, moderate, and severe", and obtain the disease severity prediction results.

Citation Information

Patent Citations

  • Postoperative pulmonary complication prediction method and system based on multi-type feature fusion

    CN115862875A

  • Aspect-level sentiment analysis method and device based on comparative learning

    CN116257630A

  • Medical auxiliary question and answer method and system based on knowledge calibration and retrieval enhancement

    CN117573843A

  • Triage data processing method and apparatus, and computer device and storage medium

    WO2022134357A1