Arrhythmia detection method based on deep residual network

Through deep residual network and label-related embedding learning, the problem of existing arrhythmia detection methods being unable to capture temporal dynamic information and adapt to physiological differences is solved, and more efficient arrhythmia feature extraction and multi-label diagnosis are achieved.

CN118806293AActive Publication Date: 2024-10-22UNIV OF ELECTRONICS SCI & TECH OF CHINA
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410825431.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-10-22
Estimated Expiration
2044-06-25

AI Technical Summary

Technical Problem

Existing arrhythmia detection methods cannot effectively capture the temporal dynamic information of ECG signals, resulting in low detection accuracy. Moreover, traditional feature extraction methods are difficult to adapt to the physiological differences and complex pathological characteristics of different patients, and ignore multi-label correlation.

Method used

A method based on deep residual networks is used to preprocess the PhysioNet Challenge data set. Masking vectors and channel attention convolutional networks are introduced to extract complex pathological features, and combined with gated recurrent units and label-related embedding learning, multi-label arrhythmia classification is performed. , and perform arrhythmia prediction by weighting feature vectors with label-aware attention coefficients.

Benefits of technology

It improves the model's adaptability to ECG signals of different lengths, captures more complex pathological characteristics, enhances the diagnostic performance of multi-label arrhythmias, and improves the diagnostic ability of ECG data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118806293A_ABST
    Figure CN118806293A_ABST
Patent Text Reader

Abstract

The invention discloses an arrhythmia detection method based on a deep residual network. The arrhythmia detection method comprises the following steps that 1, electrocardiosignals are preprocessed; step 2, extracting complex pathological ECG features by using a channel attention convolutional network and a gating circulation unit; step 3, carrying out embedding learning on arrhythmia multi-label classification; step 4, weighting the arrhythmia feature vector through a label perception attention coefficient; and step 5, arrhythmia classification: sending the weighted vector into a convolution and full connection layer to obtain a final arrhythmia prediction result probability. The detection model disclosed by the invention can learn more abstract and more complex characteristics, so that electrocardiogram data of different patients and different pathological conditions can be better coped with.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a method for detecting arrhythmia based on a deep residual network. Background Art

[0002] Arrhythmia is a general term for symptoms such as irregular, too fast or too slow heartbeat caused by abnormalities in the heart's electrical conduction system. With the aging of the population and changes in lifestyle, the incidence of arrhythmia has increased rapidly, and is becoming younger and growing. Clinically, arrhythmias can be divided into two categories according to the site of occurrence: supraventricular (including sinus, atrial, and atrioventricular junctional) and ventricular arrhythmias. Under normal circumstances, the beating of the heart is controlled by electrical signals, which are transmitted through the tissues of the heart, triggering the contraction and relaxation of the heart. When these electrical signals become abnormal, arrhythmias can result.

[0003] ECG signals record electrical activity over a certain period of time, which provides important information for detecting arrhythmias. Chinese patent application CN116369933A discloses an arrhythmia detection method based on lightweight convolutional neural network and Transformer fusion. First, ECG signals are collected and the ECG signal data is preprocessed by resampling, segmentation, normalization, etc. to generate an ECG signal data set; the backbone CNN is constructed using hourglass blocks, and hyperparameters are introduced to build an arrhythmia feature extraction network, and the arrhythmia classification network is constructed using the Transformer model and the feedforward neural network FFN.

[0004] Chinese patent application CN115530788A discloses a method for arrhythmia classification based on self-attention mechanism. First, the collected ECG signal data is preprocessed by wavelet transform to remove the baseline drift and noise of the ECG; an arrhythmia classification network with a multi-head self-attention mechanism is constructed, including an ECG vector representation layer, a linear interval projection layer, a signal sequence encoding layer, a multi-head self-attention calculation layer, a normalization layer, and an ECG signal output layer. An arrhythmia classification algorithm based on a multi-head self-attention mechanism is designed, and an arrhythmia classification network based on a multi-head self-attention mechanism is trained to classify ECG signals.

