Abstract
Accurate source localization of electroencephalographic (EEG) signals requires detailed information about the geometry and physical properties of head tissues. Indeed, these strongly influence the propagation of neural activity from the brain to the sensors. Finite difference methods (FDMs) are head modelling approaches relying on volumetric data information, which can be directly obtained using magnetic resonance (MR) imaging. The specific goal of this study is to develop a computationally efficient FDM solution that can flexibly integrate voxel-wise conductivity and anisotropy information. Given the high computational complexity of FDMs, we pay particular attention to attain a very low numerical error, as evaluated using exact analytical solutions for spherical volume conductor models. We then demonstrate the computational efficiency of our FDM numerical solver, by comparing it with alternative solutions. Finally, we apply the developed head modelling tool to high-resolution MR images from a real experimental subject, to demonstrate the potential added value of incorporating detailed voxel-wise conductivity and anisotropy information. Our results clearly show that the developed FDM can contribute to a more precise head modelling, and therefore to a more reliable use of EEG as a brain imaging tool.
Similar content being viewed by others
Avoid common mistakes on your manuscript.
Introduction
New developments in brain imaging technology have enabled substantial advances in our understanding of human brain function. In the last years, one of the brain imaging techniques that has attracted increasing interest in the neuroscientific community is electroencephalography (EEG). This technique permits studying neural dynamics with high temporal resolution, using electric potentials measured over the scalp. EEG has been widely used for basic and clinical neuroscience research. In most EEG studies, the analysis is conducted on task-induced or spontaneous signal modulations at the sensor level. In some studies, however, it is necessary to reconstruct active sources in the brain from EEG signals (Michel and Murray 2012). This “source localization” or electrical source imaging (ESI) step requires the integration of detailed information about the geometry and physical properties of the head tissues that are between neural sources and EEG sensors (Grech et al. 2008; Castaño-Candamil et al. 2015). In particular, ESI algorithms require as input a “leadfield” matrix expressing the relationship between dipolar currents in the brain and the corresponding electric potentials measured over the scalp (Sarvas 1987; Tadel et al. 2011; Salmelin and Baillet 2009; Vatta et al. 2010; Akalin Acar et al. 2016; Vorwerk et al. 2014). The leadfield matrix can be obtained by solving the quasi-static approximation of Maxwell’s equations for any given current density distribution (Clark and Plonsey 1968; Sarvas 1987). Simplified head models using spherical geometries were initially used. In this case, solutions for Maxwell’s equations can be calculated both numerically and analytically (Herrendorf et al. 2000; DeMunck 1988; Irimia and Bradshaw 2005).
Magnetic resonance (MR) and computed tomography (CT) are noninvasive imaging techniques that can provide detailed structural information. This can be used to build a more detailed and anatomically realistic head models. In particular, individual MR and CT images can be segmented into different tissue types, such as white and gray matter (WM/GM), cerebrospinal fluid (CSF), compact and spongy bone, and skin, among others. Recently, diffusion-weighted and diffusion-tensor imaging (DWI/DTI) has also been used to determine the anisotropy profile of brain structures based on the movement of water molecules (Le Bihan and Johansen-Berg 2012). DWI/DTI is particularly important for modelling anisotropic properties in the WM (Bashar et al. 2008). Whereas anisotropy in the head can be estimated across voxels by combining information from DWI/DTI, it is still an open issue how to extract local conductivity information for head tissues. A commonly used approach is to assign specific conductivity values to each segmented tissue (Michel and Murray 2012; Liu et al. 2017). It is worth noting that the accuracy of EEG source localization strongly relies on the precision of the conductivity values used for the different tissues in the head model (Irimia et al. 2013a, b).
Notably, the calculation of the leadfield matrix for realistic free-form head volumes is only possible by numerically solving Maxwell’s equations. To this end, different computational approaches have been proposed. The most commonly used are the boundary element methods (BEMs), primarily due to their low computational requirements. In BEMs, head compartments need to be nested and to have smooth boundaries. Note that conventional BEM head models are built with brain, skull, and scalp as major tissues, without distinguishing between GM and WM compartments. Additionally, the CSF is often not included, and the propagation of electric currents is assumed to be isotropic within any head tissue. These approximations limit the precision of head modelling using BEMs (Haueisen et al. 1997; Vorwerk et al. 2014).
For more accurate head modelling, it may be more appropriate to use other approaches that rely on realistically shaped head tissue geometry, as well as anisotropy. These techniques can be divided into three main categories: finite element methods (FEMs) (Schimpf et al. 2002; Wolters et al. 2006), finite difference methods (FDMs) (Hallez et al. 2005; Turovets et al. 2014) and finite volume methods (FVMs) (Cook and Koles 2006). FEMs are based on volumetric meshes (e.g., using tetrahedra), which can have arbitrary dimension. Their precision and computational demands can be adjusted by varying the mesh resolution (Vorwerk et al. 2017; Ziegler et al. 2014). In contrast to FEMs, FDMs and FVMs partition the head volume in a homogeneous voxel grid. Thus, a typical element in the FDM/FVM grid is surrounded by other elements that in general have anisotropic conductivity properties. According to the method of the fictitious domain (FD) (Turovets et al. 2014), extremely low conductivity values are assigned to regions outside the head, modelling the surrounding air, such that appropriate boundary conditions are implicitly set for the current flow. Notably, the number of unknowns in FEMs, FDMs and FVMs is extremely high, leading to large but sparse linear equation systems. As such, iterative solvers need to be used to solve Maxwell’s equations. Most popular iterative solvers include the successive over-relaxation (SOR), conjugate gradient method, algebraic multigrid, and biconjugate gradient (BiCG) methods (Hallez et al. 2005).
A fundamental feature of FDMs is its straightforward integration with structural imaging data (CT/MR and DWI/DTI). Using FDMs, it would be possible to model anisotropy and across-voxel differences in conductivity without relying on any meshing step. However, no such FDM solution is currently available. In this study, our aim is to develop a computationally efficient FDM that can flexibly integrate across-voxel conductivity and anisotropy information.
Methods
Theory and Method Description
EEG Forward Problem
The EEG forward problem entails the calculation of the electric potentials \(\phi \in {\mathbb{R}}\) on the scalp surface \({\Gamma _\Omega } \in {{\mathbb{R}}^2}\) for each single source position within the head volume \(\Omega \in {{\mathbb{R}}^3}\) (Panizo et al. 1977). Since the EEG spectrum largely contains frequencies below 100 Hz, the quasi-static approximation of Maxwell’s equations is used. Mathematically, the solution of the forward problem requires the solution of the Poisson equation:
where \(J \in {\mathbb{R}}\) is the electric current density in the position \(({x_{{\iota _f}}},{y_{{\iota _f}}},{z_{{\iota _f}}}) \in \Omega\), \((x,y,z) \in \Omega\) are voxel positions within the head, and \(\sigma (x,y,z) \in {{\mathbb{R}}^{3 \times 3}}\) is the local conductivity in a inhomogeneous anisotropic medium.
The solution of Eq. (1) can be found by imposing boundary conditions between compartments having different conductivity (Saleheen and Ng 1997). Broadly speaking, two conditions hold at the interface between two compartments. The first one relates to the inability to accumulate charge at the interface \({\Gamma _{{\sigma _1},{\sigma _2}}}\), which implies that all the charge leaving one compartment must enter the second compartment (Neumann statement):
where \({\sigma _1}\) and \({\sigma _2}\) are the conductivity of the first and second compartment, respectively, and \({\widehat {e}_n}\) is a vector normal to the interface surface \(\Gamma\). As a special case, no current can flow outside the head volume due to the very low conductivity of the air. Therefore, the current density at the head surface boundary (scalp) \({\Gamma _\Omega }\) becomes:
The second condition is only valid for interfaces that are not connected with air. By crossing an interface \({\Gamma _{{\sigma _1},{\sigma _2}}}\) the potential cannot have discontinuities (Dirichlet boundary condition):
Anisotropic FDM (AFDM)
Considering an anisotropic symmetric conductivity tensor \(\varvec{\sigma} \in {{\mathbb{R}}^{3 \times 3}}\), Eq. (1) can be rewritten as follows (Sarvas 1987):
where \({\sigma _{ij}}\) are the elements of the conductivity tensor \(\varvec{\sigma}\), and \({\iota _f}({x_{{\iota _f}}},{y_{{\iota _f}}},{z_{{\iota _f}}})\) is a current dipole in the head volume \(\Omega\). The current source density in Eq. (1) can be defined as a function \({\iota _f}({x_{{\iota _f}}},{y_{{\iota _f}}},{z_{{\iota _f}}})\), representing a current dipole in the position \(({x_{{\iota _f}}},{y_{{\iota _f}}},{z_{{\iota _f}}}) \in \Omega\) (Hallez et al. 2007). For the solution of Poisson equation, we use the approach introduced in Hallez et al. (2005) and named finite difference method in anisotropic media (AFDM). Following the AFDM approach, Eq. (5) is discretized in a 18-point stencil with 8 voxels sharing the same vertex \(\phi _{0}^{j}\). This choice leads to a linear equation for the vertex \(j\) in the stencil \({S_j}\) around \(\phi _{0}^{j}\) (see Fig. 1) as follows:
where \(\phi _{i}^{j} \in {\mathbb{R}}\) is the scalar-valued potential at the \(i\)-th neighbour voxel of the \(j\)-th node in the stencil \({S_j}\). \({\iota _f} \in {\mathbb{R}}\) is the dipole current magnitude, and \(\alpha _{i}^{j} \in {\mathbb{R}}\) are the FDM coefficients (Saleheen and Ng 1998), which depend on the conductivity tensor \(\varvec{\sigma}\) and the internode distance \(h \in {\mathbb{R}}\) (Fig. 1). Additionally, a transition layer is included, which removes the singularities in the spatial derivatives between two compartments with different conductivity (Saleheen and Ng 1998). This layer acts as a buffer that allows a smooth potential transition from one medium with conductivity \({\sigma _1}\) to another with conductivity \({\sigma _2}\).
In all cases under consideration, the finite difference equations for the stencil (Fig. 1) can be expressed in a linear equation system as follows:
where \(\phi \in {{\mathbb{R}}^N}\) is a vector with \(N\) unknown potentials, \({\varvec{A}} \in {{\mathbb{R}}^{N \times N}}\) is a non-singular coefficient matrix and \({\varvec{\iota}_f} \in {{\mathbb{R}}^N}\) is a right hand side vector representing single dipole sources. Thus, the coefficient matrix \({\varvec{A}}\) is square, symmetrical and sparse, with only 19 non zero entries per row.
Coefficient Matrix Formulation
A stationary solver with SOR is typically used in FDMs (Hallez et al. 2005). With SOR, the information about the position of the 19 non-zero coefficients in the matrix \({\varvec{A}}\) is not used, because the coefficients in each row are summed. However, the matrix \({\varvec{A}}\) must be properly defined to use more efficient (non-stationary) solvers for the linear system. To address this problem, it has been suggested to define a FD as a full cubic or cuboidal space, in which the voxels around the head have very low conductivity (Turovets et al. 2008). The presence of these additional voxels increases the computational complexity and may also reduce the reliability of the estimated leadfield matrix due to propagation errors in the linear equation system. In this study, we propose an approach for removing the voxels around the head from the linear equation system, and for building a coefficient matrix that only contains non-zero potentials (Fig. 2). To this end, an 18-node-three data structure is built, mapping the three-dimensional node positions in the coefficient matrix.
The volume conductor \(\Omega\) is discretized in regular \(({s_x},{s_y},{s_z}) \in {\mathbb{Z}}\) partitions in \(x\), \(y\) and \(z\), directions, with resolution \({h_x}\), \({h_y}\) and \({h_z}\) respectively. In the FD, the coefficients \({c_{l,m}} \in {\mathbb{R}}\) in Eq. (6) are regularly ordered in a rectangular box, so that it is possible to write \({c_{l,m}}= - \sum\nolimits_{{i \in {S_j}}} {\alpha _{m}^{l}}\), \(\forall l=m\); \({c_{l,m}}=\alpha _{m}^{l}\), \(\forall (l \ne m) \in {S_l}\) and \({c_{l,m}}=0\), \(\forall l,m \notin {S_l}\) where, \(l,m=0,1,2, \cdots ,N - 1 \in {\mathbb{Z}}\). In the original domain (OD), we define the non-zero coefficients \({c_{{l_N},{m_N}}}\), \(\forall {l_r}(x_{i}^{r},y_{i}^{r},z_{i}^{r}) \ne 0\) as follows:
with \({l_r},{m_r}=0,1,2, \ldots ,{N_Z} - 1\), where NZ is the number on non-zero valued elements.
In both cases under consideration, every row corresponds to a neighbour \({S_j}\), and each column is \(m\)-th position of the linear expansion over the spatial positions \((x_{i}^{j},y_{i}^{j},z_{i}^{j})\) for the coefficient matrix \({\varvec{A}}\).
Numerical Solver and Preconditioning
Several iterative methods have been developed for solving linear equation systems. Yet, the choice of the solver depends mainly on two considerations: the convergence speed to achieve a given relative minimum residual and the computational complexity of each iteration. Notably, the numerical properties of the coefficient matrix highly influence the convergence rate of any solver. Indeed, the more ill-conditioned the system matrix, the slower the convergence of the gradient descent method. The condition number of \({\varvec{A}}\), defined as \(C=\left\| {\varvec{A}} \right\|\left\| {{{\varvec{A}}^{ - 1}}} \right\|\), generally measures the sensitivity of a linear equation system solution to variations in the input data. As such, it can be used to estimate the convergence of an iterative solver: the larger the conditional number, the slower the solver is expected to reach a desired minimal residual. In this regard, we used preconditioning to reduce the conditional number \(C \in {\mathbb{R}}\), selecting an adequate non-singular matrix \({\varvec{M}}\) such that the condition number of the product \({{\varvec{M}}^{ - 1}}{\varvec{A}}\) remains low. Therefore, Eq. (7) can be rewritten as:
where \({\varvec{M}} \in {{\mathbb{R}}^{N \times N}}\) is the so-called preconditioner for the system matrix \({\varvec{A}} \in {{\mathbb{R}}^{N \times N}}\), \(\varvec{\phi} \in {{\mathbb{R}}^N}\) is the vector of potentials, and \({\varvec{\iota}_f} \in {{\mathbb{R}}^N}\) is the righthand side of the linear equation system (excitation). To properly balance convergence speed and estimation residuals in our proposed FDM approach, we combined a BiCG-stabilized solver with an incomplete LU (iLU) preconditioner (Cuartas et al. 2015).
Reciprocity for the AFDM Method
The solution of the forward problem, if the same volumetric space defined by MRI data is used, may even have millions of unknowns. However, distributed source localization using EEG is usually performed at lower spatial resolution, such that the source space is modelled using a few thousand dipoles (Grech et al. 2008). Theoretically speaking, the forward problem should be solved for each of these dipoles. Importantly, it is possible to perform calculations for all pairs of electrodes over the scalp rather than for all dipole positions by using the reciprocity theorem (Vanrumste et al. 2001). This theorem states that:
where \({U_{AB}}\) is the so-called leadpair potential between two scalp electrodes (\({E_A}\) and \({E_B}\)) produced for a single dipole \({I_{rx}}\) in the brain. In turn, \({I_{AB}}\) is the current flowing between the same pair of scalp electrodes, produced for the potential \({V_{rx}}\) in the brain. The reciprocity theorem is widely used in the EEG forward methods, and also in our FDM. This permits indeed to reduce the number of forward calculations to \(N - 1\), where \(N\) is the number of electrodes. Since our FDM also incorporates anisotropy information, we will refer to it as anisotropic finite difference reciprocity method-non zero (AFDRM-NZ).
Method Validation
Spherical Model
For the numerical validation of AFDRM-NZ, we generated a spherical head model with six concentric layers with the following radii (measured in [mm]): skin = 0.092, skull = 0.084, CSF = 0.076, brain gray matter (GM) = 0.068, brain white matter (WM) = 0.050, and thalamic inner sphere (TL) = 0.020 (Fig. 3). We fixed the conductivity values [S/m] based on the study by (Vorwerk et al. 2014): skin (scalp) = 0.43, skull = 0.0105, CSF = 1.79, GM = 0.33, WM = 0.14, and TL = 0.33. The WM was modelled as either isotropic or anisotropic. In the latter case, conductivity of WM voxels was set to have 9:1 radial/tangential ratio respectively (Hallez et al. 2005). We positioned 112 electrodes in 6 geodesic rings evenly distributed over the scalp surface (Turovets et al. 2014). For the source space, we randomly selected 300 sources within the GM (superficial) and the TL (deep) regions, with radial direction and variable distance from the electrodes (Stenroos and Sarvas 2012).
We tested the performance of OD–BiCG–iLU, the BiCG–iLU solver for the OD integrated into AFDRM-NZ, against that of other FDM solvers previously investigated by (Cuartas et al. 2015). These solvers are: OD–SOR, FD–SOR, OD–BiCG–NP, FD–BiCG–NP, OD–BiCG–LU, FD–BiCG–iLU, FD BiCG Fourier–Jacobi. Calculations were stopped either after 1000 iterations or when the relative residual was below 10−13. The computation time was measured using a computer with Windows operating system, a 2.7 GHz Intel Xeon processor, and 32 GB RAM. We also compared the conditional number obtained with the BiCG–iLU solver for the original and the FD, respectively.
To quantify the precision of the leadfield matrix produced by AFDRM-NZ, we compared it with the one obtained using an analytical solution (DeMunck 1988) using two different measures: the logarithmic magnitude (lnMAG) (Güllmar et al. 2010) and the relative difference measure (RDM) (Meijs et al. 1989). These were defined as follows:
where \(L\) denotes a leadfield matrix, the norm is the \({l^2}\) norm and subscripts 1 and 2 correspond to the reference and test head models, respectively. To better assess the performance of AFDRM-NZ, we also created a leadfield matrix using a 9-layer isotropic FEM with hexahedral meshing (Vorwerk 2018) and 3-layer BEM with scalp, skull and brain compartments (Oostenveld et al. 2011). Both FEM and BEM are integrated in the FieldTrip toolbox (http://www.fieldtriptoolbox.org). We calculated MAG, RDM and computation time for FEM and BEM, as previously done for AFDRM-NZ.
Realistic Head Model
We also used AFDRM-NZ to model the head of a real experimental subject. To this end, we acquired structural MR images using a General Electric Sigma HDxt 3.0 T MR scanner with a body coil for proton excitation and an 8-channel head coil for signal detection. We used a 3DT1w Spoiled Gradient Recalled (SPGR) sequence with TR = 8.7 ms, TE = 3.2 ms, TI = 400 ms, NEX = 1, FOV = 260 mm, matrix = 320 × 160, resolution 1 × 1 × 1 mm, flip angle = 12°; a diffusion weighted imaging (DWI) sequence with TR = 9200 ms, TE = 83.8 ms, TI = 0 ms, NEX = 1, acquisition FOV = 240 mm, matrix = 100 × 100, flip angle = 90°, directions = 45, thickness = 2 mm; an iterative decomposition of water and fat with echo asymmetry and least-squares estimation (IDEAL) T2 sequence with TR = 3000 ms, TE = 81.9 ms, NEX = 6, FOV = 260 mm, matrix 320 × 160, flip angle 90°; a time of flight (TOF) sequence consisting of 8 volumes with 6 slices overlap with TR = 20 ms, TE = 2.1 ms, NEX = 1, FOV = 224 mm, matrix 224 × 224, flip angle 15°.
DWI, IDEAL, and TOF data were initially aligned to the T1-w image with a similarity-based affine registration procedure to correct for image orientation differences and geometrical distortions. DWI data were processed to calculate diffusion tensors that were resampled to have the same resolution as the T1-w data. Afterward, a segmentation of the T1w image in 9 compartments was performed with Freesurfer (https://surfer.nmr.mgh.harvard.edu), integrating information also from IDEAL and TOF images. Conductivity values [S/m] were set as follows: skin = 0.43, muscle = 0.355, fat = 0.0573, eyeballs = 1.55, vessels = 0.28, skull = 0.0105, CSF = 1.79, GM = 0.33, WM = 0.14 (with 9:1 radial/tangential anisotropic ratio). A 5-layer segmentation was derived from the 9-layer segmentation, by incorporating muscle, fat, eyeballs, vessels within the skin compartment. Finally, a 128-channel EEG montage was spatially aligned to the skin surface (see Fig. 4).
As a final test, we analyzed the dipole estimation errors due to not include multiple tissue compartments with varying conductivities in the realistic forward modeling. Within this framework, pairwise dipole parameters \(\left( {r,d} \right)\) for a given source configuration were estimated by calculating the electrode potentials \({v_{test}} \in {\mathbb{R}}\) that minimize the following equation (Hallez et al. 2009):
where \({v_{ref}}\left( {\overline {r} ,\;\overline {d} } \right)\) are the electrode potentials of the reference model and \({v_{test}}(r,d)\) are the those estimated in the test model. The term \(c(r)\) is a penalization parameter that is set to be very large for dipole positions outside the GM. The notation \(\left\| \cdot \right\|\) stands for the Euclidean norm.
The dipole localization error (DLE) for a reference \(\left( {\overline {r} ,\;\overline {d} } \right)\) and a test \((r,d)\) source configuration was computed as the Euclidean norm of their difference:
We used the DLE to examine the importance of correctly modelling the conductivity of the different tissues for the calculation of an accurate leadfield matrix. To this end, we used the parametric inverse solution with the anisotropic 9-layer model as the reference model, and compared it with the solution obtained by using the anisotropic 5-layer model.
Results
Computational Performance of FDM Solvers
We tested the computational performance of several linear solvers for the OD and the FD. Our results showed that the stationary solver SOR had the worse convergence rate and a final relative error larger than 10−8 even after 1000 iterations. Generally speaking, the use of a suitable preconditioning substantially increased the convergence rate of the BiCG solvers and led to lower residual errors, both for the original and the FD. The most efficient solver in terms of convergence rate was the BiCG OD–LU, which reached a target residual value of 10−13 just after two iterations. Additionally, the version with Fourier–Jacobi preconditioning (FD–FJ) had a high convergence rate. However, this solver initially had a high residual error value (around 101), and the minimum residual error reached was around 10−10. Only the OD–LU and OD–iLU reached the target residual error of 10−13 (Fig. 5).
We also examined the computational time for the different solver implementations under consideration (Table 1). As expected, the LU preconditioning required considerably more computational time than the other preconditioners (Fourier–Jacobi and iLU). Overall, the original-domain BiCG–iLU yielded the lowest total computation time. The FD with Fourier–Jacobi preconditioning was also computationally efficient, but relatively slower than OD–iLU.
Validation of AFDRM-NZ Using an Analytical Solution
We assessed the numerical solution obtained using AFDRM-NZ for the 6-layer spherical head model against the analytical solution (DeMunck 1988). We observed a very close correspondence between the leadfield matrices, in both isotropic and anisotropic conditions.
We calculated MAG and RDM measures to quantify this correspondence. The results of this analysis confirmed the reliability of the solution obtained with AFDRM-NZ for all dipole positions and orientations in GM and TL regions. In contrast, BEM and FEM had an altered distribution of electric potentials across recording channels (Figs. 6, 7). Overall, we found the AFDRM-NZ to have lower computation time and more efficient memory use than FEM, but not BEM (Table 2).
Realistic Head Modelling with AFDRM-NZ
As a last validation step, we used AFDRM-NZ to create anisotropic realistic head models. First of all, we measured the computational time required for the calculation of a single lead-pair, which was 279.31 s for a fully isotropic model and 347.55 s when anisotropy information was included.
To qualitatively appreciate the impact of modelling WM anisotropy, we then examined the equipotential lines (forward potentials) for a single dipole source laying in the GM, with normal orientation with respect to the cortical surface. When anisotropy information was not used, equipotential lines were smooth and crossed the boundaries between head tissues with minor distortion effects (Fig. 8). In the anisotropic case, instead, the lines tended to locally align with the major white matter tracts.
Finally, we examined the DLE when using the 5-layer head model against the more precise 9-layer model. The results of this analysis revealed that localization errors associated with a less precise definition of head tissues could lead to large localization errors, being up to 2 cm in deeper brain regions (Fig. 9).
Discussion
In this study, we have introduced a novel finite-difference method (AFDRM-NZ) for solving the forward problem in EEG source analysis. The electromagnetic field solver integrated in AFDRM-NZ has superior computational performance and reliability compared with alternative finite-difference solvers. Most importantly, AFDRM-NZ is designed to flexibly incorporate whole-brain conductivity information without head compartment tessellations, and can therefore optimally integrate information from structural MR imaging. Furthermore, our FDM method is intrinsically built to consider conductivity anisotropy, which is important to ensure correct modelling of current flow in the head. In the next section, we will more extensively discuss the aspects highlighted here above.
Computational Performance
AFDRM-NZ is based on the use of an iLU preconditioner and BiCG-stabilized solver, in combination with the Saleheen coefficients for FDM computations in the original-domain (non-zero). These technological solutions were specifically conceived to achieve very high computational performance, for a standard level of reconstruction error. First of all, our results show a sharp reduction of computational times of the BiCG-stabilized solver with iLU preconditioning against the commonly used SOR solver (Hallez et al. 2005) (Fig. 5). The use of the Saleheen coefficients in the coefficient matrix \({\varvec{A}}\), in combination with the iLU preconditioner, strongly increased the convergence rate and the numerical smoothness of the BiCG solver, such that very small residual errors could be reached (Table 1). Importantly, the original-domain (non-zero) solution permitted a reduction in the computational complexity of the preconditioning by about three times with respect to the FD solution (Turovets et al. 2014). This is because the voxels surrounding the head, which are assumed to have zero potential, are not included in the linear equation system for FDM.
It is not straightforward to compare AFDRM-NZ with a non-FDM solution, since the use of different software implementations and different input parameters may strongly drive the results. When we examined the computational efficiency of AFDRM-NZ with respect to FEM and BEM solutions incorporated into FieldTrip, we found that our method requires less allocated memory to be allocated than FEM, and also has shorter computation times. On the other hand, by using BEM, we generated a leadfield matrix in shorter times and using less memory (Table 2). It should be noted that these comparisons in terms of memory and computation times were conducted without considering differences in reconstruction errors across methods.
Reliability of the Leadfield Matrix Solution
The validation conducted using a spherical head model revealed a high correspondence between the potentials calculated using AFDRM-NZ and the analytic approach (Fig. 6). This finding was corroborated by the fact that lnMAG and RDM metrics had a median value close to zero at a very low dispersion (Fig. 7). In the realistic head model, we observed the equipotential lines to show a smooth transition at the interface between different conductivity tissues in the brain (Fig. 8), following the general Neumann boundary condition. When the WM was modelled as an anisotropic medium, the equipotential lines were qualitatively different with respect when conductivity in the WM was considered to be isotropic. In particular, the equipotential lines tended to locally align to WM tracts (Wolters et al. 2006; Turovets et al. 2014; Hallez et al. 2009).
Impact on Electrical Source Imaging
Besides the computational efficiency of AFDRM-NZ, its usability and potential impact for ESI should also be considered. The AFDRM-NZ solution was indeed developed to perfectly integrate with structural imaging data available from MRI, which is defined in a homogeneous volumetric space. First of all, anisotropy information can be extracted from diffusion MR imaging data and directly provided in the form of a diffusion tensor to AFDRM-NZ. A classical approach for the incorporation of conductivity information, which is used in FDMs but also BEMs and FEMs, relies on the segmentation of T1-weighted MR images in multiple head compartments. A conductivity value for each compartment is either extracted from the literature or non-invasively estimated using electrical impedance tomography. It has been suggested that simultaneous EEG/MEG measurements can be used to calibrate the conductivity values, aiming at maximizing the correspondence between source localizations from EEG and MEG data, respectively (Aydin et al. 2014). Another emerging approach that is attracting increasing interest in the brain imaging community is the use of MR imaging for low-frequency conductivity mapping (Michel et al. 2016). This may permit to obtain volumetric images of head conductivity, which is particularly important in the case of patient populations. AFDRM-NZ is the first head modelling method that can take advantage of this new development in the field of MR imaging. Accordingly, the use of AFDRM-NZ in combination with MR conductivity and diffusion images may yield superior source localization precision for EEG data collected not only in healthy volunteers but also neurological and psychiatric patients.
Limitations and Future Directions
AFDRM-NZ has been developed to ensure maximum flexibility of use, as well as high computational speed. However, even though AFDRM-NZ is relatively faster than several other FDM implementations, it overall requires relatively large computation time. From this standpoint, future efforts may be dedicated to an implementation of AFDRM-NZ that has parallel processing capabilities. If at least as many processing cores are available as the number of EEG electrodes, full parallelization can in principle be achieved, bringing a full AFDRM-NZ calculation in less than 5 min.
Conclusion
We have introduced AFDRM-NZ, a computationally-efficient FDM that can flexibly integrate across-voxel conductivity and anisotropy information to solve the EEG forward problem. Our results clearly show that AFDRM-NZ can contribute to more precise head modelling, which is essential for using EEG as a brain imaging tool (Michel and Murray 2012). In future studies, AFDRM-NZ could also be employed for studying the effects of conductivity uncertainty on source localization accuracy (Irimia et al. 2013a, b), and for the modelling of currents injected in the brain by means of transcranial current stimulation (Truong et al. 2013).
References
Akalin Acar Z, Acar CE, Makeig S (2016) Simultaneous head tissue conductivity and EEG source location estimation. NeuroImage. https://doi.org/10.1016/j.neuroimage.2015.08.032
Aydin Ü, Vorwerk J, Küpper P, Heers M, Kugel H, Galka A, Hamid L, Wellmer J, Kellinghaus C, Rampp S, Wolters CH (2014) Combining EEG and MEG for the reconstruction of epileptic activity using a calibrated realistic volume conductor model. PLoS ONE. https://doi.org/10.1371/journal.pone.0093154
Bashar R, Li Y, Wen P (2008) Influence of white matter inhomogeneous anisotropy on EEG forward computing. Australas Phys Eng Sci Med. https://doi.org/10.1007/BF03178586
Castaño-Candamil S, Höhne J, Martínez-Vargas JD, An XW, Castellanos-Domínguez G, Haufe S (2015) Solving the EEG inverse problem based on space-time-frequency structured sparsity constraints. NeuroImage. https://doi.org/10.1016/j.neuroimage.2015.05.052
Clark J, Plonsey R (1968) The extracellular potential field of the single active nerve fiber in a volume conductor. Biophys J. https://doi.org/10.1016/S0006-3495(68)86524-5
Cook MJ, Koles ZJ (2006) A high-resolution anisotropic finite-volume head model for EEG source analysis. Conf Proc IEEE Eng Med Biol Soc. https://doi.org/10.1109/IEMBS.2006.260314
Cuartas ME, Acosta MC, Castellanos DG (2015) iLU preconditioning of the anisotropic-finite-difference based solution for the EEG forward problem. In: IWINAC 2015. Springer, Cham, p 408–418. https://doi.org/10.1007/978-3-319-18914-7_43
DeMunck JC (1988) The potential distribution in a layered anisotropic spheroidal volume conductor. J Appl Phys. https://doi.org/10.1063/1.341983
Grech R, Cassar T, Muscat J, Camilleri KP, Fabri SG, Zervakis M, Xanthopoulos P, Sakkalis V, Vanrumste B (2008) Review on solving the inverse problem in EEG source analysis. J Neuroeng Rehabil. https://doi.org/10.1186/1743-0003-5-25
Güllmar D, Haueisen J, Reichenbach JR (2010) Influence of anisotropic electrical conductivity in white matter tissue on the EEG/MEG forward and inverse solution. A high-resolution whole head simulation study. Neuroimage. https://doi.org/10.1016/j.neuroimage.2010.02.014
Hallez H, Vanrumste B, Van Hese P, D’Asseler Y, Lemahieu I, Van de Walle R (2005) A finite difference method with reciprocity used to incorporate anisotropy in electroencephalogram dipole source localization. Phys Med Biol. https://doi.org/10.1088/0031-9155/50/16/009
Hallez H, Vanrumste B, Grech R, Muscat J, De W, Vergult A, D’Asseler Y, Camilleri KP, Fabri SG, Van Huffel S, Lemahieu I (2007) Review on solving the forward problem in EEG source analysis. J NeuroEng Rehabil. https://doi.org/10.1186/1743-0003-4-46
Hallez H, Staelens S, Lemahieu I (2009) Dipole estimation errors due to not incorporating anisotropic conductivities in realistic head models for EEG source analysis. Phys Med Biol. https://doi.org/10.1088/0031-9155/54/20/004
Haueisen J, Ramon C, Eiselt M, Brauer H, Nowak H (1997) Influence of tissue resistivities on neuromagnetic fields and electric potentials studied with a finite element model of the head. IEEE Trans Bio-med Eng. https://doi.org/10.1109/10.605429
Herrendorf G, Steinhoff BJ, Kolle R, Baudewig J, Waberski TD, Buchner H, Paulus W (2000) Dipole-source analysis in a realistic head model in patients with focal epilepsy. Epilepsia. https://doi.org/10.1111/j.1528-1157.2000.tb01508.x
Irimia A, Bradshaw LA (2005) Ellipsoidal electrogastrographic forward modelling. Phys Med Biol. https://doi.org/10.1088/0031-9155/50/18/012
Irimia A, Goh SYM, Torgerson CM, Chambers MC, Kikinis R, Horn JD Van (2013a) Clinical neurophysiology forward and inverse electroencephalographic modeling in health and in acute traumatic brain injury. Clin Neurophysiol. https://doi.org/10.1016/j.clinph.2013.04.336
Irimia A, Goh S-YM, Torgerson CM, Stein NR, Chambers MC, Vespa PM, Van Horn JD (2013b) Electroencephalographic inverse localization of brain activity in acute traumatic brain injury as a guide to surgery, monitoring and treatment. Clin Neurol Neurosurg. https://doi.org/10.1016/j.clineuro.2013.08.003
Le Bihan D, Johansen-Berg H (2012) Diffusion MRI at 25: exploring brain tissue structure and function. NeuroImage. https://doi.org/10.1016/j.neuroimage.2011.11.006
Liu Q, Farahibozorg S, Porcaro C, Wenderoth N, Mantini D (2017) Detecting large-scale networks in the human brain using high-density electroencephalography. Hum Brain Mapp. https://doi.org/10.1002/hbm.23688
Meijs JW, Weier OW, Peters MJ, van Oosterom A (1989) On the numerical accuracy of the boundary element method. IEEE Trans Biomed Eng. https://doi.org/10.1109/10.40805
Michel CM, Murray MM (2012) Towards the utilization of EEG as a brain imaging tool. Neuroimage. https://doi.org/10.1016/j.neuroimage.2011.12.039
Michel E, Hernandez D, Lee SY (2016) Electrical conductivity and permittivity maps of brain tissues derived from water content based on T1 -weighted acquisition. Magn Reson Med. https://doi.org/10.1002/mrm.26193
Oostenveld R, Fries P, Maris E, Schoffelen JM (2011) FieldTrip: Open source software for advanced analysis of MEG, EEG, and invasive electrophysiological data. Comput Intell Neurosci. https://doi.org/10.1155/2011/156869
Panizo M, Castellanos A, Rivas J (1977) Finite-difference operators in inhomogeneous anisotropic media. J Appl Phys. https://doi.org/10.1063/1.323779
Saleheen HI, Ng KT (1997) New finite difference formulations for general inhomogeneous anisotropic bioelectric problems. IEEE Trans Biomed Eng. https://doi.org/10.1109/10.623049
Saleheen HI, Ng KT (1998) A new three-dimensional finite-difference bidomain formulation for inhomogeneous anisotropic cardiac tissues. IEEE Trans Biomed Eng. https://doi.org/10.1109/10.650347
Salmelin R, Baillet S (2009) Electromagnetic brain imaging. IEEE Signal Process Mag. https://doi.org/10.1002/hbm.20795
Sarvas J (1987) Basic mathematical and electromagnetic concepts of the biomagnetic inverse problem. Phys Med Biol. https://doi.org/10.1088/0031-9155/32/1/004
Schimpf PH, Ramon C, Haueisen J (2002) Dipole models for the EEG and MEG. IEEE Trans Biomed Eng. https://doi.org/10.1109/10.995679
Stenroos M, Sarvas J (2012) Bioelectromagnetic forward problem: Isolated source approach revisited. Phys Med Biol. https://doi.org/10.1088/0031-9155/57/11/3517
Tadel F, Baillet S, Mosher JC, Pantazis D, Leahy RM (2011) Brainstorm: a user-friendly application for MEG/EEG analysis. Comput Intell Neurosci. https://doi.org/10.1155/2011/879716
Truong DQ, Magerowski G, Blackburn GL, Bikson M, Alonso AM (2013) Computational modeling of transcranial direct current stimulation (tDCS) in obesity: Impact of head fat and dose guidelines. NeuroImage. https://doi.org/10.1016/j.nicl.2013.05.011
Turovets SI, Poolman P, Salman A, Malony AD, Tucker DM (2008) Conductivity analysis for high-resolution EEG. In: 2008 International conference on biomedical engineering and informatics, IEEE. https://doi.org/10.1109/BMEI.2008.358
Turovets S, Volkov V, Zherdetsky A, Prakonina A, Malony AD (2014) A 3D finite-difference BiCG iterative solver with the Fourier-Jacobi preconditioner for the anisotropic EIT/EEG forward problem. Comput Math Methods Med. https://doi.org/10.1155/2014/426902
Vanrumste B, Van Hoey G, Van de Walle R, D’Have MR, Lemahieu IA, Boon PA (2001) The validation of the finite difference method and reciprocity for solving the inverse problem in EEG dipole source analysis. Brain Topogr. https://doi.org/10.1023/A:1012909511833
Vatta F, Meneghini F, Esposito F, Mininel S, Di Salle F (2010) Realistic and spherical head modeling for EEG forward problem solution: a comparative cortex-based analysis. Comput Intell Neurosci. https://doi.org/10.1155/2010/972060
Vorwerk JO (2018) The FieldTrip-SimBio pipeline for EEG forward solutions. Biomed Eng. https://doi.org/10.1186/s12938-018-0463-y
Vorwerk J, Cho J-H, Rampp S, Hamer H, Knosche TR, Wolters CH (2014) A guideline for head volume conductor modeling in EEG and MEG. NeuroImage. https://doi.org/10.1016/j.neuroimage.2014.06.040
Vorwerk J, Engwer C, Pursiainen S, Wolters CH (2017) A mixed finite element method to solve the EEG forward problem. IEEE Trans Med Imaging. https://doi.org/10.1109/TMI.2016.2624634
Wolters CH, Anwander A, Tricoche X, Weinstein D, Koch MA, Macleod RS (2006) Influence of tissue conductivity anisotropy on EEG/MEG field and return current computation in a realistic head model: a simulation and visualization study using high-resolution finite element modeling. NeuroImage. https://doi.org/10.1016/j.neuroimage.2005.10.014
Ziegler E, Chellappa SL, Gaggioni G, Ly JQ, Vandewalle G, André E, Geuzaine C, Phillips C (2014) A finite-element reciprocity solution for EEG forward modeling with realistic individual head models. NeuroImage. https://doi.org/10.1016/j.neuroimage.2014.08.056
Funding
The work was supported the Colombian Program for Researcher Training (Grant 2012-528), the KU Leuven Special Research Fund (Grant C16/15/070), the Research Foundation Flanders (FWO) (Grants G0F76.16N, G0936.16N, and EOS.30446199).
Author information
Authors and Affiliations
Corresponding author
Ethics declarations
Conflict of interest
The authors declare that there are no potential conflicts of interest.
Ethical Approval
All procedures performed in human participants were in accordance with the ethical standards of the institutional and/or national research committee and with the 1964 Helsinki declaration and its later amendments or comparable ethical standards.
Informed Consent
Informed consent was obtained from all individual participants included in the study.
Additional information
Handling Editor: Jens Haueisen.
Rights and permissions
About this article
Cite this article
Cuartas Morales, E., Acosta-Medina, C.D., Castellanos-Dominguez, G. et al. A Finite-Difference Solution for the EEG Forward Problem in Inhomogeneous Anisotropic Media. Brain Topogr 32, 229–239 (2019). https://doi.org/10.1007/s10548-018-0683-2
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s10548-018-0683-2