A system and method for locating myocardial infarction in remote cardiac intervention surgery
By combining the multi-branch Mobi-Trans model with CNN and Transformer, it solves the real-time and feature extraction problems of ECG signal monitoring in cardiac interventional surgery, achieves high-accuracy classification of ECG signals, and overcomes the dependence of traditional methods and deep learning models. The sequential calculation problem provides better monitoring results.
Patent Information
- Application Number
- CN202210291251.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-23
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2042-03-23
AI Technical Summary
Existing technology makes it difficult to achieve long-term real-time monitoring of ECG signals during cardiac interventional surgeries. Traditional machine learning methods require manual feature selection and extraction. Deep learning methods such as RNN models are calculated sequentially and have low performance, and cannot effectively process various regions in the ECG signal. relative relationship between them.
A multi-branch Mobi-Trans myocardial infarction position classification model is designed, combining CNN and Transformer, using improved MobileNetV3 to extract features, overcoming the problem of translation invariance through relative position representation, and using an attention mechanism to focus on useful areas and leads to realize automatic feature extraction and classification of ECG signals.
It realizes remote ECG monitoring during cardiac interventional surgery, improves the classification accuracy of ECG signals, overcomes the feature extraction dependency of traditional methods and the calculation sequence problem of deep learning models, and provides better generalization ability and classification performance. .
Smart Images