[0005] The above-mentioned traditional preprocessing methods for ECG signals generally use resampling, segmentation and normalization. Excessive preprocessing may make it difficult for the model to adapt to the signal changes of real data during both the training and testing stages. For example, excessive normalization may make the model unable to adapt to the physiological differences between patients. The effect of wavelet transform preprocessing of ECG signals depends largely on the selected wavelet basis, and different wavelet bases are suitable for different types of signals. Wavelet transform may produce undesirable boundary effects at the boundaries of the signal, which may cause artifacts at the beginning and end of the signal. The computational complexity of wavelet transform is high, especially for continuous wavelet transform.

[0006] Existing arrhythmia detection methods cannot capture the temporal dynamic information of ECG signals, which affects the detection accuracy. ECG signals of different patients may be different, which may be affected by multiple factors such as age, gender, and physiological status. A patient may have more than one arrhythmia at the same time, that is, an ECG record may be associated with multiple types of arrhythmias. Traditional ECG signal feature extraction methods cannot well represent complex pathological ECG signal features. Most previous studies focused on the ECG classification of multiple types of arrhythmias, processing each arrhythmia independently, ignoring the multi-label correlation between different ECG abnormalities. Summary of the invention

[0007] The purpose of the present invention is to overcome the shortcomings of the prior art and provide an arrhythmia detection method based on a deep residual network that can learn more abstract and complex features, so as to better cope with electrocardiogram data of different patients and different pathological conditions.

[0008] The object of the present invention is to achieve the following technical solution: a method for detecting arrhythmia based on a deep residual network, comprising the following steps:

[0009] Step 1: ECG signal preprocessing: The PhysioNet Challenge dataset is used as the training set, and the data is preprocessed using the one-hot encoding method;

[0010] The ECG heartbeat sequence in the training set is recorded as X = [x1, x2, ..., x t ,…,x K ] T , where x t represents the heartbeat information of time step t, K represents the length of the heartbeat sequence, and T represents the matrix transpose; the masking vector M is introduced to process invalid heartbeat sequences, M=(m1,…,m t ,…,m K ) T ∈R K , m t represents the masking value of time step t; the masked ECG heartbeat sequence is recorded as It is expressed as follows:

[0011]

[0012] Among them, m t =1 means the corresponding ECG heartbeat information is valid, otherwise means except m t =1, in all other cases, * means discarding invalid heartbeat information;

[0013] Step 2: Extract complex pathological ECG features using channel attention convolutional networks and gated recurrent units: First, use the channel attention convolutional network to extract and optimize ECG features; then, use the gated recurrent unit to learn the heartbeat sequence feature representation, and use multi-layer gated recurrent units with residual connections to hierarchically extract complex pathological ECG features;

[0014] Step 3: Embedding learning for multi-label classification of arrhythmias: Based on the number of co-occurrences of arrhythmias in the training set, a label correlation matrix is ​​established in a data-driven manner based on conditional probability. Then, based on the label correlation matrix and similarity measurement method, the optimal arrhythmia classification label correlation embedding set is obtained through a multi-layer perceptron.

[0015] Step 4: Weight the arrhythmia feature vector by using the label-aware attention coefficient;

[0016] Step 5: Arrhythmia classification: The weighted vector is sent to the convolution and fully connected layers to obtain the final arrhythmia prediction result probability.

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

[0018] (1) Introducing masking vectors to process ECG heartbeat sequences helps improve the model's adaptability to ECG signals of different lengths;

[0019] (2) Capturing the dependencies of label embeddings to guide the feature extraction module to learn arrhythmia-specific features, thereby improving clinical diagnostic performance;

[0020] (3) The deep residual network effectively simulates the temporal dynamics of continuous electrocardiogram (ECG) data and extracts more clinically meaningful complex pathological feature representations, which helps to better capture and analyze complex features in ECG signals and improve the diagnostic capabilities of different pathological conditions; the residual connection allows the gradient in the deep multi-layer recurrent neural network (RNN) to be effectively propagated, thereby improving the representation ability of the network. This ensures that the model can learn more abstract and complex features, so as to better cope with ECG data from different patients and different pathological conditions. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 It is a flow chart of the arrhythmia detection method based on deep residual network of the present invention;

[0022] Figure 2 Design diagram for the convolutional channel attention network module;

[0023] Figure 3 Design graphs for deep residual networks;

[0024] Figure 4 Design diagram of the residual connected GRU. DETAILED DESCRIPTION

