Dialysis ventricular fibrillation detection method based on convolutional recurrent neural network
By combining multi-modal data of electrocardiogram signals and time-frequency images, using convolutional recurrent neural networks and bidirectional LSTM networks, the problems of high false negative rate and insufficient specificity of ventricular fibrillation detection in the existing technology are solved, and a more accurate detection method is achieved. Accurate and robust ventricular fibrillation detection.
Patent Information
- Application Number
- CN202410677207.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-29
- Publication Date
- 2024-09-06
AI Technical Summary
Existing ventricular fibrillation detection methods have high false negative rates, insufficient specificity and sensitivity, and are difficult to accurately identify ventricular fibrillation in low signal-to-noise ratio environments. They also have limited processing capabilities for electrocardiogram signals and cannot fully mine potential information.
Using a method based on convolutional recurrent neural network, combined with electrocardiogram signal and time-frequency image data, through the bidirectional long short-term memory network and attention mechanism, adaptive weighted fusion is performed to extract multi-modal features to improve the accuracy and robustness of detection. Great sex.
It significantly reduces the false negative rate, improves the accuracy and robustness of detection, can accurately identify ventricular fibrillation in a low signal-to-noise ratio environment, and is suitable for real-time monitoring in clinical applications.
Smart Images

Figure CN118592973A
Abstract
Description
Technical Field
[0001] The present invention mainly relates to ventricular fibrillation detection, and in particular to a hemodialysis ventricular fibrillation detection method based on convolutional recurrent neural network. Background Art
[0002] Atrial fibrillation (AF), commonly known as AF, is a common arrhythmia characterized by rapid and disordered electrical activity in the atria, which causes the atria to lose effective contractile function. The main clinical manifestations of AF include palpitations, chest pain, dizziness and fatigue. In severe cases, it can cause serious complications such as thrombosis, stroke, and heart failure. According to relevant literature reports, the probability of cardiovascular events in hemodialysis patients is much higher than that of the general population, and the annual cardiovascular mortality rate is 5 to 30 times higher than that of the general population. AF, as an independent risk factor for predicting death, is also common in hemodialysis patients. AF is a common arrhythmia that affects the health of millions of people worldwide, especially in the elderly and patients with chronic diseases. For hemodialysis patients, the incidence of AF is significantly increased. Hemodialysis patients are more likely to induce cardiovascular events and AF due to long-term dialysis treatment, fluid fluctuations, electrolyte imbalance and other reasons. Literature studies have shown that AF is not only common in hemodialysis patients, but also significantly increases the risk of stroke and all-cause death in these patients. Therefore, timely and accurate detection and diagnosis of atrial fibrillation is crucial for hemodialysis patients and can effectively reduce the occurrence of serious complications.
[0003] At present, the detection and diagnosis of atrial fibrillation mainly rely on the analysis of electrocardiogram (ECG) signals. Traditional methods for detecting atrial fibrillation include manual analysis of ECGs, the use of automated ECG monitoring equipment, etc. However, traditional methods have the following limitations: High false negative rate: Due to the complexity of ECG signals and the diversity of heart rhythm changes, detection methods that rely solely on ECG signals often have a high false negative rate, resulting in missed diagnosis of atrial fibrillation. Insufficient specificity and sensitivity: Although automated ECG monitoring equipment can provide continuous monitoring, its specificity and sensitivity are often insufficient, making it difficult to accurately identify atrial fibrillation in a low signal-to-noise ratio environment. Limited data processing capabilities: Traditional methods have limited processing capabilities for ECG signals and are unable to fully explore and utilize the potential information in the signals.
[0004] In order to solve the limitations of traditional atrial fibrillation detection methods, multimodal data fusion technology has received extensive attention in the field of medical signal processing in recent years. Multimodal data fusion technology can provide more comprehensive and accurate detection results by combining multiple different types of data. For atrial fibrillation detection, combining the data of the two modalities of electrocardiogram signal and time-frequency image can significantly improve the accuracy and reliability of detection. Signal modality: The electrocardiogram signal is a one-dimensional time domain signal that can reflect the dynamic changes of cardiac electrical activity. Its characteristics include the time interval, amplitude change and shape of the electrocardiogram waveform of the heartbeat, which can directly show the electrical activity cycle and rhythm of the heart. Image modality: The electrocardiogram signal can be converted into a time-frequency image to show the energy distribution of the electrocardiogram signal at different frequencies. The characteristics of the image modality include texture, spectral characteristics and local spatial information in the image, which helps to capture complex electrocardiogram activity patterns and potential abnormal signals. Adaptive attention mechanism: In the multimodal fusion module, the adaptive attention mechanism is used to perform weighted summation of the signal modality features and the image modality features. The weights can be adaptively adjusted according to the characteristics of different input data to improve the effect of feature fusion. Temporal attention mechanism: In the signal processing module, the temporal attention mechanism is introduced. By focusing on the key time points in the ECG signal sequence, the characteristics of atrial fibrillation can be better captured and the detection accuracy can be improved. Long short-term memory network (LSTM) is a recurrent neural network that can effectively process long sequence data. It has significant advantages in the application of ECG signal processing. By introducing memory units and gating mechanisms, LSTM can effectively capture the long-term dependencies in ECG signals. Bidirectional LSTM: In the signal processing module, a bidirectional LSTM network is used to extract features from ECG signals, which can capture the forward and backward features of the signal at the same time and improve the accuracy of feature extraction. Application of LSTM in image processing: In the image processing module, the time-frequency image is processed in combination with the LSTM network, which can capture the temporal and spatial features in the image and improve the robustness of detection.
[0005] Existing atrial fibrillation detection methods mainly include methods based on statistical analysis, methods based on machine learning, and methods based on deep learning. Methods based on statistical analysis: Traditional statistical methods analyze the time domain and frequency domain characteristics of electrocardiogram signals, extract characteristic indicators such as heartbeat intervals and amplitudes, and then combine thresholds to judge atrial fibrillation. However, this method is sensitive to noise and interference, and has low detection accuracy.
[0006] Methods based on machine learning: Machine learning methods extract features of ECG signals and use classifiers (such as support vector machines, random forests, etc.) to detect atrial fibrillation. These methods have improved the accuracy of detection to a certain extent, but there are still limitations in feature extraction and selection. Methods based on deep learning: Deep learning methods automatically extract high-dimensional features of ECG signals by constructing deep neural networks to achieve atrial fibrillation detection. In recent years, the application of convolutional neural networks (CNN) and recurrent neural networks (RNN) in ECG signal processing has achieved remarkable results, but single-modality deep learning methods still have a certain false negative rate. Summary of the invention
[0007] In view of the shortcomings of the prior art, the present invention proposes a dialysis ventricular fibrillation detection method based on a convolutional recurrent neural network. The method realizes accurate detection of atrial fibrillation by combining data of two modalities, electrocardiogram signals and time-frequency images, and combining a long short-term memory network (LSTM) and an attention mechanism. The dialysis ventricular fibrillation detection method based on a convolutional recurrent neural network of the present invention specifically includes the steps of providing more abundant and comprehensive atrial fibrillation detection information:
[0008] S1: Obtain ECG signal sequence and ECG sequence images. The ECG signal sequence is a one-dimensional time domain signal, which reflects the dynamic changes of cardiac electrical activity, including the time interval, amplitude change and shape of the ECG waveform of the heartbeat, and can directly display the electrical activity cycle and rhythm of the heart; the ECG sequence image converts the one-dimensional signal into a time-frequency image, and displays the energy distribution of the ECG signal at different frequencies in a visual way, including the texture, spectrum characteristics and local spatial information in the image, which helps to capture complex ECG activity patterns and potential abnormal signals;
[0009] S2: Use a signal processing module based on a bidirectional long short-term memory network to process the ECG signal sequence to obtain sequence features; use an image processing module containing a multi-layer convolutional network to process the ECG sequence image to obtain image features; wherein the dimensions of the sequence features and the image features are aligned;
[0010] S3: using a multimodal fusion module to fuse the acquired signal with the feature vector of the image to obtain a multimodal feature, wherein the fusion method is adaptive weighted fusion;
[0011] S4: Input the multimodal features into the fully connected layer and finally output the ECG classification results.
[0012] As a preferred technical solution of the present invention, the signal processing module in step S2 is composed of a sampling layer, a one-dimensional convolution layer, a maximum pooling layer and a bidirectional long-term short-term network layer, and each layer is connected in sequence from left to right, wherein the signal processing module includes the following steps to complete the electrocardiogram signal sequence processing: T1: input is a one-dimensional continuous time domain signal sequence; T2: the signal is sampled through the sampling layer to obtain the sampled signal X signal ; T3: After one-dimensional convolution layer and maximum pooling layer, feature f is obtained signal ; T4: feature f signal Input bidirectional long short-term memory network, output feature g signal .
[0013] As a preferred technical solution of the present invention, the input of the image processing module in step S1 is an electrocardiogram sequence image, which is specifically an image of a one-dimensional continuous time domain signal waveform sequence, wherein the image processing module includes the following steps to complete the electrocardiogram sequence image processing: first, through two layers of residual convolution layers, the spatial features of the image are captured, and finally through a global average pooling layer, the global image feature representation is obtained, and the feature g is output image .
[0014] As a preferred technical solution of the present invention, the input of the multimodal fusion module in step S3 is the output of the signal processing module and the features of the image processing module, which specifically includes the following process:
[0015] P1: The signal feature g signal and image feature g image , are mapped to the same dimension through a fully connected layer, and the calculation formula is:
[0016] g' signal =f1(g signal ),g' image =f2(g image )
[0017] Among them, f1 and f2 are fully connected layers, and the input dimensions are respectively signal and g image Same, the output dimension is 256;
[0018] P2: The two features are weighted and summed through two learnable coefficients α and β to output the multimodal fusion feature. The calculation formula is:
[0019] g feature =α*g signal +β*g image
[0020] Among them, g signal is the sequence feature, g imageis the image feature, g feature It is a multi-modal fusion feature;
[0021] P3: Perform convolution and pooling operations on the features after multimodal fusion to obtain deeper multimodal fusion features. The calculation formula is:
[0022] g' feature =Relu(Conv(g feature ))
[0023] Among them, Relu is a pooling operation, Conv is a convolution operation, and g' feature For deeper multimodal fusion features;
[0024] P4: After a global pooling layer, the final fusion feature is output, and its calculation formula is:
[0025] g fused =GlobalAvgPool(g' feature )
[0026] Among them, GlobalAvgPool is the global pooling, g fused is the fusion feature of the final output.
[0027] As a preferred technical solution of the present invention, the classification module in step S4 is composed of two fully connected layers and one random loss layer, and the multimodal fusion feature g feature After passing through the fully connected layer, random dropout layer, and fully connected layer in sequence, the ventricle classification result y is output cls .
[0028] Compared with the prior art, the present invention has the following beneficial effects:
[0029] Multimodal data fusion: By combining the data of two modalities, electrocardiogram signals and time-frequency images, it can provide more comprehensive and accurate atrial fibrillation detection information and significantly improve the accuracy of detection.
[0030] Low false negative rate: By adopting adaptive weighted fusion and attention mechanism, the false negative rate can be effectively reduced and the possibility of missed diagnosis of atrial fibrillation can be reduced.
[0031] Strong robustness: Combining the bidirectional LSTM network and the residual convolution layer, it can effectively process the noise and interference in the ECG signal and image, and improve the robustness of the model.
[0032] Real-time: By optimizing the network structure and feature extraction module, real-time atrial fibrillation detection can be achieved, which is suitable for continuous monitoring in clinical applications. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1A flow chart of a method for detecting ventricular fibrillation during dialysis based on a convolutional recurrent neural network provided by the present invention;
[0034] Figure 2 A structural diagram of a signal processing module of an embodiment provided by the present invention;
[0035] Figure 3 A set of electrocardiogram signal sequence diagrams provided by the present invention;
[0036] Figure 4 A set of electrocardiogram sequence images provided by the present invention. DETAILED DESCRIPTION
[0037] The present invention is further described below in conjunction with the accompanying drawings and examples. However, the present invention can be implemented in many different ways and should not be construed as being limited to the embodiments shown; on the contrary, these embodiments provide those skilled in the art with implementation methods that meet applicable legal requirements.
[0038] Example 1: Figure 1 As shown, this embodiment describes in detail the specific implementation steps of the hemodialysis ventricular fibrillation detection method based on convolutional recurrent neural network. The method detects ventricular fibrillation by processing electrocardiogram signal sequence and electrocardiogram sequence image.
[0039] Step S1: Acquire electrocardiogram signal sequence and electrocardiogram sequence image:
[0040] ECG signal sequence acquisition: ECG signals are collected from dialysis patients using conventional ECG equipment. The collected ECG signals are one-dimensional time domain signals that reflect the dynamic changes of cardiac electrical activity, including the time interval of heartbeats, amplitude changes, and the shape of the ECG waveform. The sampling frequency is set to 500Hz, and the ECG signals are converted into digital signals for storage.
[0041] ECG sequence image acquisition: The collected ECG signal is converted into a time-frequency image through short-time Fourier transform (STFT). The time-frequency image shows the energy distribution of the ECG signal at different frequencies, including the texture, spectral characteristics and local spatial information in the image. The image resolution is set to (256, 256) for subsequent processing.
[0042] Step S2: Signal processing and image processing:
[0043] Signal processing module: The input is a one-dimensional continuous time domain signal sequence, which is processed through the following steps: T1: Sampling layer: Resample the input signal and standardize the sampling frequency. T2: One-dimensional convolution layer: Extract local features of the signal through multiple one-dimensional convolution layers. The convolution kernel size is 3 and the number of channels is 32. T3: Max pooling layer: Use a max pooling layer with a pooling window of 2 to reduce the dimension of the feature map and retain significant features. T4: Bidirectional long short-term memory network (Bi-LSTM): Input the features into the Bi-LSTM network to capture the temporal features of the signal and output the sequence features.
[0044] Image processing module: The input is an ECG sequence image, which is processed through the following steps: Two layers of residual convolution layers: The spatial features of the image are captured through two layers of residual convolution layers. The convolution kernel size is 3, and the number of channels is 64 and 128 respectively. Global average pooling layer: The feature map is converted into a global feature vector using the global average pooling layer, and the image features are output.
[0045] Step S3: Multimodal feature fusion:
[0046] The sequence features of the signal processing module and the image features of the image processing module are input into the multimodal fusion module.
[0047] Adaptive weighted fusion method is used, which includes the following processes:
[0048] P1: The signal feature g signal and image feature g image , are mapped to the same dimension through a fully connected layer, and the calculation formula is:
[0049] g' signal =f1(g signal ),g' image =f2(g image )
[0050] Among them, f1 and f2 are fully connected layers, and the input dimensions are respectively signal and g image Same, the output dimension is 256;
[0051] P2: The two features are weighted and summed through two learnable coefficients α and β to output the multimodal fusion feature. The calculation formula is:
[0052] g feature =α*g signal +β*g image
[0053] Among them, g signal is the sequence feature, g image is the image feature, g feature It is a multi-modal fusion feature;
[0054] P3: Perform convolution and pooling operations on the features after multimodal fusion to obtain deeper multimodal fusion features. The calculation formula is:
[0055] g' feature =Relu(Conv(g feature ))
[0056] Among them, Relu is a pooling operation, Conv is a convolution operation, and g' feature For deeper multimodal fusion features;
[0057] P4: After a global pooling layer, the final fusion feature is output, and its calculation formula is:
[0058] g fused =GlobalAvgPool(g' feature )
[0059] Among them, GlobalAvgPool is the global pooling, g fused is the fusion feature of the final output.
[0060] Step S4: Classification module: The multimodal fusion features are input into the classification module, which consists of the following components: First fully connected layer: fully connected layer, with an output dimension of 128. Dropout layer: The dropout rate is set to 0.5 to prevent overfitting. Second fully connected layer: fully connected layer, with an output dimension of 64. The final output is the ECG classification result to determine whether ventricular fibrillation exists.
[0061] like Figure 2As shown in Figure 1, the network structure diagram of the signal processing module shows the ECG signal processing flow based on the convolutional recurrent neural network. Specifically, the network structure includes the following main modules: ECG sequence: The input is a one-dimensional ECG time domain signal sequence. This sequence reflects the electrical activity of the heart and shows the cycle and rhythm of the heart's electrical activity by collecting the time interval, amplitude change and shape of the ECG waveform of the heartbeat. Sampling layer: The sampling layer samples the input signal to standardize the sampling frequency. This step is to convert the signal into a unified format and scale, making subsequent processing more efficient and accurate. One-dimensional convolution layer: The one-dimensional convolution layer is used to extract local features of the ECG signal. Through convolution operations, this layer can capture specific patterns and local structures in the signal. The convolution kernel size and number of channels are set according to actual application requirements. Maximum pooling layer: The maximum pooling layer is used to reduce the dimension of the feature map while retaining the most significant features. Through the pooling operation, the data dimension can be effectively reduced, the computational complexity can be reduced, and the robustness of the features can be enhanced. Bi-LSTM: The Bi-LSTM layer is used to capture the temporal characteristics of the signal. Through the bi-directional LSTM network, the forward and backward dependencies of the signal can be considered at the same time to extract richer temporal information. The output of this layer is the sequence feature.
[0062] Example 2: Figure 3 and Figure 4 As shown, this embodiment will introduce in detail the specific implementation steps of the hemodialysis ventricular fibrillation detection method based on convolutional recurrent neural network, including the whole process of data extraction, data processing, signal conversion, feature extraction and fusion, aiming to improve the accuracy and robustness of ventricular fibrillation detection. The data comes from clinical electrocardiogram (ECG) records, usually collected from hemodialysis patients. Each ECG signal includes multiple leads, the most common of which is 12 leads, covering leads I, II, III, aVR, aVL, aVF, V1 to V6. The specific data extraction steps are as follows: Data acquisition: ECG signals are collected from hemodialysis patients using standard ECG equipment. Data format: The collected signals are usually stored in .mat format and contain multiple variables, the most important of which is the ECG signal sequence.
[0063] After data extraction, the ECG signal needs to be preprocessed to remove noise and other interference and improve the quality of the signal. The main steps include: Denoising: Apply a bandpass filter to remove power frequency interference, baseline drift, and high-frequency noise in the ECG signal. The frequency range of the bandpass filter is usually set to 0.5Hz to 50Hz. Normalization: In order to eliminate individual differences and measurement errors, the ECG signal is normalized. The normalization formula is:
[0064]
[0065] Where x is the original signal, μ is the mean of the signal, and σ is the standard deviation of the signal.
[0066] In order to better analyze the ECG signal, the one-dimensional time domain signal is converted into a two-dimensional time-frequency image. Commonly used methods are short-time Fourier transform (STFT) and continuous wavelet transform (CWT).
[0067] Short-time Fourier transform (STFT): STFT slides a window on the time axis and performs Fourier transform on the signal in the window to obtain a representation in the time-frequency domain. The STFT formula is:
[0068]
[0069] Where x(τ) is the time domain signal, w(τ) is the sliding window function, t is time, and f is frequency.
[0070] Continuous Wavelet Transform (CWT): CWT performs multi-resolution analysis on the signal by scaling and translating the mother wavelet to obtain the spectral characteristics of the signal at different scales and positions. The CWT formula is:
[0071]
[0072] Among them, x(t) is the time domain signal, ψ is the mother wavelet function, a is the scale, and b is the translation parameter.
[0073] The signal processing module extracts features from the preprocessed ECG signal to obtain time series features. The main steps are as follows:
[0074] One-dimensional convolution layer: One-dimensional convolution layer is used to extract local features of ECG signals. The convolution operation formula is:
[0075]
[0076] Among them, x(t) is the input signal, w(i) is the convolution kernel, k is the convolution kernel size, and b is the bias.
[0077] The maximum pooling layer is used to reduce the dimension of the feature map and retain the most significant features. The pooling operation formula is:
[0078] y(t)=max{x(t),x(t+1),...,x(t+k-1)}
[0079] Here, k is the pooling window size.
[0080] Bi-LSTM is used to capture the forward and backward time series features of the signal. The calculation formula of the LSTM unit is:
[0081]
[0082] o t =σ(W o ·[h t-1 ,x t ]+b o )
[0083] h t =o t tanh(C t )
[0084] Among them, f t It's the Gate of Forgetfulness. is the input gate, is the candidate memory, Ct is the memory unit, o t is the output gate, h t is the hidden state, W and b are the weights and biases, and σ is the activation function.
[0085] Example 3: In order to verify the effectiveness of this method, this example adopts a simulation experiment for demonstration. The specific simulation experiment content is as follows:
[0086] The hardware configuration used in this experiment is as follows:
[0087] Processor (CPU) Intel Core i9-12900K Graphics Processing Unit (GPU) NVIDIA GeForce RTX 3090 Memory (RAM) 64GB DDR4 storage 1TB NVMe SSD operating system Ubuntu 20.04LTS
[0088] The software environment and tools used in this experiment are as follows:
[0089] programming language Python 3.8 Deep Learning Frameworks PyTorch, TensorFlow Data processing and analysis NumPy, Pandas Visualization Tools Matplotlib, Seaborn Other Libraries Scikit-learn
[0090] The experimental data are as follows:
[0091] PhysioNet, one of the most commonly used databases in this field is PhysioNet, the PhysioNet database consists of 48 two-channel Holter records, each 30 minutes long, associated with different clinical pathologies (such as ventricular and supraventricular arrhythmias, ventricular tachycardia, atrial fibrillation, etc.). The database contains ECG records of 47 subjects: 25 men, aged between 32 and 89 years, and 22 women, aged between 23 and 89 years. 23 records were randomly selected from 4000 24-hour Holter records collected from a mixed population of inpatients (about 60%) and outpatients (about 40%) at Beth Israel Hospital in Boston; the remaining 25 records were selected from the same group and include less common but clinically significant arrhythmias that are not well represented in a small random sample. The data were digitized at a rate of 360 samples per second per channel, with a resolution of 11 bits and a range of 10mV. Cardiologists independently annotated each recording; disagreements were resolved to obtain computer-readable reference annotations for each heartbeat (approximately 110,000 annotations in total) and included in the database, which consists of three categories: normal, premature atrial beats, and premature ventricular beats.
[0092] MIT-BIH,The experiment also used data from the MIT-BIH Atrial Fibrillation Database, which includes long-term ECG records of 25 human subjects with atrial fibrillation (mainly paroxysmal atrial fibrillation). Of these, 23 records contain two ECG signals (in .dat files); records 00735 and 03665 are represented only by rhythm (.atr) and unaudited heartbeat (.qrs) annotation files. Each individual record is 10 hours long and each record contains two ECG signals with a sampling frequency of 250 times per second, a resolution of 12 bits, and a range of ±10 mV. The original analog records were made using a portable ECG recorder at Beth Israel Hospital in Boston, with a typical recording bandwidth of about 0.1Hz to 40Hz. Rhythm annotation files (with .atr suffix) are prepared manually; these files contain different types of rhythm annotations, such as AFIB (atrial fibrillation), AFL (atrial flutter), J (atrioventricular junction rhythm), and N (for all other rhythms). Beat annotation files (with .qrs suffix) are prepared using an automatic detector and have not been manually corrected. For some recordings, manually corrected beat annotation files (with .qrsc suffix) are also available. (.qrs annotation files may be useful for research on automated atrial fibrillation detection methods, where the system must be robust to typical QRS detection errors. For basic research on atrial fibrillation itself, .qrsc annotation files may be preferred, as QRS detection errors can be confusing.) Note that in both .qrs and .qrsc files, no distinction is made between beat types (all beats are labeled normal).
[0093] In order to facilitate comparison, the present invention samples the original labeled data, marks the samples labeled as normal in the original data as normal samples, and marks the samples with atrial premature beats and premature ventricular contractions as ventricular fibrillation samples.
[0094] The evaluation indicators are as follows:
[0095] In order to better evaluate the performance of the method proposed in this invention, experiments were conducted on two datasets, PhysioNet and MIT-BIH, and the accuracy of the model was evaluated through multiple indicators.
[0096] The accuracy shows that the network has done an excellent job of classifying two categories related to heart disease ("premature atrial contraction" and "premature ventricular contraction") and categories related to health conditions. Based on the results obtained from the confusion matrix, statistical classification functions can be applied to evaluate the proposed method: Sensitivity, also known as True Positive Rate (TPR), Specificity, also known as True Negative Rate (TNR), Fall-Out, also known as False Positive Rate (FPR), and a measure of test accuracy. The formula is shown below:
[0097]
[0098] The meaning of each of the above statistical classification parameters can be defined: sensitivity (TPR) represents the percentage of ECG records that belong to a specific category and are correctly classified in that category; specificity (TNR) measures how often the model classifies ECG records that do not belong to that category; false positive rate (FPR) represents the number of ECG records that are considered to belong to a specific category, but in fact they are not part of that category; false discovery rate (FDR) represents the number of ECG records that are not considered to belong to a specific category, but in fact they are part of that category; F1 score takes into account the precision and recovery rate of the test, where precision is the number of true positives (TP) divided by the number of all positive results, that is, true positives (TP) plus false positives (FP); while recovery rate is the number of true positives (TP) divided by the number of all tests that should be positive, that is, true positives (TP) plus false negatives (FN).
[0099] Experimental results and analysis:
[0100] Results on the PhysioNet dataset
[0101] index Signal Mode Image Modality Multimodal Fusion TPR 96.5% 98.31% 98.45% TNR 97.96% 98.32% 98.37% FPR 2.04% 1.68% 1.63% FDR 3.5% 1.69% 1.55% F1 97.25% 98.31% 98.40%
[0102] Results on the MIT-BIH dataset
[0103] index Signal Mode Image Modality Multimodal Fusion TPR 95.2% 97.85% 98.87% TNR 95.1% 97.02% 97.52% FPR 4.9% 2.98% 2.48% FDR 4.8% 2.15% 1.13% F1 95.1% 97.43% 98.20%
[0104] From the experimental results, it can be seen that on the two datasets of PhysioNet and MIT-BIH, the multimodal fusion model is superior to the single modality model in all indicators. This shows that combining the information of the two modalities of signal and image can more effectively extract features, thereby improving the accuracy and robustness of atrial fibrillation detection. The specific analysis is as follows: The sensitivity of the multimodal fusion model reached 98.45% on the PhysioNet dataset, which is 0.14% higher than the image modality and 1.95% higher than the signal modality; on the MIT-BIH dataset, the sensitivity of the multimodal fusion model was as high as 98.87%, which is 1.02% higher than the image modality and 3.67% higher than the signal modality. In terms of specificity indicators, the multimodal fusion model also improved by 0.05% and 0.41% respectively on the PhysioNet dataset than the image modality and signal modality, and by 0.5% and 2.42% respectively on MIT-BIH.
[0105] In summary, the present invention proposes a low false negative convolutional recurrent neural network model that combines the two modalities of signal and image, which significantly improves the performance of atrial fibrillation detection by effectively fusing the features of ECG signals and ECG images, demonstrating the great potential of multimodal feature fusion in complex time series classification tasks.
[0106] The above embodiments only express the implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention. It should be pointed out that, for those of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention.
Claims
1. A method for detecting ventricular fibrillation during dialysis based on a convolutional recurrent neural network, characterized in that: The method comprises the following steps: S1: Obtain ECG signal sequence and ECG sequence images. The ECG signal sequence is a one-dimensional time domain signal, which reflects the dynamic changes of cardiac electrical activity, including the time interval, amplitude change and shape of the ECG waveform of the heartbeat, and can directly display the electrical activity cycle and rhythm of the heart; the ECG sequence image converts the one-dimensional signal into a time-frequency image, and displays the energy distribution of the ECG signal at different frequencies in a visual way, including the texture, spectrum characteristics and local spatial information in the image, which helps to capture complex ECG activity patterns and potential abnormal signals; S2: Use a signal processing module based on a bidirectional long short-term memory network to process the ECG signal sequence to obtain sequence features; use an image processing module containing a multi-layer convolutional network to process the ECG sequence image to obtain image features; wherein the dimensions of the sequence features and the image features are aligned; S3: using a multimodal fusion module to fuse the acquired signal with the feature vector of the image to obtain a multimodal feature, wherein the fusion method is adaptive weighted fusion; S4: Input the multimodal features into the fully connected layer and finally output the ECG classification results.
2. The method for detecting ventricular fibrillation during dialysis based on a convolutional recurrent neural network according to claim 1, characterized in that: The signal processing module in step S2 is composed of a sampling layer, a one-dimensional convolution layer, a maximum pooling layer and a bidirectional long-term short-term network layer, and each layer is connected in sequence from left to right. The signal processing module includes the following steps to complete the electrocardiogram signal sequence processing: T1: The input is a one-dimensional continuous time domain signal sequence; T2: Sample the signal through the sampling layer to obtain the sampled signal X signal ; T3: After one-dimensional convolution layer and maximum pooling layer, feature f is obtained signal ; T4: The feature f signal Input bidirectional long short-term memory network, output feature g signal .
3. The method for detecting ventricular fibrillation during dialysis based on convolutional recurrent neural network according to claim 1, characterized in that: The input of the image processing module in step S1 is an electrocardiogram sequence image, which is specifically an image of a one-dimensional continuous time domain signal waveform sequence. The image processing module includes the following steps to complete the electrocardiogram sequence image processing: first, through two layers of residual convolution layers, the spatial features of the image are captured, and finally through a global average pooling layer, the global image feature representation is obtained, and the output feature g is output. image .
4. The method for detecting ventricular fibrillation during dialysis based on convolutional recurrent neural network according to claim 1, characterized in that: The input of the multimodal fusion module in step S3 is the output of the signal processing module and the features of the image processing module. The following processes are included: P1: The signal feature g signal and image feature g image , are mapped to the same dimension through a fully connected layer, and the calculation formula is: g' signal =f1(g signal ),g' image =f2(g image ) Among them, f1 and f2 are fully connected layers, and the input dimensions are respectively signal and g image Same, the output dimension is 256; P2: The two features are weighted and summed through two learnable coefficients α and β to output the multimodal fusion feature. The calculation formula is: g feature =α*g signal +β*g image Among them, g signal is the sequence feature, g image is the image feature, g feature It is a multi-modal fusion feature; P3: Perform convolution and pooling operations on the features after multimodal fusion to obtain deeper multimodal fusion features. The calculation formula is: g' feature =Relu(Conv(g feature )) Among them, Relu is a pooling operation, Conv is a convolution operation, and g' feature For deeper multimodal fusion features; P4: After a global pooling layer, the final fusion feature is output, and its calculation formula is: g fused =GlobalAvgPool(g' feature ) Among them, GlobalAvgPool is the global pooling, g fused is the fusion feature of the final output.
5. The method for detecting ventricular fibrillation during dialysis based on convolutional recurrent neural network according to claim 1, characterized in that: The classification module in step S4 consists of two fully connected layers and one random loss layer. The multimodal fusion feature g feature After passing through the fully connected layer, random dropout layer, and fully connected layer in sequence, the ventricle classification result y is output cls .
Citation Information
Cited By
Method for predicting assisted reproduction technology program result in Internet hospital
CN119049722A
A method for predicting the outcome of assisted reproductive technology procedures in an Internet hospital
CN119049722B
Deep learning-based ventricle implantation auxiliary device operation monitoring method
CN120823985A
