A multi-label detection system for cardiac hypertrophy based on multimodal deep learning
The cardiac hypertrophy multi-label detection system through multi-modal deep learning combines medical record information, ECG signals and cardiac image features to solve the problems of low electrocardiogram diagnosis accuracy and poor generalization ability, and achieves accurate multi-label detection of cardiac hypertrophy. Monitoring and diagnostics.
Patent Information
- Application Number
- CN202210792806.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-05
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2042-07-05
AI Technical Summary
The accuracy of the existing technology for electrocardiogram diagnosis of cardiac hypertrophy is low, and it relies on doctor experience. It is difficult to detect atrial hypertrophy quickly and effectively in the context of big data, and deep learning methods ignore individual differences, resulting in poor generalization ability.
A cardiac hypertrophy multi-label detection system based on multi-modal deep learning is adopted. Through medical record information extraction, ECG signal denoising, cardiac image extraction and multi-modal diagnosis modules, it combines time domain features, morphological features and individual information, using one-dimensional Convolutional neural network, long short-term memory network and two-dimensional convolutional neural network are used for feature fusion to achieve multi-label classification.
It improves the accuracy and generalization ability of ECG cardiac hypertrophy diagnosis, can simultaneously judge four types of cardiac hypertrophy and normal conditions, reduces redundant information, focuses on morphological features, and enhances the model's generalization ability and diagnostic accuracy.
Smart Images

