Effects of head modeling errors on the spatial frequency representation of MEG
Abstract
Optically-pumped magnetometers (OPM) – next-generation magnetoencephalography (MEG) sensors – may be placed directly on the head, unlike the more commonly used superconducting quantum interference device (SQUID) sensors, which must be placed a few centimeters away. This allows for signals of higher spatial resolution to be captured, resulting in potentially more accurate source localization. In this paper, we show that in the noiseless and high signal-to-noise ratio (SNR) case of approximately dB, inaccuracies in boundary element method (BEM) head conductor models (or equivalently, inaccurate volume current models) lead to increased signal and equivalent current dipole (ECD) source localization inaccuracies when sensor arrays are placed closer to the head. This is true especially in the case of deep and superficial sources where volume current contributions are high. In the noisy case however, the higher SNR for closer sensor arrays allows for an improved ECD fit and outweighs the effects of head geometry inaccuracies. This calls for an increase in emphasis in head modeling to reduce inverse modeling errors, especially as the field of MEG strives for closer sensor arrays and cleaner signals. An analytical form to obtain the magnetic field errors for small perturbations in the BEM head geometry is also provided.
1 Introduction
Magnetoencephalography (MEG) is a non-invasive neuroimaging modality that provides spatiotemporal estimates of brain activity [16, 18, 23]. These estimates are based on inverse modeling, i.e., inferring the distribution of electric current in brain tissue based on a measurement of the associated magnetic field. Until recently, the only practical sensor type sensitive enough for MEG measurements has been the superconducting quantum interference device (SQUID), which requires cryogenics in order to maintain the superconducting state of the sensors. The necessary thermal insulation between the sensors, which must be held in a dewar containing liquid helium, and the surface of the head creates a minimum gap of at least 2 cm between the scalp and the sensors. However, reducing the measurement distance is imperative to further improve spatial resolution of MEG as the magnetic fields decay rapidly as a function of distance. Fortunately, recent developments in sensor technology, especially in the domain of optically pumped magnetometers (OPM), have made on-scalp MEG possible [2, 3, 4, 20, 21, 24]. The reduced proximity between the sensors and the brain sources has the potential to significantly improve the spatial resolution of MEG, since the detected signal strength and spatial complexity are expected to increase.
Brain sources are typically modeled as having a primary current and volume current. The primary current is where neural activity occurs and is the portion of the current that is of primary interest. In many cases, the primary current can be modeled as a current dipole, especially for focal sources. The volume current is the passive return current that closes the current loop inside the head. Because volume currents are mathematically equivalent to surface currents on the conductivity boundaries of closed, piece-wise homogeneous conductor models of the head [11], any inaccuracies in head geometries that are involved in forward signal calculations will inaccurately account for the volume current, resulting in an incorrect forward model. One such forward calculation method is the boundary element method (BEM), which typically uses triangulated, decimated surface meshes for the head model so that the electric potential, which is implicitly defined and difficult to determine in the continuous case, may be more easily calculated through some assumptions, such as uniform conductivity within compartments [27, 31, 35].
For OPMs that can potentially detect signals with higher spatial resolutions due to their decreased sensor-to-array distance, higher spatial frequency contributions from primary and volume currents are expected to be detected. Here, we investigate the importance of BEM triangle mesh accuracy in forward modelling of MEG signals as a function of sensor array distances by perturbing vertices of the mesh to imitate mesh inaccuracies. We also investigate which spatial frequencies suffer from the greatest errors as a function of sensor array distance. We used the simplest and most straightforward BEM methods, the constant collocation (CC) and linear collocation (LC) approaches, to illustrate this effect. The simplicity of CC BEM has the added advantage of being able to easily illustrate the general method one may use to find analytical forms of the errors, as shown in Appendix A. Then, we illustrate the effects of the inaccurate forward signals in equivalent current dipole (ECD) source localization fits. We show that in the noiseless case, increased signal error due to BEM errors result in less accurate source localization, especially for deep sources. However, in the presence of noise, the increased SNR due to closer sensor array distances to the head generally still improves the source localization.
There are many sources of errors for BEM, which may be broadly categorized as anatomical modeling errors and/or numerical errors. For example, the effect of conductivity errors on forward signals have been studied in [19, 34, 36, 39], and different mesh triangulation methods and basis choices to estimate the potentials within each triangle may result in numerical errors that affect accuracy of forward calculations [28, 32]. Studies on head geometry errors, especially focusing on the skull, have also been conducted in for example [5, 25]. An overview of many of these errors can be found in [7]. In this paper, we specifically investigate the effect of random vertex perturbations from an ideal spherical head model on the resulting signal. One other paper has explored head model errors from ideal spherical models as well, but with the assumption that the errors are sufficiently smooth so that they can be described with a spherical harmonic expansion accurately [29]. Since our approach accounts for individual vertex perturbations, it may offer a solution to more precise adjustments/corrections to discretized head models.
We first give an overview of BEM used in MEG signal forward calculations, with emphasis on the CC approach. Then, we discuss our results for the effects of BEM head geometry inaccuracies on the signal vectors for varying sensor array and source distances. We also analyzed the errors in the spatial frequency domain via a decomposition into the Signal Space Separation (SSS) basis with varying -degree truncation choices. Finally, we performed ECD fits with the inaccurate forward calculated signals to determine their effects on source localization in both noiseless and noisy sensor cases. In the appendix, analytical forms that one may use as an alternative way to calculate signal perturbations are also provided.
2 Boundary Element Method overview
2.1 Geselowitz’ formula
It is common practice in MEG and EEG modeling to express the total current as a superposition of two components, i.e.,
(1) |
where represents the physiologically interesting primary current and is the associated passive volume current component that completes the loop of electric current in the brain tissue. On the basis of the Coulomb force, the passive volume current is of the form
(2) |
where , , and are the electric conductivity, the electric field, and the electric potential, respectively. The second equality in equation (2) is valid when the time derivative of the magnetic field is insignificant, which is the case in MEG and EEG [16]. If we assume a piecewise homogeneous conductor head model with conductivity boundary surfaces, the magnetic field due to is given by Geselowitz’ formula [11, 16]
(3) |
where
(4) |
is the contribution by primary currents, is the total head volume, and and denote conductivities of the inner and outer regions relative to . The second term on the right hand side of (3) is the contribution by volume currents, which we will denote as . We need the electric potential in order to calculate and hence the total magnetic field. Below we review the expressions to obtain discrete values of on the boundaries that we may thus use to approximate and discretize .
2.2 Discretization of the electric potential field
Here, we give an overview of the CC BEM approach. The LC requires only a slight modification, as will be pointed out. More comprehensive reviews may be found in [6, 8, 31, 33, 35].
The electric potential for a field point on the th surface is given intrinsically by [16, 31]
(5) |
where
(6) |
Like in the field case, eq. (6) describes the primary current contribution to the potential whereas the surface integral is the volume current contribution. The primary current contribution is easily obtained if we have prescribed . In particular, if we let be a collection of current dipoles with positions represented by delta functions, the integral collapses to a simple form. For dipoles where , we have
(7) |
As for the volume current contribution, we may discretize each surface into triangles. Then, (5) can be written as
(8) |
where is the th triangle of surface .
If we have chosen a large enough such that the triangle areas are small, we may reasonably make some assumptions about the behavior of the potential within each triangle. In turn, can be estimated with some basis and weight functions defined relative to parameters of relevant triangles, independent of . The potential can then be explicitly defined and solved for. Many such approximations exist, including using constant or linear basis with collocation or Galerkin weighting [33]. Higher-degree basis functions have been considered as well [10].
In this paper, we use BEM as a tool to calculate the errors of volume current contributions due to closer sensors. Since we are not actually concerned with the accuracy between different approximation methods but rather the overall behaviour of the resulting signal due to head geometry errors, the most straightforward approximations which are the CC and LC approaches suffice for our purposes. We present the CC case in the next section which assumes a constant potential within each triangle. The LC approach approximates the potential within each triangle as a linear function via an interpolation from the potentials at the three vertices; see [6, 33, 35]. The simplicity of the CC approach allows us to outline an analytical method one may use to find errors for small boundary perturbations as well (Appendix A).
2.3 Linearization of electric potentials
First, we may assume that triangles are small enough such that the potential is constant in each triangle, i.e., when , where is the centroid of . This allows us to pull the potential term out of the integral, and we get
(9) |
Notice that the integral on the right hand side is now simply the solid angle spanned by the triangle from the observation point ; let us denote it as . If we let , be the three vertices of the triangle relative to , and let be their lengths, we may equivalently express each as [30]
(10) |
Let coincide with centroids of the triangles as well. Then, all the potential terms of (5) are discretized at the same locations and it can now be compactly written as
(11) |
In matrix form, this looks like
(12) |
where
(13) |
Note that the matrix is dependent only on the geometry and conductivities of the conductor, and it is also the only term that depends on the boundary geometry. This means that for each different source configuration in the same head model, needs to be calculated only once, whereas the primary current contribution needs to be recalculated.
2.4 Matrix deflation
If we write the matrix equation (12) as , then we have
(14) |
where is the identity matrix. It is seemingly straightforward to solve for by taking the inverse of , but is actually non-invertible since it is rank-deficient; the electric potential has infinite number of solutions since it is defined up to an additive constant. This manifests from the fact that the fundamental equation we are trying to solve is the Poisson equation within the head
(15) |
with Neumann boundary condition at each boundary (current continuity)
(16) |
where is the outward-pointing unit surface normal. These equations are specified only up to the first derivative/gradient of , hence is defined up to a constant.
We thus know that both and , where and is a nonzero constant, are solutions to the matrix equation. So, in addition to (14), we also have
(17) |
Subtracting (14) from this yields
(18) |
which indicates that has a zero eigenvalue with associated eigenvector , i.e. it is indeed singular. Equivalently,
(19) |
This means that has a unit eigenvalue with corresponding eigenvector . So, one way to avoid the singularity is to eliminate this unit eigenvalue; the standard way to do this is by deflation, as follows.
First, assume the unit eigenvalue of is simple [26]. For any vector , we need to find a vector with constant entries (not all necessarily the same) such that
(20) |
The first case imposes the condition of defining a reference potential in some way. For example, if we pick to have all the same entries, then it means we let the sum of all potentials over all boundaries to be zero [17]. We may also pick just a few entries to be zero, corresponding to a possibly more meaningful reference potential; for example, Wilson terminals are used in electrocardiogram [9]. The second case ensures that all eigenvalues of are equal to the eigenvalues of , except for the unit eigenvalue which is replaced by zero. This ensures the is non-singular and hence invertible by condition (19). We may explicitly show this preservation of eigenvalues for as follows. Let and be eigenvalues and corresponding eigenvectors of . For ,
(21) |
hence eigenvalues are preserved. For ,
(22) |
So, we are now able to solve for with the invertible deflated ,
(23) |
2.5 Discretization of the magnetic field
We now have a set of discrete potential solutions at the centroids of the triangles. If we discretize the integral in an identical manner as the electric potential case above, it allows us to get an approximation of the magnetic field at arbitrary field locations directly from (3). The magnetic field is given by
(24) |
where we have defined the “vector solid angle”
(25) |
The evaluation of has been done in [6] via Stoke’s Theorem, and is given by
(26) |
where
(27) |
and correspond to the three vertices of triangle on surface . Also note that and .
This expression allows us to calculate the magnetic field easily, assuming useful indexing of vertices and triangles has been done in the process of surface discretization.
2.6 Calculation of magnetic flux signals
For forward calculation of the signal vectors, we calculate the magnetic flux through magnetometer pick-up loops. In reality, this pick-up loop setup corresponds only for SQUIDs; OPMs measure the volume integral of the magnetic field over a cylindrical sensing volume. However, we are interested primarily in how the reduced distance of OPM sensor arrays may affect the signal measured due to BEM head model errors, hence we do not consider volume integrals over the magnetic field here.
For sensors, the magnetic field is discretized into channel readings of magnetic flux. The vectorization of these readings into an vector is defined as the signal vector. The signal space (or signal) is the -dimensional vector space with elements being any possible signal vector. Within the context of BEM, the signal space may be defined as the space containing all possible signals one may obtain when doing a forward calculation using the triangulation of a perfectly accurate head model.
In the case of sensors measuring the magnetic flux through a surface specified by an area and a normal vector, the th element of is given by
(28) |
where represents an infinitesimal surface element on the sensor surface with unit normal . The calculation of (28) is commonly done by cubature approximation over the sensor area [1].
3 Representation of perturbations in the signal and source space
3.1 Additive perturbation of signal space
From the BEM steps above, we see that any inaccurate head mesh models will lead to inaccurate forward calculations of the magnetic flux, since they correspond to perturbed triangle vertices and centroids. This in turn leads to inaccurate calculations of the potential, magnetic field and magnetic flux signal vector. These errors may be written as an additive perturbation since they are random and independent of the unperturbed quantities,
(29) | |||
(30) | |||
(31) |
where the perturbations to each element of the flux signal vector are given by
(32) |
Note that the BEM errors are only relevant to the forward modeling of the signal vectors; real recorded signal vectors by definition do not have BEM errors. In the context of (noiseless) BEM forward modeling, the goal is to set up a head model such that the calculated signal is as close to the (noiseless) recorded/true data as possible. If information about the BEM geometry is perfect, then with . We re-emphasize that the primary current contribution (4) does not depend on the head model by Geselowitz’s formula, thus all errors come from inaccurate volume contribution. In other words, and hence .
3.2 Quantification of signal reconstruction errors with subspace angle
A compact metric for quantifying the difference between the recorded/reference data and modeled/perturbed data is the angle between the corresponding signal vectors and respectively. We may calculate their subspace angle by [15]
(33) |
If we decompose the signals into their different spatial frequency components via the SSS method [38], then the angle for individual different spatial frequency components can be calculated as well. In the SSS formalism, signal vectors are decomposed into their degree components via a vector spherical harmonic (VSH) expansion, and each spatial frequency component is conveniently characterized by an degree component. Higher degrees correspond to higher spatial frequencies, whereas lower degrees correspond to lower spatial frequency signal components. Let be the basis matrix containing the VSH modes, be the first degree portion of , and be the corresponding coefficients/multipole moments of . The subspace angle specific to the cumulative spatial frequency bands from to is thus
(34) |
where
(35) |
and
(36) |
Given a measured signal vector , the multipole moments must first be estimated by taking the pseudoinverse of ,
(37) |
Then, if required, individual degree portions may be obtained from . Note that to avoid aliasing in signal reconstruction, a high enough degree truncation is required so that the high-frequency components of the signal do not get projected inaccurately onto basis vectors corresponding to low frequencies. It was shown in [38] that a truncation at approximately is sufficient to represent signal vectors; in this paper, we truncate at in anticipation of close sensor array distances capturing signals of higher spatial complexities. Also note that necessarily due to the absence of magnetic monopoles.
4 Results
4.1 Simulation setup
For our reference set-up, we used a simple 1-shell spherical head model of radius 9 cm and conductivity 0.33 S/m with origin located at the center of the sphere, and did a CC BEM forward calculation as described in Sections 2 and 3 to obtain . The BEM method was implemented using the Matlab library as provided in [35]. The spherical surface was triangulated into 1280 triangles (642 vertices), and 4 dipole sources with varying depths located at cm, cm, cm, and cm were specified. All the dipoles had a moment of nAm. To simulate inaccurate mesh modeling to obtain , the vertices of the spherical mesh were randomly perturbed radially up to 2%, 4%, 6%, 8% and 10% relative to the 9 cm radius.
The sensor array that we used consisted of 324 square magnetometer pick-up loops with side length 2.1 cm all with non-radial orientations (to avoid linear dependence of the SSS basis [38]), uniformly arranged on a spherical shell up to below the plane. It has been shown in [40] that a 9-point cubature approximation yields accurate calculations for the sensor distances of 10 cm to 15 cm that we considered, thus we used a 9-point cubature approximation for the calculation of signal vectors in this paper. Figure 1 illustrates the sensor, head, and source setup as described above.
The averaged results over 100 forward calculations with this random vertex perturbation setup is presented in the following sections.

