Deep wavelet convolutional neural network algorithm for denoising actual electrocardiosignals

By combining a deep wavelet convolutional neural network algorithm with discrete wavelet transform, the problem of insufficient generalization ability of existing ECG signal denoising methods under different noise conditions is solved, achieving efficient and automatic signal denoising and improving the accuracy of ECG analysis.

CN118657176APending Publication Date: 2024-09-17SHANGHAI JIAOTONG UNIV
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410925634.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-11
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

Existing ECG signal denoising methods lack generalization ability under different noise conditions, making it difficult to effectively remove various types of noise and affecting the accuracy of ECG analysis.

Method used

We employ a deep wavelet convolutional neural network algorithm, utilizing convolutional layers to design feature encoders and decoders. We combine discrete wavelet transform (DWT) to preserve and restore feature information, and use the mean square error function to optimize the network structure, avoiding information loss and achieving end-to-end automatic denoising.

Benefits of technology

It improves the performance and generalization ability of ECG signal denoising, avoids QRS wave detection iteration error, simplifies the preprocessing process, retains all effective information, and achieves better denoising effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118657176A
    Figure CN118657176A
Patent Text Reader

Abstract

The invention discloses a deep wavelet convolutional neural network algorithm for denoising an actual electrocardiosignal. The deep wavelet convolutional neural network algorithm is used for improving the accuracy and generalization ability of denoising the electrocardiosignal. According to the algorithm, an electrocardiosignal is divided into 4096-point fragments, a feature encoder and a decoder are designed by using a convolutional layer, and feature extraction and signal reconstruction are performed in combination with discrete wavelet transform (DWT), so that the limitation of a traditional denoising method is effectively avoided. Signal reconstruction is optimized through inverse discrete wavelet transform (IDWT), and network parameter optimization is carried out by using a mean square error (MSE) as a loss function. Experimental results show that the algorithm has excellent performance in the aspect of removing base line drift, electrode movement, muscle artifacts and other noise, and the diagnosis accuracy of electrocardiosignals is remarkably improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of medical technology, and in particular to a deep wavelet convolutional neural network algorithm for actual electrocardiogram signal denoising. Background Art

[0002] 31% of deaths worldwide are caused by cardiovascular diseases, and arrhythmia is a common type of cardiovascular disease. Electrocardiogram (ECG) is a convenient and non-invasive method to record cardiac electrical activity and is used to detect arrhythmias. With the development of wearable technology, wearable devices provide a basis for more convenient and real-time remote personal health monitoring, which is also the current trend of the development of the Internet of Things. For ECG monitoring systems, obtaining denoised ECG signals plays an important role in subsequent automatic diagnosis. ECG records contaminated by noise will have a great negative impact on subsequent ECG analysis and greatly affect the accuracy of diagnosis. Therefore, accurate ECG signal denoising methods are of great significance to wearable sensors and devices. For ECG denoising, a commonly used denoising method is low-pass filtering or high-pass filtering. Among them, low-pass filtering is used to filter the high-frequency components in the ECG signal. Many researchers set different cutoff frequencies to filter out power frequency interference and other high-frequency noise in the signal. Commonly used cutoff frequencies include 30Hz, 50Hz and 70Hz. In addition, bandpass filters can also be used for ECG signal denoising. Subsequently, many researchers have tried some other classic linear filters, such as adaptive filters and filter banks, as well as other filtering methods, including least mean square, recursive mean square and Kalman filters. Another common ECG denoising method is to use time domain signal decomposition technology, such as discrete wavelet transform (DWT). However, these filtering methods often only target one or two types of noise. During the acquisition process, when encountering different ECG noises, different denoising methods should be used for ECG denoising. The above limitations lead to the insufficient generalization ability of existing denoising methods under different noise conditions. Secondly, in practical applications, there are many types of noise, and it is difficult for a single traditional filtering method to obtain good denoising effects for various noises. Summary of the invention

