Heart failure feature recognition method based on chest radiograph and EHR data

By using the Resnet model that integrates multi-modal attention modules in heart failure diagnosis, combined with chest X-ray and EHR data, the problem of insufficient diagnostic accuracy in the existing technology is solved, more accurate heart failure feature recognition is achieved, and medical science is improved. Diagnosis efficiency and treatment effectiveness.

CN118800431APending Publication Date: 2024-10-18TAIYUAN UNIVERSITY OF TECHNOLOGY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410765797.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

It is difficult to effectively integrate chest X-ray images and electronic health record (EHR) data in the diagnosis of heart failure with existing technology, resulting in insufficient medical diagnosis accuracy.

Method used

Using the Resnet model that integrates the multi-modal attention module, through preprocessing and feature extraction of chest X-ray images and EHR data, combined with the Transformer or BERT model, the Resnet-34 model is established and the multi-modal attention module is introduced to calculate the spatial weight. The matrix is ​​used to emphasize significant areas and suppress non-significant areas. Finally, the prediction results are output through the average pooling layer and softmax layer to identify heart failure characteristics.

Benefits of technology

It improves the accuracy of medical diagnosis and can more accurately identify heart failure characteristics, such as pulmonary edema, pleural effusion, and cardiac enlargement, reduces doctor workload and diagnosis time, and alleviates the problem of scarcity and imbalance of medical resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118800431A_ABST
    Figure CN118800431A_ABST
Patent Text Reader

Abstract

The invention discloses a heart failure feature recognition method based on chest radiography and EHR data, and relates to the field of heart failure feature recognition. Comprising the following steps: S1, preprocessing chest radiography and EHR data; and S2, inputting the processed chest radiograph and EHR data into a Resnet model fused with a multi-modal attention module for training, constructing an accurate neural network model, and outputting a prediction result. According to the method, the chest radiograph image and the EHR data can be better utilized, the relatively accurate neural network model is obtained, the purpose of heart failure feature recognition is achieved, and the precision of medical diagnosis is improved. By applying the technology provided by the invention, a doctor can more efficiently evaluate the heart failure characteristics, provide more accurate auxiliary diagnosis and formulate a more reasonable treatment scheme, so that the treatment effect and the survival rate of a patient are improved. Meanwhile, the workload and diagnosis time of doctors are greatly reduced, and the problems of scarcity and imbalance of medical resources are relieved to a certain extent.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of heart failure feature recognition, and specifically to a heart failure feature recognition method based on chest X-ray and EHR data. The method utilizes a Resnet model fused with a multimodal attention module to perform heart failure feature recognition to improve the accuracy of medical diagnosis. Background Art

[0002] Heart failure is a chronic heart disease caused by impaired cardiac structure and function, leading to ventricular contraction and / or filling dysfunction. It is a complex clinical syndrome in which all cardiovascular diseases develop to the final stage. Due to the complexity of pathological abnormalities, computer-aided diagnosis (CAD) of chest diseases remains challenging.

[0003] In the past few years, the widespread application of machine learning methods has penetrated into various fields, and the medical field is no exception. With the popularity of deep learning technology, more and more medical researchers have begun to try to introduce machine learning methods to assist in the treatment of specific diseases. In addition, convolutional neural networks (CNNs) have also achieved remarkable results in the fields of medical image analysis and biomedical natural language processing. Traditional machine learning techniques have also been widely used in areas such as heart failure detection. Together, these studies show the importance of linking deep learning methods with medical decision-making and health care.

[0004] Electronic Health Records (EHR) are digital forms of patient medical information, usually created and maintained by healthcare providers. EHR data include, but are not limited to, basic information, medical history and symptom diagnosis and treatment information, laboratory results, imaging reports, surgical records, allergy and medication history, and vaccination records. The digitization of EHR data makes medical information easier to store, retrieve, and share. The analysis of such data can provide important information for medical research, clinical decision support, and personalized medicine. In the context of machine learning and deep learning, the use of EHR data for tasks such as prediction, classification, and disease diagnosis has become increasingly important. Based on existing research, in order to improve the accuracy of medical diagnosis, the present invention proposes a new image and EHR data fusion method based on deep learning. Summary of the invention

