Charge based boundary element fast multipole method explained

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[1] 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.[2] [3]

Historical development

Along with more common electric potential-based BEM,[4] [5] 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 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.[6] A subsequent continuous form, including time-dependent and dielectric effects, appeared in the 1967 paper by Barnard, Duck, and Lynn.[7] The charge-based BEM has also been formulated for conducting, dielectric, and magnetic media, [8] and used in different applications.[9]

In 2009, Greengard et al.[10] 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.[11] in 2018. Along with this, the BEM-based multilevel fast multipole method has been widely used in radar and antenna studies at microwave frequencies[12] as well as in acoustics.[13] [14]

Physical background - surface charges in biological media

The charge-based BEM is based on the concept of an impressed (or primary) electric field

Ei

and a secondary electric field

Es

. 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:
  1. A conservative field

Ei

derived from an impressed density of EEG or MEG current sources in a homogeneous infinite medium with the conductivity

\sigma

at the source location;[15]
  1. An instantaneous solenoidal field

Ei

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;[16]
  1. A surface field

Ei

derived from an impressed surface current density

Ji=\sigmaEi

of current electrodes injecting electric current at a boundary of a compartment with conductivity

\sigma

when transcranial direct-current stimulation (tDCS) or deep brain stimulation (DBS) are concerned;[17]
  1. A conservative field

Ei

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;
  1. In application to multiscale modeling, a field

Ei

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.[18] When the impressed field is "turned on", free charges located within a conducting volume immediately begin to redistribute and accumulate at the boundaries (interfaces) of regions of different conductivity in . A surface charge density

\rho(r)

appears on the conductivity interfaces. This charge density induces a secondary conservative electric field

Es

following Coulomb's law.

One example is a human under a direct current powerline with the known field

Ei

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

n

 pointing from an "inside" (-) compartment of conductivity

\sigma-

to an "outside" (+) compartment of conductivity

\sigma+

, 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

\sigma+E+n=\sigma-E-n

for every facet at a triangulated interface. As long as

\sigma\pm

are different from each other, the two normal components of the electric field,

E\pmn

, 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