[0003] The purpose of the present invention is to provide a deep wavelet convolutional neural network algorithm for actual electrocardiogram signal denoising.

[0004] To achieve the above object, the present invention is implemented according to the following technical solutions:

[0005] The present invention comprises the following steps:

[0006] S1: Divide the entire ECG signal into segments with multiple sampling points;

[0007] S2: Design feature encoder and decoder of ECG signal using convolutional layers;

[0008] S3: After each convolutional layer, DWT is used instead of the traditional pooling layer to reduce the spatial size of the data while retaining all feature information;

[0009] S4: In the feature encoding stage, a predefined wavelet function is used as a pooling operator; in the feature decoding stage, each subband signal is upsampled, and the inverse discrete wavelet transform is used to reconstruct and restore the data to obtain the denoised signal;

[0010] S5: The mean square error function is used as the loss function during training to optimize the network structure parameters.

[0011] The beneficial effects of the present invention are:

[0012] The present invention is a deep wavelet convolutional neural network algorithm for actual electrocardiogram signal denoising. Compared with the prior art, the present invention has the following technical effects:

[0013] (1) Avoiding the detection of QRS waves can avoid the iterative error caused by complex QRS wave detection. In addition, no other normalization operations need to be performed to simplify the preprocessing process.

[0014] (2) It can effectively and automatically extract a large number of deep features and achieve end-to-end automatic denoising. This end-to-end method has better denoising performance and generalization ability.

[0015] (3) Overcome the problem of input information being simply discarded due to the pooling layer, retain all valid information, and improve denoising performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 It is the algorithm flow chart of the present invention;

[0017] Figure 2 It is a signal decomposition and reconstruction diagram of the algorithm of the present invention;

[0018] Figure 3 It is a model structure diagram of the algorithm of the present invention;

[0019] Figure 4 It is a comparison diagram of experimental results of the baseline drift noise signal and the corresponding denoised signal of the present invention;

[0020] Figure 5 It is a comparison diagram of the experimental results of the electrode motion noise signal and the corresponding denoised signal of the present invention;

[0021] Figure 6 It is a comparison diagram of the experimental results of the muscle artifact noise signal and the corresponding denoised signal of the present invention. DETAILED DESCRIPTION

[0022] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments. The illustrative embodiments and descriptions of the present invention are used to explain the present invention but are not intended to limit the present invention.

[0023] like Figure 1 As shown: The present invention comprises the following steps:

[0024] S1, taking 4096 sampling points as the division length of the ECG signal, the entire ECG signal is divided into ECG segments of 4096 sampling points.

[0025] S2, designing ECG signal feature encoder and feature decoder using convolution layer. Formula 1 represents the convolution process of a convolution layer, the convolution kernel size is k, and the step length is k. In the present invention, k=3.

[0026]

[0027] where x j is the input, w j is the weight, b is the bias value, σ(.) is the Relu function, o i is the output.

[0028] S3, in general, after each convolutional layer, a maximum pooling strategy is adopted for sampling, and a pooling layer operation is performed to reduce the spatial size of the data, thereby reducing the number of parameters of the entire network. However, the above-mentioned pooling operation will inevitably bring about a certain information loss, which may cause the loss of some information that is conducive to the final prediction result during the training process, thereby affecting the performance of the final model. Therefore, the present invention introduces DWT into the algorithm structure. Since DWT is reversible, this pooling scheme can ensure that all feature information is retained. In addition, DWT can obtain the detail coefficient (cD) and approximation coefficient (cA) of the signal, which helps to preserve various detailed information of the signal.

[0029]

[0030]

[0031] where f L is a low-pass filter, f H is a high-pass filter, and X represents the input. The low-pass filter f set in the present invention L and high pass filter f H The definitions are as follows.

[0032]