Figure CN115281688B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of electrocardiogram signal detection, and more specifically, relates to a cardiac hypertrophy multi-label detection system based on multimodal deep learning. Background Art
[0002] Cardiac hypertrophy is very common in the clinical diagnosis and treatment of cardiology. Cardiac hypertrophy is divided into atrial hypertrophy and ventricular hypertrophy, which are mainly related to excessive load on the atria and ventricles. Atrial hypertrophy causes excessive load on the heart, which may lead to cardiovascular problems such as hypertension, coronary heart disease, and cardiomyopathy, while ventricular hypertrophy can lead to diseases such as myocarditis, angina pectoris, and heart failure. These heart diseases are characterized by high disability and mortality rates, which seriously affect human life and health.
[0003] Clinically, the main methods for diagnosing cardiac hypertrophy are electrocardiogram (ECG) examination and ultrasonography (UCG) examination. Ultrasonography has a higher sensitivity to changes in the internal diameter of each chamber of the heart, a lower misdiagnosis rate and missed diagnosis rate, and a higher detection rate for cardiac hypertrophy. However, ultrasonography is extremely susceptible to factors such as examination time and equipment, has great limitations, is relatively expensive, and is difficult to popularize in primary hospitals. Electrocardiogram is a cardiac examination that detects electrical activity generated by the heart to detect cardiac abnormalities. ECG clinical practice should always be highly regarded by clinical volunteers for its economical, practical, convenient and fast advantages. In particular, ECG is widely used in disease diagnosis in remote areas and primary hospitals. Compared with ultrasonography, ECG is simpler to operate, has a wider range of clinical applications, and has higher repeatability. Therefore, it is more auxiliary and more commonly used in the diagnosis of atrial and ventricular hypertrophy. In addition, some heart diseases mainly show electrical changes in the early stage, and morphological changes only appear in the middle and late stages. Therefore, using electrocardiogram for electrical examination can help patients detect and treat early. However, the accuracy of using electrocardiogram to diagnose atrial hypertrophy is currently very low, so there is an urgent need for a fast and effective method to detect atrial hypertrophy using electrocardiogram.
[0004] Traditional ECG analysis of cardiac hypertrophy is done by doctors combining their own knowledge and clinical experience to diagnose the ECG waveform. This results in the accuracy of this method being heavily dependent on the doctor's experience and diagnostic level. At the same time, it takes a long time when the amount of data is large. Therefore, the traditional method has great limitations and cannot fully meet clinical needs. In recent years, deep learning has made automatic diagnosis of ECG a hot topic in the field of medical research. However, there are very few studies on ECG diagnosis of cardiac hypertrophy using deep learning, and most of the studies only focus on the diagnosis of a single category, which makes the diagnosis of ECG still have great limitations; at the same time, when using deep learning methods to process ECG signals, only ECG features are focused on, ignoring the impact of individual differences on medical detection, which will lead to poor generalization of the detection method in the general population. Summary of the invention
[0005] In view of the above defects or improvement needs of the prior art, the present invention provides a cardiac hypertrophy multi-label detection system based on multimodal deep learning, thereby solving the problem that the prior art has low accuracy in cardiac hypertrophy electrocardiogram classification based on single-modal feature representation.
[0006] To achieve the above object, according to one aspect of the present invention, a multi-label detection system for cardiac hypertrophy based on multimodal deep learning is provided, comprising:
[0007] The medical record information extraction module is used to extract the pre-set attributes from the electronic medical record to be diagnosed, and convert them into attribute vectors after splicing;
[0008] An ECG signal denoising module, used to remove baseline noise, power frequency interference and muscle interference in the ECG signal corresponding to the electronic medical record to obtain a denoised ECG signal;
[0009] The heartbeat image extraction module is used to locate the QRS wave of the II lead, V1 lead and V6 lead ECG signals in the denoised ECG signals, and select any three adjacent QRS wave peak points Q i-1 , Q i , Q i+1 , intercept and delete Q i-1 The last K ECG sampling points and Q i+1 After the first K ECG sampling points, Q i-1 and Q i+1 The ECG sampling points between the leads are taken as ECG beat images; and the ECG beat images of the ECG signals of lead II, lead V1 and lead V6 are channel-joined to obtain a heart beat image;
[0010] A multimodal diagnosis module, for respectively extracting the semantic features, time domain features and morphological features of the attribute vector, the denoised ECG signal and the heartbeat image, and performing multi-label classification after feature fusion to obtain a detection result;
[0011] The detection result is at least one of left atrial hypertrophy (LAH), left ventricular hypertrophy (LVH), right atrial hypertrophy (RAH) and right ventricular hypertrophy (RVH), or normal.
[0012] In general, the above technical solutions conceived by the present invention can achieve the following beneficial effects compared with the prior art:
[0013] 1. The multi-label detection system for cardiac hypertrophy based on multimodal deep learning provided by the present invention adopts methods such as heart beat segmentation based on morphological features, deep neural network, multimodal feature fusion, etc., and migrates the current popular computer vision technology to electrocardiogram signal classification. By fusing the time domain features, morphological features and individual patient information of the electrocardiogram signal, four types of cardiac hypertrophy and normal conditions are judged simultaneously, and a multi-label detection framework based on multimodal deep learning is built, thereby solving the problems of poor accuracy and poor generalization ability of electrocardiogram signals in cardiac hypertrophy detection, realizing accurate monitoring of cardiac hypertrophy based on electrocardiogram, which can be used for clinical diagnosis.
[0014] 2. The multi-label detection system for cardiac hypertrophy based on multimodal deep learning provided by the present invention reduces redundant information in the electrocardiogram signal by selecting three leads that are closely related to the diagnosis of cardiac hypertrophy in medical theory as heartbeat input, which is beneficial to feature focusing. At the same time, through heartbeat segmentation, feature extraction focuses more on the morphological characteristics of cardiac hypertrophy, which is beneficial to improving classification accuracy.
[0015] 3. The multi-label detection system for cardiac hypertrophy based on multimodal deep learning provided by the present invention extracts age and gender from the patient's electronic medical record as medical record metadata. Since age and gender have obvious individual differences, incorporating them into the model training input can effectively improve the generalization ability of the model. At the same time, age and gender are also attributes closely related to the diagnosis of cardiac hypertrophy in medical theory. Therefore, using age and gender as medical record metadata can effectively improve the generalization ability of the model and the accuracy of diagnosis.
[0016] 4. The multi-label cardiac hypertrophy detection system based on multimodal deep learning provided by the present invention removes noise through the wavelet adaptive threshold denoising method while ensuring that the distortion of the reconstructed signal is as small as possible. A combination of soft and hard thresholds is selected in the threshold function, which can not only ensure the smoothness of the signal but also improve the denoising effect, thereby achieving denoising and fidelity of the ECG signal.
[0017] 5. The multi-label detection system for cardiac hypertrophy based on multimodal deep learning provided by the present invention, the time series feature extraction module extracts frequency domain changes through a one-dimensional convolutional neural network CNN, has strong feature extraction ability and robustness, and uses a long short-term memory network LSTM to extract historical information of long time series and extract temporally implicit features. The heartbeat image feature extraction module uses a two-dimensional convolutional neural network CNN to effectively extract local waveform features on the heartbeat image, and uses a residual structure to retain the original input information, and better extracts local micro features of the electrocardiogram signal. The medical record data feature extraction module extracts the age and gender of the data as semantic features through the fully connected layer DENSE layer, taking into account individual differences, thereby improving the generalization ability of the detection model. The manifestation of cardiac hypertrophy on the electrocardiogram signal has both temporal abnormalities and morphological abnormalities, both contextual dependencies and micro-waveform changes, so the time domain features are combined with the morphological features to better detect cardiac hypertrophy. The multimodal diagnosis module can effectively detect these two characteristics, while taking into account individual differences, thereby improving the accuracy and generalization ability of the detection model, and realizing the effective detection of cardiac hypertrophy features by the neural network. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 A structural diagram of a multi-label cardiac hypertrophy detection system based on multimodal deep learning provided by an embodiment of the present invention;
[0019] Figure 2 This is a schematic diagram of the components of the electrocardiogram of a healthy adult;
[0020] FIG3(a) and FIG3(b) are respectively a convolutional neural network structure diagram and a recurrent neural network structure diagram provided by an embodiment of the present invention;
[0021] Figure 4 A multimodal deep neural network framework diagram provided for an embodiment of the present invention;
[0022] Figure 5 A schematic diagram of an electrocardiogram signal denoising process provided by an embodiment of the present invention;
[0023] Figure 6 A schematic diagram of a morphological heart beat segmentation framework provided by an embodiment of the present invention;
[0024] Figure 7(a) , 7(b), 7(c), 7(d), and 7(e) are respectively the experimental results of the cardiac hypertrophy multi-label detection system based on multimodal deep learning provided by the embodiments of the present invention obtained on the test set and the AUC scores of left atrial hypertrophy (LAH), left ventricular hypertrophy (LVH), right atrial hypertrophy (RAH), right ventricular hypertrophy (RVH), and normal (Normal). DETAILED DESCRIPTION
[0025] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0026] The embodiment of the present invention provides a multi-label detection system for cardiac hypertrophy based on multimodal deep learning, such as Figure 1 As shown, including:
[0027] The medical record information extraction module is used to extract pre-set attributes from the electronic medical record to be diagnosed, and convert them into attribute vectors after splicing.
[0028] Specifically, the medical record information extraction module is used to extract pre-set attributes from the electronic medical record as medical record structured data, splice the extracted attribute information together to obtain medical record metadata, convert it into a vector and save it.
[0029] Furthermore, the preset attributes include age and gender.
[0030] Specifically, the medical record information extraction module extracts two types of data, age and gender, which have obvious individual differences and are closely related to the diagnosis of cardiac hypertrophy from the electronic medical records as medical record metadata.
[0031] The ECG signal denoising module is used to remove baseline noise, power frequency interference and muscle interference in the ECG signal corresponding to the electronic medical record to obtain a denoised ECG signal.
[0032] Specifically, the ECG signal denoising module is used to obtain the ECG signal (12-lead ECG signal) corresponding to the electronic medical record, eliminate the baseline noise, power frequency interference and muscle interference from the original ECG signal, so that the waveform of the ECG signal will not be affected by the noise, and obtain interference-free ECG sequence data.
[0033] The heartbeat image extraction module is used to locate the QRS wave of the II lead, V1 lead and V6 lead ECG signals in the denoised ECG signals, and then select any three adjacent QRS wave peak points Q i-1, Q i , Q i+1 , intercept and delete Q i-1 The last K ECG sampling points and Q i+1 After the first K ECG sampling points, Q i-1 and Q i+1 The ECG sampling points between the leads Ⅱ and V1 are used as ECG beat images, thereby obtaining the ECG beat images of the ECG signals of the leads Ⅱ, V1 and V6 respectively; and the ECG beat images of the ECG signals of the leads Ⅱ, V1 and V6 are channel-joined to obtain the beat image;
[0034] Specifically, the heartbeat image extraction module is used to locate the QRS wave of the denoised ECG time series signal, and save the patient's heartbeat sequence with a QRS wave segment to obtain a heartbeat image as heartbeat image data. That is, lead II, lead V1 and lead V6 are selected from the denoised 12-lead ECG for heartbeat image extraction. The Pan-Tompkins algorithm is used to realize QRS wave recognition and positioning, and each ECG beat is sliced according to the Q wave peak time. For each lead ECG signal, an ECG beat is obtained by processing. The ECG beats of the three leads (lead II, lead V1 and lead V6) are connected into a complete heartbeat image.
[0035] A multimodal diagnosis module, for respectively extracting the semantic features, time domain features and morphological features of the attribute vector, the denoised ECG signal and the heartbeat image, and performing multi-label classification after feature fusion to obtain a detection result;
[0036] The detection result is at least one of left atrial hypertrophy, left ventricular hypertrophy, right atrial hypertrophy and right ventricular hypertrophy, or is normal.
[0037] Furthermore, the multimodal diagnosis module includes a medical record data feature extraction module, an electrocardiogram signal feature extraction module, a heartbeat image feature extraction module, a multimodal feature fusion module and a multi-label classifier;
[0038] The medical record data feature extraction module is used to extract the semantic features of the attribute vector;
[0039] The ECG signal feature extraction module is used to extract the time domain features of the denoised ECG signal;
[0040] The cardiac image feature extraction module is used to extract the morphological features of the cardiac image;
[0041] The multimodal feature fusion module is used to fuse the semantic features, time domain features and morphological features to obtain a multimodal feature fusion vector;
[0042] The multi-label classifier is used to calculate the probability that the multimodal feature fusion vector belongs to each label category, and retain and output the label categories with probabilities higher than a preset threshold.
[0043] Furthermore, the preset threshold is 50%.
[0044] Furthermore, the medical record data feature extraction module includes a fully connected layer and a long short-term memory network;
[0045] The semantic feature ECG signal feature extraction module includes a one-dimensional convolutional neural network, a residual network, a long short-term memory network and a global average pooling layer;
[0046] The heartbeat image feature extraction module includes a two-dimensional convolutional neural network, a residual network and a global average pooling layer;
[0047] The multimodal feature fusion module includes a Concatenate layer;
[0048] The multi-label classifier includes a Dense layer and a Sigmoid layer.
[0049] The multimodal diagnosis module is used to splice the medical record metadata, the ECG sequence data and the cardiac image data together to obtain multimodal fusion data, and then input the multimodal fusion data into a trained multimodal deep neural network to obtain a multi-label diagnosis result.
[0050] Specifically, the medical record data feature extraction module includes a fully connected Dense layer and a long short-term memory network LSTM, which is used to vectorize the input medical record metadata, and then use the network to learn the semantic information of age and gender to obtain the semantic features of the medical record data;
[0051] The ECG sequence feature extraction module includes a one-dimensional convolutional neural network (CNN), a residual network and a long short-term memory (LSTM) network, which are used to extract features from the pre-processed ECG signal input, perform time-series feature extraction and analysis on the ECG signal, and obtain the time domain features of the ECG signal;
[0052] The heartbeat image feature extraction module includes a two-dimensional convolutional neural network (CNN) and a residual network, which is used to extract morphological features from the input heartbeat image, perform morphological feature analysis on the ECG signal, focus on the change of the waveform, and obtain the morphological features of the ECG image;
[0053] The multimodal feature fusion module and the multi-label classifier together constitute a fusion classification module, including a connected Concatenate layer, a fully connected Dense layer and a Sigmoid layer, which are used to fuse the time domain features, the morphological features and the semantic features, and then perform Sigmoid transformation to obtain a multi-label classification result after feature morphological mapping.
[0054] The multi-label classifier outputs a probability sequence, representing whether there are left atrial hypertrophy, left ventricular hypertrophy, right atrial hypertrophy, right ventricular hypertrophy and other cardiac hypertrophy problems in the original signal, or whether there is no disease and the performance is normal. The categories with a probability higher than 50% are considered to exist, thereby obtaining a multi-label diagnosis of cardiac hypertrophy.
[0055] Furthermore, the ECG signal denoising module removes baseline noise, power frequency noise and myoelectric interference in the ECG signal based on a wavelet adaptive threshold denoising method.
[0056] Furthermore, the ECG signal denoising module determines the maximum frequency of the ECG signal (the 12-lead ECG signal in the electronic medical record to be diagnosed) based on Nyquist sampling theorem analysis and performs wavelet decomposition and reconstruction to remove baseline noise; wavelet decomposition and reconstruction are performed again, and the corresponding threshold is determined based on the fixed threshold estimation method, and power frequency interference and muscle interference denoising is performed according to the threshold function that combines the hard threshold and the soft threshold.
[0057] Furthermore, for an ECG signal with a sampling frequency of 500 Hz, the maximum frequency of the ECG signal is determined to be 250 Hz based on the Nyquist sampling theorem, and wavelet decomposition and reconstruction with a decomposition scale of 7 are performed to remove baseline noise; wavelet decomposition and reconstruction with a decomposition scale of 5 are performed again, and the corresponding threshold λ is determined based on the fixed threshold estimation method, and the threshold function combining the hard threshold and the soft threshold is calculated. Perform power frequency interference and muscle interference denoising; where w is the decomposed wavelet coefficient, w λ Wavelet coefficients after threshold denoising, sgn is a step function.
[0058] Specifically, the ECG signal denoising module performs denoising processing in the following manner:
[0059] The ECG signal denoising module analyzes the sampling frequency of the ECG signal corresponding to the electronic medical record based on the Nyquist sampling theorem to determine the wavelet function and decomposition scale, as well as the threshold and threshold function of each decomposition scale, removes the baseline drift noise by setting the approximate coefficient to zero, processes the detail coefficient based on the soft and hard threshold functions, and removes the power frequency interference and muscle interference by wavelet reconstruction. That is: the ECG signal denoising module performs Nyquist sampling theorem analysis on the sampling frequency of the ECG signal to determine the wavelet function and decomposition scale, and then uses the fixed threshold estimation method to determine a suitable threshold, and selects a combination of hard threshold and soft threshold in the threshold function. The wavelet coefficients greater than the threshold at each scale of the wavelet transform are retained, and the wavelet coefficients less than the threshold are processed accordingly, and the signal is reconstructed according to the processed wavelet coefficients to obtain a signal that removes other noises such as baseline drift noise, power frequency interference and muscle interference.
[0060] The method provided by the present invention is further illustrated by taking a specific example as follows.
[0061] like Figure 1 As shown, the present invention provides a multi-label detection method for cardiac hypertrophy based on multimodal deep learning, comprising the following steps:
[0062] (1) First, extract the patient's individual information from the electronic medical record.
[0063] Age and gender, two types of data with obvious individual differences, are extracted from electronic medical records as medical record metadata, which are converted into vector data and saved.
[0064] (2) Then, a simple denoising process is performed on the ECG signal corresponding to the medical record.
[0065] Before using neural network training, the ECG signal needs to be preprocessed to eliminate interference such as baseline drift, muscle interference and power frequency interference. Figure 5 The ECG bands of adults are as follows. Figure 2 As shown, the sampling frequency of the ECG data used in the present invention is 500Hz, and the maximum frequency of the signal obtained by the Nyquist sampling theorem is 250Hz. In order to eliminate the low-frequency baseline noise of 0.5Hz-2Hz, the decomposition level is selected to be 7, from top to bottom, the 7th order approximate component (cA7), and the detail components of each order (cD1, cD2, cD3, cD4, cD5, cD6, cD7). In order to eliminate the baseline drift, the cA7 approximate component is set to 0.
[0066] After removing the baseline drift, it is also necessary to remove the power frequency noise and electromyographic interference. In order to minimize the distortion of the reconstructed signal, the number of decomposition layers cannot be too large. For the db8 wavelet with a maximum decomposition layer of 8, select 5 decomposition layers. In the threshold function, select a combination of hard threshold and soft threshold to ensure the smoothness of the signal while minimizing the signal distortion. The specific function is shown below. Compared with the hard threshold, the function jumps less, and compared with the soft threshold, the denoising effect is better.
[0067]
[0068] Where λ is the selected threshold, w is the wavelet coefficient after decomposition, and w λ Wavelet coefficients after threshold denoising, sgn is a step function.
[0069] In the threshold processing function, the most common fixed threshold estimation method is used to determine the threshold. The fixed threshold can obtain good noise reduction results in the soft threshold processing function. The algorithm formula is as follows:
[0070]
[0071] Wherein, N is the sum of the number of wavelet coefficients obtained at each scale after the actual measurement signal is decomposed by wavelet transform, and σ is the standard deviation of the additional noise signal, which is the median of the absolute values of the first-level wavelet coefficients decomposed from the signal.
[0072] (3) For the ECG signal after denoising, heart beat segmentation is performed by locating the QRS wave peak, and the heart beat image with morphological characteristics is retained.
[0073] The detection model selects three leads that are closely related to cardiac hypertrophy in medical theory: lead II, lead V1, and lead V6. The Pan-Tompkins algorithm is used to locate the QRS wave peak. For the ECG signals of the three selected leads, a middle QRS wave peak (excluding the first and last) is selected, and the 40 ECG sampling points after the previous Q wave peak point are removed, and the 40 ECG sampling points before the next Q wave peak point are removed. Figure 6 As shown, the signal between the previous Q wave peak point and the next Q wave peak point is finally taken as an ECG beat. Each single-lead ECG signal is processed as follows:
[0074] T(Q peak (n-1)+40)≤T(Q peak (n))≤T(Q peak (n+1)-40)
[0075] The ECG beat images of three leads in the 12-lead ECG signal are connected by channels as one heart beat image.
[0076] (4) The obtained data is fused and processed as model input.
[0077] The obtained medical record data, ECG signal data and cardiac image data are spliced and fused. Since the characteristics of cardiac hypertrophy on ECG signals are mainly manifested as morphological changes, such as slight changes in waveforms, it is difficult to identify cardiac hypertrophy using ECG signals. In order to allow the model to focus on the morphological characteristics of ECG signals, the processed electronic medical record vector data, the corresponding ECG signal data and the corresponding cardiac image data are spliced together as model input.
[0078] (5) Construct a multimodal deep learning model as a classifier for training.
[0079] After processing the input data, a multimodal deep neural network is designed according to the ECG characteristics of cardiac hypertrophy, which is mainly built on the basis of convolutional neural network and recurrent neural network.
[0080] Convolutional Neural Networks (CNN) is a deep feedforward neural network with the characteristics of local connection and weight sharing. The basic unit of the network consists of a convolution layer, a pooling layer and a fully connected layer, as shown in Figure 3 (a). Compared with feedforward neural networks, convolutional neural networks have fewer parameters. For image recognition tasks, convolutional neural networks achieve better learning effects by retaining important parameters as much as possible and removing a large number of unimportant parameters. Convolutional neural networks use multiple convolutional layers to extract the features of input data, perform feature selection and information filtering through the pooling layer, and then input them into the fully connected layer to release the multidimensional structure and expand them into vectors. Commonly used convolutional neural networks include one-dimensional convolutional neural networks and two-dimensional convolutional neural networks. One-dimensional convolution is commonly used in signal processing, and can handle time series analysis of data well, and obtain features of interest from fixed fragments in the overall data set. Two-dimensional convolution is commonly used in image processing to extract local features corresponding to the convolution kernel on the image. The present invention specifically designs a neural network structure based on the characteristics of electrocardiogram signals and the characteristics of cardiac hypertrophy, and is applied to time series feature extraction and heartbeat image feature extraction.
[0081] Recurrent Neural Networks (RNN) is a type of neural network that processes time series. The basic unit of the network consists of an input layer, a hidden state, and an output layer, as shown in Figure 3(b). The hidden state H of the RNN can retain the output information Y of the current neuron, and continue to act on itself with the input X at the next moment, thereby capturing all current historical sequence information. The Long Short-Term Memory (LSTM) network is a special structure of RNN that can solve problems such as long-term dependence and different intervals of useful information. The present invention performs better when processing this embodiment.
[0082] The neural network framework used for ECG classification in the present invention is as follows: Figure 4 As shown, the network consists of four modules: medical record feature extraction module, time series feature extraction module, heart image feature extraction module and fusion classification module (including multimodal feature fusion module and multi-label classifier).
[0083] For the medical record feature extraction module, the present invention inputs the vectorized age and gender information into a 4-layer fully connected layer network, each fully connected layer contains a nonlinear unit, and the output channels of each fully connected layer are 8, 16, 32, and 64, respectively, to obtain the extracted semantic features.
[0084] For the time series module, the present invention inputs the 12-lead ECG signal data into a 2-layer one-dimensional convolutional neural network (1D CNN) framework, each convolution layer includes normalization, nonlinear units and normalization layers, the convolution kernel of the convolution layer is 15, and the output channels are 32. After the convolutional neural network operation, three repeated residual modules are used to extract fine features. After each residual module extracts features from three layers of convolution layers, the feature output layer is spliced with the input of the residual module using residual connections, wherein the convolution layers all include normalization, nonlinear units and maximum pooling layers, the convolution kernel size of the three modules is 15, and the output channels are 64, 128 and 256 respectively. After the residual module, a one-dimensional LSTM with 128 hidden units is used to obtain the extracted time series features.
[0085] For the heartbeat image module, the present invention inputs lead II, lead V1 and lead V6 as three channels of heartbeat images, and first uses a two-dimensional convolutional neural network (2D CNN) framework for feature extraction, the convolution kernel of the convolution layer is 3, and the output channels are all 32. Then, three repeated residual modules are used for deep feature extraction, each residual module extracts features by three layers of convolution layers, and then the feature output layer is spliced with the input of the residual module by residual connection, wherein the convolution layers all include normalization, nonlinear units and normalization layers, the convolution kernel size of the three modules is 3, and the output channels are 64, 128 and 256 respectively, to obtain the extracted heartbeat image features.
[0086] Finally, this information is fused together to help with classification. The extracted time series features are used in a one-dimensional global average pooling layer to obtain the most important one-dimensional time features. At the same time, the extracted heart image features are input into a two-dimensional average pooling layer to obtain the most important two-dimensional image features. The connection layer concatenates them with the medical record semantic features and then inputs them into two dense layers containing 64 and 5 neurons respectively. The final output is subjected to Sigmoid transformation, which is the multi-label classification result after feature morphology mapping.
[0087] The accuracy of the results of cardiac hypertrophy diagnosis obtained by cardiac color ultrasound is very high, but the results obtained by electrocardiogram are poor. Currently, there is no public electrocardiogram dataset of cardiac hypertrophy using cardiac color ultrasound as a label. Therefore, the present invention constructs a cardiac hypertrophy dataset using cardiac color ultrasound diagnosis as the gold standard.
[0088] The cardiac hypertrophy dataset records standard 12-lead ECG data with a sampling time of 10 seconds and a frequency of 500 Hz, all of which are certified by professional doctors and labeled with cardiac hypertrophy color Doppler ultrasound examinations.
[0089] In addition, 500 pieces of data were selected as a test set.
[0090] There are four main indicators for model evaluation: absolute accuracy (SubsetAccuracy), F1 score, confusion matrix and area under the ROC curve. The multimodal deep network multi-label classifier is the core framework of the present invention. Whether various types of cardiac hypertrophy can be accurately detected depends entirely on the performance of the classifier. Absolute accuracy is scored only when the classifier correctly classifies all categories. Compared with absolute accuracy, F1 score is the main performance metric for current test accuracy, especially when multiple classifications are used, the F1 score metric is more important.
[0091] The ROC curve and confusion matrix can more directly reflect the performance of the model. The confusion matrix is also called the error matrix. Each column represents the predicted category and each row represents the true category. The confusion matrix can be used to intuitively present the performance of the algorithm. The AUC value is the area under the ROC curve. The ROC curve uses the false positive rate as the horizontal coordinate and the true positive rate as the vertical coordinate. Its advantage is that when the distribution of positive and negative samples changes, the shape of the curve remains basically unchanged. Therefore, this score can reduce the interference caused by different test sets and more objectively measure the performance of the model itself. In order to obtain the ROC curve, only the true positive rate (TPR) and the false positive rate (FPR) are needed, and their expressions are as follows:
[0092]
[0093]
[0094] After obtaining the ROC curve, we can derive the meaning of AUC: the larger the value, the better the classification effect of the model.
[0095] Therefore, the present invention uses the AUC score as the main indicator for evaluating model performance, and analyzes the model results with reference to the F1 score and confusion matrix.
[0096] The present invention makes multiple attempts on the network performance of each part of the multimodal deep learning model and gives the final model.
[0097] First, the present invention attempts a unimodal classification model, that is, directly using 12-lead ECG signals for classification. Table 1 shows a multi-label classification experiment using an ECG time series to design a network model. First, a simple one-dimensional CNN network is used to classify the ECG time series. Since the manifestation of cardiac hypertrophy on the ECG signal is mainly a slight change in the ECG signal waveform, the classification is difficult. At the same time, the diagnostic difficulty of multi-label classification is further increased, so the effect is poor, so improvements are made on this basis. ReCNN obtained by combining CNN with a residual module can improve the accuracy, and a LSTM network connected to ReCNN can further improve the performance. The accuracy of using BiLSTM and LSTM is similar, and the calculation time will also be increased. Therefore, in order to reduce the complexity, a framework with ReCNN-LSTM as a classifier is finally adopted. At the same time, the results of other related studies are given for comparison as shown in Table 1.
[0098] On the basis of the ECG time series classifier, multimodal fusion is attempted. The ECG of cardiac hypertrophy has a relatively obvious change in morphological characteristics. At the same time, the ECG is also affected by age and gender, and has obvious individual differences. First, a heartbeat feature extraction module is added to the multimodal deep network model, and the morphological features are mainly processed. The heartbeat image is processed by a two-dimensional residual convolutional neural network CNN model to extract the morphological features on the ECG signal, reduce the influence of redundant information, and improve the accuracy and AUC. Afterwards, a medical record information feature extraction module is added to the multimodal deep network model, and the patient semantic information closely related to cardiac hypertrophy in medical diagnosis is extracted through a multi-layer fully connected layer, and the accuracy is further improved, and the AUC does not change much. Therefore, it can be considered that in the multimodal deep network model of the present invention, the ECG sequence feature extraction module, the heartbeat morphological feature extraction module and the patient individual information extraction module can complement each other, so the use of a multimodal deep neural network can improve the overall network performance. The comparison of the research structure is shown in Table 2.
[0099]
[0100] Table 1
[0101]
[0102] Table 2
[0103] The present invention has made many attempts in network architecture. Since the network of the multimodal model is relatively complex, the network of the heartbeat feature extraction part is basically the same as the network of the ECG sequence feature extraction part, and only the LSTM part is removed. In these two feature extraction parts, the Inception network and DenseNet network, which have performed well in the field of computer vision image classification in recent years, were tested. However, since this embodiment is not a traditional image classification, the performance is poor. Because the information of the one-dimensional signal is too redundant, and the amount of information is far less than that of the two-dimensional image, the increase in the number of network layers and parameters cannot effectively improve the model performance. Therefore, a simple residual connection and a self-built network can obtain the desired effect, and the performance is gradually improved by parameter adjustment, as shown in Table 3. After all the models are trained, they are tested on the test set. After the information extraction and feature classification network output, a probability sequence and the corresponding electrocardiogram are obtained. The absolute accuracy of 500 electrocardiograms in the data set is 63%, and the average ROC AUC score is 0.91.
[0104]
[0105] Table 3
[0106] The present invention establishes a multi-label detection model for cardiac hypertrophy ECG signals based on multimodal deep learning. After training, it can directly diagnose 4 categories of cardiac hypertrophy or normal on the input 12-lead ECG signal. Verified by multiple experiments, the model can accurately identify and locate the morphological heartbeat features of cardiac hypertrophy, and also has specific diagnostic effects on different types of cardiac hypertrophy; the core framework of the present invention is a multimodal feature extraction module for identifying different categories of cardiac hypertrophy, so the model is evaluated by the accuracy of the network in identifying the heartbeat and the multi-label classification error finally measured. A test data set is selected to analyze the feasibility of the model, and each category is analyzed separately, such as Figure 7(a) , 7(b) As shown in Figures 7(c), 7(d), and 7(e), it was found that the AUC for left atrial hypertrophy reached 89%, the AUC for left ventricular hypertrophy reached 87%, the AUC for right atrial hypertrophy reached 92%, the AUC for right ventricular hypertrophy reached 89%, and the AUC for normal reached 98%. This proves the recognition ability of the model and can be used for medical applications and clinical diagnosis.
[0107] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A multi-label detection system for cardiac hypertrophy based on multimodal deep learning, characterized in that: include: The medical record information extraction module is used to extract the pre-set attributes from the electronic medical record to be diagnosed, and convert them into attribute vectors after splicing; An ECG signal denoising module, used to remove baseline noise, power frequency interference and muscle interference in the ECG signal corresponding to the electronic medical record to obtain a denoised ECG signal; The heartbeat image extraction module is used to locate the QRS wave of the II lead, V1 lead and V6 lead ECG signals in the denoised ECG signals, and select any three adjacent QRS wave peak points Q i-1 , Q i , Q i+1 , intercept and delete Q i-1 The last K ECG sampling points and Q i+1 After the first K ECG sampling points, Q i-1 and Q i+1 The ECG sampling points between the leads are taken as ECG beat images; and the ECG beat images of the ECG signals of lead II, lead V1 and lead V6 are channel-joined to obtain a heart beat image; A multimodal diagnosis module, for respectively extracting the semantic features, time domain features and morphological features of the attribute vector, the denoised ECG signal and the heartbeat image, and performing multi-label classification after feature fusion to obtain a detection result; Wherein, the detection result is at least one of left atrial hypertrophy, left ventricular hypertrophy, right atrial hypertrophy and right ventricular hypertrophy, or normal; The multimodal diagnosis module includes a medical record data feature extraction module, an electrocardiogram signal feature extraction module, a heartbeat image feature extraction module, a multimodal feature fusion module and a multi-label classifier; The medical record data feature extraction module is used to extract the semantic features of the attribute vector; The ECG signal feature extraction module is used to extract the time domain features of the denoised ECG signal; The cardiac image feature extraction module is used to extract the morphological features of the cardiac image; The multimodal feature fusion module is used to fuse the semantic features, time domain features and morphological features to obtain a multimodal feature fusion vector; The multi-label classifier is used to calculate the probability that the multimodal feature fusion vector belongs to each label category, and retain and output the label category with a probability higher than a preset threshold; The medical record data feature extraction module includes a fully connected layer and a long short-term memory network; The semantic feature ECG signal feature extraction module includes a one-dimensional convolutional neural network, a residual network, a long short-term memory network and a global average pooling layer; The heartbeat image feature extraction module includes a two-dimensional convolutional neural network, a residual network and a global average pooling layer; The multimodal feature fusion module includes a Concatenate layer; The multi-label classifier includes a Dense layer and a Sigmoid layer.
2. The system according to claim 1, characterized in that The preset attributes include age and gender.
3. The system according to claim 2, characterized in that The preset threshold is 50%.
4. The system according to claim 1, characterized in that The ECG signal denoising module removes baseline noise, power frequency noise and myoelectric interference in the ECG signal based on a wavelet adaptive threshold denoising method.
5. The system according to claim 4, characterized in that The ECG signal denoising module determines the maximum frequency of the ECG signal based on Nyquist sampling theorem analysis and performs wavelet decomposition and reconstruction to remove baseline noise; wavelet decomposition and reconstruction are performed again, and the corresponding threshold is determined based on the fixed threshold estimation method, and power frequency interference and muscle interference denoising is performed according to the threshold function combining the hard threshold and the soft threshold.
6. The system according to claim 5, characterized in that For an ECG signal with a sampling frequency of 500 Hz, based on the Nyquist sampling theorem analysis, it is determined that the maximum frequency of the ECG signal is 250 Hz, and wavelet decomposition and reconstruction with a decomposition scale of 7 are performed to remove baseline noise; The wavelet decomposition and reconstruction with a decomposition scale of 5 are performed again, and the corresponding threshold is determined based on the fixed threshold estimation method. , based on the threshold function combining hard threshold and soft threshold Perform power frequency interference and muscle interference denoising; among them, is the wavelet coefficient after decomposition, Wavelet coefficients after threshold denoising, is a step function.
Citation Information
Patent Citations
Fetal heart rate detection system on FECG based on deep learning and specific correction
CN112826513A
Multimodal framework for heart abnormalities analysis based on EMR / EHR and electrocardiography
US20200327985A1
Method and device for self-learning dynamic electrocardiography analysis employing artificial intelligence
WO2019100565A1
Systems and methods for generating health risk assessments
WO2022034045A1