4.2 Signal vector error for sensor arrays at varying distances
First, we investigate how the error due to BEM mesh inaccuracy varies according to sensor array distance using equation (33). The sensor array radii were set to be from 10 cm to 15 cm, in increments of 1 cm (i.e. 1 cm to 6 cm from the surface of a 9 cm head model) and the signal was assumed the be noiseless. Figure 2 shows that for all the source distances considered, as sensor array distance increases, the subspace angle between the reference signal and perturbed signal decreases, indicating decreasing relative effects of mesh boundary inaccuracies as sensor array distance from the head increases. Moreover, smaller perturbations to the head model resulted in smaller subspace angles for a given sensor array distance when compared to higher perturbations as expected. These results may also be visually seen via plots of and explicitly; we show this in Figure 3 with the 2 cm source case across the various sensor distances and mesh perturbations for one of the 100 random mesh perturbation realizations.


An interesting observation is that from the 2 cm source case to the 4 cm and 6 cm source cases, the subspace angle decreases before increasing again in the 8 cm source case; i.e. there is a “turnaround” point in subspace angle as a function of source distance. This may be explained by the fact that for deeper and superficial sources, the ratio between the volume current contribution to the primary current contribution is higher than for sources that lie between them. For all mesh perturbation cases, 4 cm and 6 cm sources have the lowest volume-to-primary current contributions to the signal as compared to the 2 cm and 8 cm sources. Figure 4 illustrates this for the 10% mesh perturbation case. This may be explained qualitatively by the fact that the 2 cm deep primary source has a low signal strength due to its larger source-to-sensor distance, and hence has a low volume-to-primary current contribution to the signal. The superficial 8 cm source has a small source-to-sensor distance, and hence measures a larger volume current contribution, resulting in the higher volume-to-primary current contribution to the signal. As mentioned previously, all signal errors result from errors in the volume contribution portion only, i.e. . Thus, the higher volume contribution relative to the primary contribution implies higher signal errors given a same amount of mesh perturbation (equivalently, volume current perturbation) for the 2 cm and 8 cm source cases, hence explaining the “turnaround” point of the subspace angles at some source distance in between them.