[0025] The present invention proposes a method for detecting arrhythmias based on a deep residual network. First, a gated recurrent unit (GRU) is used to encode the temporal dynamics of the original ECG beat, and a multi-layer gated recurrent unit with residual connections is used to hierarchically extract the complex pathological feature representation of the ECG signal. A label-related embedding learning method is introduced to effectively identify multi-label arrhythmias and explore the correlation between electrocardiogram (ECG) abnormalities. The feature extraction module is guided to learn arrhythmia-specific features by capturing the dependencies of label embeddings. Finally, the attention fusion module identifies the hidden state vector corresponding to the diagnostically prominent ECG signal features to form an attention representation for improving the detection method of arrhythmias. The technical solution of the present invention is further illustrated below in conjunction with the accompanying drawings.

[0026] like Figure 1 As shown, a method for detecting arrhythmia based on a deep residual network of the present invention comprises the following steps:

[0027] Step 1. ECG signal preprocessing: The PhysioNet Challenge dataset is used as the training set. The PhysioNet Challenge dataset consists of 2,322,513 ECG records from 1,676,384 different patients. The dataset contains 6 types of abnormal heart rhythm and 1 type of normal heart rhythm. The 6 abnormal types are 1st degree atrioventricular (AV) block (1dAVb), right bundle branch block (RBBB), left bundle branch block (LBBB), sinus bradycardia (SB), atrial fibrillation (AF) and sinus tachycardia (ST). The data is preprocessed using one-hot encoding, and 1 type of normal heart rhythm and 6 types of abnormal heart rhythm are encoded using o i The normal heart rhythm type is represented by o i =[1,0,0,0,0,0,0], 1st degree atrioventricular block is represented by o i =[0,1,0,0,0,0,0], right bundle branch block is represented by o i =[0,0,1,0,0,0,0], left bundle branch block is represented by o i =[0,0,0,1,0,0,0], sinus bradycardia is represented by o i =[0,0,0,0,1,0,0], atrial fibrillation is represented by o i =[0,0,0,0,0,1,0], atrial fibrillation is represented by o i =[0,0,0,0,0,0,1].

[0028] The ECG heartbeat sequence in the training set is recorded as X = [x1, x2, ..., x t ,…,xK ] T ∈R K , where x t represents the heartbeat information of time step t, K represents the length of the heartbeat sequence, and T represents the matrix transpose; since the ECG heartbeat sequence X contains a variety of noise influences (such as baseline drift, environmental interference, muscle movement noise, etc.), some invalid heartbeat sequences are brought about. The present invention introduces a masking vector M to process invalid heartbeat sequences, M = (m1,…,m t ,…,m K ) T ∈R K , m t represents the masking value of the time step t; M is the same size as X and is used to mark a valid heartbeat sequence or an invalid heartbeat sequence; the masked ECG heartbeat sequence is recorded as It is expressed as follows:

[0029]

[0030] Among them, m t =1 means the corresponding ECG heartbeat information is valid, otherwise means except m t =1, in all other cases, * means discarding invalid heartbeat information;

[0031] Step 2: Use channel attention convolutional network and gated recurrent unit to extract complex pathological ECG features: First, use channel attention convolutional network to extract and optimize ECG features and highlight important ECG feature parts; then, use gated recurrent unit to learn heartbeat sequence feature representation, and use multi-layer gated recurrent unit with residual connection to hierarchically extract complex pathological ECG features.

[0032] The specific implementation method of step 2 is:

[0033] Step 21: Use channel attention convolutional network to extract ECG features: the channel attention convolutional network includes multi-layer convolutional channel attention module, global pooling layer and normalization layer; Figure 2 The design of the channel attention convolutional network is presented in the paper. The multi-layer convolutional channel attention (CMC) module is responsible for extracting and optimizing ECG features; the global pooling layer and normalization layer are used to stabilize the module's process of extracting ECG features, reducing training time and memory consumption. Three convolutional channel attention modules are used to mitigate the adverse effects of imbalanced classification of arrhythmia samples and avoid overfitting.

[0034] The convolutional channel attention module consists of three parts: a one-dimensional convolution layer, a Mish activation function layer, and a channel attention function layer. The overall structure of the convolutional channel attention module is as follows:

[0035]

