Myocardial ischemia prediction method and device based on multi-lead attention, medium and product

Through the combination of multi-lead ECG signal data preprocessing and deep learning models, the attention mechanism is used to weight the feature data, which solves the prediction problem caused by the difference in lead importance in traditional methods and achieves more accurate and interpretable predictions. Myocardial ischemia prediction.

CN118592893APending Publication Date: 2024-09-06TIANJIN POLYTECHNIC UNIV
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410650426.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-24
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Traditional myocardial ischemia prediction methods ignore the importance differences between different leads, resulting in limited accuracy and interpretability of prediction results.

Method used

A method based on multi-lead attention is used to preprocess multi-lead ECG signal data, and deep learning models, including separable convolutional neural networks, channel attention networks and fully connected neural networks, are used to extract spatiotemporal features. The data is weighted and processed, the prediction results are output, and the final result is determined through confidence calculation.

Benefits of technology

Improves the accuracy and interpretability of myocardial ischemia prediction, dynamically learns the importance of each lead, enhances the sensitivity and specificity of prediction, and optimizes prediction results through confidence assessment to provide more reliable myocardial ischemia predict.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118592893A
    Figure CN118592893A
Patent Text Reader

Abstract

The invention discloses a myocardial ischemia prediction method and device based on multi-lead attention, a medium and a product, and relates to the field of electrocardiosignal prediction. The method comprises the following steps: acquiring multi-lead electrocardiosignal data; preprocessing the multi-lead electrocardiosignal data to obtain multi-lead electrocardiosignal processing data; inputting the multi-lead electrocardiosignal processing data into a deep learning model, and outputting a prediction result; wherein the separable convolutional neural network performs feature extraction on the multi-lead electrocardiosignal processing data to obtain spatial-temporal feature data; the channel attention network performs weighting processing on the spatio-temporal characteristic data based on an attention mechanism to obtain weighted data; the full-connection neural network outputs a prediction result according to the weighted data; performing confidence calculation on the prediction result, and determining a final prediction result according to a calculation result; the accuracy of the prediction result can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of electrocardiogram signal prediction, and in particular to a method, device, medium and product for predicting myocardial ischemia based on multi-lead attention. Background Art

[0002] Myocardial ischemia is a condition in which myocardial cells are deprived of oxygen due to insufficient blood supply to the myocardium. Timely and accurate prediction of myocardial ischemia is crucial for cardiovascular diagnosis and treatment. Currently, commonly used myocardial ischemia prediction methods are mainly based on electrocardiogram (ECG) data analysis. However, traditional prediction methods often ignore the importance differences between different leads, resulting in limited accuracy and interpretability of prediction results. Summary of the invention

[0003] The purpose of the present invention is to provide a method, device, medium and product for predicting myocardial ischemia based on multi-lead attention, which can improve the accuracy of prediction results.

[0004] To achieve the above object, the present invention provides the following solutions:

[0005] A method for predicting myocardial ischemia based on multi-lead attention, the method comprising:

[0006] Acquire multi-lead ECG signal data; the multi-lead ECG signal data includes: resting ECG data and exercise stress ECG data;

[0007] Preprocessing the multi-lead ECG signal data to obtain multi-lead ECG signal processing data; the preprocessing includes: filtering processing, standardization processing and baseline drift removal processing;

[0008] The multi-lead ECG signal processing data is input into a deep learning model, and a prediction result is output; the deep learning model is trained using an Adam optimization algorithm based on the multi-lead ECG signal processing data with known prediction results; the prediction result is the presence or absence of myocardial ischemia;

[0009] The deep learning model includes a separable convolutional neural network, a channel attention network and a fully connected neural network connected in sequence; the separable convolutional neural network is used to extract features from the multi-lead ECG signal processing data to obtain spatiotemporal feature data; the spatiotemporal feature data is used to characterize the correlation between different leads of the multi-lead ECG signal processing data; the channel attention network is used to perform weighted processing on the spatiotemporal feature data based on the attention mechanism to obtain weighted data; the fully connected neural network is used to output a prediction result based on the weighted data;