Next, we determine if the additive error of the signal vector, , may be explained by increasing orders of degree truncation, and if varies according to sensor distances. First, we show that the unperturbed signal may be explained to a large extent with degree truncation for all the sensor array distances that we considered. This is shown in the first row of plots in Figure 5; the subspace angle with decays to become nearly zero at for all source distances. As expected, closer sensor array distances have higher subspace angles than further sensor arrays, which agrees with Figure 2.
From the second row of plots in Figure 5 however, we see that despite the total signal being well-explained at , the signal errors which consist mostly of higher frequency components require a higher truncation to explain the signal for all source distances. The subspace angle still decreases for increased degree truncation as expected (since are still volume current contributions), and the subspace angles are smaller for increased sensor array distances. However, the angles are much higher than those of the total signal , indicating that higher spatial frequency components are affected more by inaccurate mesh modeling. This is because a higher degree truncation required to fully explain the additive signal error of closer sensor arrays indicates that their has a more spatially complex pattern with higher spatial frequency components. This higher spatial complexity is due to the fact that higher spatial frequency components decay quickly with increasing distance, hence by placing sensors closer to the source, these components can be captured to give higher resolution of the signal error . Note that Figure 5 is for the case where the vertices of the mesh was perturbed radially up to 10%. The plots for the different mesh perturbations are similar, hence we present just the 10% case here.