[0036] Among them, Conv1D represents a one-dimensional convolutional layer, in which the characteristic information of the input one-dimensional ECG signal is extracted through a sliding window; then the Mish activation function is applied. The nonlinear characteristics of the Mish activation function can improve the expression ability of the model while smoothing the model gradient flow during the training process. The Mish activation function is Tanh is the hyperbolic tangent function; finally, the channel attention function ChannelAttention is used to highlight the important ECG feature parts; after the convolution channel attention module, the ECG heartbeat sequence is recorded as

[0037]

[0038] will sequence Enter the global pooling layer, perform global average pooling and global maximum pooling on all channels, aggregate the spatial information in the ECG heartbeat features through global average pooling and global maximum pooling, and generate two different semantic information sets: F avg and F max :

[0039]

[0040]

[0041] These sets are then sent to a weight-sharing multilayer perceptron (MLP) to learn the importance of ECG heartbeat sequence features and the channel correlation relationship. After adding the two semantic information passed by the multilayer perceptron, the Sigmoid activation function is applied to normalize them to obtain the channel attention score:

[0042]

[0043] Among them, σ is the Sigmoid activation function, Score channel attention;

[0044] Finally, according to the attention score, the channel attention information is merged with the original ECG heartbeat sequence features using the dot product operation:

[0045]

[0046] In this way, the original ECG heartbeat sequence features are re-weighted, enhancing the utilization of basic channel information. It is defined as the electrocardiogram feature after convolution channel attention module, global maximum pooling, global average pooling and weighted optimization, denoted as ⊙ represents element-by-element multiplication, It means element-by-element addition;

[0047] Step 22: Learn ECG heartbeat representation from continuous ECG data through the first gated recurrent unit: Encoded by the first gated recurrent unit as a hidden vector where d h Indicates the encoding size, such as Figure 3 The details are as follows:

[0048] The Gated Recurrent Unit (GRU) consists of two important gates, the reset gate (s) and the update gate (z), which are used to regulate the flow of information. The calculation of the Gated Recurrent Unit (GRU) at time step t is as follows:

[0049]

[0050] where h t and h t-1 denote the hidden state vectors at time steps t and t-1 respectively, represents the candidate hidden state. σ(·) is the sigmoid activation function, tanh is the hyperbolic tangent activation function, and ⊙ represents element-wise multiplication. W rh , W zh , W cr is the circulant weight matrix, w ri 、w zi 、w ci is the weight vector (the matrix in the residual gated recurrent unit (GRU) layer), b r , b z , b c is the bias vector. is the electrocardiogram feature after convolution channel attention module, global maximum pooling, average pooling and weighted optimization, t∈{1,2,…,K}. The GRU unit has fewer trainable parameters and lower computational complexity, and can produce better generalization results.

[0051] Step 23: Use a multi-layer gated recurrent unit with residual connections to extract complex pathological features of the electrocardiogram (ECG) to obtain a feature vector A deep residual network is composed of multiple layers of GRU with residual connections, such as Figure 3 As shown in the dashed box in the figure. The structure of the residual GRU is as follows Figure 4 As shown, at a time step of t, the residual layer is l, l∈{1,2,…,L}, where L represents the total number of residual layers in the gated recurrent unit (GRU), and the formula is as follows:

[0052]

[0053] In the formula, Q lrepresents the gated recurrent unit (GRU) function (7)-(10), corresponding to the weight matrix W [l] , generate the current hidden vector There are two inputs in the function and is the current remaining input, coming from the output of the reset gate s, is the hidden vector of the previous time step. Using skip connections, and Add element by element to get the output residual vector The vector is then fed back to the next layer (l+1) of the gated recurrent unit (GRU) with a residual connection.

[0054] The deep residual recurrent neural network model is designed by stacking multiple GRUs with residual connection blocks in sequence, and the output of the previous layer forms the input of the next layer. The output of the last layer of residual GRU modules can be calculated as:

[0055]

[0056] Will Recorded as le is the position on the feature dimension, le = 1, 2,…, Le, and Le is the length of the feature.

[0057] Step 3, embedding learning for multi-label classification of arrhythmias: In clinical practice, each ECG record may be associated with many arrhythmias. There are inherent dependencies between different arrhythmias, which play a vital role in automatic ECG diagnosis. It is crucial to explore the relationship between different arrhythmias and apply them to multi-label ECG diagnosis. The present invention establishes a label correlation matrix in a data-driven manner based on the conditional probability based on the number of co-occurrences of arrhythmias in the training set. The conditional probability represents the conditional probability of a secondary arrhythmia (type 2) occurring after an arrhythmia (type 1) occurs. Then, based on the label correlation matrix and the similarity measurement method, the optimal arrhythmia classification label correlation embedding set is obtained through a multi-layer perceptron (MLP).