[0005] In order to solve the problem of improving the accuracy of medical diagnosis and making better use of images and EHR data in the diagnosis of heart failure, the present invention provides a heart failure feature recognition method based on chest X-ray and EHR data.

[0006] The present invention is implemented by the following technical solution: a method for identifying heart failure characteristics based on chest X-ray and EHR data, comprising the following steps:

[0007] S1: Preprocess chest X-ray and EHR data; details are as follows:

[0008] S1-1: Chest X-ray image: Data augmentation is performed by resizing, randomly cropping, and randomly horizontally flipping the original image to obtain C Img ×H×W size image, where C Img , H and W represent the number, height and width of channels respectively;

[0009] S1-2: EHR data: Use Transformer or BERT model as encoder to process EHR data and finally get C M ×1 size feature information, the task-related information obtained after this processing replaces the global feature vector, which brings more information to the proposed module and makes the network more compact; and the EHR feature information can help select important visual areas.

[0010] S2: Input the processed chest X-ray and EHR data into the Resnet model fused with the multimodal attention module for training, obtain an accurate neural network model, and output the prediction results, specifically:

[0011] S2-1: Establish a Resnet-34 model and input the preprocessed chest X-ray image into the Resnet-34 model for input calculation. The steps are as follows:

[0012] S2-1-1: The established Resnet-34 model mainly includes one convolution group and four residual block groups, namely Conv1, Conv2_x, Conv3_x, Conv4_x, and Conv5_x. The Conv1 convolution group consists of a convolution layer with a stride of 2, a kernel size of 7×7, and a number of kernels of 64, followed by a maximum pooling layer with a stride of 2 and a kernel size of 3×3; the Conv2_x residual block group consists of three groups of two convolution layers with a stride of 1, a kernel size of 3×3, and a number of kernels of 64; the first group of the Conv3_x residual block group consists of a convolution layer with a stride of 2, a kernel size of 3×3, and a number of kernels of 128, and a maximum pooling layer with a stride of 1, a kernel size of 3×3, and a number of kernels of 128. The first group of the Conv4_x residual block group consists of a convolutional layer with a stride of 2, a kernel size of 3×3, and a kernel number of 256, and a convolutional layer with a stride of 1, a kernel size of 3×3, and a kernel number of 256. The last five groups consist of two convolutional layers with a stride of 1, a kernel size of 3×3, and a kernel number of 256. The first group of the Conv5_x residual block group consists of a convolutional layer with a stride of 2, a kernel size of 3×3, and a kernel number of 512, and a convolutional layer with a stride of 1, a kernel size of 3×3, and a kernel number of 512. The last two groups consist of two convolutional layers with a stride of 1, a kernel size of 3×3, and a kernel number of 512.

[0013] S2-1-2: The pre-treated C Img ×H×W chest radiographs are fed into the Resnet-34 model and the activation map is calculated from the Conv4_x residual block group. Enter the multimodal attention module;

[0014] S2-2: Forming a multimodal attention module:

[0015] The multimodal attention module is obtained by improving the spatial attention module, which emphasizes the salient areas and suppresses the non-salient areas through a weighted matrix; the overall structure of the multimodal attention module is: is the activation map, where C I , H and W represent the number, height and width of channels respectively, and calculate a spatial weight matrix Q∈R 1×H×W And output the activation map It is calculated by multiplying each channel pixel map of I by Q, as follows:

[0016] S2-2-1: Activation Map After linear transformation ω I :C int ×C I ,get CM ×1 feature information of EHR data Perform a linear transformation M :C int ×C M , and then after data expansion, we get C int is a hyperparameter, indicating the intermediate dimension, C int =(C I +C M ) / 4, this value is used to limit the compressibility of the model and improve the generalization ability;

[0017] S2-2-2: and The fusion feature is obtained by the following calculation

[0018] F = ReLU((ω I I+b I )+Exp(ω M M+b M ))

