Abstract
Cardiac electrical imaging often requires the examination of different forward and inverse problem formulations based on mathematical and numerical approximations of the underlying source and the intervening volume conductor that can generate the associated voltages on the surface of the body. If the goal is to recover the source on the heart from body surface potentials, the solution strategy must include numerical techniques that can incorporate appropriate constraints and recover useful solutions, even though the problem is badly posed. Creating complete software solutions to such problems is a daunting undertaking. In order to make such tools more accessible to a broad array of researchers, the Center for Integrative Biomedical Computing (CIBC) has made an ECG forward/inverse toolkit available within the open source SCIRun system. Here we report on three new methods added to the inverse suite of the toolkit. These new algorithms, namely a Total Variation method, a non-decreasing TMP inverse and a spline-based inverse, consist of two inverse methods that take advantage of the temporal structure of the heart potentials and one that leverages the spatial characteristics of the transmembrane potentials. These three methods further expand the possibilities of researchers in cardiology to explore and compare solutions to their particular imaging problem.
1. Introduction
Cardiac electrical imaging often requires the examination of different forward and inverse problem formulations in order to find the methods that best suit the problem of observing a physiological event that is otherwise inaccessible or unethical to explore. One limitation of such modeling methods is that they often require complex models and numerical solutions strategies that are not always available to researchers in cardiology without the advanced computational background required. Additionally, there are further challenges that these methods face associated with the need for detailed geometric models, acquisition of data, and proper validation. Thus additional researchers and groups often develop their own in-house software with years of development incorporated cross-method comparison becomes difficult. These challenges significantly impede research progress in this area and thus its successful application in clinical practice.
To facilitate the access of researchers (and industry) to such methods, the Center for Integrative Biomedical Computing CIBC maintains and expands SCIRun [1]. SCIRun is an open source, problem solving environment that allows access to complex models and algorithms to users through a visual and intuitive programming interface. In particular, the Forward/Inverse Toolkit of SCIRun provides a wide variety of algorithms and sample networks to researchers in the field of cardiology [2].
2. Forward/Inverse Toolkit
The forward problem in electrocardiography computes the potentials that would propagate to the body surface given a specific electrical distribution in the heart. The inverse problem in electrocardiography uses solutions of the forward problem and measurements on the body surface to estimate the cardiac source [3, 4].
The objective of the Forward/Inverse Toolkit is to make available to researchers in cardiology a suit of tools to solve these computational problems. More generally, the SCIRun framework supplies an extensible interface module based environment, where researchers can visually program their algorithms by linking individual modules and pre-existing complex networks. An example of SCIRun in action is shown in Figure 1, with modules that have completed their processes (grey), are currently active (green), and are waiting to execute (yellow).
The toolkit currently provides several methods, both as SCIRun modules and through the built-in MATLAB interface, that solve the computational problems using potential and activation based source models, boundary element (BEM) and finite element methods (FEM) for the numerical approximations, as well as multiple computational and regularization methods for the inverse problem. A summary of the current suite of tools is shown in Table 1.
Table 1.
Forward Tools | Inverse Tools |
---|---|
Potential-based (FEM/BEM) | Potential-based (FEM/BEM) |
Activation-based (FEM/BEM) | Activation-based (FEM/BEM) |
FEM Lead field Calculations | Regularization Methods |
Stiffness Matrix Calculation |
|
To demonstrate the utility of the Forward/Inverse Toolkit, we describe three new additions to the suite. These additions implement three inverse algorithms, two of which can be applied to any dataset given a forward matrix and one that uses an FEM specific implementation. Each one of these algorithms implements a different regularization of the inverse and is solved with a different optimization method.
3. New Additions
As described in Section 2, the inverse problem in electrocardiography tries to solve for the potentials on the heart from the corresponding body surface potentials (BSPs) at time t (yt) and a forward model (A). The difficulties in solving this problem reside in the fact that it is ill-posed and thus highly sensitive to noise. For this reason there is need of introducing regularization to obtain meaningful solutions. Regularization can be introduced through parametrization of the solutions or as an added term in the function to be optimized, but in any case, it should be designed based on the spatial and temporal characterization of the potentials on the heart.
The inverse algorithms implemented in SCIRun that we will discuss in this section use different source models and characterizations of the potentials during the QRS segment. The first one, implements an FEM-based inverse that imposes sparsity on the spatial gradient of the potentials. The other two algorithms take different approaches to the regularization. One imposes non-decreasing transmembrane potentials (TMPs) in time, while the other parametrizes the temporal behavior of the heart surface potentials (HSPs) with a spline approximation.
3.1. Total Variation Inverse
The Total Variation algorithm is a general regularization method for ill-posed problems [5]. These is an implementation based on the work of Wang et al. [6], uses a FEM discretization of the heart and torso geometries to solve for the TMPs on the heart. The assumption behind the application of Total Variation to the inverse problem in electrocardiography is that the potentials on the heart at each time instance can be divided into two areas with a sharp transition between them: an activated zone with positive potentials V+ and a resting zone with negative potentials V−. This spatial characterization of the potentials leads to spatial gradients that are 0 everywhere except for the narrow wavefront where they take relatively high values, thus, these are sparse. This sparse constraint can be implemented by adding a regularization term that also minimizes the l1 norm of the gradient estimation (Equation 1).
(1) |
The network from Figure 1 is the example implementation of Total variation in SCIRun. It is an example of how the tools in SCIRun facilitate creating new pipelines to compute inverse solutions, since it uses multiple modules in SCIRun which, together with the Total Variation algorithm in the MATLAB interface allows to automatically obtain the inverse solutions from a torso and heart geometries and the BSP measurements.
An example of the solutions obtained from this algorithm are shown in Figure 2. Even though the solutions of this algorithm do not have the sharp transitions of real TMPs (on the right), standard Tikhonov regularization methods produce smoother results than those shown here [7].
3.2. Non-Decreasing TMP Inverse
The Non-Decreasing TMP is a BEM-based inverse method that differently from the Total Variation method, considers the time characteristics of the TMPs to regularize the inverse solutions. This algorithm is based on the method introduced by Messnarz et al. in [8]. In their algorithm the authors pose a Tikhonov objective function with the non-decreasing temporal constraint as in (Equation 2), which uses the same notation as in Equation 1.
(2) |
In the original paper, the authors used a standard convex solver. However, for memory efficiency, the current SCIRun implementation of this method uses a tailored ADMM solver in MATLAB [9]. This optimization algorithm allows us to iteratively compute the inverse solutions without prohibitive memory requirements. Solutions from this method present sharp increases in potential at their time of activation in most of the heart, while it also shows well marked wavefronts in space. An example of the potentials obtained is shown in Figure 3.
3.3. Spline Based Inverse
Finally, the Spline-Based method, based on [10], also uses temporal characterization of the heart surface potentials to obtain the inverse solutions. It assumes that the evolution of HSPs and the BSPs can be approximated by a smooth curve in a high dimensional space where the potential at each lead represents a single dimension. Given this description of the potentials, a spline fitting in this high dimensional space smooths out the potentials, eliminating high frequency components that correspond to noise [11]. With the further assumption that the temporal dynamics are preserved from HSPs to BSPs, by just estimating the inverse solutions at the knot points, the algorithm is capable of reconstructing the full time course of the HSPs. Thus the method is implemented in three steps: spline approximation of the BSPs, inverse calculation of the knot points using Tikhonov and reconstruction of full HSPs using the inverse estimated knot points and the temporal dynamics from the initial spline approximation. A typical result is shown in Figure 4. As observed, the solutions from this inverse method are smooth in space and time but show an activation wavefront moving from the early activation nodes to the last ones.
4. Conclusions
These three algorithms exemplify how, with SCIRun, different approaches to the inverse problem in electrocardiography can be tested without requiring advanced knowledge in computational strategies. The interactive programming of SCIRun allows researchers to test distinct approaches that may not have been available to them previously. The Forward/Inverse Toolkit is extensible and is not limited to these algorithms and access to the multiple tested forward and inverse methods listed in Table 1. Moreover, the continuous collaborative efforts and the compatibility of SCIRun with major industry and educational software packages—such as CHASTE [12], CARP [13] and ECGSIM [14] — maintain SCIRun as a generalizable and useful tool for research (and industry) in the future.
CIBC continues expanding and developing the Forward/Inverse Toolkit in SCIRun to give access to researchers to a large body of tools to improve scientific knowledge in cardiac electrophisiology.
Acknowledgements
This work has been funded in part by a grant 8 P41 GM103545-14 from the National Institutes of Health.
References
- 1.SCI-Institute. SCIRun: A Scientific Computing Problem Solving Environment, Scientific Computing and Imaging Institute (SCI) 2014 Download from: http://www.scirun.org. [Google Scholar]
- 2.BM Burton JD Tate BEDSDWDBPvDRM. A toolkit for forward/inverse problems in electrocardiography within the scirun problem solving environment. IEEE EMBS. 2011 doi: 10.1109/IEMBS.2011.6090052. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 3.MacLeod R, Buist M. The forward problem of electrocardiography. Comp. Elec. Springer. 2010 ISBN 9781848820456. [Google Scholar]
- 4.Pullan A, Cheng L, Nash M, Ghodrati A, MacLeod R, Brooks D. The inverse problem of electrocardiography. Comp. Elec. Springer. 2010 ISBN 9781848820456. [Google Scholar]
- 5.Rudin LI, Osher S, Fatemi E. Nonlinear total variation based noise removal algorithms. Physica D Nonlinear Phenomena. 1992;60(14):259–268. ISSN 0167-2789. URL http://www.sciencedirect.com/science/article/pii/016727899290242F. [Google Scholar]
- 6.Wang D, Kirby RM, Macleod RS, Johnson CR. Inverse Electrocardiographic Source Localization of Ischemia: An Optimization Framework and Finite Element Solution. J Comput Phys. 2013 Oct;250:403–424. doi: 10.1016/j.jcp.2013.05.027. ISSN 0021-9991. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 7.Milanič M, Jazbinšek V, Macleod RS, Brooks DH, Hren R. Assessment of regularization techniques for electrocardiographic imaging. J Electrocardiol. 2014;47(1):20–28. doi: 10.1016/j.jelectrocard.2013.10.004. ISSN 1532-8430. URL http://www.ncbi.nlm.nih.gov/pubmed/24369741. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 8.Messnarz B, Tilg B, Modre R, Fischer G, Hanser F. A new spatiotemporal regularization approach for reconstruction of cardiac transmembrane potential patterns. IEEE Trans Biomed Eng. 2004 Feb;51(2):273–281. doi: 10.1109/TBME.2003.820394. ISSN 0018-9294. [DOI] [PubMed] [Google Scholar]
- 9.Boyd S. Distributed Optimization and Statistical Learning via the Alternating Direction Method of Multipliers. Found Trends Mach Learn. 2010;3(1):1–122. ISSN 1935-8237. [Google Scholar]
- 10.Erem B, Coll-Font J, Martinez Orellana RM. Using Transmural Regularization and Dynamic Modeling for Non- Invasive Cardiac Potential Imaging of Endocardial Pacing with Imprecise Thoracic Geometry. IEEE TMI. 2013:1–13. doi: 10.1109/TMI.2013.2295220. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 11.Martínez-Orellana R, Erem B, Brooks DH. Time Invariant Multielectrode Averaging For Biomedical Signals; Int. Conf. Accoustics, Speech Signal Process; 2013. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 12.Bernabeu MO, Bordas R, Pathmanathan P, Pitt-Francis J, Cooper J, Garny A, Gavaghan DJ, Rodriguez B, Southern JA, Whiteley JP. Chaste: incorporating a novel multi-scale spatial and temporal algorithm into a large-scale open source library. Philosophical Transactions of the Royal Society A Mathematical Physical and Engineering Sciences. 2009;367(1895):1907–1930. doi: 10.1098/rsta.2008.0309. [DOI] [PubMed] [Google Scholar]
- 13.Vigmond EJ, Hughes M, Plank G, Leon LJ. Computational tools for modeling electrical activity in cardiac tissue. Journal of electrocardiology. 2003;36:69–74. doi: 10.1016/j.jelectrocard.2003.09.017. [DOI] [PubMed] [Google Scholar]
- 14.Oostendorp TF, van Oosterom A. ECGSIM: an Interactive Tool for the Study of the Relation between the Electric Activity of the Heart and the QRST Waveforms at the Body Surface. IEMBS. 2004;2:3559–3562. doi: 10.1109/IEMBS.2004.1404000. [DOI] [PubMed] [Google Scholar]