Charge based boundary element fast multipole method
This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages)
|
Articles about |
Electromagnetism |
---|
The charge-based formulation of the boundary element method (BEM) is a dimensionality reduction numerical technique that is used to model quasistatic electromagnetic phenomena in highly complex conducting media (targeting, e.g., the human brain) with a very large (up to approximately 1 billion) number of unknowns. The charge-based BEM solves an integral equation of the potential theory<ref name=":3">Kress, Rainer (1999). Linear Integral Equations (2 ed.). Springer. ISBN 9780387987002.</ref> written in terms of the induced surface charge density. This formulation is naturally combined with fast multipole method (FMM) acceleration, and the entire method is known as charge-based BEM-FMM. The combination of BEM and FMM is a common technique in different areas of computational electromagnetics and, in the context of bioelectromagnetism, it provides improvements over the finite element method.<ref name=":0">Htet, Aung Thu; Saturnino, Guilherme B; Burnham, Edward H; Noetscher, Gregory M; Nummenmaa, Aapo; Makarov, Sergey N (2019-04-01). "Comparative performance of the finite element method and the boundary element fast multipole method for problems mimicking transcranial magnetic stimulation (TMS)". Journal of Neural Engineering. 16 (2): 024001. doi:10.1088/1741-2552/aafbb9. ISSN 1741-2560. PMC 6546501. PMID 30605893.</ref><ref name=":1">Gomez, Luis J.; Dannhauer, Moritz; Koponen, Lari M.; Peterchev, Angel V. (January 2020). "Conditions for numerically accurate TMS electric field simulation". Brain Stimulation. 13 (1): 157–166. doi:10.1016/j.brs.2019.09.015. PMC 6888902. PMID 31604625.</ref><ref name=":12" />
Historical development
Along with more common electric potential-based BEM,<ref name=":10">Sarvas, J. (January 1987). "Basic mathematical and electromagnetic concepts of the biomagnetic inverse problem". Physics in Medicine and Biology. 32 (1): 11–22. Bibcode:1987PMB....32...11S. doi:10.1088/0031-9155/32/1/004. ISSN 0031-9155. PMID 3823129. S2CID 250776806.</ref><ref name=":9">Mosher, J. C.; Leahy, R. M.; Lewis, P. S. (March 1999). "EEG and MEG: forward solutions for inverse methods". IEEE Transactions on Biomedical Engineering. 46 (3): 245–259. doi:10.1109/10.748978. ISSN 0018-9294. PMID 10097460. S2CID 5323152.</ref> the quasistatic charge-based BEM, derived in terms of the single-layer (charge) density, for a single-compartment medium has been known in the potential theory<ref name=":3" /> since the beginning of the 20th century. For multi-compartment conducting media, the surface charge density formulation first appeared in discretized form (for faceted interfaces) in the 1964 paper by Gelernter and Swihart.<ref>Gelernter, H. L.; Swihart, J. C. (July 1964). "A Mathematical-Physical Model of the Genesis of the Electrocardiogram". Biophysical Journal. 4 (4): 285–301. Bibcode:1964BpJ.....4..285G. doi:10.1016/s0006-3495(64)86783-7. ISSN 0006-3495. PMC 1367507. PMID 14197788.</ref> A subsequent continuous form, including time-dependent and dielectric effects, appeared in the 1967 paper by Barnard, Duck, and Lynn.<ref>Barnard, A. C.; Duck, I. M.; Lynn, M. S. (September 1967). "The application of electromagnetic theory to electrocardiology. I. Derivation of the integral equations". Biophysical Journal. 7 (5): 443–462. Bibcode:1967BpJ.....7..443B. doi:10.1016/S0006-3495(67)86598-6. ISSN 0006-3495. PMC 1368073. PMID 6048873.</ref> The charge-based BEM has also been formulated for conducting, dielectric, and magnetic media.<ref name=":14">Makarov, Sergey N.; Noetscher, Gregory M.; Nazarian, Ara (2016). Low-frequency electromagnetic modeling for electrical and biological systems using MATLAB. Hoboken, New Jersey: Wiley. ISBN 978-1-119-05256-2.</ref>
In 2009, Greengard et al.<ref name=":15">Greengard, Leslie; Gueyffier, Denis; Martinsson, Per-Gunnar; Rokhlin, Vladimir (May 2009). "Fast direct solvers for integral equations in complex three-dimensional domains". Acta Numerica. 18: 243–275. doi:10.1017/S0962492906410011. ISSN 1474-0508. S2CID 58895952.</ref> successfully applied the charge-based BEM with fast multipole acceleration to molecular electrostatics of dielectrics. A similar approach to realistic modeling of the human brain with multiple conducting compartments was first described by Makarov et al.<ref name=":2">Makarov, Sergey N.; Noetscher, Gregory M.; Raij, Tommi; Nummenmaa, Aapo (December 2018). "A Quasi-Static Boundary Element Approach With Fast Multipole Acceleration for High-Resolution Bioelectromagnetic Models". IEEE Transactions on Biomedical Engineering. 65 (12): 2675–2683. doi:10.1109/TBME.2018.2813261. ISSN 0018-9294. PMC 7388683. PMID 29993385.</ref> in 2018. Along with this, the BEM-based multilevel fast multipole method has been widely used in radar and antenna studies at microwave frequencies<ref>Song, J.; Cai-Cheng Lu; Weng Cho Chew (October 1997). "Multilevel fast multipole algorithm for electromagnetic scattering by large complex objects". IEEE Transactions on Antennas and Propagation. 45 (10): 1488–1493. Bibcode:1997ITAP...45.1488S. doi:10.1109/8.633855.</ref> as well as in acoustics.<ref>Piscoya, Rafael; Ochmann, Martin (2015-03-01). "Acoustical Boundary Elements: Theory and Virtual Experiments". Archives of Acoustics. 39 (4): 453–465. doi:10.2478/aoa-2014-0049. ISSN 2300-262X. See also https://projekt.bht-berlin.de/ca/veroeffentlichungen/computational-acoustics-i-ii</ref><ref>Liu, Yijun (2009). Fast Multipole Boundary Element Method: Theory and Applications in Engineering. Cambridge: Cambridge University Press. doi:10.1017/cbo9780511605345. ISBN 978-0-521-11659-6.</ref>
Physical background - surface charges in biological media
The charge-based BEM is based on the concept of an impressed (or primary) electric field <math>\mathbf{E}^i</math> and a secondary electric field <math>\mathbf{E}^s</math>. The impressed field is usually known a priori or is trivial to find. For the human brain, the impressed electric field can be classified as one of the following:
- A conservative field <math>\mathbf{E}^i</math> derived from an impressed density of EEG or MEG current sources in a homogeneous infinite medium with the conductivity <math>\sigma</math> at the source location;<ref name=":4">Makarov, Sergey N.; Hamalainen, Matti; Okada, Yoshio; Noetscher, Gregory M.; Ahveninen, Jyrki; Nummenmaa, Aapo (January 2021). "Boundary Element Fast Multipole Method for Enhanced Modeling of Neurophysiological Recordings". IEEE Transactions on Biomedical Engineering. 68 (1): 308–318. doi:10.1109/TBME.2020.2999271. ISSN 0018-9294. PMC 7704617. PMID 32746015.</ref>
- An instantaneous solenoidal field <math>\mathbf{E}^i</math> of an induction coil obtained from Faraday's law of induction in a homogeneous infinite medium (air), when transcranial magnetic stimulation (TMS) problems are concerned;<ref name=":2" /><ref name=":5">Makarov, Sergey N; Wartman, William A; Daneshzand, Mohammad; Fujimoto, Kyoko; Raij, Tommi; Nummenmaa, Aapo (2020-08-04). "A software toolkit for TMS electric-field modeling with boundary element fast multipole method: an efficient MATLAB implementation". Journal of Neural Engineering. 17 (4): 046023. Bibcode:2020JNEng..17d6023M. doi:10.1088/1741-2552/ab85b3. ISSN 1741-2552. PMID 32235065. S2CID 213777043.</ref>
- A surface field <math>\mathbf{E}^i</math>derived from an impressed surface current density <math>\mathbf{J}^i=\sigma\mathbf{E}^i</math> of current electrodes injecting electric current at a boundary of a compartment with conductivity <math>\sigma</math> when transcranial direct-current stimulation (tDCS) or deep brain stimulation (DBS) are concerned;<ref name=":6">Makarov, Sergey N; Golestanirad, Laleh; Wartman, William A; Nguyen, Bach Thanh; Noetscher, Gregory M; Ahveninen, Jyrki P; Fujimoto, Kyoko; Weise, Konstantin; Nummenmaa, Aapo R (2021-08-01). "Boundary element fast multipole method for modeling electrical brain stimulation with voltage and current electrodes". Journal of Neural Engineering. 18 (4): 0460d4. Bibcode:2021JNEng..18d60d4M. doi:10.1088/1741-2552/ac17d7. ISSN 1741-2560. PMC 8783394. PMID 34311449.</ref>
- A conservative field <math>\mathbf{E}^i</math> of charges deposited on voltage electrodes for tDCS or DBS. This specific problem requires a coupled treatment since these charges will depend on the environment;<ref name=":6" />
- In application to multiscale modeling, a field <math>\mathbf{E}^i</math> obtained from any other macroscopic numerical solution in a small (mesoscale or microscale) spatial domain within the brain. For example, a constant field can be used.<ref name=":8">Noetscher, Gregory M.; Tang, Dexuan; Nummenmaa, Aapo R.; Bingham, Clayton S.; McIntyre, Cameron C.; Makaroff, Sergey N. (Jan 2024). "Estimations of Charge Deposition Onto Convoluted Axon Surfaces Within Extracellular Electric Fields". IEEE Transactions on Biomedical Engineering. 71 (1): 307–317. doi:10.1109/TBME.2023.3299734. ISSN 1558-2531. PMC 10837334. PMID 37535481. S2CID 260487095.</ref>
When the impressed field is "turned on", free charges located within a conducting volume D immediately begin to redistribute and accumulate at the boundaries (interfaces) of regions of different conductivity in D. A surface charge density <math>\rho(\mathbf{r})</math> appears on the conductivity interfaces. This charge density induces a secondary conservative electric field <math>\mathbf{E}^s</math> following Coulomb's law.
One example is a human under a direct current powerline with the known field <math>\mathbf{E}^i</math> directed down. The superior surface of the human's conducting body will be charged negatively while its inferior portion is charged positively. These surface charges create a secondary electric field that effectively cancels or blocks the primary field everywhere in the body so that no current will flow within the body under DC steady state conditions.
Another example is a human head with electrodes attached. At any conductivity interface with a normal vector <math>\mathbf{n}</math> pointing from an "inside" (-) compartment of conductivity <math>\sigma^-</math>to an "outside" (+) compartment of conductivity <math>\sigma^+</math>, Kirchhoff's current law requires continuity of the normal component of the electric current density. This leads to the interfacial boundary condition in the form
<math>\sigma^{+}\mathbf{E}^{+}\cdot \mathbf{n}=\sigma^{-} \mathbf{E}^{-}\cdot\mathbf{n}</math> |
for every facet at a triangulated interface. As long as <math>\sigma^{\pm}</math> are different from each other, the two normal components of the electric field, <math>\mathbf{E}^{\pm}\cdot\mathbf{n}</math>, must also be different. Such a jump across the interface is only possible when a sheet of surface charge exists at that interface. Thus, if an electric current or voltage is applied, the surface charge density follows.
The goal of the numerical analysis is to find the unknown surface charge distribution and thus the total electric field <math> \mathbf{E}=\mathbf{E}^i+\mathbf{E}^s</math> (and the total electric potential if required) anywhere in space.
System of equations for surface charges
Below, a derivation is given based on Gauss's law and Coulomb's law. All conductivity interfaces, denoted by S, are discretized into planar triangular facets <math>t_m</math> with centers <math>\mathbf{r}_m</math>. Assume that an m-th facet with the normal vector <math>\mathbf{n}_m</math> and area <math>A_m</math> carries a uniform surface charge density <math>\rho_m</math>. If a volumetric tetrahedral mesh were present, the charged facets would belong to tetrahedra with different conductivity values. We first compute the electric field <math>\mathbf{E}^+_{m}</math> at the point <math>\mathbf{r}_m+\delta \mathbf{n}_m</math>, for <math>\delta\rightarrow 0 ^+</math> i.e., just outside facet 𝑚 at its center. This field contains three contributions:
- The continuous impressed electric field <math>\mathbf{E}^i</math> itself;
- An electric field of the m-th charged facet itself. Very close to the facet, it can be approximated as the electric field of an infinite sheet of uniform surface charge <math>\rho_m</math>.<ref>"Electric Field, Flat Sheets of Charge". hyperphysics.phy-astr.gsu.edu. Retrieved 2023-12-29.</ref> By Gauss's Law, it has the value <math>+\rho_m/2\varepsilon_0\cdot n_m</math> where <math>\varepsilon_0</math> is a background electrical permittivity;
- An electric field generated by all other facets <math>t_n</math>, which we approximate as point charges of charge <math>A_n \rho_n</math> at each center <math>r_n</math>.
A similar treatment holds for the electric field <math>\mathbf{E}^-_{m}</math> just inside facet 𝑚, but the electric field of the flat sheet of charge changes its sign. Using Coulomb's law to calculate the contribution of facets different from <math>t_m</math>, we find
\mathbf{r}_m-\mathbf{r}_n|^3} + \mathbf{E}^i(\mathbf{r}_m),\ m=1,2,\dots,M</math> |
From this equation, we see that the normal component of the electric field indeed undergoes a jump through the charged interface. This is equivalent to a jump relation of the potential theory.<ref name=":3" /> As a second step, the two expressions for <math>\mathbf{E}^{\pm} _{m}</math> are substituted into the interfacial boundary condition <math> \sigma^{-}\mathbf{E}_m^{-}\cdot \mathbf{n}_m = \sigma^+\mathbf{E}_m^{+}\cdot\mathbf{n}_m</math>, applied to every facet 𝑚. This operation leads to a system of linear equations for unknown charge densities <math>\rho_m</math> which solves the problem:
\mathbf{r}_m-\mathbf{r}_n|^3}} + {2}\varepsilon_0K_m\mathbf{n}_m\cdot
\mathbf{E}^i(\mathbf{r}_m),\ m=1,2,\dots,M</math> |
where <math>K_m=\frac{\sigma^{-}-\sigma^{+}}{\sigma^{-}+\sigma^{+}}</math> is the electric conductivity contrast at the m-th facet. The normalization constant <math>\varepsilon_0</math> will cancel out after the solution is substituted in the expression for <math>\mathbf{E}^s</math> and becomes redundant.
Application of fast multipole method
For modern characterizations of brain topologies with ever-increasing levels of complexity, the above system of equations for <math>\rho_m</math> is very large; it is therefore solved iteratively. An initial guess for <math>\rho_m</math> is the last term on its right-hand side while the sum is ignored. Next, the sum is computed and the initial guess is refined, etc. This solution<ref name=":2" /><ref name=":17">Müller, E.; Petković, B.; Ziolkowski, M.; Weise, K.; Toepfer, H.; Haueisen, J. (2023). "An Improved GPU Optimized Fictitious Surface Charge Method for Transcranial Magnetic Stimulation". IEEE Transactions on Magnetics. 60 (3): 1–4. doi:10.1109/TMAG.2023.3334747. ISSN 0018-9464. S2CID 265559793.</ref> employs the simple Jacobi iterative method. The more rigorous generalized minimum residual method (GMRES) yields a much faster convergence of the BEM-FMM.<ref name=":0" /><ref name=":1" /><ref name=":4" /><ref name=":5" /><ref name=":6" /> In either case, the major work is in computing the underbraced sum in the system of equations above for every <math>{m}</math> at every iteration; this operation corresponds to a repetitive matrix-vector multiplication. However, one can recognize this sum as an electric field (times <math>\frac{1}{2\pi \epsilon_{0}}</math>) of <math>{M}</math> charges to be computed at <math>{M}</math> observation points. Such a computation is exactly the task of the fast multipole method, which performs fast matrix-by-vector multiplication in <math>O(M\log{M})</math> or even <math>O(M)</math> operations instead of <math>O(M^2)</math>. The FMM3D library<ref name=":7">Askham, Travis; Gimbutas, Zydrunas; Greengard, Leslie; Lu, Libin; Magland, Jeremy; Malhotra, Dhairya; O'Neil, Mike; Rachh, Manas; Rokhlin, Vladimir. "FMM3D Library". Flatiron Institute Fast Multipole Libraries. Flatiron Institute. Retrieved 15 December 2023.</ref> realized in both Python and MATLAB can be used for this purpose. It is therefore unnecessary to form or store the dense system matrix typical for the standard BEM.
Continuous charge-based BEM. Near-field correction
The system of equations formulated above is derived with the collocation method and is less accurate.<ref name=":15" /> The corresponding integral equation is obtained from the local jump relations of the potential theory<ref name=":3" /><ref>Nuñez Ponasso, Guillermo (December 2023). "A survey on integral equations for bioelectric modeling". HAL open science.</ref> and the local interfacial boundary condition of normal electric current continuity. It is a Fredholm integral equation of the second kind
\mathbf{r}-\mathbf{r^\prime}|^3}ds(\mathbf{r^\prime}) - 2{\varepsilon_0}K(\mathbf{r})\mathbf{E}^i(\mathbf{r})\cdot n(\mathbf{r}), \mathbf{r} \text{ on } S</math> |
Its derivation does not involve Green's identities (integrations by parts) and is applicable to non-nested geometries. When the Galerkin method is applied and the same zeroth-order basis functions (with a constant charge density for each facet) are still used on triangulated interfaces, we obtain exactly the same discretization as before if we replace the double integrals over surfaces <math>S_m</math> and <math>S_n</math> of triangles <math>t_m</math> and <math>t_n</math>, respectively, by
<math> \int_{S_m}\int_{S_n}\frac{\mathbf{r}-\mathbf{r^\prime}}{|\mathbf{r}-\mathbf{r^\prime}|^3}ds(\mathbf{r^\prime}) \approx{A_m }{A_n}\frac{\mathbf{r}_m-\mathbf{r}_n }{|\mathbf{r}_m-\mathbf{r}_n|^3} </math>
This approximation is only valid when <math>|\mathbf{r}_m-\mathbf{r}_n |</math> is much larger than a typical facet size i.e., in the "far field". Otherwise, semi-analytical formulae<ref>Zhongde Wang; Volakis, J.; Saitou, K.; Kurabayashi, K. (December 2003). "Comparison of semi-analytical formulations and gaussian-quadrature rules for quasi-static douwe-surface potential integrals". IEEE Antennas and Propagation Magazine. 45 (6): 96–102. Bibcode:2003IAPM...45...96W. doi:10.1109/MAP.2003.1282185. hdl:2027.42/87252. ISSN 1045-9243.</ref><ref>Wilton, D.; Rao, S.; Glisson, A.; Schaubert, D.; Al-Bundak, O.; Butler, C. (March 1984). "Potential integrals for uniform and linear source distributions on polygonal and polyhedral domains". IEEE Transactions on Antennas and Propagation. 32 (3): 276–281. Bibcode:1984ITAP...32..276W. doi:10.1109/TAP.1984.1143304. ISSN 0096-1973.</ref> and Gaussian quadratures for triangles<ref>Stroud, A. H. (1971-01-01). Approximate Calculation of Multiple Integrals. Prentice-Hall.</ref> should be used<ref name=":2" />. Typically, 4 to 32 such neighbor integrals per facet should be precomputed, stored, and then used at every iteration.<ref name=":2" /><ref name=":0" /><ref name=":5" /><ref name=":6" /><ref name=":11">Wartman, William A.; Weise, Konstantin; Rachh, Manas; Morales, Leah; Deng, Zhi-De; Nummenmaa, Aapo; Makaroff, Sergey N. (2023-08-15), "An Adaptive H-Refinement Method for the Boundary Element Fast Multipole Method for Quasi-static Electromagnetic Modeling", BioRxiv: The Preprint Server for Biology, doi:10.1101/2023.08.11.552996, PMC 10461998, PMID 37645957, retrieved 2023-12-25</ref> This is an important correction to the plain fast multipole method in the "near field" which should also be used in the simple discrete formulation derived above. Such a correction makes it possible to obtain an unconstrained numerical (but not anatomical) resolution in the brain.<ref name=":5" />
Applications and limitations
Applications of the charge-based BEM-FMM include modeling brain stimulation<ref name=":1" /><ref name=":5" /><ref name=":6" /><ref name=":17" /> with near real-time accurate TMS computations<ref>Daneshzand, Mohammad; Makarov, Sergey N.; de Lara, Lucia I. Navarro; Guerin, Bastien; McNab, Jennifer; Rosen, Bruce R.; Hämäläinen, Matti S.; Raij, Tommi; Nummenmaa, Aapo (2021-08-15). "Rapid computation of TMS-induced E-fields using a dipole-based magnetic stimulation profile approach". NeuroImage. 237: 118097. doi:10.1016/j.neuroimage.2021.118097. ISSN 1095-9572. PMC 8353625. PMID 33940151.</ref><ref name=":12">Makaroff, S. N.; Qi, Z.; Rachh, M.; Wartman, W. A.; Weise, K.; Noetscher, G. M.; Daneshzand, M.; Deng, Zhi-De; Greengard, L.; Nummenmaa, A. R. (2023-10-31). "A fast direct solver for surface-based whole-head modeling of transcranial magnetic stimulation". Scientific Reports. 13 (1): 18657. Bibcode:2023NatSR..1318657M. doi:10.1038/s41598-023-45602-5. ISSN 2045-2322. PMC 10618282. PMID 37907689.</ref> as well as neurophysiological recordings.<ref name=":4" /> They also include modeling challenging mesoscale head topologies such as thin brain membranes<ref name=":16">Weise, Konstantin; Wartman, William A.; Knösche, Thomas R.; Nummenmaa, Aapo R.; Makarov, Sergey N. (2022). "The effect of meninges on the electric fields in TES and TMS. Numerical modeling with adaptive mesh refinement". Brain Stimulation. 15 (3): 654–663. doi:10.1016/j.brs.2022.04.009. ISSN 1876-4754. PMID 35447379.</ref><ref name=":11" /> (dura mater, arachnoid mater, and pia mater). This is particularly important for accurate transcranial direct-current stimulation and electroconvulsive therapy dosage predictions.<ref>Deng, Zhi-De; Argyelan, Miklos; Miller, Jeremy; Quinn, Davin K.; Lloyd, Megan; Jones, Thomas R.; Upston, Joel; Erhardt, Erik; McClintock, Shawn M.; Abbott, Christopher C. (March 2022). "Electroconvulsive therapy, electric field, neuroplasticity, and clinical outcomes". Molecular Psychiatry. 27 (3): 1676–1682. doi:10.1038/s41380-021-01380-y. ISSN 1476-5578. PMC 9095458. PMID 34853404.</ref> The BEM-FMM allows for straightforward adaptive mesh refinement including multiple extracerebral brain compartments.<ref name=":11" /><ref name=":16" /> Another application is modeling electric field perturbations within densely packed neuronal/axonal arbor.<ref name=":8" /> Such perturbations change the biophysical activating function. A charge-based BEM formulation is being developed for promising bi-domain biophysical modeling of axonal processes.<ref>Czerwonky, David M.; Aberra, Aman S.; Gomez, Luis J. (2023-12-16), "A Boundary Element Method of Bidomain Modeling for Predicting Cellular Responses to Electromagnetic Fields", BioRxiv: The Preprint Server for Biology, doi:10.1101/2023.12.15.571917, PMC 10760105, PMID 38168351, S2CID 266363593, retrieved 2023-12-27</ref>
In its present form, the charge-based BEM-FMM is applicable to multi-compartment piecewise homogeneous media only; it cannot handle macroscopically anisotropic tissues. Additionally, the maximum number of facets (degrees of freedom) is limited to approximately <math>10^9</math> for typical academic computer hardware resources used as of 2023.
See also
- Computational electromagnetics
- Boundary element method
- Fast multipole method
- Computational neuroscience
- Transcranial magnetic stimulation
- Transcranial direct-current stimulation
- Electroencephalography
- Magnetoencephalography
External links
- A survey on integral equations for bioelectric modeling, preprint.
- Flatiron Institute - Simons Foundation FMM3D GitHub Project Site.
References
<references />