[0019] Among them: all ω,b are used to linearly transform the activation map and EHR feature information, which are composed of the parameters of the multimodal attention module, which can be learned during network training; Exp represents the matrix dimension alignment operation of the activation map and EHR feature information;

[0020] S2-2-3: The weight matrix Q∈R is obtained by the following calculation 1×H×W ,

[0021] Q=σ(ω F F+b F )

[0022] Where: σ is a normalization function that makes the attention map range from 0 to 1;

[0023] σ(Q i )=(Q i -Q min ) / Q max -Q min )

[0024] Where: Q i is the i-th element of the weight matrix Q, Q min is the minimum value of all elements of the weight matrix Q, Q max is the maximum value of all elements of the weight matrix Q;

[0025] S2-2-4: Calculate the output activation map The formula is as follows:

[0026] I′ c×h×w =I c×h×w ×Q h×w

[0027] Where: c∈1…C I , h∈1…H, w∈1…W;

[0028] S2-3: Output prediction results:

[0029] The activation map I′ is used as the input of the Resnet-34 model Conv5_x residual block group, and the prediction results are finally output through the average pooling layer, the fully connected layer and the softmax layer to identify the important heart failure characteristics of heart failure patients in terms of chest disease manifestations, including pulmonary edema, pleural effusion and cardiac enlargement.

[0030] Compared with the prior art, the present invention has the following beneficial effects: the heart failure feature recognition method based on chest X-ray and EHR data provided by the present invention can better utilize chest X-ray images and EHR data to build a relatively accurate neural network model, achieve the purpose of heart failure feature recognition, and improve the accuracy of medical diagnosis. By applying the technology of the present invention, doctors can more efficiently evaluate the characteristics of heart failure, provide more accurate auxiliary diagnosis, and formulate more reasonable treatment plans, thereby improving the treatment effect and patient survival rate. At the same time, it greatly reduces the workload and diagnosis time of doctors, and alleviates the problem of scarce and unbalanced medical resources to a certain extent. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 This is the Resnet-34 model diagram.

[0032] Figure 2 This is a simplified Resnet-34 model diagram.

[0033] Figure 3 Schematic diagram of multi-module attention module.

[0034] Figure 4 This is an overall framework diagram used in the present invention.

[0035] Figure 5 It is the overall flow chart of the present invention. DETAILED DESCRIPTION

[0036] The present invention is further described below in conjunction with specific embodiments.

[0037] A heart failure feature recognition method based on chest X-ray and EHR data, the overall framework of the neural network is as follows Figure 4 As shown, the process is as Figure 5 As shown, the following steps are included:

[0038] S1: Preprocess chest X-ray and EHR data; details are as follows:

[0039] S1-1: Chest X-ray image: Data augmentation is performed by resizing, randomly cropping, and randomly horizontally flipping the original image to obtain C Img ×H×W size image, where C Img , H and W represent the number, height and width of channels respectively;

[0040] S1-2: EHR data: Use Transformer or BERT model as encoder to process EHR data and finally get C M ×1 size feature information, the task-related information obtained after this processing replaces the global feature vector, which brings more information to the proposed module and makes the network more compact; and the EHR feature information can help select important visual areas.

[0041] S2: Input the processed chest X-ray and EHR data into the Resnet model fused with the multimodal attention module for training, obtain an accurate neural network model, and output the prediction results, specifically:

[0042] S2-1: Build a Resnet-34 model, such as Figure 1 and Figure 2 As shown, the preprocessed chest X-ray image is input into the Resnet-34 model for input calculation. The steps are as follows:

[0043] S2-1-1: The established Resnet-34 model mainly includes one convolution group and four residual block groups, namely Conv1, Conv2_x, Conv3_x, Conv4_x, and Conv5_x. The Conv1 convolution group consists of a convolution layer with a stride of 2, a kernel size of 7×7, and a number of kernels of 64, followed by a maximum pooling layer with a stride of 2 and a kernel size of 3×3; the Conv2_x residual block group consists of three groups of two convolution layers with a stride of 1, a kernel size of 3×3, and a number of kernels of 64; the first group of the Conv3_x residual block group consists of a convolution layer with a stride of 2, a kernel size of 3×3, and a number of kernels of 128, and a maximum pooling layer with a stride of 1, a kernel size of 3×3, and a number of kernels of 128. The first group of the Conv4_x residual block group consists of a convolutional layer with a stride of 2, a kernel size of 3×3, and a kernel number of 256, and a convolutional layer with a stride of 1, a kernel size of 3×3, and a kernel number of 256. The last five groups consist of two convolutional layers with a stride of 1, a kernel size of 3×3, and a kernel number of 256. The first group of the Conv5_x residual block group consists of a convolutional layer with a stride of 2, a kernel size of 3×3, and a kernel number of 512, and a convolutional layer with a stride of 1, a kernel size of 3×3, and a kernel number of 512. The last two groups consist of two convolutional layers with a stride of 1, a kernel size of 3×3, and a kernel number of 512.

[0044] S2-1-2: The pre-treated C Img ×H×W chest radiographs are fed into the Resnet-34 model and the activation map is calculated from the Conv4_x residual block group. Enter the multimodal attention module;

[0045] S2-2: Forming a multimodal attention module:

[0046] The multimodal attention module is obtained by improving the spatial attention module, which emphasizes the salient areas and suppresses the non-salient areas through a weighted matrix; the overall structure of the multimodal attention module is as follows Figure 3 As shown, the process is: definition is the activation map, where C I , H and W represent the number, height and width of channels respectively, and calculate a spatial weight matrix Q∈R 1×H×W And output the activation map It is calculated by multiplying each channel pixel map of I by Q, as follows:

[0047] S2-2-1: Activation Map After linear transformation ω I :C int ×C I ,get C M ×1 feature information of EHR data Perform a linear transformation M :C int ×C M , and then after data expansion, we get C int is a hyperparameter, indicating the intermediate dimension, C int =(C I +C M ) / 4, this value is used to limit the compressibility of the model and improve the generalization ability;

[0048] S2-2-2: and The fusion feature is obtained by the following calculation

[0049] F = ReLU((ω I I+b I )+Exp(ω M M+b M ))

[0050] Among them: all ω,b are used to linearly transform the activation map and EHR feature information, which are composed of the parameters of the multimodal attention module, which can be learned during network training; Exp represents the matrix dimension alignment operation of the activation map and EHR feature information;

[0051] S2-2-3: The weight matrix Q∈R is obtained by the following calculation 1×H×W ,

[0052] Q=σ(ω F F+b F )

[0053] Where: σ is a normalization function that makes the attention map range from 0 to 1;

[0054] σ(Q i )=(Q i -Q min ) / Q max -Q min )

[0055] Where: Q i is the i-th element of the weight matrix Q, Q min is the minimum value of all elements of the weight matrix Q, Q max is the maximum value of all elements of the weight matrix Q;

[0056] S2-2-4: Calculate the output activation map The formula is as follows:

[0057] I′ c×h×w =I c×h×w ×Q h×w

[0058] Where: c∈1…C I , h∈1…H, w∈1…W;

[0059] S2-3: Output prediction results:

[0060] The activation map I′ is used as the input of the Resnet-34 model Conv5_x residual block group, and the prediction results are finally output through the average pooling layer, the fully connected layer and the softmax layer to identify the important heart failure characteristics of heart failure patients in terms of chest disease manifestations, including pulmonary edema, pleural effusion and cardiac enlargement.

[0061] The scope of protection claimed by the present invention is not limited to the above specific embodiments. For those skilled in the art, the present invention may have various deformations and changes. Any modifications, improvements and equivalent substitutions made within the concept and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for identifying heart failure features based on chest X-ray and EHR data, characterized by: The steps include: S1: Preprocess chest X-ray and EHR data; S2: The processed chest X-ray and EHR data are input into the Resnet model fused with the multimodal attention module for training to obtain an accurate neural network model and output the prediction results.

2. A method for identifying heart failure characteristics based on chest X-ray and EHR data according to claim 1, characterized in that: Step S1 is specifically as follows: S1-1: Chest X-ray image: Data augmentation is performed by resizing, randomly cropping, and randomly horizontally flipping the original image to obtain C Img ×H×W size image, where C Img , H and W represent the number, height and width of channels respectively; S1-2: EHR data: Use Transformer or BERT model as encoder to process EHR data and finally get C M ×1 size feature information.