[0010] The prediction results are subjected to confidence calculation, and the final prediction results are determined according to the calculation results.

[0011] Optionally, the separable convolutional neural network includes: interconnected deep convolutional layers and point-by-point convolutional layers.

[0012] Optionally, the separable convolutional neural network is used to process the multi-lead ECG signal data, extract features based on a convolution calculation formula, and obtain spatiotemporal feature data;

[0013] The convolution calculation formula is:

[0014]

[0015] Among them, Y(i,j,c') is the value of the c'th channel at position (i,j) in the output tensor; I(i+m-1,j+n-1,c) is the value of the cth channel at position (i+m-1,j+n-1) in the input tensor; K d (m,n,c) is the weight value of the depth convolution kernel on the cth channel; K p (c,c') is the weight value between the cth channel and the c'th channel in the point-by-point convolution kernel; C is the total number of channels; M k is the height of the convolution kernel; N k is the width of the convolution kernel.

[0016] Optionally, the channel attention network includes interconnected global average pooling and fully connected layers.

[0017] Optionally, the channel attention network is used to perform weighted processing on the spatiotemporal feature data based on an attention mechanism and through the attention weights of each lead to obtain weighted data;

[0018] The calculation formula of the attention weight is:

[0019]

[0020] Among them, α i is the attention weight of the ith lead; z i is the output of the fully connected layer; N is the total number of leads; j is the sequence number of the lead.

[0021] A computer device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the above-mentioned method for predicting myocardial ischemia based on multi-lead attention.

[0022] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the above-mentioned myocardial ischemia prediction method based on multi-lead attention.

[0023] A computer program product includes a computer program, which implements the above-mentioned myocardial ischemia prediction method based on multi-lead attention when executed by a processor.

[0024] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:

[0025] The present invention discloses a myocardial ischemia prediction method, device, medium and product based on multi-lead attention, which obtains multi-lead ECG signal data; pre-processes the multi-lead ECG signal data to obtain multi-lead ECG signal processing data; inputs the multi-lead ECG signal processing data into a deep learning model to output a prediction result; wherein a separable convolutional neural network extracts features from the multi-lead ECG signal processing data to obtain spatiotemporal feature data; a channel attention network performs weighted processing on the spatiotemporal feature data based on an attention mechanism to obtain weighted data; a fully connected neural network outputs a prediction result based on the weighted data; a confidence calculation is performed on the prediction result, and a final prediction result is determined based on the calculation result, thereby improving the accuracy of the prediction result. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0027] Figure 1 A schematic flow chart of a method for predicting myocardial ischemia based on multi-lead attention provided by an embodiment of the present invention;

[0028] Figure 2 A schematic diagram of the operation flow of the myocardial ischemia prediction method based on multi-lead attention provided by an embodiment of the present invention in practical application;

[0029] Figure 3 A flow chart of a separable convolutional neural network and multi-channel attention provided for an embodiment of the present invention;

[0030] Figure 4 A schematic diagram of a confidence calculation process provided by an embodiment of the present invention;

[0031] Figure 5 A schematic diagram of experimental results corresponding to the accuracy of the training set provided by an embodiment of the present invention;

[0032] Figure 6 A schematic diagram of experimental results corresponding to the verification set accuracy provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0033] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0034] The purpose of the present invention is to provide a method, device, medium and product for predicting myocardial ischemia based on multi-lead attention, aiming to improve the accuracy of prediction results.

[0035] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0036] Example 1

[0037] like Figure 1 As shown, the myocardial ischemia prediction method based on multi-lead attention in this embodiment includes:

[0038] Step 100: Acquire multi-lead ECG signal data. The multi-lead ECG signal data includes: resting ECG data and exercise stress ECG data.

[0039] Step 200: pre-process the multi-lead ECG signal data to obtain multi-lead ECG signal processing data. The pre-processing includes: filtering processing, standardization processing and baseline drift removal processing.

[0040] Step 300: Input the multi-lead ECG signal processing data into the deep learning model and output the prediction result. The deep learning model is trained using the Adam optimization algorithm based on the multi-lead ECG signal processing data with known prediction results; the prediction result is the presence or absence of myocardial ischemia.