E=Ei+Es

 (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, are discretized into planar triangular facets

tm

 with centers

rm

. Assume that an -th facet with the normal vector

nm

 and area

Am

carries a uniform surface charge density

\rhom

. If a volumetric tetrahedral mesh were present, the charged facets would belong to tetrahedra with different conductivity values. We first compute the electric field
+
E
m
at the point

rm+\deltanm

, for

\delta0+

i.e., just outside facet at its center. This field contains three contributions:

Ei

itself;

\rhom

.[19] By Gauss's Law, it is given by

+\rhom/2\varepsilon0 ⋅ nm

where

\varepsilon0

is a background electrical permittivity;

tn

, which we approximate as point charges of charge

An\rhon

at each center

rn

.A similar treatment holds for the electric field
-
E
m
 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

tm

, we find
\pm
E\pm
m=
\rhom
2\varepsilon0

nm+

M\rhon
4\pi\varepsilon0
\sum
n=1;nm
rm-rn
|r
3
n|
m-r

+

i(r
E
m),m=1,2,...,M
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. As a second step, the two expressions for

E\pmm

are substituted into the interfacial boundary condition

\sigma-

-
E
m

nm=

+
\sigma
m

nm

, applied to every facet . This operation leads to a system of linear equations for unknown charge densities

\rhom

which solves the problem:

\rhom=Kmnm\underbrace{\sum

M\rhon
2\pi
n=1;nm
rm-rn
|r
3
n|
m-r
} + \varepsilon_0K_m\mathbf_m\cdot\mathbf^i(\mathbf_m),\ m=1,2,\dots,M
where
K
m=\sigma--\sigma+
\sigma-+\sigma+
is the electric conductivity contrast at the -th facet. The normalization constant

\varepsilon0

will cancel out after the solution is substituted in the expression for

Es

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

\rhom

is very large; it is therefore solved iteratively. An initial guess for

\rhom

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[20] employs the simple Jacobi iterative method. The more rigorous generalized minimum residual method (GMRES) yields a much faster convergence of the BEM-FMM. In either case, the major work is in computing the underbraced sum in the system of equations above for every

{m}

at every iteration; this operation corresponds to a repetitive matrix-vector multiplication. However, one can recognize this sum as an electric field (times
1
2\pi\epsilon0
) of

{M}

charges to be computed at

{M}

 observation points. Such a computation is exactly the task of the fast multipole method, which performs fast matrix-by-vector multiplication in

O(Mlog{M})

 or even

O(M)

 operations instead of

O(M2)

. The FMM3D library[21] 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. The corresponding integral equation is obtained from the local jump relations of the potential theory [22] and the local interfacial boundary condition of normal electric current continuity. It is a Fredholm integral equation of the second kind

\rho(r)=K(r)n(r)\intS

\rho(r\prime)
2\pi
r-r\prime
3
|r-r\prime|
ds(r\prime)

+2\varepsilon0K(r)Ei(r)n(r),ronS

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

Sm

and

Sn

of triangles

tm

and

tn

, respectively, by
\int
Sm
\int
Sn
r-r\prime
3
|r-r\prime|
ds(r\prime)ds(r)

{Am

}{A
n}rm-rn
|r
3
n|
m-r

,

where

{An}

is the surface area of the triangle

{tn}

. This approximation is only valid when

|rm-rn|

 is much larger than a typical facet size i.e., in the "far field". Otherwise, semi-analytical formulae[23] [24] and Gaussian quadratures for triangles[25] should be used. Typically, 4 to 32 such neighbor integrals per facet should be precomputed, stored, and then used at every iteration. 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.

Applications and limitations

Applications of the charge-based BEM-FMM include modeling brain stimulation with near real-time accurate TMS computations[26] [27] as well as neurophysiological recordings. They also include modeling challenging mesoscale head topologies such as thin brain membranes[28] (dura mater, arachnoid mater, and pia mater). This is particularly important for accurate transcranial direct-current stimulation and electroconvulsive therapy dosage predictions.[29] The BEM-FMM allows for straightforward adaptive mesh refinement including multiple extracerebral brain compartments. Another application is modeling electric field perturbations within densely packed neuronal/axonal arbor. Such perturbations change the biophysical activating function. A charge-based BEM formulation is being developed for promising bi-domain biophysical modeling of axonal processes.[30]

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

109

for typical academic computer hardware resources used as of 2023.

See also

External links

References

  1. Book: Kress . Rainer . Linear Integral Equations . 1999 . Springer . 9780387987002 . 2.
  2. 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 . 10.1088/1741-2552/aafbb9 . 1741-2560 . 6546501 . 30605893.
  3. Gomez . Luis J. . Dannhauer . Moritz . Koponen . Lari M. . Peterchev . Angel V. . January 2020 . Conditions for numerically accurate TMS electric field simulation . Brain Stimulation . en . 13 . 1 . 157–166 . 10.1016/j.brs.2019.09.015 . 6888902 . 31604625.
  4. Sarvas . J. . January 1987 . Basic mathematical and electromagnetic concepts of the biomagnetic inverse problem . Physics in Medicine and Biology . 32 . 1 . 11–22 . 1987PMB....32...11S . 10.1088/0031-9155/32/1/004 . 0031-9155 . 3823129 . 250776806.
  5. 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 . 10.1109/10.748978 . 0018-9294 . 10097460 . 5323152.
  6. Gelernter . H. L. . Swihart . J. C. . July 1964 . A Mathematical-Physical Model of the Genesis of the Electrocardiogram . Biophysical Journal . 4 . 4 . 285–301 . 10.1016/s0006-3495(64)86783-7 . 0006-3495 . 1367507 . 14197788. 1964BpJ.....4..285G .
  7. 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 . 10.1016/S0006-3495(67)86598-6 . 0006-3495 . 1368073 . 6048873. 1967BpJ.....7..443B .
  8. Book: Makarov . Sergey N. . Low-frequency electromagnetic modeling for electrical and biological systems using MATLAB . Noetscher . Gregory M. . Nazarian . Ara . 2016 . Wiley . 978-1-119-05256-2 . Hoboken, New Jersey.
  9. Müller . E. . Petković . B. . Ziolkowski . M. . An Improved GPU-Optimized Fictitious Surface Charge Method for Transcranial Magnetic Stimulation . IEEE Trans. Magn. . March 2024 . 60 . 3 . 1–4 . 10.1109/TMAG.2023.3334747.
  10. Greengard . Leslie . Leslie Greengard . Gueyffier . Denis . Martinsson . Per-Gunnar . Rokhlin . Vladimir . Vladimir Rokhlin Jr. . May 2009 . Fast direct solvers for integral equations in complex three-dimensional domains . Acta Numerica . en . 18 . 243–275 . 10.1017/S0962492906410011 . 58895952 . 1474-0508.
  11. 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 . 10.1109/TBME.2018.2813261 . 0018-9294 . 7388683 . 29993385.
  12. 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 . 10.1109/8.633855. 1997ITAP...45.1488S .
  13. Piscoya . Rafael . Ochmann . Martin . 2015-03-01 . Acoustical Boundary Elements: Theory and Virtual Experiments . Archives of Acoustics . 39 . 4 . 453–465 . 10.2478/aoa-2014-0049 . 2300-262X. See also https://projekt.bht-berlin.de/ca/veroeffentlichungen/computational-acoustics-i-ii
  14. Book: Liu, Yijun . Fast Multipole Boundary Element Method: Theory and Applications in Engineering . 2009 . Cambridge University Press . 978-0-521-11659-6 . Cambridge . 10.1017/cbo9780511605345.
  15. 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 . 10.1109/TBME.2020.2999271 . 0018-9294 . 7704617 . 32746015.
  16. 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 . 2020JNEng..17d6023M . 10.1088/1741-2552/ab85b3 . 1741-2552 . 32235065 . 213777043.
  17. 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 . 2021JNEng..18d60d4M . 10.1088/1741-2552/ac17d7 . 1741-2560 . 8783394 . 34311449.
  18. 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 . 10.1109/TBME.2023.3299734 . 1558-2531 . 37535481 . 10837334 . 260487095.
  19. Web site: Electric Field, Flat Sheets of Charge . 2023-12-29 . hyperphysics.phy-astr.gsu.edu.
  20. 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 . 10.1109/TMAG.2023.3334747 . 265559793 . 0018-9464.
  21. Web site: Askham . Travis . Gimbutas . Zydrunas . Greengard . Leslie . Leslie Greengard . Lu . Libin . Magland . Jeremy . Malhotra . Dhairya . O'Neil . Mike . Rachh . Manas . Rokhlin . Vladimir . Vladimir Rokhlin Jr. . FMM3D Library . 15 December 2023 . Flatiron Institute Fast Multipole Libraries . Flatiron Institute.
  22. Nuñez Ponasso G. A survey on integral equations for bioelectric modeling. . Phys Med Biol . 2024 . 39042098 . 10.1088/1361-6560/ad66a9 .
  23. 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 . en . 45 . 6 . 96–102 . 10.1109/MAP.2003.1282185 . 2003IAPM...45...96W . 2027.42/87252 . 1045-9243. free .
  24. 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 . en . 32 . 3 . 276–281 . 10.1109/TAP.1984.1143304 . 1984ITAP...32..276W . 0096-1973.
  25. Book: Stroud, A. H. . Approximate Calculation of Multiple Integrals . 1971-01-01 . Prentice-Hall . English.
  26. 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 . 10.1016/j.neuroimage.2021.118097 . 1095-9572 . 8353625 . 33940151.
  27. 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 . en . 13 . 1 . 18657 . 10.1038/s41598-023-45602-5 . 37907689 . 10618282 . 2023NatSR..1318657M . 2045-2322.
  28. 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 . 10.1016/j.brs.2022.04.009 . 1876-4754 . 35447379.
  29. 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 . 10.1038/s41380-021-01380-y . 1476-5578 . 9095458 . 34853404.
  30. Czerwonky DM, Aberra AS, Gomez LJ. A boundary element method of bidomain modeling for predicting cellular responses to electromagnetic fields. . J Neural Eng . 2024 . 21 . 3 . 036050 . 38862011 . 10.1088/1741-2552/ad5704 . free .