3. A method for identifying heart failure characteristics based on chest X-ray and EHR data according to claim 2, characterized in that: Step S2 is specifically as follows: S2-1: Establish a Resnet-34 model and input the preprocessed chest X-ray image into the Resnet-34 model for input calculation. The steps are as follows: S2-1-1: The established Resnet-34 model includes one convolution group and four residual block groups, namely Conv1, Conv2_x, Conv3_x, Conv4_x, and Conv5_x. The Conv1 convolution group consists of a convolution layer with a stride of 2, a kernel size of 7×7, and a number of kernels of 64, followed by a maximum pooling layer with a stride of 2 and a kernel size of 3×3; the Conv2_x residual block group consists of three groups of two convolution layers with a stride of 1, a kernel size of 3×3, and a number of kernels of 64; the first group of the Conv3_x residual block group consists of a convolution layer with a stride of 2, a kernel size of 3×3, and a number of kernels of 128, and a convolution layer with a stride of 1, a kernel size of 3×3, and a number of kernels of 128. The first group of the Conv4_x residual block group consists of a convolutional layer with a stride of 2, a kernel size of 3×3, and a kernel number of 256, and a convolutional layer with a stride of 1, a kernel size of 3×3, and a kernel number of 256. The last five groups consist of two convolutional layers with a stride of 1, a kernel size of 3×3, and a kernel number of 256. The first group of the Conv5_x residual block group consists of a convolutional layer with a stride of 2, a kernel size of 3×3, and a kernel number of 512, and a convolutional layer with a stride of 1, a kernel size of 3×3, and a kernel number of 512. The last two groups consist of two convolutional layers with a stride of 1, a kernel size of 3×3, and a kernel number of 512. S2-1-2: The pre-treated C Img ×H×W chest radiographs are fed into the Resnet-34 model and the activation map is calculated from the Conv4_x residual block group. Enter the multimodal attention module; S2-2: Forming a multimodal attention module: The multimodal attention module is obtained by improving the spatial attention module, which emphasizes the salient areas and suppresses the non-salient areas through a weighted matrix; the overall structure of the multimodal attention module is: is the activation map, where C I , H and W represent the number, height and width of channels respectively, and calculate a spatial weight matrix Q∈R 1×H×W And output the activation map It is calculated by multiplying each channel pixel map of I by Q, as follows: S2-2-1: Activation Map After linear transformation ω I :C int ×C I ,get C M ×1 feature information of EHR data Perform a linear transformation M :C int ×C M , and then after data expansion, we get C int is a hyperparameter, indicating the intermediate dimension, C int =(C I +C M ) / 4; S2-2-2: and The fusion feature is obtained by the following calculation F = ReLU((ω I I+b I )+Exp(ω M M+b M )) Among them: all ω,b are used to linearly transform the activation map and EHR feature information, which are composed of the parameters of the multimodal attention module; Exp represents the matrix dimension alignment operation of the activation map and EHR feature information; S2-2-3: The weight matrix Q∈R is obtained by the following calculation 1×H×W , Q=σ(ω F F+b F ) Where: σ is a normalization function that makes the attention map range from 0 to 1; σ(Q i )=(Q i -Q min ) / (Q max -Q min ) Where: Q i is the i-th element of the weight matrix Q, Q min is the minimum value of all elements of the weight matrix Q, Q max is the maximum value of all elements of the weight matrix Q; S2-2-4: Calculate the output activation map The formula is as follows: I c ′ ×h×w =I c×h×w ×Q h×w Where: c∈1…C I , h∈1…H, w∈1…W; S2-3: Output prediction results: The activation map I′ is used as the input of the Resnet-34 model Conv5_x residual block group, and the prediction results are finally output through the average pooling layer, the fully connected layer and the softmax layer to identify the important heart failure characteristics of heart failure patients in terms of chest disease manifestations, including pulmonary edema, pleural effusion and cardiac enlargement.