[0041] Among them, the deep learning model includes a separable convolutional neural network, a channel attention network and a fully connected neural network connected in sequence; the separable convolutional neural network is used to extract features of multi-lead ECG signal processing data to obtain spatiotemporal feature data; the spatiotemporal feature data is used to characterize the correlation between different leads of multi-lead ECG signal processing data; the channel attention network is used to perform weighted processing on the spatiotemporal feature data based on the attention mechanism to obtain weighted data; the fully connected neural network is used to output prediction results based on the weighted data.

[0042] Step 400: Calculate the confidence of the prediction result and determine the final prediction result according to the calculation result.

[0043] The separable convolutional neural network consists of interconnected depth convolutional layers and point-by-point convolutional layers.

[0044] The separable convolutional neural network is used to process multi-lead ECG signal data, extract features based on the convolution calculation formula, and obtain spatiotemporal feature data.

[0045] The convolution calculation formula is:

[0046]

[0047] Among them, Y(i,j,c') is the value of the c'th channel at position (i,j) in the output tensor; I(i+m-1,j+n-1,c) is the value of the cth channel at position (i+m-1,j+n-1) in the input tensor; K d (m,n,c) is the weight value of the depth convolution kernel on the cth channel; K p (c,c') is the weight value between the cth channel and the c'th channel in the point-by-point convolution kernel; C is the total number of channels; M k and N k Represents the depth convolution kernel K d The size of , which corresponds to the height and width of the convolution kernel respectively.

[0048] The channel attention network consists of interconnected global average pooling and fully connected layers.

[0049] The channel attention network is used to perform weighted processing on the spatiotemporal feature data based on the attention mechanism and through the attention weights of each lead to obtain weighted data.

[0050] The calculation formula of attention weight is:

[0051]

[0052] Among them, α i is the attention weight of the ith lead; z i is the output of the fully connected layer; N is the total number of leads; j is the sequence number of the lead.

[0053] The present invention aims to provide an accurate and reliable means for predicting myocardial ischemia. By using multi-lead ECG signal data and applying the attention mechanism, myocardial ischemia can be effectively identified, providing an important reference for the early prevention and treatment of cardiovascular diseases. On the one hand, the traditional myocardial ischemia recognition method cannot distinguish between different lead signals, which easily leads to feature redundancy. On the other hand, the prediction results are directly predicted through the model, and the selection of the results is not explainable. In order to make up for these deficiencies, this method combines twelve-lead ECG signals and channel attention mechanisms, uses a separable convolutional neural network to extract the features of each lead, and weights the features of multi-lead ECG signals to distinguish the effectiveness of different lead signals for myocardial ischemia prediction. The results are obtained through a deep learning model to obtain prediction probabilities, and confidence is used as a criterion. The prediction results are optimized through common predictions, thereby providing more accurate myocardial ischemia prediction results.

[0054] Specifically, in practical applications, such as Figure 2 As shown, the corresponding operation steps are as follows:

[0055] Step 1: Obtain multi-lead ECG signal data. Take 12-lead ECG signal data as an example. Collect 12-lead ECG signal data and collect multiple ECG signal data from different sources, including but not limited to resting ECG and exercise stress ECG. These data cover multiple aspects of heart activity and can more comprehensively characterize heart health. And mark the collected data.

[0056] Step 2: Preprocess the collected ECG signal data through data preprocessing, including filtering, removing baseline drift and standardization, to ensure the quality and consistency of the data.

[0057] Step 3: Perform feature extraction. Use the separable convolutional neural network in the deep learning model to extract features from the preprocessed data, that is, extract features from the ECG signal.

[0058] Step 4: Introduce the channel attention mechanism to weight the features, dynamically learn the importance of each lead, and improve the prediction effect of myocardial ischemia.

[0059] Step 5: Perform model training and use the labeled ECG signal dataset to train a deep learning model to learn the association between ECG signal features and myocardial ischemia.

[0060] Step 6: Predict myocardial ischemia and use the trained deep learning model to predict myocardial ischemia. Calculate the confidence of the prediction results, optimize the results according to the confidence, and obtain the final prediction results.

[0061] The data preprocessing in step 2 includes filtering the collected ECG signal data, removing noise, and enhancing the signal to improve the accuracy and reliability of subsequent feature extraction.

[0062] Standardization eliminates unit differences between different features. The standardization formula is as follows:

[0063]

[0064] where x 标准化 is the normalized feature value, x is the original feature value, μ is the average value (mean) of the feature, and σ is the standard deviation of the feature. By subtracting the mean value of the feature from each feature value, this will make the mean of the data 0. Then, divide the result by the standard deviation of the feature to ensure that the standard deviation of the data is 1. This ensures that the features operate on the same scale, which helps improve the stability and training effect of the model.

[0065] The feature extraction in step 3 uses a separable convolutional neural network. The separable convolution operation consists of two parts: depthwise convolution and pointwise convolution. The depthwise convolution performs an independent spatial convolution operation on each input channel, while the pointwise convolution performs a linear combination of the output of the depthwise convolution across channels. This operation can effectively reduce the number of parameters and calculations, improve the efficiency of the model, and help prevent overfitting. Separable convolutional neural networks are often used to process data with a grid structure, such as image data, but can also be applied to process time series data, such as speech and ECG signals. Separable convolution is expressed as follows:

[0066]

[0067] Among them, Y(i,j,c') represents the value of the c'th channel at position (i,j) in the output tensor. I(i+m-1,j+b-1,c) represents the value of the cth channel at position (i+n-1,j+n-1) in the input tensor, and K d (m,n,c) represents the weight value of the depth convolution kernel on the cth channel. K p (c,c') represents the weight value between the c-th channel and the c'-th channel in the point-by-point convolution kernel.

[0068] Through the separable convolutional network, a series of feature maps can be generated, each of which represents different aspects and features of the input signal. These feature maps can capture the spatiotemporal characteristics of the ECG signal, including the correlation and feature information between different leads.

[0069] In practical applications, a 3×3 convolution kernel is used to convolve the 12 lead signal data and extract features, which are recorded as F. CNN (x).

[0070] The channel attention mechanism in step 4 uses global average pooling and fully connected layers to dynamically learn the importance of each lead. By calculating the attention weight α of each lead i , weighting the features so that the model pays more attention to the leads that are most helpful for predicting myocardial ischemia, improving the accuracy and interpretability of the prediction. Specifically, the calculation process of attention weight is as follows:

[0071]

[0072] Among them, α i represents the attention weight of the i-th lead, z i is the output of the fully connected layer, and N is the total number of leads. Then, the features are weighted using the attention weights to obtain the weighted feature representation:

[0073]

[0074] The model will use the weighted features for further prediction or feature representation. The weighted feature representation will emphasize the leads that are most helpful for myocardial ischemia prediction, and these leads have higher attention weights α i , so it will occupy a larger proportion in the weighted features.

[0075] By using the channel attention mechanism to weight features, the model pays more attention to important leads when predicting myocardial ischemia, thereby improving the accuracy of the prediction. In addition, the weighted feature representation makes the model's prediction results more interpretable, because the model's reliance on the prediction can be intuitively inferred from the attention weights. This improves the interpretability of the model and makes it easier for people to understand the model's prediction process and basis.

[0076] In practical applications, the detailed flowchart of the separable convolutional neural network and multi-channel attention module is as follows Figure 3 shown.

[0077] Input the original data x, extract the features through convolution, and get the feature matrix F CNN (x), where c1 and c2 contain 12 channels, for the matrix F CNN (x), along c2 through F sq (·) Perform global average pooling (GAP) to compress the channel [h2,w2]→[1,1] to obtain the global feature vector v. Then, pass F ex (·,w) is weighted, which uses a fully connected layer and activation function to calculate the attention weight of each channel. The weight of the i-th channel is α i =softmax(W α v i +bα ), using the attention weights through F scale (·) Weight the feature matrix of the convolutional layer to obtain the weighted feature matrix

[0078] The model training in step 5 uses a labeled ECG signal dataset and uses the Adam optimization algorithm for model training. The Adam algorithm will calculate the first-order moment estimate (i.e., the exponential moving average of the gradient) and the second-order moment estimate (i.e., the exponential moving average of the square of the gradient) of each parameter, and use these estimates to adjust the learning rate of each parameter. By combining the characteristics of gradient descent and momentum optimization, the learning rate is adaptively adjusted, thereby effectively improving the convergence speed and training effect of the model. The Adam algorithm formula is as follows:

[0079]

[0080] In the above formula, β1 and β2 are matrix estimates of exponential decay rates, which are used to control the decay rates of the first-order moment estimate and the second-order moment estimate; the subscript t represents time, s and v represent the first-order moment estimate and the second-order moment estimate, and the mathematical description of the deviation correction of s and v is shown in the following formula:

[0081]

[0082] where v' s and s' t Represents the deviation correction value of s and v. The mathematical description of the model parameters based on the Adam algorithm is shown in the following formula:

[0083]

[0084] W t+1 is the updated value of the parameter at time step t+1, W t is the current value of the parameter at time step t, ∈ is a small number, usually used to avoid division by zero. The update rule for parameter W in the Adam algorithm. At each time step, estimate v' based on the current gradient s and the second-order moment estimate s' t , and the learning rate α, update the parameter W. Among them, the first-order moment estimate v' s Used to adjust the direction of parameter update, and the second-order moment estimate of the gradient s' t It is used to adjust the update step size.

[0085] For the prediction of myocardial ischemia in step 6, the confidence of the model prediction results can be evaluated by the p value, thereby improving the accuracy and reliability of the prediction.

[0086] The prediction results are calculated for confidence, and the final prediction results are determined based on the calculation results, including:

[0087] The confidence calculation formula is used to calculate according to the prediction result to obtain the calculation result.

[0088] The confidence calculation formula is:

[0089]

[0090] Among them, p_value is the calculation result; CDF() is the confidence function.

[0091] The calculation result is compared with a preset threshold value, and the final prediction result is determined. The preset threshold value can be a value of a significance level.

[0092] Specifically, the prediction results are subjected to p_value calculation, i.e., confidence calculation, where the probability of a positive example (myocardial ischemia), i.e., the probability of myocardial ischemia, is p. represents the prediction output of the model, i.e. the prediction result, n represents the number of samples, and according to the set significance level (e.g., 0.05), it is determined whether p_value is less than the significance level. If p_value is less than the significance level, the null hypothesis is rejected and myocardial ischemia is considered to exist; otherwise, the null hypothesis cannot be rejected and myocardial ischemia is considered to exist. The results are optimized according to the confidence level to obtain the final prediction result, such as Figure 4 The experimental results are shown in Figure 5-Figure 6 shown.

[0093] The present invention can more accurately predict the occurrence and degree of myocardial ischemia. By combining twelve-lead ECG signals and the channel attention mechanism, the method can effectively identify myocardial ischemia and provide an important reference for the early prevention and treatment of cardiovascular diseases. Traditional methods have the problems of difficulty in distinguishing signals from different leads and lack of interpretability of prediction results. The present invention obtains the prediction probability through feature weighting and deep learning models, uses confidence as the criterion, optimizes the prediction results, and improves the accuracy and credibility of the prediction.

[0094] The advantages of the present invention are: 1) combining multi-lead ECG signals and channel attention mechanism to dynamically learn the importance of each lead, thereby improving the accuracy and interpretability of the prediction model; 2) utilizing separable convolutional neural network to extract features, effectively identifying myocardial ischemia with high sensitivity and specificity; 3) performing confidence assessment through common type prediction, optimizing prediction results, providing more reliable and credible myocardial ischemia prediction, and providing clinicians with a more powerful diagnostic basis.

[0095] Example 2

[0096] A computer device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the myocardial ischemia prediction method based on multi-lead attention in Example 1.

[0097] Example 3

[0098] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the myocardial ischemia prediction method based on multi-lead attention in Example 1.

[0099] Example 4

[0100] A computer program product includes a computer program, which implements the myocardial ischemia prediction method based on multi-lead attention in embodiment 1 when executed by a processor.

[0101] Example 5

[0102] A computer device, which may be a database. The computer device includes a processor, a memory, an input / output interface (I / O for short) and a communication interface. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface is connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store pending transactions. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, the myocardial ischemia prediction method based on multi-lead attention in Example 1 is implemented.

[0103] It should be noted that the object information (including but not limited to object device information, object personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in the present invention are all information and data authorized by the object or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0104] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided by the present invention can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided by the present invention may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited thereto. The processor involved in each embodiment provided by the present invention may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited thereto.

[0105] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0106] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of ​​the present invention. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A myocardial ischemia prediction method based on multi-lead attention, characterized in that: The method comprises: Acquire multi-lead ECG signal data; the multi-lead ECG signal data includes: resting ECG data and exercise stress ECG data; Preprocessing the multi-lead ECG signal data to obtain multi-lead ECG signal processing data; the preprocessing includes: filtering processing, standardization processing and baseline drift removal processing; The multi-lead ECG signal processing data is input into a deep learning model, and a prediction result is output; the deep learning model is trained using an Adam optimization algorithm based on the multi-lead ECG signal processing data with known prediction results; the prediction result is the presence or absence of myocardial ischemia; The deep learning model includes a separable convolutional neural network, a channel attention network and a fully connected neural network connected in sequence; the separable convolutional neural network is used to extract features from the multi-lead ECG signal processing data to obtain spatiotemporal feature data; the spatiotemporal feature data is used to characterize the correlation between different leads of the multi-lead ECG signal processing data; the channel attention network is used to perform weighted processing on the spatiotemporal feature data based on the attention mechanism to obtain weighted data; the fully connected neural network is used to output a prediction result based on the weighted data; The prediction results are subjected to confidence calculation, and the final prediction results are determined according to the calculation results.

