Abstract
We focus on electro-/magnetoencephalography imaging of the neural activity and, in particular, finding a robust estimate for the primary current distribution via the hierarchical Bayesian model (HBM). Our aim is to develop a reasonably fast maximum a posteriori (MAP) estimation technique which would be applicable for both superficial and deep areas without specific a priori knowledge of the number or location of the activity. To enable source distinguishability for any depth, we introduce a randomized multiresolution scanning (RAMUS) approach in which the MAP estimate of the brain activity is varied during the reconstruction process. RAMUS aims to provide a robust and accurate imaging outcome for the whole brain, while maintaining the computational cost on an appropriate level. The inverse gamma (IG) distribution is applied as the primary hyperprior in order to achieve an optimal performance for the deep part of the brain. In this proof-of-the-concept study, we consider the detection of simultaneous thalamic and somatosensory activity via numerically simulated data modeling the 14-20 ms post-stimulus somatosensory evoked potential and field response to electrical wrist stimulation. Both a spherical and realistic model are utilized to analyze the source reconstruction discrepancies. In the numerically examined case, RAMUS was observed to enhance the visibility of deep components and also marginalizing the random effects of the discretization and optimization without a remarkable computation cost. A robust and accurate MAP estimate for the primary current density was obtained in both superficial and deep parts of the brain.
Keywords: Brain imaging, Depth reconstruction, EEG and MEG data, Hierarchical Bayesian model, Randomized multiresolution scanning
Introduction
This study concentrates on electro-/magnetoencephalography (E/MEG) imaging of the brain activity (He et al. 2018). The present focus is on the hierarchical Bayesian model (HBM) (Calvetti et al. 2009; Lucka et al. 2012) which allows one to find a focal and robust reconstruction by exploring a posterior probability distribution following from a conditionally Gaussian prior model. Our aim is, in particular, to develop a fast maximum a posteriori (MAP) estimation technique which would be applicable for both superficial and deep areas without additional a priori knowledge of the brain activity, such as physiological depth weighting (Calvetti et al. 2015, 2018; Homa et al. 2013). While high-density measurements (Seeber et al. 2019) and advanced signal processing strategies (Pizzo et al. 2019) have recently been shown to be essential in distinguishing deep activity, this study focuses on the importance to reduce the random effects of the numerical discretization and optimization errors on the reconstruction process.
We introduce a randomized multiresolution scanning (RAMUS) method in which the MAP estimate of the brain activity is refined gradually in the reconstruction procedure. RAMUS aims at reducing the random effects of the numerical discretization on the final estimate. It processes the well and ill-conditioned parts of the source space separately which has been suggested for ill-posed problems, e.g., in (Pursiainen 2008; Liu et al. 1995; Piana and Bertero 1997a). A multiresolution decomposition provides an approximative split between detectable and undetectable parts for different source depths, as the maximal source localization accuracy varies strongly with respect to the depth (Tarkiainen et al. 2003; Cuffin et al. 2001a, b; Grover 2016; Wang et al. 2009) with only the low resolution fluctuations being visible in the deep part of the brain (Pascual-Marqui et al. 1999; Pascual-Marqui 1999). At each resolution level, a MAP estimate is evaluated via the iterative alternating sequential (IAS) algorithm and the inverse gamma (IG) hyperprior which has been found to be advantageous for detecting deep activity (Calvetti et al. 2009).
The previous results suggest that HBM can find a focal solution deep in the head via the Markov chain Monte Carlo (MCMC) sampling techniques, especially, if the activity can be constrained into a region of interest (ROI) (Calvetti et al. 2009; Lucka et al. 2012). However, processing large data sets involving temporal measurement sequences with an advanced MCMC approach without a priori knowledge of a ROI might be computationally too expensive for the practical use. Therefore, finding a robust and fast approach to distinguish activity reliably is crucial regarding the practical applications. In this proof-of-the-concept study, we consider the detection of simultaneous somatosensory and thalamic activity with numerically simulated data. This setup models the detection of the somatosensory evoked potentials and fields (SEP/F) in response to the electrical stimulation of the median nerve, particularly, thalamic (deep) P14/N14 and somatosensory (superficial) P20/N20 component peaked at 14 and 20 ms post-stimulus, respectively (Buchner et al. 1988, 1995, 1994a, b; Haueisen et al. 2007; Attal and Schwartz 2013; Fuchs et al. 1998).
In the numerical experiments, both a spherical and realistic model has been used to analyze the source reconstruction discrepancies with RAMUS. The results suggest that a randomized set of decompositions (Mallat 1989; Clark et al. 1995) is essential to marginalize out the possible modeling errors due to projecting the source space into different resolution levels which, again, is necessary in order to achieve the depth-invariance of the final MAP estimate.
Methodology
Observation Model
For the EEG source modelling, we employ the finite element method and the current preserving H(div) approach (Pursiainen 2012a; Pursiainen et al. 2016; Miinalainen et al. 2019) in which the primary current distribution of the neural activity is assumed to have a square-integrable divergence in the source space denoted by . The observation model is
1 |
where is the measurement vector, is the lead field matrix, is the unknown primary current distribution with K denoting the total number of the source positions, and is the measurement noise vector which is modelled as Gaussian random variable with zero mean and covariance matrix of the form . In this numerical study, the diagonal covariance is used for simplicity as it allows fixing the noise level with a single parameter, i.e., the standard deviation . We refer to as the source space for the inverse problem of finding given the data . The number of sources is three times the number of their positions, as each position is assumed to have three sources oriented along the Cartesian coordinate axes.
Hierarchical Bayesian Model
In the HBM framework, the prior of is not fixed but random. It is determined by the realization of the so-called hyperparameter . The hyperparameter follows an a priori assumed distribution, i.e., the hyperprior. Consequently, the prior is a joint density given by of and . The conditional part of the prior corresponds to a zero mean Gaussian density with a diagonal covariance matrix predicted by the hyperprior . The hyperparameter is of the same dimension as with each entry defining the variance of its respective entry in . The density of the hyperprior is long-tailed, implying that is likely to be a sparse vector with only few nonzeros, which is advantageous for finding a focal reconstruction of the brain activity. As a hyperprior, one can use, e.g., the gamma (G) or inverse gamma density (Calvetti et al. 2009), whose shape and scale are controlled by the parameters and , respectively. IG is a conjugate prior for a Gaussian distribution with an unknown variance (here the conditional prior), meaning that the corresponding posterior (here the actual prior) is also Gaussian. Again, G is a conjugate prior with respect to the reciprocal of the variance (O’Hagan and Forster 2004).
The posterior probability density of , following from the classical Bayes formula (O’Hagan and Forster 2004), is of the form
2 |
i.e., it is proportional to the product between the prior density , and the likelihood function given by the measurement noise model (Schmidt et al. 1999).
We consider finding the inverse estimate via the iterative alternating sequential (IAS) MAP estimation method (Appendix 5) using primarily the IG density as the hyperprior. IG has been suggested for depth localization in Calvetti et al. (2009), where the IG and G based IAS MAP estimate have been shown to correspond to the minimum support and minimum current estimate (MSE and MCE) (Nagarajan et al. 2006), respectively, while the first step of the iteration concides with the classical minimum norm estimate (MNE) (Hämäläinen et al. 1993). A recent comparison between IAS and other brain activity reconstruction techniques can be found in (Calvetti et al. 2018).
The numerical exploration of the posterior density is subject to the numerical discretization, i.e., the numerical definition of the source space for and the resulting lead field matrix. We aim to reduce the effect of the discretization via the following two strategies motivating the introduction of the RAMUS approach:
The reduction of the source space is essential to improve the ability of a solver to recover focal sources both in deep and superficial locations. Furthermore, since a sparse source space results here in source reconstruction of low spatial resolution, a source space refinement during the reconstruction process of this study is crucial.
A randomized set of decompositions enables averaging out (marginalizing) the effect of the discretization error.
The theoretical justification of (1) and (2) are given in the following sections “Coarse-to-Fine Optimization” and “Randomized Scanning”, respectively.
Coarse-to-Fine Optimization
The EEG source imaging problem is severely ill-posed (Grech et al. 2008) and it is well-known that most of the solvers suffer from depth bias effects (Pascual-Marqui 1999; Koulouri et al. 2017; Awan et al. 2018). A way to reduce the ill-conditioning in the computations is by introducing coarser (sparse) source space, i.e., regularization by discretization (Hansen 2010; Kirsch 2011), or by approximating the source distribution as a linear combination of spatial basis functions (redundant dictionaries) as proposed in Haufe et al. (2008). With a dimensionality reduction, the linear system to be solved is often over-determined and stable estimates can be obtained. However, this comes at a cost of poor resolution reconstructions due to large discretization errors. The idea of employing a multiresolution approach (Mallat 1989), where a progressive refinement in the source space is performed in order to obtain more accurate estimates, has been proposed for the E/MEG problem for example in Gavit et al. (2001); Malioutov et al. (2005).
The source space can be decomposed via the direct sum of and , i.e. , where is determined by the noise level. and represent the sets of the detectable and undetectable source distributions, respectively. If possible, it is advantageous to decompose into and as, thereby, one can avoid source localization errors related to the indetectable distributions (Pursiainen 2008; Piana and Bertero 1997b; Liu et al. 1995). In E/MEG, a coarse enough source configuration can be distinguished, i.e., it belongs to , while a dense one has modes that cancel each other and might be indetectable, i.e., in (Fig. 1). The coarsity is specifically important considering deep activity for which the magnitude of the lead field is comparably low and, therefore, any deep source configuration is likely to belong to . For a given lead field matrix , the maximum possible number of detectable sources and, thereby, the maximal dimension of is determined by the maximum number of nonzero singular values which coincides with the smaller dimension of , that is, the number of the data entries m.
In the coarse-to-fine reconstruction strategy, the aim is to first limit the source space to a subspace by restricting its resolution, to gradually increase its resolution, and to eventually obtain an approximation for the whole space . A nested set of restricted subspaces with different resolutions referred here to as a multiresolution decomposition is obtained recursively by selecting a uniformly random set of source positions from a given source space and associating those with the original set of positions through nearest interpolation. The coarsest resolution level is associated with the index . When moving from the -th resolution level to the -th one, the number of source positions is assumed to grow by a constant sparsity factor . An example for a dual resolution decomposition and a mapping of the subdomains between them can be found in Fig. 1.
In the IAS MAP estimation process, once the activity has been found at a coarse reconstruction level, the support of the candidate solution will shrink along with the increasing resolution (Fig. 2). That is, the size of the details found is subject to the resolution level. Therefore, the final estimate is found as a combination of the estimates obtained for the different levels. In order to distinguish the weakly detectable activity, especially, the deep components, the number of the dimensions in the initial set should be of the same size with m, following from the maximal dimensionality of .
Randomized Scanning
Since a sparse source space is likely to induce a bias to the consequent estimates, we propose to use a random set of (initial) sparse source spaces that aims to reduce the propagation of random discretization and optimization errors. The relationship between the global posterior optimizer and for the original source space and its restriction , respectively, can be modeled via the equation
3 |
where and represent a discretization and optimization error, respectively. Of these, depends of the quality of the MAP optimization method and vanishes in the ideal case, while is fixed. If the degrees of freedom in have an independent and identical random distribution, the respective discretization errors can be modeled as independently and identically distributed random variables and, by the law of large numbers and the central limit theorem, the discretization error term of the mean
4 |
is an asymptotically Gaussian variable with expectation and the rate of convergence is of the order with respect to the number of source spaces (Liu 2001). Consequently, the random effects of the discretization errors can be marginalized via estimating in multiple randomly (independently and identically) generated source spaces. The expectation can be regarded as the remaining systematic discretization error which is specific to the set , i.e., the resolution level, and is related, for example, to the relationship between the maximal achievable level of detail and the structure of the actual unknown brain activity.
Since the outcome of the optimization process for each given source space is a priori sensitive to the discretization errors, the estimate for is found using the one for as the initial guess. This approach is motivated by the present gradually progressing coarse-to-fine subdivision due to which the subsequent optimizers will be nearly similar. We consider it necessary in order to maintain each estimate in the vicinity of the global optimum and, thereby, the norm of the optimization error as small as possible. Namely, using a fixed initial guess might mean that, instead the global optimizer, a local one is found for some of the source spaces as depicted in Fig. 3. The global optimum might correspond to a situation in which both a superficial and deep source are detected, while the deep activity might be undetected at a local one.
Technically, updating the initial guess makes the estimate for dependent on the previous one obtained for , i.e., the sequence of the estimates is a time-homogeneous Markov chain. We regard the present approach as a surrogate transition rule (Liu 2001) estimating the outcome of an ideal optimization method which would find the global optimum precisely with , thereby, resulting in the identity
5 |
which will hold approximately, if the surrogate rule is accurate enough.
RAMUS
We propose the following algorithm for RAMUS to reduce the random discretization and optimization effects when finding a reconstruction for the unknown parameter with the IAS MAP estimation method.
Choose the desired number of the resolution levels L and the sparsity factor (the ratio of source counts) s between each level. The number of the sources at a given resolution level will be , where is the index of the resolution level, the larger the value of the index the finer the resolution.
For each resolution level , create a random uniformly distributed set of center points . Find source point subsets , , , applying the nearest interpolation scheme with respect to the center points. That is, each subset consists of those source positions of the total source space , whose nearest neighbor with respect to is . The average number of source positions associated with is approximately given by the sparsity factor s. The resolution of this subdivision grows along the number of the center points. The unknown parameter is assumed to be constant in each subset, and the actual source count is assumed to stay unchanged regardless of the resolution.
Repeat the first two steps to generate a desired number D of independent multiresolution decompositions , , , .
Start the reconstruction process with the decomposition and a suitably chosen initial guess .
For decomposition , find a reconstruction with the IAS MAP technique with the initial guess for the resolution levels .
- After going through all the decompositions, obtain the final estimate for the decomposition (basis) k as the normalized mean
where the denominator follows from the need to balance out the effect of the multiplied source count following from the interpolation of a coarse level estimate to a denser resolution level.6 If , move to the next decomposition, i.e., update , and repeat the previous step with the initial guess for the resolution level .
- Obtain the final reconstruction as the mean:
7
Technically, this process is equivalent to first evaluating the mean (7) for each resolution level and then the normalized mean (6) over the different resolutions, showing that an approximation of the form (3) is, in fact, obtained for each set of independent and identically generated source spaces. Since the final reconstruction is obtained as a mean over all the reconstruction levels, also the potential systematic discretization errors will be averaged with an equal weighting. This approach is used, as different resolution levels localize different details (“Coarse-to-Fine Optimization” section). Consequently, the details found for the most levels are likely to gain the highest intensity in the final reconstruction. A schematic illustration of the resulting data flow has been included in Fig. 4.
Numerical Implementation with Zeffiro Interface
The forward and inverse solvers applied in this study were implemented in the Matlab (The MathWorks Inc.) as a part of the Zeffiro Interface (ZI) code package which is openly available in GitHub1. ZI is a tool enabling finite element (FE) based forward and inverse computations in electromagnetic brain applications. The forward approach of ZI together with the basic version of the IAS source reconstruction approach have been validated numerically in (Miinalainen et al. 2019; Pursiainen 2012b). ZI generates a uniform tetrahedral finite element (FE) mesh. Each source distribution is obtained by picking the first K entries of the randomly (uniformly) permuted set of the tetrahedron centers for the brain compartment. Due to the uniform mesh structure, this strategy leads to an evenly distributed set of source points. .
ZI allows performing the source reconstruction routines using either a CPU or a GPU (graphics processing unit) type processor. Today, effective GPUs are available in power PCs an workstations but most laptops are still limited to CPU processing. Therefore, to compare the performance difference between GPU and CPU platforms, the computing time for forming a random set of multiresolution decompositions and inverting a given measurement data vector were evaluated for NVIDIA Quadro P6000 workstation GPU and Intel i7 5650U laptop CPU.
Numerical Experiments
In the numerical experiments, we used the realistic population head model2 (PHM) (Lee et al. 2016), consisting of five layers (white matter, grey matter, cerebrospinal fluid (CSF), skull, and skin) and the three-layer Ary model in which concentric 87, 92 and 100 mm spheres present grey matter, skull and scalp layer. The cerebellum and vetricle layers included in the PHM were modeled as part of the grey matter and CSF, respectively. The conductivity of each layer can be found in Table 1. The PHM and Ary model were discretized with a uniform point lattice with the resolution 0.85 and 1 mm, leading to 24M and 30M tetrahedral elements and 4M and 5M nodes, respectively. In both cases, a single lead field matrix was generated for 10000 randomly distributed synthetic source positions. The lead field matrix entries were evaluated in SI units, i.e., Ohm/m and 1/m2 for EEG and MEG, respectively. Each point contained three sources oriented along x-, y- and z-directions. Since the grey matter compartment of PHM does not include the thalamus, the source space was extended to cover both the white and grey matter compartment. Note that the lead field matrix and the corresponding source space have to be generated only once after which the space can be decomposed in multiple ways, e.g., different resolutions, as is the case in the proposed RAMUS process.
Table 1.
Model | WM | GM | CSF | Skull | Skin |
---|---|---|---|---|---|
Ary | 0.33 | 0.0042 | 0.33 | ||
Deep | 0.14 | 0.33 | 1.79 | 0.0064 | 0.43 |
Justification of the values used for the realistic model can be found in Dannhauer et al. (2011)
Simulated Measurements
For the Ary model, a total of 102 sensor points were distributed over the upper hemisphere. Using those, both electrode and radial magnetometer measurements of the electromagnetic field were simulated as shown in Fig. 5. The magnetometer locations were obtained by scaling the radial component of the source locations by a factor of 1.2. The electrodes were modeled using the complete electrode model (Pursiainen et al. 2012). The inner and outer radius of the ring were 5 and 10 mm, respectively. The average contact resistance of each electrode was assumed to be 1 kOhm. In the case of PHM, an EEG cap with 72 ring electrodes (10 mm outer and 5 mm inner diameter, 1 kOhm resistance) was attached on the head model.
Two current dipoles were placed in shallow and deep parts of the grey matter. The source locations can be found in Table 2. Physiologically these could be interpreted as the somatosensory (superficial) P20/N20 and thalamic (deep) P14/N14 component, i.e., the 20 and 14 ms post-stimulus peaks. Activity for both locations occurs at the same time in the SEP/F response to the median nerve stimulus (Buchner et al. 1988, 1994a, 1995). When active simultaneously, the deep source was assumed to be slightly stronger in magnitude compared to the superficial one to enable the visibility of the deep part. This situation occurs momentarily in the median nerve stimulation, since the thalamic source obtains its maximum before the somatosensory activity increases in magnitude.
Table 2.
Type | Corresp. | x (mm) | y (mm) | z (mm) | Angle (°) |
---|---|---|---|---|---|
Superf. | P20/N20 | − 5 | 0 | 77 | 11 |
Deep | P14/N14 | 7 | 0 | 5 | 68 |
As the measurement error term, we used zero mean Gaussian white noise with standard deviation of 3% respect to maximal signal amplitude. To investigate the noise-robustness of the source reconstruction, 5% noise was used in a single test. For the generality of the results, the maximum data entry of each dataset was normalized to one. The accuracy of the source recovery was analyzed in two 60 mm diameter spherical ROIs centered at the source locations (Fig. 5).
IAS MAP Iteration
The previous experience shows that, in order to distinguish deep activity (Calvetti et al. 2009), the hyperparameter values for the hyperprior have to be set as small as possible without risking the numerical stability of the reconstruction process. In the present study, the scale parameter was chosen to be 1E-10 and the shape parameter was given the smallest possible value 1.5. These values were found to work generally well and they are supported also by the earlier studies (Calvetti et al. 2009). Ten iteration steps were performed to obtain a MAP estimate for a single resolution level. A single step was utilized in a single test.
Validation Tests
We analyzed the performance of the RAMUS reconstruction approach both visually and numerically in the tests (A)–(I) using the Ary model. The spherical domain was used in order to optimize the clarity of the results. In addition to these reconstructions, one test (J) was performed using PHM, i.e., the realistic model. The specifications for (A)–(J) can be found in Table 3.
Table 3.
ID | Geom. | Data | sa | Dec.b | Hyperprior | Amplitude | |
---|---|---|---|---|---|---|---|
Deep | Superf. | ||||||
(A) | Ball | EEG | 8 | 100 | IG | 10 | 5 |
(B) | Ball | EEG | 8 | 100 | IG | 10 | 0 |
(C) | Ball | EEG | 8 | 100 | IG | 0 | 5 |
(D) | Ball | EEG | 8 | 100 | IG | 10 | 7 |
(E) | Ball | EEG | 5 | 100 | IG | 10 | 7 |
(F) | Ball | EEG | 8 | 20 | IG | 10 | 7 |
(G) | Ball | EEG | 8 | 100 | G | 10 | 5 |
(H) | Ball | E/MEG | 8 | 100 | IG | 10 | 5 |
(I) | Ball | E/MEG | 8 | 100 | IG | 10 | 7 |
(J) | PHM | EEG | 8 | 100 | IG | 10 | 7 |
aScaling factor
bNumber of decompositions
The accuracy obtained in the cases (A)–(I) was analyzed by comparing the average position (center of mass), orientation and magnitude of the reconstructed distribution within the ROI to that of the actual dipole source. These average estimates were obtained with respect to the final reconstructed distribution of 10000 sources in each case (A)–(I) and for both single and multiple resolution reconstructions. In addition, the relative magnitude (between 0 and 1) of the distribution was calculated for each ROI. The source was classified as detected, if the relative maximum exceeded the value 0.1, and otherwise undetected. This threshold criterion was chosen as it represents roughly the limit of a visually detectable source. In (A)–(I), we varied the number of multiresolution decompositions, sparsity factor, hyperprior, the source magnitudes, and the measurement modality (EEG or E/MEG). When combining the lead field matrices for E/MEG, the MEG lead field matrix and data was scaled so that the Frobenius norm, i.e., the 2-norm of all the entries, was equal to that of the EEG lead field matrix.
The case (I), was studied using three alternative approaches in addition to the basic multiresolution scheme. In the first one of these, the noise level was increased to 5%. The second one involved only the coarse resolution level with otherwise unchanged parameters. In the last one, only single IAS MAP iteration was performed on each reconstruction level, meaning that the estimate obtained coincided with MNE (Calvetti et al. 2009).
A total of 100–400 source positions at the coarse level, i.e., a number roughly comparable to that of the data entries (“Coarse-to-Fine Optimization” section), was found to work appropriately in the detection of the deep activity. When the sparsity factor between and , the source position count was within this interval at the coarsest level of a three-level multiresolution decomposition for the initial set of 10000 source positions. At the coarsest level, each source position was associated to about ( with ), i.e., between 64 and 25 finest-level source positions, respectively. The number D of multiresolution decompositions was chosen to be comparable to this number, slightly below or above that, in order to guarantee sufficient averaging over all the possible random basis choices.
Results
The results obtained in the numerical experiments have been included in Tables 4, 5 and Figs. 6, 7, 8, 9, 10 and 11. In each case, the deep and superficial component have been analyzed separately. Histograms for the cases (A)–(I) illustrate the accuracy of the reconstructed source with respect to the source position (mm), orientation (deg), amplitude, and the relative maximum of the current density within the ROI (Figs. 6, 7, 8 and 9) with respect to the global maximum. The last one of these is utilized as a measure for the distinguishability of the source within the ROI. Examples of the reconstructions in the cases (A)–(I) are illustrated in Fig. 10, and the distributions obtained for (J), i.e., the realistic PHM, are shown in Fig. 11. The additional cases evaluated for (I), are presented in Fig. 8 and 9.
Table 4.
Processor | Dec. | EEG | E/MEG |
---|---|---|---|
Quadro P6000 | 36 | 14 | 28 |
i7 5650U | 176 | 55 | 116 |
Table 5.
Type | n | ROI | (A) | (B) | (C) | (D) | (E) | (F) | (G) | (H) | (I) | |
---|---|---|---|---|---|---|---|---|---|---|---|---|
MAP | 3 | 1–3 | Deep | 100 | 100 | 0 | 98 | 100 | 86 | 0 | 100 | 92 |
Sup. | 100 | 4 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | |||
5 | Deep | 100 | 90 | |||||||||
Sup. | 100 | 100 | ||||||||||
MNE | 3 | 1–3 | Deep | 0 | ||||||||
Sup. | 100 | |||||||||||
MAP | 3 | 1 | Deep | 96 | ||||||||
Sup. | 100 |
aNoise level (%)
bThe resolution levels () in the reconstruction process
The histograms in Figs. 6, 7, 8 and 9 illustrate the numerical accuracy of the RAMUS reconstruction approach. Case (A) suggests that the activity in both superficial and deep areas can be reconstructed in EEG, when applying IG as hyperprior. In (A), the superficial source is found with the median positioning accuracy of 8 mm, angle difference of 4.5° and logarithmic (log10) relative amplitude error of − 0.25, i.e., the amplitude of the reconstructed source is 56% compared to that of the actual one. For the deep source these errors are 15 mm, 12 deg, -0.65 (22% amplitude), respectively. Furthermore, as shown by the relative maximum, the superficial source always maximizes the (global) reconstruction, and the relative maximum within the deep ROI is around 50% of the global one in median.
Based on (B) and (C), it is obvious that the reconstruction accuracy is better, if only one of the two sources is active. Furthermore, increasing the intensity of the superficial source decreases the reconstruction accuracy for deep one which is shown by the case of (D) for which the median position, orientation amplitude, and relative maximum for the deep source are 18 mm, 17°, − 0.85 and 0.25, respectively. That is, the accuracy is lower than in (A). In (E), a sparsity factor of 5 was used instead of 8, meaning that the resolution difference between the subsequent levels was less steep, resulting in a weaker distinguishability of the deep source. The same observation was made in the case (F) in which 20 randomized decompositions instead of 100 were used. The deep activity was absent in (G), where we used the G hyperprior instead of IG, confirming the necessity of IG as the hyperprior. In (H) and (I), the use of the E/MEG lead field was observed to improve the deep localization accuracy around 7 mm and orientation accuracy about 8° with respect to the corresponding cases (A) and (D) of EEG data, while the superficial localization accuracy was practically unchanged for (H) and deviated less than 2 mm and 1 deg for (I). The results for E/MEG were visually more focal than the ones obtained with EEG (Fig. 10).
In the three additional tests performed with the parameter setting (I), the increased 5% noise level led to 5 mm and 3 deg lower positioning and orientation accuracy for the deep source, and a smaller 1 mm and 1 deg deviation for the superficial one. In the case of the coarse-level MAP iteration with 3% noise, 2 mm and 1 deg position and orientation improvement was observed for the deep source. For the superficial one, there was a 2 mm deviation in the position, while the orientation accuracy remained unchanged. The coarse-level estimate was visually less focal compared to the ones obtained with multiple resolution levels. MNE detected only the superficial source for which 1 mm position deflection and 3 deg orientation improvement were obtained compared to the basic case (I).
In (J), simultaneous localization of the simulated radial thalamic and tangential somatosensory component was found to be feasible with the realistic PHM model (Fig. 11). Similar to the spherical case, the deep activity had a lower amplitude than the superficial one. In the somatosensory area, with the physiological normal constraint, i.e., the assumption that the primary current is oriented along the inward surface normal, the activity was localized in the posterior wall of the central sulcus similar to the synthetic P20/N20 component used in generating the data.
The results concerning the computing times have been included in Table 4. Those show that a superior performance was obtained with GPU processing which provided the randomized set of decompositions and a reconstruction in 1/5 to 1/4 of the time required by the laptop CPU.
Discussion
The present numerical results suggest that via the proposed randomized multiresolution scanning (RAMUS) technique one can obtain a robust and accurate MAP estimate for the primary current density in both superficial and deep parts of the brain. RAMUS was observed to enhance the visibility of deep components and also marginalizing the effect of the discretization without a remarkable computation cost. The noise-robustness of RAMUS was shown for 3% and 5% noise levels. As expected, the effect of the noise was observed to be the most obvious with respect to the deep source.
Utilizing a multiresolution approach was found to be crucial per se for the reconstruction quality, since maximal achievable accuracy for the deep components is significantly lower than for the superficial one. Detecting the deep source necessitated the presence of a coarse resolution level in the MAP estimation process, i.e., a sparsity factor s larger than one. The superior results were obtained with . Decreasing the value of s, i.e., increasing the source count, quickly diminished the detectability of the deep component which can be observed based on the results obtained for . The distinguishability of the deep source in the final estimate was determined by the number of the source positions at the coarsest level which, in this study, was observed to be around 100–400 roughly matching the sparsity factors between and . Investigating this interval was motivated by the fact that the maximal number of the detectable sources in the numerical system is determined by the number of the data entries (“Coarse-to-Fine Optimization” section) which is 102 for EEG and 204 for E/MEG, i.e., roughly of the same magnitude. In practice, the optimal size of the coarse system should also take the physiological modeling aspects into account and might be, therefore, also considerably larger than the present choice. For example, if the neural activity is limited to a priori known ROIs a larger number might be well-motivated. A comparison between the single (coarse-level) and multiple resolution results showed that the refinement of the resolution during the reconstruction process improves the focality of the reconstruction and its accuracy in the superficial areas. Nevertheless, the coarse-level reconstruction was marginally superior in the deep part, emphasizing that here the finer resolution levels slightly affected the coarser level outcome, which is here presumably optimal for the weakly distinguishable deep activity. Thus, it is important to adjust the decomposition parameters appropriately. The marginalization of the discretization errors via random scanning was perceived to be vital in order to optimize the robustness of the reconstruction which was observed to grow along the number of the multiresolution decompositions utilized.
When coupled with the iterative alternating sequential (IAS) algorithm, RAMUS constitutes essentially a repetitive MAP optimization process for HBM (O’Hagan and Forster 2004; Calvetti et al. 2009). Marginalizing the result over a given number of random multiresolution decompositions can be associated with computing an equal number of MAP estimates. Since the computational cost of the IAS algorithm is largely determined by the product between the lead field matrix and a candidate solution which is parallelized effectively in both CPU and GPU processors. Here, the latter option was found to achieve the fastest performance with the total computation time for a single reconstruction being 14 seconds which would be feasible in processing a larger dataset. Overall, the computational effort of evaluating the MAP via the RAMUS technique can be regarded as moderate compared to a full MCMC sampling based conditional mean (CM) estimate for the posterior density which has been evaluated in (Calvetti et al. 2009) within a ROI. Namely, achieving a full convergence of MCMC would require thousands of iterations (Liu 2001) and the effort of one iteration step is comparable to a single step of IAS. Thus, MCMC would be a slower option. Even though an optimization method, RAMUS can be also interpreted as a surrogate for CM, as it, on one hand, increases the robustness of the source reconstruction via sampling, but, on the other hand, does not provide as extensive information about the posterior density itself as an actual Bayesian sampler does.
The results obtained suggest that the IG hyperprior (O’Hagan and Forster 2004) is necessary in conjunction with IAS, when it is coupled with RAMUS, as the deep activity was not detected with G. Since here the cases of the G hyperprior and single-step MAP can be associated with the 1-norm regularized MCE and MNE (Uutela et al. 1999; Hämäläinen et al. 1993) (“Hierarchical Bayesian Model” section), respectively, it also seems that RAMUS would not enable correcting a depth bias related to either of these estimates. Previously, in (Calvetti et al. 2009), IG was found to perform well for the deep part, when a region of interest was used. Based on the present results, RAMUS provides the means to utilize the advantage of the IG within the whole brain and with a high imaging resolution, while maintaining the computational cost on an appropriate level.
We emphasize that the present conditionally Gaussian prior, in its current formulation, is depth, resolution and decomposition invariant. That is, additional physiological or operator based weighting or prior conditioning (Homa et al. 2013; Calvetti et al. 2015, 2018) is not necessary in order to balance the depth performance of the MAP estimate. Our interpretation for this is that RAMUS can correct the depth localization inaccuracies that are otherwise found with MAP estimates, as it, via the multiresolution approach, decomposes the source space into a set of a visible and invisible fluctuations, explores both sets, and also helps to marginalize the random numerical discretization and optimization errors out of the final estimate. Central here are the visibility of the deep activity at low resolution levels (Pascual-Marqui 1999), the concept of the sensitivity decomposition (Liu et al. 1995) and forming such through projections and multiresolution decompositions which have been investigated in the context of other inverse problems, e.g., in (Piana and Bertero 1997a; Pursiainen 2008).
In addition to the investigated properties, the choice for the scale parameter was also observed to be important in order to guarantee proper function of RAMUS. In each MAP estimation process, the present value 1E−10 was found to work well in detecting activity for both the spherical and realistic head model. The workable range for the scale parameter was observed to be from 1E−10 to 1E−08 similar to the previous findings (Calvetti et al. 2009). Outside this interval the deep activity was not found appropriately or the orientation accuracy of the estimates was lost. In the latter case, the estimate was locked into the direction of a Cartesian coordinate axis, meaning that, due to overly strong focality condition, only single component in the estimate differed from zero in the end of the iteration. Locking was also observed for MAP optimization sequences considerably longer than 10 iteration steps. With a sufficiently large scale parameter there was no locking, but the reconstructions obtained were also less focal.
The results of this article concern only the present numerical framework in which a deep and superficial source were detected simultaneously. Future work will include testing and analyzing the performance of the RAMUS approach with real experimental SEP/F data with the goal to distinguish cortical and sub-cortical activity, e.g., the P14/N14 (deep) and P20/N20 (superficial) components occuring in the stimulation of the median nerve. A comparison with other inverse methods capable of deep localization, such as LORETA and Beamforming (Pascual-Marqui et al. 2002, 1999; Jonmohamadi et al. 2014), will also be important. Further method development topics will include a deeper investigation on the inverse effects of the hyperprior and decomposition parameters as well as finding alternative strategies to update the initial guess for the IAS MAP estimation technique. In the latter case, for instance, an averaged initial guess obtained with respect to several multiresolution decompositions might provide a potential alternative for the current approach which relies on a single decomposition. To make the random scanning computationally more efficient a solver based on parallel scanning processes might be developed. We also emphasize that RAMUS with its current formulation, the proposed algorithm can be applied to reduce discretization errors not only with the present IAS MAP method but potentially for a variety of source reconstruction techniques.
Acknowledgements
AR and SP were supported by the Academy of Finland Centre of Excellence in Inverse Modelling and Imaging 2018–2025 and the Vilho, Yrjö and Kalle Väisälä Foundation of Finnish Academy of Science and Letters. AK was supported by the Academy of Finland Postdoctoral Researcher Grant Number 316542.
Appendix
A IAS MAP Estimation
The IAS algorithm finds a MAP estimate for the posterior as follows:
Set and .
- Set with
8 - Evaluate
where denotes the standard deviation of the likelihood.9 - Update the hyperparameter based on the hypermodel.
- If the hypermodel is G, set
with , .10 - Else, if the hypermodel is IG, set
with , .11
Set and go back to 2., if k is less than the total number of iterations defined by the user.
Footnotes
References
- Ary JP, Klein SA, Fender DH. Location of sources of evoked scalp potentials: corrections for skull and scalp thicknesses. IEEE Trans Biomed Eng. 1981;6:447–452. doi: 10.1109/TBME.1981.324817. [DOI] [PubMed] [Google Scholar]
- Attal Y, Schwartz D. Assessment of subcortical source localization using deep brain activity imaging model with minimum norm operators: a MEG study. PLoS ONE. 2013;8(3):e59,856. doi: 10.1371/journal.pone.0059856. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Awan FG, Saleem O, Kiran A. Recent trends and advances in solving the inverse problem for EEG source localization. Inverse Probl Sci Eng. 2018;27(11):1521–1536. doi: 10.1080/17415977.2018.1490279. [DOI] [Google Scholar]
- Buchner H, Ferbert A, Hacke W. Serial recording of median nerve stimulated subcortical somatosensory evoked potentials (SEPs) in developing brain death. Clin Neurophysiol. 1988;69(1):14–23. doi: 10.1016/0013-4694(88)90031-4. [DOI] [PubMed] [Google Scholar]
- Buchner H, Adams L, Knepper A, Rüger R, Laborde G, Gilsbach JM, Ludwig I, Reul J, Scherg M. Preoperative localization of the central sulcus by dipole source analysis of early somatosensory evoked potentials and three-dimensional magnetic resonance imaging. J Neurosurg. 1994;80(5):849–856. doi: 10.3171/jns.1994.80.5.0849. [DOI] [PubMed] [Google Scholar]
- Buchner H, Fuchs M, Wischmann HA, Dössel O, Ludwig I, Knepper A, Berg P. Source analysis of median nerve and finger stimulated somatosensory evoked potentials: multichannel simultaneous recording of electric and magnetic fields combined with 3d-mr tomography. Brain Topogr. 1994;6(4):299–310. doi: 10.1007/BF01211175. [DOI] [PubMed] [Google Scholar]
- Buchner H, Adams L, Müller A, Ludwig I, Knepper A, Thron A, Niemann K, Scherg M. Somatotopy of human hand somatosensory cortex revealed by dipole source analysis of early somatosensory evoked potentials and 3d-nmr tomography. Electroencephalogr Clin Neurophysiol. 1995;96(2):121–134. doi: 10.1016/0168-5597(94)00228-7. [DOI] [PubMed] [Google Scholar]
- Calvetti D, Hakula H, Pursiainen S, Somersalo E. Conditionally Gaussian hypermodels for cerebral source localization. SIAM J Imaging Sci. 2009;2(3):879–909. [Google Scholar]
- Calvetti D, Pascarella A, Pitolli F, Somersalo E, Vantaggi B. A hierarchical Krylov–Bayes iterative inverse solver for MEG with physiological preconditioning. Inverse Probl. 2015;31(12):125005. [Google Scholar]
- Calvetti D, Pascarella A, Pitolli F, Somersalo E, Vantaggi B. Brain activity mapping from meg data via a hierarchical bayesian algorithm with automatic depth weighting. Brain Topogr. 2018;32(3):363–393. doi: 10.1007/s10548-018-0670-7. [DOI] [PubMed] [Google Scholar]
- Clark I, Biscay R, Echeverría M, Virués T. Multiresolution decomposition of non-stationary EEG signals: a preliminary study. Comput Biol Med. 1995;25(4):373–382. doi: 10.1016/0010-4825(95)00014-u. [DOI] [PubMed] [Google Scholar]
- Cuffin BN, Schomer DL, Ives JR, Blume H. Experimental tests of EEG source localization accuracy in realistically shaped head models. Clin Neurophysiol. 2001;112(12):2288–2292. doi: 10.1016/s1388-2457(01)00669-1. [DOI] [PubMed] [Google Scholar]
- Cuffin BN, Schomer DL, Ives JR, Blume H. Experimental tests of EEG source localization accuracy in spherical head models. Clin Neurophysiol. 2001;112(1):46–51. doi: 10.1016/s1388-2457(00)00488-0. [DOI] [PubMed] [Google Scholar]
- Dannhauer M, Lanfer B, Wolters CH, Knösche TR. Modeling of the human skull in EEG source analysis. Hum Brain Mapp. 2011;32:1383–1399. doi: 10.1002/hbm.21114. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Fuchs M, Wagner M, Wischmann HA, Köhler T, Theißen A, Drenckhahn R, Buchner H. Improving source reconstructions by combining bioelectric and biomagnetic data. Clin Neurophysiol. 1998;107(2):93–111. doi: 10.1016/s0013-4694(98)00046-7. [DOI] [PubMed] [Google Scholar]
- Gavit L, Baillet S, Mangin JF, Pescatore J, Garnero L. A multiresolution framework to MEG/EEG source imaging. IEEE Trans Biomed Eng. 2001;48(10):1080–1087. doi: 10.1109/10.951510. [DOI] [PubMed] [Google Scholar]
- Grech R, Cassar T, Muscat J, Camilleri KP, Fabri SG, Zervakis M, Xanthopoulos P, Sakkalis V, Vanrumste B. Review on solving the inverse problem in EEG source analysis. J NeuroEng Rehabil. 2008;5(1):25. doi: 10.1186/1743-0003-5-25. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Grover P (2016) Fundamental limits on source-localization accuracy of eeg-based neural sensing. In: Information Theory (ISIT), 2016 IEEE International Symposium on, IEEE, pp 1794–1798
- Hämäläinen M, Hari R, Ilmoniemi RJ, Knuutila J, Lounasmaa OV. Magnetoencephalography: theory, instrumentation, and applications to invasive studies of the working human brain. Rev Mod Phys. 1993;65:413–498. [Google Scholar]
- Hansen P (2010) Discrete inverse problems: insight and algorithms. Society for Industrial and Applied Mathematics, Fundamentals of Algorithms. https://books.google.fi/books?id=r-uK2bzAUrUC
- Haueisen J, Leistritz L, Süsse T, Curio G, Witte H. Identifying mutual information transfer in the brain with differential-algebraic modeling: evidence for fast oscillatory coupling between cortical somatosensory areas 3b and 1. NeuroImage. 2007;37(1):130–136. doi: 10.1016/j.neuroimage.2007.04.036. [DOI] [PubMed] [Google Scholar]
- Haufe S, Nikulin VV, Ziehe A, Müller KR, Nolte G (2008) Estimating vector fields using sparse basis field expansions. In: Proceedings of the 21st International Conference on Neural Information Processing Systems, Curran Associates Inc., USA, NIPS’08, pp 617–624, http://dl.acm.org/citation.cfm?id=2981780.2981857
- He B, Sohrabpour A, Brown E, Liu Z. Electrophysiological source imaging: a noninvasive window to brain dynamics. Annu Rev Biomed Eng. 2018;20:171–196. doi: 10.1146/annurev-bioeng-062117-120853. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Homa L, Calvetti D, Hoover A, Somersalo E. Bayesian preconditioned CGLS for source separation in MEG time series. SIAM J Sci Comput. 2013;35(3):B778–B798. [Google Scholar]
- Jonmohamadi Y, Poudel G, Innes C, Weiss D, Krueger R, Jones R. Comparison of beamformers for EEG source signal reconstruction. Biomed Signal Process Control. 2014;14:175–188. [Google Scholar]
- Kirsch Andreas. An Introduction to the Mathematical Theory of Inverse Problems. New York, NY: Springer New York; 2011. Regularization by Discretization; pp. 63–119. [Google Scholar]
- Koulouri A., Rimpiläinen V., Brookes M., Kaipio J. P. EMBEC & NBC 2017. Singapore: Springer Singapore; 2017. Prior Variances and Depth Un-Biased Estimators in EEG Focal Source Imaging; pp. 33–36. [Google Scholar]
- Lee E, Duffy W, Hadimani R, Waris M, Siddiqui W, Islam F, Rajamani M, Nathan R, Jiles D. Investigational effect of brain-scalp distance on the efficacy of transcranial magnetic stimulation treatment in depression. IEEE Trans Magn. 2016;52(7):1–4. [Google Scholar]
- Liu J. Monte Carlo strategies in scientific computing. Berlin: Springer; 2001. [Google Scholar]
- Liu J, Guenier B, Benard C. A sensitivity decomposition for the regularized solution of inverse heat conduction problems by wavelets. Inverse Probl. 1995;11(6):1177. [Google Scholar]
- Lucka F, Pursiainen S, Burger M, Wolters CH. Hierarchical bayesian inference for the EEG inverse problem using realistic FE head models: depth localization and source separation for focal primary currents. NeuroImage. 2012;61(4):1364–1382. doi: 10.1016/j.neuroimage.2012.04.017. [DOI] [PubMed] [Google Scholar]
- Malioutov D, Cetin M, Willsky A. A sparse signal reconstruction perspective for source localization with sensor arrays. IEEE Trans Signal Process. 2005;53(8):3010–3022. doi: 10.1109/tsp.2005.850882. [DOI] [Google Scholar]
- Mallat SG. A theory for multiresolution signal decomposition: the wavelet representation. IEEE Trans Pattern Anal Mach Intell. 1989;7:674–693. [Google Scholar]
- Miinalainen T, Rezaei A, Us D, Nüßing A, Engwer C, Wolters CH, Pursiainen S. A realistic, accurate and fast source modeling approach for the EEG forward problem. NeuroImage. 2019;184:56–67. doi: 10.1016/j.neuroimage.2018.08.054. [DOI] [PubMed] [Google Scholar]
- Nagarajan SS, Portniaguine O, Hwang D, Johnson C, Sekihara K. Controlled support MEG imaging. NeuroImage. 2006;33(3):878–885. doi: 10.1016/j.neuroimage.2006.07.023. [DOI] [PMC free article] [PubMed] [Google Scholar]
- O’Hagan A, Forster JJ (2004) Kendall’s advanced theory of statistics, volume 2B: Bayesian inference, vol 2. Arnold
- Pascual-Marqui RD. Review of methods for solving the EEG inverse problem. Int J Bioelectromagn. 1999;1(1):75–86. [Google Scholar]
- Pascual-Marqui RD, Lehmann D, Koenig T, Kochi K, Merlo MC, Hell D, Koukkou M. Low resolution brain electromagnetic tomography (loreta) functional imaging in acute, neuroleptic-naive, first-episode, productive schizophrenia. Psychiatry Res. 1999;90(3):169–179. doi: 10.1016/s0925-4927(99)00013-x. [DOI] [PubMed] [Google Scholar]
- Pascual-Marqui RD, Esslen M, Kochi K, Lehmann D, et al. Functional imaging with low-resolution brain electromagnetic tomography (loreta): a review. Methods Find Exp Clin Pharmacol. 2002;24(Suppl C):91–95. [PubMed] [Google Scholar]
- Piana M, Bertero M. Projected landweber method and preconditioning. Inverse Probl. 1997;13(2):441. [Google Scholar]
- Piana M, Bertero M. Projected Landweber method and preconditioning. Inverse Probl. 1997;13(2):441–463. [Google Scholar]
- Pizzo F, Roehri N, Villalon SM, Trébuchon A, Chen S, Lagarde S, Carron R, Gavaret M, Giusiano B, McGonigal A, et al. Deep brain activities can be detected with magnetoencephalography. Nat Communications. 2019;10(1):971. doi: 10.1038/s41467-019-08665-5. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Pursiainen S. Coarse-to-fine reconstruction in linear inverse problems with application to limited-angle computerized tomography. J Inv Ill Posed Probl. 2008;16(9):873–886. [Google Scholar]
- Pursiainen S. Raviart–Thomas -type sources adapted to applied EEG and MEG: implementation and results. Inverse Probl. 2012;28(6):065,013. [Google Scholar]
- Pursiainen S. Raviart–Thomas-type sources adapted to applied EEG and MEG: implementation and results. Inverse Probl. 2012;28(6):065,013. [Google Scholar]
- Pursiainen S, Lucka F, Wolters CH. Complete electrode model in EEG: relationship and differences to the point electrode model. Phys Med Biol. 2012;57(4):999–1017. doi: 10.1088/0031-9155/57/4/999. [DOI] [PubMed] [Google Scholar]
- Pursiainen S, Vorwerk J, Wolters C. Electroencephalography (EEG) forward modeling via H(div) finite element sources with focal interpolation. Phys Med Biol. 2016;61(24):8502–8520. doi: 10.1088/0031-9155/61/24/8502. [DOI] [PubMed] [Google Scholar]
- Schmidt DM, George JS, Wood CC. Bayesian inference applied to the electromagnetic inverse problem. Hum Brain Mapp. 1999;7(3):195–212. doi: 10.1002/(SICI)1097-0193(1999)7:3<195::AID-HBM4>3.0.CO;2-F. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Seeber M, Cantonas LM, Hoevels M, Sesia T, Visser-Vandewalle V, Michel CM. Subcortical electrophysiological activity is detectable with high-density EEG source imaging. Nat Commun. 2019;10(1):753. doi: 10.1038/s41467-019-08725-w. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Tarkiainen A, Liljeström M, Seppä M, Salmelin R. The 3d topography of MEG source localization accuracy: effects of conductor model and noise. Clin Neurophysiol. 2003;114(10):1977–1992. doi: 10.1016/s1388-2457(03)00195-0. [DOI] [PubMed] [Google Scholar]
- Uutela K, Hämäläinen M, Somersalo E. Visualization of magnetoencephalographic data using minimum current estimates. NeuroImage. 1999;10:173–180. doi: 10.1006/nimg.1999.0454. [DOI] [PubMed] [Google Scholar]
- Wang G, Yang L, Worrell G, He B (2009) The relationship between conductivity uncertainties and eeg source localization accuracy. In: Engineering in Medicine and Biology Society, 2009. EMBC 2009. Annual International Conference of the IEEE, IEEE, pp 4799–4802 [DOI] [PMC free article] [PubMed]