4.3 Source localization and orientation errors
From our results above which considers the noiseless signal case, the signal vector suffers from higher inaccuracies for closer sensor arrays due to the larger errors in their higher spatial frequency components. Deep and superficial sources also had higher signal inaccuracies due to a higher volume current contribution relative to primary currents. Here, we investigate if these observations will be seen in the form of source localization errors as well. The source localization procedure was done via a standard ECD fit using the “fit_dipole” function in MNE-Python 1.0 [13, 14]. The forward model here was computed using LC BEM however, as it is currently the only solving method implemented in MNE-Python.
The results for the noiseless case are shown in the first columns of Figures 6, 7, 8 and 9, which correspond to the 2 cm, 4 cm, 6 cm and 8 cm source case respectively. Indeed, in the noiseless case, source localization and orientation errors are largest for closer sensor arrays, as well as deep and superficial sources for a fixed mesh perturbation. These observations are in agreement with the result for signal errors as presented above.
However, the primary motivation to move sensors closer to the head is because closer sensors have the potential to give more accurate source localization results due to higher SNR as mentioned in the introduction. The definition of SNR (with units of decibels) used in MNE-Python 1.0 follows that of Goldenholz [12],
(38) |
where is the source strength, is the total number of sensors on the sensor array, is the signal on sensor and is the noise variance on sensor . We thus introduced various noise levels to determine the noise level at which the effect of having more accurate source localization due to higher SNR of closer sensors outweighs the effect of less accurate source localization due to the higher errors of the high frequency components of the noiseless signal. We found that this occurred at a SNR of around 6 dB (the sensor noise was varied to force a 6 dB SNR for a varying sensor array distances); the localization and orientation errors began to increase as sensor array distances increased at around an SNR of 6 dB. This is shown in the second column of Figures 6, 7, 8 and 9. The rightmost column of Figures 6, 7, 8 and 9 show that for an SNR greater than 6 dB, in this case a constant 20 fT noise level, then there is an improvement in source localization for closer sensor arrays. This means that a higher SNR allowing for better source localization resolutions outweighs the effects of BEM errors for noisy signals with SNR above approximately 6 dB.