2. The myocardial ischemia prediction method based on multi-lead attention according to claim 1, characterized in that: The separable convolutional neural network includes: interconnected deep convolutional layers and point-by-point convolutional layers.

3. The myocardial ischemia prediction method based on multi-lead attention according to claim 2, characterized in that: The separable convolutional neural network is used to process the multi-lead ECG signal data and extract features based on the convolution calculation formula to obtain spatiotemporal feature data; The convolution calculation formula is: Among them, Y(i,j,c') is the value of the c'th channel at position (i,j) in the output tensor; I(i+m-1,j+n-1,c) is the value of the cth channel at position (i+m-1,j+n-1) in the input tensor; K d (m,n,c) is the weight value of the depth convolution kernel on the cth channel; K p (c,c') is the weight value between the cth channel and the c'th channel in the point-by-point convolution kernel; C is the total number of channels; M k is the height of the convolution kernel; N k is the width of the convolution kernel.

4. The method for predicting myocardial ischemia based on multi-lead attention according to claim 1, characterized in that: The channel attention network consists of interconnected global average pooling and fully connected layers.

5. The method for predicting myocardial ischemia based on multi-lead attention according to claim 4, characterized in that: The channel attention network is used to perform weighted processing on the spatiotemporal feature data based on the attention mechanism and the attention weight of each lead to obtain weighted data; The calculation formula of the attention weight is: Among them, α i is the attention weight of the ith lead; z i is the output of the fully connected layer; N is the total number of leads; j is the sequence number of the lead.

6. A computer device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the myocardial ischemia prediction method based on multi-lead attention as described in any one of claims 1-5.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for predicting myocardial ischemia based on multi-lead attention described in any one of claims 1 to 5 is implemented.

8. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method for predicting myocardial ischemia based on multi-lead attention described in any one of claims 1 to 5 is implemented.

Citation Information

Cited By

  • Electrocardiosignal processing method and device, computer equipment and storage medium

    CN119008017A

  • Myocardial ischemia detection method and device, electronic equipment and storage medium

    CN121460157A