Figure CN114847959B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of image recognition and classification, and relates to an electrocardiogram (ECG) signal acquisition, transmission, preprocessing, and automatic classification system and method, and specifically to a myocardial infarction positioning system and method in remote cardiac intervention surgery. Background Art
[0002] As an emerging treatment method, interventional surgery has incomparable advantages over traditional medical drug treatment and surgical treatment due to its wide range of indications, minimally invasive, definite efficacy, and few complications. And with the rapid development of 5G communication technology, remote intervention surgery has become possible. ECG is a major tool for diagnosing myocardial infarction, and has the advantages of being non-invasive and economical ([Reference 1]). Since myocardial infarction can be divided into anterior myocardial infarction (AMI), anterior septal myocardial infarction (ASMI), anterior lateral myocardial infarction (ALMI), apical myocardial infarction (APMI), lateral myocardial infarction (LMI), inferior myocardial infarction (IMI), and inferolateral myocardial infarction (ILMI) according to the location of occurrence ([Reference 2]), the use of 12-lead ECG can distinguish these categories and thus determine the location of the lesion for cardiac intervention surgery, which is conducive to the early planning of the path of the interventional catheter in the human blood vessels. At the same time, the 12-lead ECG can monitor the patient's physical condition during cardiac interventional surgery and whether the infarction site is unblocked, which helps doctors grasp the progress of the operation. Therefore, real-time ECG monitoring is very necessary during cardiac interventional surgery.
[0003] In the past, 12-lead ECGs required experienced doctors to manually determine the location and category of myocardial infarction, but this method is difficult to apply to long-term ECG real-time monitoring such as in cardiac interventional surgery. For long-term ECG monitoring such as in cardiac interventional surgery, continuous computer-assisted 12-lead ECG recording is a more reliable means ([Reference 3]). Many scholars have previously studied the automatic classification of computer-assisted myocardial infarction locations and proposed many methods. These methods can be roughly divided into two categories. The first category is the traditional machine learning method that requires ECG waveform feature location and feature extraction, and the other category is the deep learning method that can automatically extract ECG features. For traditional machine learning methods, for example, Arif et al. proposed an algorithm for automatic detection and location of myocardial infarction using a KNN classifier ([Reference 4]). Wavelet transform was used to extract features such as Q wave amplitude, ST level deviation, and T wave amplitude as input to the KNN classifier, achieving an overall classification accuracy of 98.8%. However, myocardial infarction detection and location depends largely on the correct extraction of time domain features, and the ST segment feature extraction in this article uses the time period after the J point determined based on experience, but this time period will change with changes in heart rate. In summary, these traditional machine learning methods usually require the author to manually select and extract features based on their own experience. The author's own feature extraction algorithm may produce different extraction performance due to different factors such as the patient's gender and age, and the performance of feature extraction will greatly affect the classification performance of the classifier.
[0004] In recent years, with the rise of deep learning methods, many scholars have applied deep learning methods such as CNN and RNN, which have achieved good performance in image classification and machine translation, to the classification of ECG signals. Compared with traditional machine learning methods, these deep methods have the ability to automatically learn the features of input data, thereby eliminating the tedious feature extraction process and have better generalization ability than traditional machine learning algorithms. In 2020, Natesan et al. proposed a multi-layer deep convolutional neural network structure for myocardial infarction classification of multi-lead ECG signals ([Reference 5]). This multi-layer convolution stacking method can extract local features in ECG images, but cannot model the relative relationship between regions in ECG signals well. Prabhakararao et al. proposed an attention-based RNN network for myocardial infarction diagnosis ([Reference 6]), using intra-lead and inter-lead attention modules to achieve an overall accuracy of 98.3% on the PTB dataset, but the RNN model often must be calculated sequentially and cannot be calculated in parallel. When the model has deeper depth and more parameters, the performance is lower.
[0005] References:
[0006] [Literature 1] Acharya U R, Kannathal N, Hua L M, et al. Study of heart rate variability signals at sitting and lying postures[J]. Journal of Bodywork & Movement Therapies, 2005, 9(2): 134 - 141.
[0007] [Literature 2] Namprempre C. Electrocardiography in DICOM. Churchill Livingstone, 1997.
[0008] [Literature 3] Thygesen K, Alpert J S, Jaffe A S. Third universal definition of myocardial infarction[J]. European Heart Journal, 2012, 50(20): 2173 - 2195.
[0009] [Literature 4] Arif M, Malagore I, Afsar F. Detection and localization of myocardial infarction using k - nearest neighbor classifier[J]. Journal of Medical Systems, 2010: 1 - 11.
[0010] [Literature 5] Natesan P, VV Priya, Gothai E. Classification of Multi - Lead ECG Signals to Predict Myocardial Infarction Using CNN[C] / / 2020 Fourth International Conference on Computing Methodologies and Communication(ICCMC). 2020.
[0011] [Document 6] Prabhakararao E, Dandapat S. Attentive RNN-Based Network to Fuse12-Lead ECG and Clinical Features for Improved Myocardial InfarctionDiagnosis[J]. IEEE Signal Processing Letters, 2020, 27: 2029-2033. Summary of the invention
[0012] In order to solve the above technical problems, the present invention proposes a system and method for locating myocardial infarction in remote cardiac intervention surgery.
[0013] The technical solution adopted by the system of the present invention is: a myocardial infarction positioning system in remote cardiac intervention surgery, including a patient terminal, a cloud server and a doctor terminal;
[0014] The patient end includes a 12-lead ECG signal acquisition device and a Wi-Fi remote transmission device, which are used to collect 12-lead ECG signals during cardiac intervention surgery and transmit them to a cloud server via Wi-Fi;
[0015] The cloud server includes an ECG signal preprocessing module and a multi-branch Mobi-Trans myocardial infarction location classification model, which is used to preprocess the ECG signal, use each lead in the preprocessed ECG signal as the input of each corresponding branch of the multi-branch Mobi-Trans myocardial infarction location classification model deployed on the cloud server, extract features, and obtain a classification result of the myocardial infarction location;
[0016] The doctor end is used to receive the pre-processed ECG signal and the classification result of the myocardial infarction position, and visualize the ECG waveform and the classification result of the myocardial infarction position in real time.
[0017] The technical solution adopted by the method of the present invention is: a method for locating myocardial infarction in remote cardiac intervention surgery, comprising the following steps:
[0018] Step 1: Acquire a 12-lead ECG signal of a preset length collected from a patient undergoing cardiac intervention surgery;
[0019] Step 2: De-noise each lead ECG signal in the 12-lead ECG signal of preset length, identify the R peak and segment it into heart beats, and downsample the segmented heart beats to 320 sampling points;
[0020] De-noising uses the existing wavelet denoising method and the existing Pan-Tompkins algorithm to identify the position of the R peak, and takes 199 points before the R peak and 400 points after the R peak, including the R peak, a total of 600 points as a heart beat. The number of sampling points for segmenting the heart beat depends on the sampling frequency of the ECG signal. When the ECG sampling frequency is 1000Hz, the above method is used to segment the heart beat with 600 sampling points.
[0021] Step 3: Input the output of step 2 into the 12 corresponding branches in the multi-branch Mobi-Trans myocardial infarction location classification model to obtain the classification result of the myocardial infarction location.
[0022] Compared with the prior art, the invention has the following innovations and advantages:
[0023] 1. In order to achieve remote ECG monitoring during interventional surgery and better utilize the features contained in each lead of the ECG signal collected by the acquisition device, a multi-branch Mobi-Trans myocardial infarction location classification model was designed that can be used with a remote wireless transmission 12-lead ECG signal acquisition device.
[0024] 2. The Mobi-Trans model effectively combines the advantages of CNN and Transformer, and perfectly integrates the two for the classification of one-dimensional ECG signals. The CNN part uses the improved MobileNetV3 to extract feature modules, which greatly reduces the number of parameters used compared to traditional convolution. For the original Transformer model that uses absolute position encoding, when the input image, such as the ECG signal, is translated horizontally, the model may also produce different results for the same waveform because the absolute position of each sampling point in the ECG signal has changed. The Transformer part used in the present invention uses relative position representation instead of the absolute position encoding of the original Transformer model, which overcomes the lack of translation invariance of the Vision Transformer model previously used for image classification.
[0025] 3. The Mobi-Trans model proposed in the present invention uses attention mechanisms in many places, including channel attention mechanism, position attention mechanism, and branch attention mechanism, so that the model can pay more attention to more useful areas in ECG signals, more useful channels in the feature extraction process, and more useful leads in 12-lead ECG signals. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 4 is a system principle diagram of an embodiment of the present invention.
[0027] Figure 2This is a schematic diagram of the network structure of the multi-branch Mobi-Trans myocardial infarction location classification model in an embodiment of the present invention;
[0028] Figure 3 This is a schematic diagram of the network structure of the bneck module in the multi-branch Mobi-Trans myocardial infarction location classification model in an embodiment of the present invention;
[0029] Figure 4 Schematic diagram of the network structure of the branch attention module in the multi-branch Mobi-Trans myocardial infarction location classification model in an embodiment of the present invention. DETAILED DESCRIPTION
[0030] In order to facilitate ordinary technicians in the field to understand and implement the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the implementation examples described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.
[0031] Please see Figure 1 , a myocardial infarction positioning system in remote cardiac intervention surgery provided by the present invention includes a patient terminal, a cloud server and a doctor terminal;
[0032] The patient side includes a 12-lead ECG signal acquisition device and a Wi-Fi remote transmission device, which are used to collect 12-lead ECG signals during cardiac interventional surgery and transmit them to the cloud server via Wi-Fi;
[0033] A cloud server, including an ECG signal preprocessing module and a multi-branch Mobi-Trans myocardial infarction location classification model, is used to preprocess the ECG signal, and each lead in the preprocessed ECG signal is used as the input of each corresponding branch of the multi-branch Mobi-Trans myocardial infarction location classification model deployed on the cloud server. Each branch first uses an improved lightweight MobileNetV3 module to extract features, and then uses an improved Transformer module to make the model pay more attention to more important locations in the ECG signal. Finally, a branch attention module is used to make the model pay more attention to branches that contribute more to the classification and obtain a classification result of the myocardial infarction location;
[0034] The doctor side is used to receive the pre-processed ECG signal and the classification results of the myocardial infarction location, and visualize the ECG waveform and the classification results of the myocardial infarction location in real time.
[0035] In this embodiment, the signal acquisition module in the ECG signal acquisition device uses an ADS1298 chip, and the Wi-Fi remote transmission device uses an ESP32 MCU. First, the ECG signal acquisition device is started to collect 12-lead ECG signals during cardiac intervention surgery and transmit them to the cloud server through the Wi-Fi remote transmission device. The ECG signal wavelet denoising algorithm and the heart beat segmentation algorithm based on the Pan-Tompkins algorithm for R peak recognition are deployed on the cloud server to pre-process the 12-lead ECG signals, and the trained multi-branch Mobi-Trans myocardial infarction location classification model is deployed to classify the myocardial infarction location of the pre-processed ECG signals.
[0036] The multi-branch Mobi-Trans myocardial infarction location classification model of this embodiment is provided with 12 parallel branches, a splicing layer, a branch attention module, a Flatten layer, a fully connected layer and a Softmax function layer; each branch receives a heartbeat of 320 sampling points in the corresponding lead in the 12-lead ECG signal, and the features extracted by the 12 branches are spliced through the splicing layer. The spliced feature map has 12 channels, each channel represents the feature extracted by the corresponding branch, and the branch attention module performs an attention operation on the features of each branch; the Flatten layer is used to flatten the output feature map after the branch attention module, and the fully connected layer and the Softmax function layer are used to obtain the myocardial infarction location classification result.
[0037] The branch of this embodiment consists of an improved lightweight MobileNetV3 feature extraction module and an improved Transformer attention module;
[0038] The MobileNetV3 model was proposed by the Google team. When it was proposed, there were two parameter configurations, one was small and the other was large. This embodiment uses the small model and improves on it. The improved lightweight MobileNetV3 feature extraction module in this embodiment has the same parameter settings as the MobileNetV3 (small) model. At the same time, the MobileNetV3 (small) model is modified to be suitable for one-dimensional signal processing and the second half of the model is deleted, leaving only the part before the bneck module with the inverse residual structure of the linear bottleneck; the improved lightweight MobileNetV3 feature extraction module first uses a one-dimensional convolutional layer to increase the number of channels of a single-channel ECG signal and reduce the signal length, and then uses the BN layer for normalization. The normalized feature map will be activated using the h-swish function shown below, and then 11 stacked bneck modules will be used for further lightweight feature extraction;
[0039]
[0040] Among them, x represents the independent variable of the input h-swish function, and the ReLU 6() function expression is: for the input independent variable x, ReLU 6(x)=min(max(x,0),6).
[0041] In this embodiment, the multi-branch Mobi-Trans myocardial infarction location classification model includes 12 parallel branches with consistent internal structure, and the parameters trained by these parallel branches are independent of each other instead of sharing the same set of parameters. Each branch receives a one-dimensional ECG heartbeat signal with a length of 320 sampling points in the corresponding lead of the preprocessed 12-lead ECG signal. First, the improved lightweight MobileNetV3 module is used for feature extraction. The MobileNetV3 module first uses a one-dimensional convolution layer with 16 convolution kernels, a size of 3, and a step size of 2 to increase the number of channels of the single-channel ECG signal and reduce the signal length. Then, the BN layer is used for normalization. The normalized feature map will be activated using the hswish function. Afterwards, 11 stacked bneck modules will be used for further lightweight feature extraction. The internal structure of bneck is as follows. Figure 3 shown. Figure 3 The first and second columns in the figure are two forms of the bneck module. The difference between them is the different step sizes of the depthwise convolution in the middle and whether there is a shortcut to add the input and output of the bneck to form a residual module. The bneck module first uses a one-dimensional convolution layer with a convolution kernel size of 1 and a step size of 1 to increase the number of channels of the feature map and ensure that the length of the one-dimensional feature map remains unchanged, and then uses the BN layer for normalization, and then uses the nonlinear activation function None linear. Next, depthwise convolution is used for each channel of the feature map, and there will be a corresponding different single-channel convolution kernel for each channel to perform a one-dimensional convolution operation on each channel. After the depthwise convolution, the BN layer and the None linear activation function are also used, followed by a pointwise convolution with a convolution kernel size of 1 and a step size of 1 to perform a point-by-point one-dimensional convolution operation on the previously output feature map. The number of convolution kernels used here will determine the number of feature map channels that the bneck module will eventually output. After depthwise convolution, the BN layer is used for normalization, and then the SENet module is used for squeeze and excitation operations to implement the channel attention mechanism. The components of the SENet module are as follows: Figure 3As shown in the rightmost column, the squeeze operation is implemented through global average pooling. The excitation operation first reduces the number of channels to 1 / 4 of the number of channels of the feature map of the input SENet module through a one-dimensional convolution layer with a convolution kernel size of 1 and a stride of 1, thereby reducing the amount of calculation. After normalization by the BN layer and activation by the ReLU function, a one-dimensional convolution layer with a convolution kernel size of 1 and a stride of 1 is used to restore the number of channels to the number of channels of the feature map of the input SENet module. Then, the hsigmoid function in the following formula is used for activation operation to obtain the feature map. This feature map is the weight of each channel of the feature map initially input to the SENet module learned by the model. Channel-based product with the original input can obtain a feature map based on channel attention.
[0042]
[0043] In the bneck module, the SENet module is optional, and the residual connection (shortcut) is only available when the depthwise convolution kernel step size is 1. Figure 3 The None linear activation function in this embodiment uses the ReLU function in the first three bneck modules, and the h-swish function is used in the last 8 bneck modules. Therefore, the internal compositions of the 11 bneck modules used in the embodiment are not all the same. The parameters of the 11 bneck modules are shown in Table 1 below.
[0044] Table 1
[0045]
[0046] The improved Transformer attention module of this embodiment uses the encoder part in the traditional Transformer model, and modifies the multi-head self-attention in the encoder part to a multi-head self-attention with relative position representation; the improved Transformer attention module includes 5 stacked encoders;
[0047] The self-attention relative to the absolute position encoding used in the traditional Transformer model is shown in the following formula:
[0048]
[0049] Among them, Q represents the query vector Query, K represents the key vector Key, V represents the value vector Value, d k Represents the arithmetic square root of the dimension of the key vector Key.
[0050] For a set of n input elements x=(x1,…,x n ), a set of outputs A=(A1,…,A n ), where the i-th element A i The expression formula is as follows:
[0051]
[0052]
[0053] Among them, x i represents an input x of n elements = (x1,…,x n ), the i-th element in j represents an input x of n elements = (x1,…,x n ), W Q , W K represents the weight matrix, x i With W Q , W K The weight matrices are multiplied to obtain the query vector and key vector associated with them. ij Represents x i With x j The attention score between .
[0054] The self-attention with relative position representation is to modify e in the above formula ij As shown below:
[0055]
[0056] The relative position is introduced in the above formula to represent w i-j It means that for a one-dimensional ECG feature map of length L, when using a multi-head attention mechanism, each head has a trainable parameter P of length 2L-1 = (P1, ..., P 2L -1), when calculating the relative position offset between the i-th and j-th points in a one-dimensional ECG feature map, the i-j+Lth element P in P is selected. i-j+L As w i-j The value of; 1≤i≤L, 1≤j≤L.
[0057] Figure 2 FFN refers to a feed-forward neural network. First, the Linear layer is used to expand the number of channels of the feature map input to the FFN module to the original input. Figure 1 The number of channels of the Rel-Attention (self-attention with relative position representation) module is 4 times the number of channels, and then the GELU function is used for activation, and the Linear layer is used to reduce the number of feature map channels to Figure 2The Rel-Attention module outputs the number of feature map channels, so that the output of the Rel-Attention module can be added to the output of the FFN module. The improved Transformer attention module includes 5 stacked encoders, each of which consists of Figure 1 The Rel-Attention module and FFN module in the CNN are composed of 8-head attention mechanism. The first encoder of the 5 stacked encoders performs a pooling operation with a size of 3 and a stride of 2 on the input feature map to downsample the feature map so that the length of the feature map becomes 5. At the same time, a convolution with a size of 1 and a stride of 1 is used to increase the number of channels of the input feature map to 192. The last 4 encoders do not have downsampling and dimension upscaling operations, so the sizes of the input and output feature maps of the last four encoders are 192×5.
[0058] The implementation process of the branch attention module of the Mobi-Trans model in this embodiment is as follows Figure 4 As shown in FIG. 1 , the ECG signal in each branch becomes a feature map with 192 channels and a length of 5 after passing through the improved lightweight MobileNetV3 module and the improved Transformer module. In this embodiment, the size of the ECG signal is firstly changed to 192×1 by using global average pooling, and then it is transposed into a single channel feature map with a length of 192. Finally, the feature maps in the 12 branches are concatenated to obtain a feature map with a size of 12×192, which is then input into the Figure 3 The branch attention module in the lower part. For the branch attention module, this embodiment first multiplies the input feature map A and its transpose B to obtain a matrix C of size 12×12, then takes the maximum value of each row in C to replace the other values of each row to obtain D, subtracts C from D to obtain the attention matrix E, uses the Softmax function to convert the matrix E into a weight matrix F, multiplies F and A to obtain a feature map G of size 12×192, multiplies G by a trainable variable β to obtain H, and then adds H and A to obtain the result after the branch attention operation.
[0059] This embodiment provides a method for locating myocardial infarction in remote cardiac intervention surgery. The doctor transmits the remote intervention surgery catheter control instructions to the cloud server through the 5G network and the MQTT protocol via a handle connected to the computer. The cloud server transmits the control instructions to the patient side. At the same time, the ECG acquisition device on the patient side transmits the collected 12-lead ECG signal to the cloud server through the 5G network and the MQTT protocol. The ECG preprocessing function on the cloud server preprocesses the ECG signal and the Mobi-Trans model deployed on the cloud server is used to classify the location of the myocardial infarction. Finally, the preprocessed ECG signal and the corresponding myocardial infarction locating result are sent to the doctor client module. The doctor client module receives the preprocessed ECG signal and the corresponding myocardial infarction locating result transmitted by the cloud server, so that the doctor can use the computer to view the real-time visualized ECG waveform and myocardial infarction locating result.
[0060] The multi-branch Mobi-Trans myocardial infarction location classification model used in this embodiment is a trained multi-branch Mobi-Trans myocardial infarction location classification model;
[0061] The training process is as follows: denoise the 12-lead ECG signals with myocardial infarction location labels collected from different myocardial infarction patients and annotated by professional doctors, identify the R peak and segment it into heart beats, downsample the segmented heart beats to 320 sampling points; and use it as a data set to train the multi-branch Mobi-Trans myocardial infarction location classification model; stop training when the loss on the validation set no longer decreases.
[0062] The present invention proposes a multi-branch Mobi-Trans model for myocardial infarction localization. Each branch first uses an improved lightweight MobileNetV3 module to extract features, then uses an improved Transformer module to make the model pay more attention to the more important positions in the ECG signal, and finally uses a branch attention module to make the model pay more attention to the branches that contribute more to the classification and obtain the classification results of the myocardial infarction position. The present invention provides an effective technical means for myocardial infarction localization in remote cardiac intervention surgery through 12 parallel branches combined with a lightweight convolution module, an improved self-attention module and a branch attention mechanism.
[0063] It should be understood that the above description of the preferred embodiment is relatively detailed and cannot be regarded as limiting the scope of patent protection of the present invention. Under the enlightenment of the present invention, ordinary technicians in this field can also make substitutions or modifications without departing from the scope of protection of the claims of the present invention, which all fall within the scope of protection of the present invention. The scope of protection requested for the present invention shall be based on the attached claims.
Claims
1. A myocardial infarction location system in remote cardiac intervention surgery, characterized by: Including patient side, cloud server and doctor side; The patient end includes a 12-lead ECG signal acquisition device and a Wi-Fi remote transmission device, which are used to collect 12-lead ECG signals during cardiac interventional surgery and transmit them to a cloud server via Wi-Fi; The cloud server includes an ECG signal preprocessing module and a multi-branch Mobi-Trans myocardial infarction location classification model, which is used to preprocess the ECG signal, use each lead in the preprocessed ECG signal as the input of each corresponding branch of the multi-branch Mobi-Trans myocardial infarction location classification model deployed on the cloud server, extract features, and obtain a classification result of the myocardial infarction location; The multi-branch Mobi-Trans myocardial infarction location classification model is provided with 12 parallel branches, a splicing layer, a branch attention module, a Flatten layer, a fully connected layer and a Softmax function layer; each of the branches receives a heartbeat of 320 sampling points of the corresponding lead in the 12-lead ECG signal, and the features extracted by the 12 branches are spliced through the splicing layer. The spliced feature map has 12 channels, wherein each channel represents the feature extracted by the corresponding branch, and the branch attention module performs attention operation on the features of each branch; The output feature map after the branch attention module is flattened using the Flatten layer, and the myocardial infarction location classification result is obtained using the fully connected layer and the Softmax function layer; The branch consists of an improved lightweight MobileNetV3 feature extraction module and an improved Transformer attention module; The improved lightweight MobileNetV3 feature extraction module has the same parameter settings as the MobileNetV3small model, and the MobileNetV3 small model is modified to be suitable for one-dimensional signal processing and the second half of the model is deleted, leaving only the part before the bneck module with the inverse residual structure of the linear bottleneck; the improved lightweight MobileNetV3 feature extraction module first uses a one-dimensional convolutional layer to increase the number of channels of a single-channel ECG signal and reduce the signal length, and then uses a BN layer for normalization. The normalized feature map will be activated using the h-swish function shown below, and then 11 stacked bneck modules will be used for further lightweight feature extraction; Wherein, x represents the independent variable of the input h-swish function, and the ReLU 6() function expression is: for the input independent variable x, ReLU 6(x) = min(max(x,0),6); The branch consists of an improved lightweight MobileNetV3 feature extraction module and an improved Transformer attention module; The improved Transformer attention module uses the encoder part in the traditional Transformer model, and modifies the multi-head self-attention in the encoder part to a multi-head self-attention with relative position representation; the improved Transformer attention module includes 5 stacked encoders; The self-attention relative to the absolute position encoding used in the traditional Transformer model is shown in the following formula: Among them, Q represents the query vector Query, K represents the key vector Key, V represents the value vector Value, d k Represents the arithmetic square root of the dimension of the key vector Key; For a set of n input elements x=(x1,…,x n ), a set of outputs A=(A1,…,A n ), where the i-th element A i The expression formula is as follows: Among them, x i represents an input x of n elements = (x1,…,x n ), the i-th element in j represents an input x of n elements = (x1,…,x n ), W Q , W K represents the weight matrix, x i With W Q , W K The weight matrices are multiplied to obtain the query vector and key vector associated with them; e ij Represents x i With x j Attention scores between The self-attention with relative position representation is to modify e in the above formula ij As shown below: The relative position is introduced in the above formula to represent w i-j It means that for a one-dimensional ECG feature map of length L, when using a multi-head attention mechanism, each head has a trainable parameter P of length 2L-1 = (P1, ..., P 2L-1 ), when calculating the relative position offset between the i-th and j-th points in the one-dimensional ECG feature map, the i-j+Lth element P in P is selected i-j+L As the w i-j The value of; 1≤i≤L, 1≤j≤L; The doctor end is used to receive the pre-processed ECG signal and the classification result of the myocardial infarction position, and visualize the ECG waveform and the classification result of the myocardial infarction position in real time.
2. The myocardial infarction location system in remote cardiac intervention surgery according to claim 1, characterized in that: The bneck module first uses a one-dimensional convolution layer with a convolution kernel size of 1 and a step size of 1 to increase the number of channels of the feature map and ensure that the length of the one-dimensional feature map remains unchanged, and then uses the BN layer for normalization, and then uses the nonlinear activation function Nonelinear; secondly, depthwise convolution is used for each channel of the feature map, and there will be a corresponding different single-channel convolution kernel for each channel to perform a one-dimensional convolution operation on each channel. After the depthwise convolution, the BN layer and the Nonelinear activation function are also used, followed by a pointwise convolution with a convolution kernel size of 1 and a step size of 1. convolution performs point-by-point one-dimensional convolution operations on the previously output feature map; after depthwise convolution, the BN layer is used for normalization, and then the SENet module is used to perform squeeze and excitation operations to implement the channel attention mechanism; among them, the squeeze operation is implemented through global average pooling, and the excitation operation first reduces the number of channels to 1 / 4 of the number of channels of the feature map input to the SENet module through a one-dimensional convolution layer with a convolution kernel size of 1 and a step size of 1, thereby reducing the amount of calculation, and after normalization through the BN layer and activation by the ReLU function, a one-dimensional convolution layer with a convolution kernel size of 1 and a step size of 1 is used to restore the number of channels to the number of channels of the feature map input to the SENet module, and then the hsigmoid(x) function is used for activation to obtain the feature map, which is the weight of each channel of the feature map initially input to the SENet module learned by the model, and it is multiplied with the original input based on the channel to obtain the feature map based on channel attention; In the bneck module, the residual connection shortcut is only available when the depthwise convolution kernel step size is 1.
3. The myocardial infarction location system in remote cardiac intervention surgery according to claim 1, characterized in that: The branch attention module first multiplies the input feature map A and its transpose B to obtain a matrix C, then takes the maximum value of each row in C to replace the other values of each row to obtain D, subtracts C from D to obtain an attention matrix E, uses the Softmax function to convert the matrix E into a weight matrix F, multiplies F and A to obtain a feature map G, multiplies G by a trainable variable β to obtain H, and then adds H and A to obtain the result after the branch attention operation.
4. The myocardial infarction location system in remote cardiac intervention surgery according to any one of claims 1 to 3, characterized in that: The multi-branch Mobi-Trans myocardial infarction location classification model is a trained multi-branch Mobi-Trans myocardial infarction location classification model; The training process is: denoising the 12-lead ECG signals with myocardial infarction location labels collected from different myocardial infarction patients and annotated by professional doctors, identifying the R peak and segmenting it into heart beats, downsampling the segmented heart beats to 320 sampling points; and using it as a data set to train a multi-branch Mobi-Trans myocardial infarction location classification model; and stopping the training when the loss on the validation set no longer decreases.
5. A method for locating myocardial infarction in remote cardiac intervention surgery, applied to the system according to any one of claims 1 to 4; characterized in that: The following steps are involved: Step 1: Acquire a 12-lead ECG signal of a preset length collected from a patient undergoing cardiac intervention surgery; Step 2: De-noise each lead ECG signal in the 12-lead ECG signal of preset length, identify the R peak and segment it into heart beats, and downsample the segmented heart beats to 320 sampling points; Step 3: Input the output of step 2 into the 12 corresponding branches in the multi-branch Mobi-Trans myocardial infarction location classification model to obtain the classification result of the myocardial infarction location.
Citation Information
Patent Citations
Heart artery induction pulse taking training device and method allowing remote reproduction
CN103426351A
Machine-learning-based electrocardiosignal classification method, machine-learning-based electrocardiosignal classification system, terminal and storage medium
CN111657925A
Mobile three-lead cardiac monitoring device and method for automated diagnostics
US20160296132A1
KR20190141326A