[0033] S4, in the feature encoding stage, two predefined filters are deployed for the input data at each depth, and then a predefined wavelet function is used as a pooling operator. In the feature decoding stage, each subband signal is upsampled, that is, the data is reconstructed and restored using the inverse discrete wavelet transform (IDWT) to obtain the denoised signal (as shown in Formula 5).

[0034]

[0035] S5, in order to optimize the network structure parameters, the mean square error (MSE) function is used as the loss function during the training process. Formula (1) represents the definition of the MSE function.

[0036]

[0037] Where p(x i ) is the annotated ECG result, q(x i ) is the ECG result after denoising, N is the sampling length of the ECG signal, where N=4096.

[0038] Experimental process:

[0039] The collected noisy ECG signal is input into the algorithm of the present invention, and the denoised ECG signal is output through the feature encoder and decoder designed by the present invention ( Figure 4-6 ).from Figure 4-6 It can be seen that in addition to the ECG signal, the input signal also has a more obvious baseline drift ( Figure 4 ), electrode movement ( Figure 5 ) and muscle artifacts ( Figure 6 ), after the algorithm of the present invention is used, the noise signal is basically filtered out, leaving a clean signal.

[0040] The technical solution of the present invention is not limited to the above-mentioned specific embodiments. All technical variations made according to the technical solution of the present invention fall within the protection scope of the present invention.

Claims

1. A deep wavelet convolutional neural network algorithm for actual ECG signal denoising, characterized in that: The following steps are involved: S1: Divide the entire ECG signal into segments with multiple sampling points; S2: Design feature encoder and decoder of ECG signal using convolutional layers; S3: After each convolutional layer, DWT is used instead of the traditional pooling layer to reduce the spatial size of the data while retaining all feature information; S4: In the feature encoding stage, a predefined wavelet function is used as the pooling operator; In the feature decoding stage, each subband signal is upsampled, and the inverse discrete wavelet transform is used to reconstruct and restore the data to obtain the denoised signal; S5: The mean square error function is used as the loss function during training to optimize the network structure parameters.

2. The deep wavelet convolutional neural network algorithm for actual ECG signal denoising according to claim 1, characterized in that: In the step S1, 4096 sampling points are used as the division length of the ECG signal, and the entire ECG signal is divided into ECG segments of 4096 sampling points.

3. The deep wavelet convolutional neural network algorithm for actual ECG signal denoising according to claim 2, characterized in that: The step S2 is specifically as follows: Formula (1) represents the convolution process of a convolution layer, the convolution kernel size is k, and the step length is k; where x j is the input, w j is the weight, b is the bias value, σ() is the Relu function, o i is the output.

4. The deep wavelet convolutional neural network algorithm for actual ECG signal denoising according to claim 3, characterized in that: In step S3, the DWT can obtain the detail coefficient (cD) and the approximation coefficient (cA) of the signal, which helps to preserve various detailed information of the signal; where f L is a low-pass filter, f H is a high-pass filter, X represents the input, and the low-pass filter f L and high pass filter f H The definition is as follows:

5. The deep wavelet convolutional neural network algorithm for actual ECG signal denoising according to claim 4, characterized in that: The step S4 is specifically as follows: in the feature encoding stage, two predefined filters are deployed for the input data at each depth, and then a predefined wavelet function is used as a pooling operator; In the feature decoding stage, each subband signal is upsampled, that is, the data is reconstructed and restored using the inverse discrete wavelet transform, and the denoised signal is obtained as shown in formula (5); 6. The deep wavelet convolutional neural network algorithm for actual ECG signal denoising according to claim 5, characterized in that: The step S5 formula (6) represents the definition of the mean square error function: Where p(x i ) is the annotated ECG result, q(x i ) is the ECG result after denoising, N is the sampling length of the ECG signal, where N=4096.

Citation Information

Cited By

  • Multi-noise self-adaptive electrocardiosignal denoising method and system

    CN120130933A

  • Residual diffusion denoising method and system for removing extremely high noise in electrocardiosignal

    CN120267297A