[0058] The specific implementation method of step 3 is: count the number of co-occurrences of arrhythmia pairs and establish a label correlation matrix; each element of the label correlation matrix is ​​represented by conditional probability:

[0059] p i,j (d i |d j ) = u(d i , d j ) / u(d j ) (14)

[0060] In the formula, u(d i ,d j ) is arrhythmia i and d j Co-occurrence times (d i and d j Represents different types of arrhythmias. By counting their co-occurrence times and conditional probabilities, a label correlation matrix can be established to analyze the correlation between different types of arrhythmias). j ) indicates arrhythmia j The number of occurrences, p i,j (d i |d j ) indicates arrhythmia j Arrhythmia i probability;

[0061] In the label correlation matrix, rare co-occurring arrhythmia pairs may be noise. Therefore, a nonlinear reweighting method is introduced to process the label correlation matrix to remove noise and retain the details of the label relationship:

[0062]

[0063] Where P[i][j] is the element in the i-th row and j-th column of the final label correlation matrix used for label embedding, τ is the threshold of noise filtering, For the rescaling parameter, ε is set to 1×10 -6 , C represents the number of arrhythmia types;

[0064] To obtain label dependencies, a multi-layer perceptron (MLP) was used to multi-hot encode each arrhythmia type. i Mapped to the semantic embedding space, we get the label embedding e i :

[0065] e i = Φ(o i ) (16)

[0066] Among them, i represents multi-hot encoding of arrhythmia types, Φ represents multi-layer perceptron;

[0067] Combine all label embeddings to get the optimal arrhythmia classification label related embedding set Ch is the number of channels; the cosine similarity metric is used to represent the degree of dependency of different label embeddings; the cosine similarity matrix of the label embedding set E is defined as:

[0068]

[0069] Among them, ‖*‖ represents the modulus operation of the vector, and G[i][j] is the element in the i-th row and j-th column of the cosine similarity matrix of the label embedding set E;

[0070] The goal of label embedding is to make the cosine similarity matrix of the label embedding set close to the label correlation matrix; therefore, the optimized loss function is defined as:

[0071]

[0072] Step 4: Weight the arrhythmia feature vector by using the label-aware attention coefficient; the specific implementation method is: by calculating the feature vector The embedding vector e associated with the label c The cosine similarity at the feature position le is used to obtain the label-aware attention coefficient of the feature dimension. As shown below:

[0073]

[0074] Where le is the position on the feature dimension, le = 1, 2, ..., Le, Le is the length of the feature; c = 1, 2, ..., C, e c Represents the label-related embedding vector, ReLU represents the activation function, T represents the matrix transpose, and the label-aware attention coefficient is normalized:

[0075]

[0076] Use the normalized attention coefficient to perform weighted superposition on the feature vectors of class C arrhythmia:

[0077]

[0078] in, is the weighted feature vector of type c arrhythmia, le is the position on the feature dimension, le = 1, 2, ..., Le, Le is the length of the feature; c = 1, 2, ..., C, C represents the number of arrhythmia types, is the normalized label-aware attention coefficient, is the output feature vector of the last layer of residual gated recurrent unit (GRU) module.

[0079] Step 5: Arrhythmia classification: weighted vector Send it to the convolution and fully connected layers to get the final arrhythmia prediction result probability of class c; as shown below:

[0080]

[0081] Among them, w c and b are weight coefficients and bias parameters, σ is the Sigmoid activation function, The predicted probability of class C arrhythmia is obtained by using a 1×1 convolution operation, which is used to match the superposition operation and its parameters can be learned during the training process.

[0082] Step 6, loss optimization: The objective loss function of the model consists of two parts: prediction loss and label embedding training loss. For prediction loss, the traditional binary cross entropy loss is used for multi-label ECG diagnosis. Considering the imbalance of training samples, a weight factor β proportional to the number of ECG samples of class c arrhythmia is introduced. c The weighted binary cross entropy loss function is expressed as:

[0083]

[0084] Where N is the number of samples, c = 1, 2, ..., C, and C is the number of arrhythmia types. c represents the weight factor, n c is the number of samples of type c arrhythmia, represents the probability that sample i is predicted to be a class C arrhythmia, y i,c represents the true label of sample i.

[0085] For label embedding training loss, the loss function is

[0086] The overall objective loss function is expressed as the weighted sum of the above two terms: Loss = Loss p +λLoss e , where λ is a trade-off parameter, Loss e is the label embedding loss.

[0087] In order to optimize the network model, the Adam adaptive learning rate optimization method is used. This method can automatically adjust the learning rate according to the actual situation, thereby improving the training efficiency.

[0088] During the training process, an early stopping condition is set: if the loss on the validation set does not decrease or starts to increase in several consecutive training rounds, the training is stopped early. This can effectively prevent the model from overfitting.

[0089] The present invention helps to improve the adaptability of the model to ECG signals of different lengths by applying a masking vector to the input of the gated recurrent unit (GRU) to ignore the ECG features of invalid time steps. The deep residual network is used to effectively simulate the temporal dynamics of continuous ECG data, and by using the stacked structure design of the gated recurrent unit (GRU), it focuses on detecting important ECG features and extracting more clinically significant complex pathological feature representations. The label-dependent embedding learning method is introduced to effectively identify multi-label arrhythmias and explore the correlation between ECG abnormalities. A dual-attention hybrid network for arrhythmia classification under sample imbalance is constructed, focusing on both local and global ECG information.

[0090] Those skilled in the art will appreciate that the embodiments described herein are intended to help readers understand the principles of the present invention, and should be understood that the protection scope of the present invention is not limited to such specific statements and embodiments. Those skilled in the art can make various other specific variations and combinations that do not deviate from the essence of the present invention based on the technical revelations disclosed by the present invention, and these variations and combinations are still within the protection scope of the present invention.

Claims

1. A method for detecting arrhythmia based on a deep residual network, characterized in that: The steps include: Step 1: ECG signal preprocessing: The PhysioNet Challenge dataset is used as the training set, and the data is preprocessed using the one-hot encoding method; The ECG heartbeat sequence in the training set is recorded as X = [x1, x2, ..., x t ,…,x K ] T ∈R K , where x t represents the heartbeat information of time step t, K represents the length of the heartbeat sequence, and T represents the matrix transpose; the masking vector M is introduced to process invalid heartbeat sequences, M=(m1,…,m t ,…,m K ) T ∈R K , m t represents the masking value of time step t; the masked ECG heartbeat sequence is recorded as It is expressed as follows: Among them, m t =1 means the corresponding ECG heartbeat information is valid, otherwise means except m t =1, in all other cases, * means discarding invalid heartbeat information; Step 2: Extract complex pathological ECG features using channel attention convolutional networks and gated recurrent units: First, use the channel attention convolutional network to extract and optimize ECG features; then, use the gated recurrent unit to learn the heartbeat sequence feature representation, and use multi-layer gated recurrent units with residual connections to hierarchically extract complex pathological ECG features; Step 3: Embedding learning for multi-label classification of arrhythmias: Based on the number of co-occurrences of arrhythmias in the training set, a label correlation matrix is ​​established in a data-driven manner based on conditional probability. Then, based on the label correlation matrix and similarity measurement method, the optimal arrhythmia classification label correlation embedding set is obtained through a multi-layer perceptron. Step 4: Weight the arrhythmia feature vector by using the label-aware attention coefficient; Step 5: Arrhythmia classification: The weighted vector is sent to the convolution and fully connected layers to obtain the final arrhythmia prediction result probability.