5 Conclusion
In this paper, we have investigated the signal and source localization errors due to BEM head geometry inaccuracies with respect to varying MEG sensor array distances. This examination was motivated by next-generation OPM sensors that may be placed directly on the subject’s head, resulting in signal measurements with higher spatial resolutions. This includes measuring any inaccurate volume current contributions with higher resolution; as stated before, in a piecewise homogeneous conductor model of the head, volume currents may be equivalently expressed as surface currents at the head model boundaries. As such, head model inaccuracies lead to inaccurate volume current contributions.
We found that for signals with SNR greater than 6 dB, placing sensor arrays closer to the head causes higher relative signal errors for a perturbed spherical head model, and thus this leads to higher source localization errors. This is because the signal measured by these sensor arrays now contain finer spatial details due to the ability to now capture the fast-decaying high spatial frequency components of the magnetic field, and these high frequency components suffer from higher errors due to head model inaccuracies. Moreover, for deep and superficial sources where there are higher relative volume current contributions to the signal, the signal and source localization errors are higher as well for a fixed mesh perturbation amount. For signals with SNR below 6 dB, the advantage of having higher SNR for closer sensor array distances outweighs the effects due to the increased errors arising from the high spatial frequency components, thus source localization errors decrease; this is consistent with the current understanding of the advantages of using OPM sensor arrays.
Our results tell us that in general, for noisy signals, OPM sensors should indeed result in more accurate source localization results despite head modelling errors. However, as signal noise levels decrease either via an improvement in sensor technology or signal processing methods (e.g. averaging over many trials), BEM head geometry errors must be minimized when sensor distances are shifted closer to the head in order to avoid increased signal and source localization inaccuracies.
6 Acknowledgements
We would like to thank Matti Stenroos for helpful discussions regarding BEM, as well as clarifications about his BEM codes. This project was funded by the NIH Brain Initiative grant U01EB028656 awarded to Sandia National Laboratories.
Sandia National Laboratories is a multimission laboratory managed and operated by National Technology and Engineering Solutions of Sandia, LLC—a wholly owned subsidiary of Honeywell International Inc.—for the U.S. Department of Energy’s National Nuclear Security Administration, under contract DENA0003525. This paper describes objective technical results and analysis. Any subjective views or opinions that might be expressed in the paper do not necessarily represent the views of the U.S. Department of Energy, the United States Government, or the National Institutes of Health. The content is solely the responsibility of the authors.
Appendix A Analytical first-order errors for CC BEM
From (24), we see that there are three terms that depend on the head model accuracy that affect the calculation of the magnetic field: the conductivities , the scalar electric potential (equivalently, the matrix ), and the vector solid angle . The latter two depend on the mesh accuracy, whereas the former depends on the conductivity values.
A.1 Perturbations to mesh vertices
First, we consider perturbations to . By looking at the form of as in (13), we see that there are two possible sources of error in the head model: the solid angle (i.e. vertex/triangle centroid perturbations), and the conductivity values of each region. Here, we offer analytical forms to compute the first-order errors due to each of these sources of error. Higher order corrections may be obtained with the help of e.g. Matlab or Mathematica.
The solid angle can be regarded as a scalar field in 12-dimensional space (3 coordinates per , , , ). A perturbation to one of these 12 coordinates corresponds to perturbations in the , or direction of one of the three vertices of the corresponding triangle , , , or the , or direction of the point of reference . Let and , where . For small perturbations, only the first-order expansion term is significant. If we let be perturbed to become , the error in solid angle calculations (10), , can be approximated as
(39) |
Let the argument within the arctan be . The right hand side of (39) may be evaluated by the chain rule:
(40) |
Note that due to the symmetric form of the solid angle where the numerator obeys scalar triple product identity and the denominator has all terms that obey cyclic index permutations, we only need to evaluate 2 partial derivatives of to get all 12 of them. Namely, we only need to evaluate one partial derivative with respect to any of the 3 coordinates of , and another with respect to any of the 9 coordinates of . Cyclic permutation of the coordinate indices then gives us the other partial derivatives with respect to the other 2 coordinates of the corresponding or . Then, for the case of partial derivatives corresponding to coordinates of , permutation of vertex indices gives us the other 2 triangle vertices’ 6 partial derivatives. Note that if we extend to higher-order partial derivatives, symmetry considerations may still be used to reduce the total number of partial derivatives to evaluate. However, mixed partials mean that more than 2 partial derivatives need to be evaluated necessarily.
One may also interpret the above 12 partial derivatives to evaluate as a 1-1 correspondence between the index permutations and 12 coordinates. The 3 coordinates correspond to the 3 cyclic permutations on the coordinate indices , whereas the 9 coordinates correspond to the possible pairings of the cyclic permutations of two sets of indices, namely the coordinate indices and vertex indices . If we denote the 3 coordinates of as and the 9 coordinates of as , , then the total perturbation of the solid angle is
(41) |
where are the 3 possible coordinate index cyclic permutations, and are the 9 possible pairs of coordinate index and vertex index cyclic permutations. Any small perturbation of a vertex results in the adjacent triangles’ perturbed centroids (i.e. perturbed observation points ) and the adjacent triangles’ change in solid angles; these two cases correspond to the first and second sums in (41) respectively.
The effects of the perturbations above may be represented by a sparse additive perturbative matrix as defined in (48), whose elements are calculated by (41) and (A.2). Note that the first sum of (41) corresponding to the case of perturbed centroids contribute to nonzero row entries, whereas the second sum corresponding to perturbed vertices contribute to nonzero column entries, due to our arrangement of the block elements in .
We now want to see how this affects . Let and . If is non-singular, then [37]
(42) | ||||
(43) | ||||
(44) |
Therefore, errors in potential are given by
(45) |
Next, we consider the first-order perturbation to the vector solid angle (26). It depends only on the coordinates of the triangles’ vertices and may be obtained in a straightforward manner,
(46) |
A.2 Perturbations to conductivity
We now consider perturbations to , which are conductivity values within the layers of the head model. This is an easier case to deal with, since we may simply add a perturbative constant to each . For the conductivity term within , let us denote this error term as
(47) |
Together with (41), the total perturbative matrix for small vertex perturbations and arbitrary conductivity inaccuracies is
(48) |
The errors in the total magnetic field up to first order with respect to perturbations of the components of as well as conductivities may be given by
(49) |
References
- [1] M. Abramowitz and I. Stegun, Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables, Dover, New York, 1964.
- [2] A. Borna, T. R. Carter, A. P. Colombo, Y.-Y. Jau, J. McKay, M. Weisend, S. Taulu, J. M. Stephen and P. D. D. Schwindt, “Non-Invasive Functional-Brain-Imaging with an OPM-based Magnetoencephalography System”, PLoS ONE, vol. 15, no. 1, 2020.
- [3] A. Borna, T. R. Carter, J. D. Goldberg, A. P. Colombo, Y.-Y. Jau, C. Berry, J. McKay, J. Stephen, M. Weisend, and P. D. D. Schwindt, “A 20-channel magnetoencephalography system based on optically pumped magnetometers”, Phys. Med. Biol., vol. 62, no. 23, 2017.
- [4] E. Boto, S. S. Meyer, V. Shah, O. Alem, S. Knappe, P. Kruger, T. M. Fromhold, M. Lim, P. M. Glover, P. G. Morris, R. Bowtell, G. R. Barnes and M. J. Brookes, “A new generation of magnetoencephalography: Room temperature measurements using optically-pumped magnetometers”, NeuroImage, vol. 149, pp. 404-414, 2017.
- [5] M. Dannhauer, B. Lanfer, C. H. Wolters and T. R. Knösche T.R., “Modeling of the human skull in EEG source analysis,” Human Brain Mapping, vol. 32, no. 9, pp. 1383–1399, 2011.
- [6] J. C. de Munck, “A linear discretization of the volume conductor boundary integral equation using analytically integrated elements (electrophysiology application),” IEEE Transactions on Biomedical Engineering, vol. 39, no. 9, pp. 986-990, 1992.
- [7] A. S. Ferguson and G. Stroink, “Factors Affecting the Accuracy of the Boundary Element Method in the Forward Problem – I: Calculating Surface Potentials,” IEEE Transactions on Biomedical Engineering, vol. 44, no. 11, 1997.
- [8] A. S. Ferguson, X. Zhang and G. Stroink, “A Complete Linear Discretization for Calculating the Magnetic Field Using the Boundary Element Method,” IEEE Transactions on Biomedical Engineering, vol. 41, no. 5, 1994.
- [9] G. Fischer, B. Tilg, R. Modre, F. Hanser, B. Messnarz and P. Wach, “Modeling the Wilson Terminal in the Boundary and Finite Element Method,” IEEE Transactions on Biomedical Engineering, vol. 49, no. 3, pp. 217-224, 2002.
- [10] N. G. Gençer and I. O. Tanzer, “Forward problem solution of electromagnetic source imaging using a new BEM formulation with high-order elements,” Physics in Medicine & Biology, vol. 44, no. 9, 1999.
- [11] D. B. Geselowitz, “On Bioelectric Potentials in an Inhomogeneous Volume Conductor,” Biophysical Journal, vol. 7, no. 1, pp. 1-11, 1967.
- [12] D. M. Goldenholz, S. P. Ahlfors, M. S. Hämäläinen, D. Sharon, M. Ishitobi, L. M. Vaina and S. M. Stufflebeam, “Mapping the signal‐to‐noise‐ratios of cortical sources in magnetoencephalography and electroencephalography,” Human Brain Mapping, vol. 30, no. 4, pp. 1077-1086, 2008.
- [13] A. Gramfort, M. Luessi, E. Larson, D. A. Engemann, D. Strohmeier, C. Brodbeck, R. Goj, M. Jas, T. Brooks, L. Parkkonen, and M. S. Hämäläinen. “MEG and EEG data analysis with MNE-Python,” Frontiers in Neuroscience, 7(267):1–13, 2013.
- [14] A. Gramfort, M. Luessi, E. Larson, D. A. Engemann, D. Strohmeier, C. Brodbeck, L. Parkkonen, and M. S. Hämäläinen. “MNE software for processing MEG and EEG data,” NeuroImage, 86:446–460, 2014.
- [15] H. Gunawan, O. Neswan and W. Setya-Budhi, “A Formula for Angles between Subspaces of Inner Product Spaces,” Beiträge zur Algebra und Geometrie, vol. 46, no. 2, 2005.
- [16] M. S. Hämäläinen, R. Hari, R. Ilmoniemi, J. Knuutila and O. V. Lounasmaa, “Magnetoencephalography - theory, instrumentation, and applications to noninvasive studies of the working human brain,” Review of Modern Physics, vol. 65, no. 2, pp. 413-497, 1993.
- [17] M. S. Hämäläinen and J. Sarvas, “Realistic Conductivity Geometry Model of the Human Head for Interpretation of Neuromagnetic Data,” IEEE Transactions on Biomedical Engineering, vol. 36, no. 2,1989.
- [18] R. Hari and A. Puce, MEG-EEG Primer, Oxford University Press, 2017.
- [19] J. Haueisen, C. Ramon, M. Eiselt, H. Brauer, H. Nowak, “Influence of tissue resistivities on neuromagnetic fields and electric potentials studied with a finite element model of the head,” IEEE Transactions on Biomedical Engineering, vol. 44, no. 8, pp 727–735, 1997.
- [20] R, M. Hill, E. Boto, M. Rea, N. Holmes, J. Leggett, L. A. Coles, M. Papastavrou, S. K. Everton, B. A. E. Hunt, D. Sims, J. Osborne, V. Shah, R. Bowtell and M. J. Brookes, “Multi-channel whole-head OPM-MEG: Helmet design and a comparison with a conventional system,” NeuroImage, vol. 219, no. 116995, 2020.
- [21] J. Iivanainen, M. Stenroos and L. Parkkonen, “Measuring MEG closer to the brain: Performance of on-scalp sensor arrays,” NeuroImage, vol. 147, p. 542 - 553, 2017.
- [22] J. Iivanainen, R. Zetter, M. Grön, K. Hakkarainen and L. Parkkonen, “On-scalp MEG system utilizing an actively shielded array of optically-pumped magnetometers,” NeuroImage, vol. 194, p. 244 - 257, 2019.
- [23] R. J. Ilmoniemi and J. Sarvas, Brain signals: Physics and mathematics of MEG and EEG. MIT Press, 2019.
- [24] S. Knappe, T. Sander and L. Trahms, Optically-Pumped Magnetometers for MEG, Springer Verlag, Heidelberg, 2014.
- [25] B. Lanfer, M. Scherg, M. Dannhauer, T. R. Knösche, M. Burger and C. H. Wolters, “Influences of skull segmentation inaccuracies on EEG source analysis,” NeuroImage, vol. 62, no. 1, pp. 418-431, 2012.
- [26] M. S. Lynn and W. P. Timlake, “The numerical solution of singular integral equations of potential theory,” Numerische Mathematik, vol. 11, pp. 77-98, 1968.
- [27] A. J. Mäkinen, R. Zetter, J. Iivanainen, K. C. J. Zevenhoven, L. Parkkonen and R. J. Ilmoniemi, “Magnetic-field modeling with surface currents. Part I. Physical and computational principles of bfieldtools,” Journal of Applied Physics, 063906, 2020.
- [28] J. W. H. Meijs, O. W. Weier, M. J. Peters and A. van Oosterom, “On the Numerical Accuracy of the Boundary Element Method,” IEEE Transactions on Biomedical Engineering, vol. 36, no. 10, 1989.
- [29] G. Nolte, T. Fieseler and G. Curio, “Perturbative analytical solutions of the magnetic forward problem for realistic volume conductors,” Journal of Applied Physics, vol. 89, no. 2360, 2001.
- [30] A. V. Oosterom and J. Strakee, “The Solid Angle of a Plane Triangle,” IEEE Transactions on Biomedical Engineering, vol. BME-30, no. 2, pp. 125-126, 1983.
- [31] C. Phillips, J. Mattout and K. Friston, Forward models for EEG, Academic Press, 2006.
- [32] H. A. Schlitt, L. Heller, R. Aaron, E. Best and D. M. Ranken, “Evaluation of Boundary Element Methods for the EEG Forward Problem: Effects of Linear Interpolation,” IEEE Transactions on Biomedical Engineering, vol. 42, no. 1, 1995.
- [33] M. Stenroos, “The transfer matrix for epicardial potential in a piece-wise homogeneous thorax model: the boundary element formulation,” Physics in Medicine & Biology, vol. 54, no. 18, 2009.
- [34] M. Stenroos and O. Hauk, “Minimum-norm cortical source estimation in layered head models is robust against skull conductivity error,” NeuroImage, vol. 81, pp. 265-272, 2013.
- [35] M. Stenroos, V. Mäntynen and J. Nenonen, “A Matlab library for solving quasi-static volume conduction problems using the boundary element method,” Computer Methods and Programs in Biomedicine, vol. 88, no. 3, pp. 256-263, 2007.
- [36] M. Stenroos and A. Nummenmaa, “Incorporating and Compensating Cerebrospinal Fluid in Surface-Based Forward Models of Magneto- and Electroencephalography,” PLoS ONE, vol. 11, no. 7, 2016.
- [37] G. W. Stewart and J.-G. Sun, Matrix perturbation theory, Academic Press, Boston, 1990.
- [38] S. Taulu and M. Kajola, “Presentation of electromagnetic multichannel data: The signal space separation method,” Journal of Applied Physics, vol. 97, 2005.
- [39] S. Vallaghe and M. Clerc, “A Global Sensitivity Analysis of Three- and Four-Layer EEG Conductivity Models,” IEEE Transactions on Biomedical Engineering, vol. 56, no. 4, pp. 988-995, 2009.
- [40] W.-J. Yeo, Y.-R. Yeo and S. Taulu, “Towards analytical calculation of the magnetic flux measured by magnetometers,” Physics Letters A, vol. 411, 2021.