Method for realizing cardiac transmembrane potential reconstruction by 12-lead electrocardiogram based on physics prior combined with deep learning framework
Through a deep learning framework based on physics priors, combined with 12-lead electrocardiogram technology, the non-uniqueness and complex data processing problems of cardiac transmembrane potential reconstruction are solved, achieving more efficient and accurate acquisition of cardiac electrophysiological information, which is suitable for clinical practice. application.
Patent Information
- Application Number
- CN202410748197.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-11
- Publication Date
- 2024-10-01
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing non-invasive ECG technology has non-uniqueness and instability in reconstructing cardiac transmembrane potential, and the high number of leads leads to complex data processing and high cost, which limits its application scope.
A 12-lead electrocardiogram method based on physics priors combined with a deep learning framework is used to build a personalized heart-trunk geometric model through ECGSim simulation software, and the boundary element method is used to calculate the transfer matrix, combined with a cross-attention mechanism, a spatial feature encoding module and time Feature encoding module builds a deep learning network to reconstruct cardiac transmembrane potential.
It improves the precision and accuracy of cardiac transmembrane potential reconstruction, simplifies the data processing process, reduces costs, is suitable for application needs in clinical environments, and enhances the accuracy and therapeutic effect of heart disease diagnosis.
Smart Images

Figure CN118717138A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of ECG inverse problems, and specifically relates to a method for reconstructing cardiac transmembrane potentials using a 12-lead electrocardiogram based on physics priors combined with a deep learning framework. Background Art
[0002] With the rapid advancement of computer technology and clinical medicine, the diagnostic methods for heart disease are becoming increasingly diverse, mainly divided into two categories: invasive and non-invasive. Invasive measurement methods, such as the intracavitary electrophysiological mapping system represented by the CARTO and Ensite systems, deliver electrodes into the heart through a catheter, which can accurately locate the catheter, collect cardiac electrical signals at the corresponding position, and construct a three-dimensional electroanatomical model of the heart. Although this method can provide very accurate information on cardiac electrical activity, its invasive method has a greater surgical risk and can stimulate the myocardium, which may cause fatal arrhythmias and even sudden death.
[0003] In order to reduce the risk, non-invasive measurement methods have been developed, that is, non-invasive electrophysiological imaging technology, such as electrocardiographic imaging (ECGI), which uses surface ECG signals to non-invasively infer cardiac electrophysiological information, including transmembrane potential (TMP). This technology can fully understand the electrophysiological activity of the heart, help diagnose arrhythmias, and locate ischemia or scar tissue.
[0004] However, there is an ill-posed problem in reconstructing TMP from body surface potential mapping (BSP), that is, the solution obtained is non-unique and unstable, and additional constraints are usually required to ensure the uniqueness and physiological significance of the solution. Another challenge is that most of these methods are based on surface potential measurement data of more than 64 leads. Although more leads mean higher spatiotemporal resolution, this means complex data processing and requirements for professionals. In practical applications, such equipment has a relatively limited scope of use due to its high price and operational technology requirements.
[0005] In recent years, deep learning technology has been applied in many key fields such as computer vision, natural language processing and medical image reconstruction. This technology can reveal complex relationships and patterns in data by analyzing and training large data sets. It is particularly good at processing high-dimensional and complex structured data, such as images and time series signals. Its main advantage lies in its ability to automatically extract features, which means that it can identify and extract key features from large amounts of raw data without manually designing feature extraction algorithms. This feature can not only help improve the efficiency and accuracy of cardiac electrophysiology inverse problem processing, but also reduce reliance on manual parameter adjustment, thus providing a new and efficient way to solve the ill-posed inverse problem.
[0006] [1]Jiang X, Toloubidokhti M, Bergquist J, et al. Improving Generalization by Learning Geometry-Dependent and Physics-Based Reconstruction of ImageSequences[J]. IEEE Transactions on Medical Imaging, 2022, 42(2): 403-415.
[0007] [2]Mu L, Liu H. Cardiac transmembrane potential imaging with GCN based iterative soft threshold network[C] / / Medical Image Computing and ComputerAssisted Intervention–MICCAI2021.2021:547-556. Summary of the invention
[0008] Based on the above, the present invention provides a method for reconstructing cardiac transmembrane potentials using a 12-lead electrocardiogram based on physics priors combined with a deep learning framework, which is a more widely used and cost-effective alternative in clinical practice. Combined with physics priors, pathological properties can be overcome and the accuracy of reconstructed TMP can be improved. The present invention is achieved through the following technical solutions:
[0009] A method for reconstructing cardiac transmembrane potentials using a 12-lead electrocardiogram based on physics priors combined with a deep learning framework comprises the following steps:
[0010] 1) using the personalized heart-trunk geometric model in the ECGSim simulation software, modeling the model using the boundary element method, and calculating the transfer matrix H, wherein the personalized heart-trunk geometric model includes a heart geometric model and a trunk geometric model;
[0011] 2) In the ECGSim simulation software, the heart geometric model is represented by a triangular mesh structure, which allows the geometric characteristics of the heart surface to be defined by the connection relationship between vertices. Based on the vertex connectivity of the triangular mesh, an adjacency matrix A is constructed, and the adjacency matrix A is used to represent the mutual connection status between vertices in the heart geometric model;
[0012] 3) In the cardiac transmembrane potential parameter interface of the ECGSim simulation software, adjust the action potential amplitude, excitation duration, activation time, resting potential value and other parameters to simulate various forms of cardiac transmembrane potential U;
[0013] 4) Using the transfer matrix H and the cardiac transmembrane potential U to perform forward process calculation, 12-lead body surface potential data Φ are obtained;
[0014] 5) repeating steps 3) and 4) to obtain a large number of samples, each sample comprising 12-lead body surface potential data Φ and corresponding cardiac transmembrane potential U;
[0015] 6) Divide all samples into training set, test set and validation set;
[0016] 7) Constructing a deep learning framework based on physics priors, the framework consists of four modules, namely Inverse-block, Spatial-Encoder, Temporal-Encoder, and Prediction. The first module obtains the preliminary reconstruction value X0 of the cardiac transmembrane potential through the input value of the network; the second module is the spatial feature encoding module Spatial-Encoder, which is used to extract spatial features of the preliminary reconstruction value X0 of the cardiac transmembrane potential, including global spatial features and local spatial features, and fuse them to obtain a spatial feature vector; the third module is the temporal feature encoding module Temporal-Encoder, which is used to extract temporal features and obtain a spatiotemporal feature vector; finally, the reconstructed cardiac transmembrane potential is obtained through the prediction layer Prediction;
[0017] 8) Using the 12-lead body surface potential data Φ and transfer matrix H in the training set samples as network input, reconstructing the cardiac transmembrane potential, and training the network framework using an unsupervised method;
[0018] 9) The network framework was verified using the validation set samples, the network model with the smallest mean square error on the validation set was selected as the final network model, and the cardiac transmembrane potential was reconstructed for the test set samples.
[0019] As a further improvement, the process of constructing an adjacency matrix A in step 2) of the present invention is as follows:
[0020] a) creating an n×n matrix for each vertex pair in the heart geometry model, where n represents the total number of vertices, and initializing all matrix elements to 0;
[0021] b) Traverse all triangles in the triangle mesh. For each pair of vertices of the triangle, if they share a common edge, the corresponding position in the adjacency matrix is set to 1 to indicate the connection relationship.
[0022] As a further improvement, the expression for the forward process calculation in step 4) of the present invention is as follows:
[0023] Φ=HU
[0024] Among them: Φ is the 12-lead body surface potential data, and H is the transfer matrix.
[0025] As a further improvement, the 12-lead body surface potential data Φ input in step 8) of the present invention first passes through a linear layer to expand its feature dimension; the transfer matrix H calculates its pseudo-inverse pinv(H), and then passes through a linear layer to expand its feature dimension.
[0026] As a further improvement, the preliminary reconstruction value X0 of the cardiac transmembrane potential obtained in step 7) of the present invention is realized by using a cross-attention mechanism. The input of the cross-attention is divided into three terminals, namely "key" (K), "value" (V), and "query" (Q). The 12-lead body surface potential data Φ is mapped to K and V, and the pinv (H) data is mapped to Q. The cross-attention calculation is as follows:
[0027]
[0028] Among them, d is the feature dimension.
[0029] As a further improvement, the spatial feature encoding module in step 7) of the present invention is composed of a spatial attention mechanism and a graph convolution, and the preliminary reconstruction value X0 of the cardiac transmembrane potential passes through the spatial self-attention layer and the graph convolution layer respectively to obtain global spatial features and local spatial features.
[0030] As a further improvement, the method for fusing the global spatial features and local spatial features described in step 7) of the present invention is: respectively passing through two d×1 linear layers, then adding and passing through a sigmoid activation layer to obtain a weight g, and this weight g is used to allocate the proportion of global and local spatial features to obtain the final spatial feature vector.
[0031] As a further improvement, the spatial feature vector obtained in step 7) of the present invention passes through a layer of time feature encoding module, which is composed of a time self-attention mechanism to extract time features and obtain a spatiotemporal feature vector. The prediction layer in step 7) is composed of a linear layer d×1, which transforms the dimension of the spatiotemporal feature vector to obtain a reconstructed cardiac transmembrane potential.
[0032] As a further improvement, the process of training the network framework using an unsupervised method in step 8) of the present invention is specifically as follows:
[0033] 8.1 Initialize the network parameters of the entire network model, initialize the learning rate, maximum number of iterations, optimizer and hyperparameters;
[0034] 8.2 After initializing the network parameters, the Φ and transfer matrix H in the training set samples are input into the network model. The network model forward propagates and outputs the reconstructed cardiac transmembrane potential U, and the loss function L is calculated, where the loss function L is as follows:
[0035]
[0036] A is the adjacency matrix, λ is the regularization parameter;
[0037] 8.3 According to the loss function L, the network parameters are updated using gradient descent. The network model is verified using the validation set during training. The training is completed when the loss function converges to the minimum or the number of training iterations reaches the maximum number.
[0038] As a further improvement, step 9) of the present invention uses validation set samples to validate the network framework, uses the network model with the smallest mean square error on the validation set as the final network model, and reconstructs the cardiac transmembrane potential of the test set samples.
[0039] The beneficial effects of the present invention are as follows:
[0040] The present invention proposes an innovative method that combines physical priors and deep learning technology to efficiently reconstruct cardiac transmembrane potentials from 12-lead electrocardiograms. The method includes three key steps: using the transfer matrix H and the cross-attention mechanism to obtain the preliminary reconstruction value of the cardiac transmembrane potential. The matrix embeds physical prior knowledge, and combining this prior knowledge is conducive to improving the reconstruction accuracy; by encoding the triangular mesh structure of the heart surface, combined with graph convolution to efficiently extract the spatial features of the heart. This method can achieve accurate spatial feature mapping for different cardiac geometric forms. And the temporal attention mechanism can realize the encoding processing of temporal features. Different modules cooperate with each other to overcome pathological conditions and improve the accuracy of reconstruction. After experimental comparison, the method of combining the spatiotemporal feature encoding module of the present invention is significantly better than the traditional reverse initialization module in terms of reconstruction effect, which verifies the effectiveness and superiority of the method of the present invention.
[0041] Since the method of the present invention is based only on 12-lead ECG, the data processing process is simplified, making it more suitable for application requirements in clinical environments, and having high practicality and convenient operation. The method of the invention is expected to bring breakthroughs in the field of diagnosis and treatment of heart disease, and has broad market application prospects and significant economic benefits. By providing more accurate cardiac electrophysiological information, the present invention helps to improve the diagnostic accuracy and treatment effect of heart disease patients, and has important social value and clinical significance. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 A schematic diagram of a process for reconstructing cardiac transmembrane potential from a 12-lead electrocardiogram based on physical priors and a deep learning network in the present invention;
[0043] Figure 2 is a network structure diagram of the present invention;
[0044] Figure 3 The following are the reconstruction results of the test under different lead numbers. DETAILED DESCRIPTION
[0045] In order to describe the present invention more specifically, the technical solution of the present invention is described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0046] The present invention discloses a method for reconstructing cardiac transmembrane potentials using a 12-lead electrocardiogram based on physics priors combined with a deep learning framework, comprising the following steps:
[0047] Training phase:
[0048] (1) Constructing simulation data
[0049] In order to simulate cardiac electrophysiological activity, the present invention uses the built-in personalized heart-trunk geometric model of ECGSim simulation software. The model is modeled using the boundary element method, and the transfer matrix H is calculated and obtained; the personalized heart-trunk geometric model includes a heart geometric model and a trunk geometric model.
[0050] (2) In the ECGSim simulation software, the personalized heart geometry model is represented by a triangular mesh structure. The structure allows the geometric characteristics of the heart surface to be defined by the connection relationship between vertices. Based on the vertex connectivity of the triangular mesh, an adjacency matrix A is constructed. The adjacency matrix A is used to represent the interconnection status between vertices in the heart geometry model.
[0051] (3) Through the transmembrane potential parameter interface of ECGSim, the action potential amplitude, excitation duration, activation time, and resting potential value can be adjusted to accurately control the simulation process. The model can set myocardial infarction areas of different sizes and locations to generate a variety of simulation data sets including myocardial infarction, ectopic pacing, and their combined states. The infarction area size is 2-10mm, including transmural and non-transmural infarctions. Ectopic pacing is simulated by applying pacing signals at different parts of the heart.
[0052] (4) Using the transfer matrix H and the simulated cardiac transmembrane potential data, a forward process calculation is performed to obtain the 12-lead body surface potential data Φ. The forward process calculation process is as follows:
[0053] Φ=HU
[0054] Where: Φ∈R M×N is the body surface measurement data, H∈R M×N is the transmission matrix, M is the dimension of reconstructed TMP, and N is 12.
[0055] (5) repeating steps (3) and (4) to obtain a large number of samples, each sample comprising the cardiac transmembrane potential U and the corresponding surface potential Φ;
[0056] (6) Divide the above samples into training set, validation set and test set in a ratio of 8:1:1.
[0057] (7) Build a network framework based on physics combined with deep learning, Figure 2 The following is a network structure diagram. The structure can be regarded as four modules working together. The following four modules are introduced separately:
[0058] 1. Reverse reconstruction module
[0059] The module consists of cross-attention, and the transfer matrix H encodes physical information such as the geometric structure and conductivity of the heart-trunk. Therefore, the H matrix is used as the prior information of the inverse reconstruction process to reconstruct the TMP. Where pinv(H)∈RM×N Represents the pseudo-inverse of the transfer matrix H, N represents the number of leads, and M represents the number of reconstructed cardiac nodes. The output of pinv(H) after linear transformation is used as the Q end of the attention layer, with an output dimension of 512. The input BSP data is linearly transformed to obtain a feature vector Y0 with a dimension of 512, which is mapped to the V and K inputs.
[0060] By calculating the inner product of the V end and the K end, we get the attention matrix, which is a matrix with a dimension of R T×M×N The matrix is a matrix of time, T is time, and at each moment, it encodes the correlation between the BSP and H matrices. Then, the attention matrix is multiplied by the input feature vector to obtain the preliminary reconstruction value X0. The cross attention matrix calculation formula is as follows:
[0061]
[0062] The above attention calculation process is performed in four subspaces, each with a dimension of 128. After the calculation is completed, the results of each subspace are concatenated to obtain the final feature vector.
[0063] Add&Norm includes residual connection and layer normalization, which is expressed as:
[0064] Add&Norm(x)=LayerNorm(x+F(x))
[0065] Among them: LayerNorm() represents layer normalization, which normalizes different channels of the same sample, and F(x) represents the input x calculated by Multi-HeadAttention or FeedForward.
[0066] FFN is to perform two linear transformations on the result, which can be expressed as:
[0067] FFN(x)=max(0,xW1+b1)W2+b2
[0068] 2. Spatial feature encoding module
[0069] In order to enhance the spatial accuracy of 3D reconstruction results, the present invention develops a spatial encoding module which consists of two key components: spatial attention mechanism and graph convolutional network.
[0070] Spatial attention mechanism: This part is designed to capture and learn the spatial global features in the image. By focusing on important areas within the entire heart geometry, the spatial attention mechanism helps the model better understand the overall spatial structure of the heart.
[0071] Graph convolutional network: Using the Laplacian matrix to build connections between neighboring nodes, the graph convolutional network focuses on aggregating the feature information of adjacent nodes. This process enhances the model's ability to capture details by extracting local spatial features. The graph convolution operation can be defined as:
[0072]
[0073] In this formula: X0 represents the input feature vector. σ(·) is a nonlinear activation function. The endocardium and epicardium of the heart are modeled as triangular mesh structures, from which the graph is constructed and the spatiotemporal variables of TMP are reconstructed on this specific geometric domain. A is the sum of the graph adjacency matrix and the identity matrix. D is the degree matrix of A, whose diagonal elements are equal to the degree of the node (i.e., the number of neighbors of the node).
[0074] Specifically, the preliminary reconstruction result X0 is first mapped to Q through a linear mapping layer. 0 ,K 0 ,V 0 , each vector has a dimension of 512. Then, in Q 0 and K 0 The inner product is calculated at the end to obtain the spatial attention matrix. The spatial attention matrix is further combined with V 0 The matrix multiplication operation is performed on the end to obtain the feature vector X that encodes the global spatial information. A :
[0075]
[0076] The spatial attention calculation is still performed in 4 subspaces, each with a dimension of 128.
[0077] In order to aggregate global spatial attention and local spatial features, a gating mechanism is introduced to learn weight parameters through the network to allocate weights. The specific calculation is as follows:
[0078] g = sigmoid(f g (X G )+f a (X A ))
[0079] X S =g(X G )+(1-g)X A
[0080] Where X G , X A The features extracted by the graph convolution module and the spatial attention module are respectively subjected to linear transformation f g (·), f a(·), the adaptive parameter g is obtained through the sigmoid layer, and the local and non-local spatial features are allocated according to the parameter. Then, the vector X of the encoded spatial features is obtained through the Add&Norm, FFN, and Add&Norm layers. S .
[0081] 3. Temporal feature encoding module
[0082] The temporal attention mechanism calculation formula is expressed as follows:
[0083]
[0084] First, the result of the spatial eigenvector X S Through the linear mapping layer, they are mapped to Q s , K s , V s , each vector has a dimension of 512. Then, in Q s and K s The inner product is calculated at the end to obtain the spatial attention matrix. The spatial attention matrix is further combined with V s The matrix multiplication operation is performed on the end, and then through the Add&Norm, FFN, and Add&Norm layers, the feature vector X encoding the spatiotemporal information is obtained. ST :
[0085] The above temporal attention calculations are performed in four subspaces, each with a dimension of 128.
[0086] (3) The training process of the entire network framework is:
[0087] 3.1 Initialize the network parameters of the entire model, including the bias vector and weight matrix of each layer, learning rate, maximum number of iterations, and optimizer;
[0088] 3.2 After initializing the network parameters, the samples in the training set are The transmission matrix H is input into the model, and the model forward propagation output obtains the reconstructed cardiac transmembrane potential U, and the loss function L between the prediction result and the label is calculated; the loss function L is as follows:
[0089]
[0090] A is the adjacency matrix and λ is the regularization parameter.
[0091] 3.3 According to the loss function L, the network parameters are updated using gradient descent. The validation set is used to verify the network model during training. The training is completed when the loss function converges to the minimum or the number of training iterations reaches the maximum number.
[0092] 4. Prediction layer
[0093] The prediction layer consists of a linear layer d×1, which transforms the spatiotemporal feature vector to obtain the reconstructed cardiac transmembrane potential.
[0094] Reasoning Phase
[0095] (1) Obtain the cardiac transmembrane potential U through ECGSim simulation.
[0096] (2) The 12-lead body surface measurement data Φ is obtained through forward process calculation
[0097] (3) Substitute Φ and H to obtain the reconstructed cardiac transmembrane potential.
[0098] (4) Calculate indicators such as the mean square error and correlation coefficient between the reconstructed transmembrane potential and the true cardiac transmembrane potential to evaluate the network performance.
[0099] The effectiveness of the present invention is verified based on simulation experiments.
[0100] The present invention is based on 10,000 sets of simulation data, including ectopic pacing data and myocardial infarction data, and the ratio of the training set, the validation set, and the test set is 8:1:1.
[0101] The neural network is built on the Pytorch platform, the operating environment is python3.8, and the GP model is NVIDIAGeForceGTX3090. The optimization algorithm uses the Adam algorithm, the batch size is 1, 100 training rounds, and the learning rate is 1e -5 , the 100th to 200th training rounds, the learning rate is 1e -6 , use the best epoch of the validation set for evaluation.
[0102] Select the reconstruction value at different times, such as Figure 3 As shown, from top to bottom are different moments, from left to right are reconstruction methods under different numbers of leads, and the comparison method is SVS [1] and GISTA [2] .
[0103] Table 1 Comparison of reconstruction results
[0104]
[0105] Table 2 Improvement of reconstruction results by adding spatial coding module (ST) and temporal coding module (TE)
[0106]
[0107] The above description of the embodiments is to facilitate the understanding and application of the present invention by those skilled in the art. It is obvious that those skilled in the art can easily make various modifications to the above embodiments and apply the general principles described herein to other embodiments without creative work. Therefore, the present invention is not limited to the above embodiments. Improvements and modifications made by those skilled in the art to the present invention based on the disclosure of the present invention should be within the protection scope of the present invention.
Claims
1. A method for reconstructing cardiac transmembrane potentials using a 12-lead electrocardiogram based on physics priors combined with a deep learning framework, characterized in that: The steps include: 1) using the personalized heart-trunk geometric model in the ECGSim simulation software, modeling the model using the boundary element method, and calculating the transfer matrix H, wherein the personalized heart-trunk geometric model includes a heart geometric model and a trunk geometric model; 2) In the ECGSim simulation software, the heart geometric model is represented by a triangular mesh structure, which allows the geometric characteristics of the heart surface to be defined by the connection relationship between vertices. Based on the vertex connectivity of the triangular mesh, an adjacency matrix A is constructed, and the adjacency matrix A is used to represent the mutual connection status between vertices in the heart geometric model; 3) In the cardiac transmembrane potential parameter interface of the ECGSim simulation software, adjust the action potential amplitude, excitation duration, activation time, resting potential value and other parameters to simulate various forms of cardiac transmembrane potential U; 4) Using the transfer matrix H and the cardiac transmembrane potential U to perform forward process calculation, 12-lead body surface potential data Φ are obtained; 5) repeating steps 3) and 4) to obtain a large number of samples, each sample comprising 12-lead body surface potential data Φ and corresponding cardiac transmembrane potential U; 6) Divide all samples into training set, test set and validation set; 7) Constructing a deep learning framework based on physics priors, the framework consists of four modules, namely Inverse-block, Spatial-Encoder, Temporal-Encoder, and Prediction. The first module obtains the preliminary reconstruction value X0 of the cardiac transmembrane potential through the input value of the network; the second module is the spatial feature encoding module Spatial-Encoder, which is used to extract spatial features of the preliminary reconstruction value X0 of the cardiac transmembrane potential, including global spatial features and local spatial features, and fuse them to obtain a spatial feature vector; the third module is the temporal feature encoding module Temporal-Encoder, which is used to extract temporal features and obtain a spatiotemporal feature vector; finally, the reconstructed cardiac transmembrane potential is obtained through the prediction layer Prediction; 8) Using the 12-lead body surface potential data Φ and transfer matrix H in the training set samples as network input, reconstructing the cardiac transmembrane potential, and training the network framework using an unsupervised method; 9) The network framework was verified using the validation set samples, the network model with the smallest mean square error on the validation set was selected as the final network model, and the cardiac transmembrane potential was reconstructed for the test set samples.
2. The cardiac transmembrane potential reconstruction method according to claim 1, characterized in that: The process of constructing an adjacency matrix A in step 2) is as follows: 1) Create an n×n matrix for each vertex pair in the heart geometry model, where n represents the total number of vertices, and initialize all matrix elements to 0; 2) Traverse all triangles in the triangle mesh. For each pair of vertices of the triangle, if they share a common edge, the corresponding position in the adjacency matrix is set to 1 to indicate the connection relationship.
3. The cardiac transmembrane potential reconstruction method according to claim 1, characterized in that: The expression for the forward process calculation in step 4) is as follows: Φ=HU Among them: Φ is the 12-lead body surface potential data, and H is the transfer matrix.
4. The cardiac transmembrane potential reconstruction method according to claim 1, characterized in that: The 12-lead body surface potential data Φ input in step 8) first passes through a linear layer to transform its feature dimension expansion; The transfer matrix H calculates its pseudo-inverse pinv(H), and then expands its feature dimension through a linear layer.
5. The cardiac transmembrane potential reconstruction method according to claim 1, 2, 3 or 4, characterized in that: The preliminary reconstruction value X0 of the cardiac transmembrane potential obtained in step 7) is realized by using the cross attention mechanism. The input of the cross attention is divided into three terminals, namely "key" (K), "value" (V), and "query" (Q). The 12-lead body surface potential data Φ is mapped to K and V, and the pinv (H) data is mapped to Q. The cross attention calculation is as follows: Among them, d is the feature dimension.
6. The cardiac transmembrane potential reconstruction method according to claim 5, characterized in that: The spatial feature encoding module in step 7) is composed of a spatial attention mechanism and a graph convolution. The preliminary reconstruction value X0 of the cardiac transmembrane potential passes through the spatial self-attention layer and the graph convolution layer respectively to obtain global spatial features and local spatial features.
7. The cardiac transmembrane potential reconstruction method according to claim 6, characterized in that: The method for fusing the global spatial features and the local spatial features described in step 7) is: passing through two d×1 linear layers respectively, adding and passing through a sigmoid activation layer to obtain a weight g, and this weight g is used to allocate the proportion of global and local spatial features to obtain the final spatial feature vector.
8. The cardiac transmembrane potential reconstruction method according to claim 7, characterized in that: The spatial feature vector obtained in step 7) passes through a layer of time feature encoding module, which is composed of a time self-attention mechanism and is used to extract time features to obtain a spatiotemporal feature vector. The prediction layer in step 7) is composed of a linear layer d×1, which transforms the spatiotemporal feature vector in dimension to obtain a reconstructed cardiac transmembrane potential.
9. The cardiac transmembrane potential reconstruction method according to claim 1 or 2 or 3 or 4 or 6 or 7 or 8, characterized in that: The process of step 8) using an unsupervised method to train the network framework is specifically as follows: 8.1 Initialize the network parameters of the entire network model, initialize the learning rate, maximum number of iterations, optimizer and hyperparameters; 8.2 After initializing the network parameters, the Φ and transfer matrix H in the training set samples are input into the network model. The network model forward propagates and outputs the reconstructed cardiac transmembrane potential U, and the loss function L is calculated, where the loss function L is as follows: A is the adjacency matrix, λ is the regularization parameter; 8.3 According to the loss function L, the network parameters are updated using gradient descent. The network model is verified using the validation set during training. The training is completed when the loss function converges to the minimum or the number of training iterations reaches the maximum number.
10. The cardiac transmembrane potential reconstruction method according to claim 9, characterized in that: The step 9) verifies the network framework using the validation set samples, takes the network model with the smallest mean square error on the validation set as the final network model, and reconstructs the cardiac transmembrane potential on the test set samples.
Citation Information
Patent Citations
Noninvasive myocardial transmembrane potential reconstruction and abnormal point positioning method
CN115530841A
Cardiac transmembrane potential imaging method based on electrocardiogram combined physiological model
CN117557667A
Cited By
PICC (Peripherally Inserted Central Catheter) tip precise navigation fixing method and system based on electrocardiogram real-time positioning
CN120919492A