2. The arrhythmia detection method based on deep residual network according to claim 1, characterized in that: The specific implementation method of step 2 is: Step 21: Use channel attention convolutional network to extract ECG features: The channel attention convolutional network includes multi-layer convolutional channel attention modules, global pooling layers, and normalization layers; The convolutional channel attention module consists of three parts: a one-dimensional convolution layer, a Mish activation function layer, and a channel attention function layer. The overall structure of the convolutional channel attention module is as follows: Among them, Conv1D represents a one-dimensional convolutional layer, in which the feature information of the input one-dimensional ECG signal is extracted through a sliding window; then the Mish activation function is applied; finally, the channel attention function ChannelAttention is used to highlight the important ECG feature parts; after the convolution channel attention module, the ECG heartbeat sequence is recorded as will sequence Enter the global pooling layer, perform global average pooling and global maximum pooling on all channels, and generate two different semantic information sets: F avg and F max : These sets are then sent to the weight-sharing multilayer perceptron to learn the importance of ECG heartbeat sequence features and the channel correlation relationship; after adding the two semantic information transmitted by the multilayer perceptron, the Sigmoid activation function is applied to normalize them to obtain the channel attention score: Among them, σ is the Sigmoid activation function, Score channel attention; Finally, according to the attention score, the channel attention information is merged with the original ECG heartbeat sequence features using the dot product operation: in It is defined as the electrocardiogram feature after convolution channel attention module, global maximum pooling, global average pooling and weighted optimization, denoted as ⊙ represents element-by-element multiplication, and ⊕ represents element-by-element addition; Step 22: Learn ECG heartbeat representation from continuous ECG data through the first gated recurrent unit: Encoded by the first gated recurrent unit into a hidden vector h t , t∈{1,2,…,K}, where d h Indicates the encoding size; Step 23: Use a multi-layer gated recurrent unit with residual connections to extract ECG complex pathological features and obtain a feature vector 3. The arrhythmia detection method based on deep residual network according to claim 2, characterized in that: The specific implementation method of step 3 is: count the number of co-occurrences of arrhythmia pairs and establish a label correlation matrix; each element of the label correlation matrix is ​​represented by a conditional probability: p i,j (d i |d j )=u(d i ,d j ) / u(d j ) (14) In the formula, u(d i ,d j ) is arrhythmia i and d j The number of co-occurrences, u(d j ) indicates arrhythmia j The number of occurrences, p i,j (d i |d j ) indicates arrhythmia j Arrhythmia i The probability of A nonlinear reweighting method is introduced to process the label correlation matrix, remove noise, and retain the details of the label relationship: Where P[i][j] is the element in the i-th row and j-th column of the final label correlation matrix used for label embedding, τ is the threshold of noise filtering, For the rescaling parameter, ε is set to 1×10 -6 , C represents the number of arrhythmia types; Multi-layer perceptron was used to multi-hot encode each arrhythmia type. i Mapped to the semantic embedding space, we get the label embedding e i : e i =Φ(o i ) (16)where Φ represents a multilayer perceptron; Combine all label embeddings to get the optimal arrhythmia classification label related embedding set Ch is the number of channels; the cosine similarity metric is used to represent the degree of dependency of different label embeddings; the cosine similarity matrix of the label embedding set E is defined as: Among them, ‖*‖ represents the modulus operation of the vector, and G[i][j] is the element in the i-th row and j-th column of the cosine similarity matrix of the label embedding set E; The goal of label embedding is to make the cosine similarity matrix of the label embedding set close to the label correlation matrix; therefore, the optimized loss function is defined as:

4. The arrhythmia detection method based on deep residual network according to claim 3 is characterized in that: The specific implementation method of step 4 is: by calculating the characteristic vector The embedding vector e associated with the label c The cosine similarity at the feature position le is used to obtain the label-aware attention coefficient of the feature dimension. As shown below: Where le is the position on the feature dimension, le = 1, 2, ..., Le, Le is the length of the feature; c = 1, 2, ..., C, e c Represents the label-related embedding vector, ReLU represents the activation function, T represents the matrix transpose, and the label-aware attention coefficient is normalized: Use the normalized attention coefficient to perform weighted superposition on the feature vectors of class C arrhythmia: in, is the weighted feature vector of type c arrhythmia, le is the position on the feature dimension, le = 1, 2, ..., Le, Le is the length of the feature; c = 1, 2, ..., C, C represents the number of arrhythmia types, is the normalized label-aware attention coefficient, is the output feature vector of the last layer of residual gated recurrent unit module.

Citation Information

Patent Citations

  • Voice enhancement method and device based on convolutional neural network, equipment and medium

    CN113345463A

  • Entity sentiment analysis method and system based on two-channel graph convolutional neural network

    CN117708692A

  • Method and system for managing event data

    KR1020200052852A

  • Apparatus for Detecting Arrhythmia by Using Attention Mechanism

    KR102437349B1