Professional Documents
Culture Documents
Conditionally Gaussian Hierarchical Bayesian Inversion of The P20-N20 Component of SEP/SEF Measurements With FEM Forward Modeling
Conditionally Gaussian Hierarchical Bayesian Inversion of The P20-N20 Component of SEP/SEF Measurements With FEM Forward Modeling
Conditionally Gaussian Hierarchical Bayesian Inversion of The P20-N20 Component of SEP/SEF Measurements With FEM Forward Modeling
A. Rezaei · M. Antonakakis · M.
C. Piastra · Q. He · A. Koulouri ·
V. Rimpiläinen · C.H. Wolters · S.
Pursiainen
Atena Rezaei
Laboratory of Mathematics, Tampere University, P.O. Box 692, 33101 Tampere, Finland
E-mail: atena.rezaei@tuni.fi
Marios Antonakakis
Institute of Biomagnetism and Biosignalanalysis, University of Münster, Germany, Malme-
dyweg 15, D-48149 Münster, Germany
Maria Carla Piastra
Institute of Biomagnetism and Biosignalanalysis, University of Münster, Germany, Malme-
dyweg 15, D-48149 Münster, Germany
Cognitive Neuroscience, Donders Institute for Brain, Cognition and Behaviour, Radboud
University Nijmegen Medical Centre, Nijmegen, The Netherlands
Qin He
Faculty of Information Technology and Communication Sciences, Tampere University, P.O.
Box 692, 33101 Tampere, Finland
Laboratory of Signal Processing, Tampere University, P.O. Box 553, 33101 Tampere, Fin-
land
Alexandra Koulouri
Faculty of Information Technology and Communication Sciences, Tampere University, P.O.
Box 692, 33101 Tampere, Finland Department of Physics, Aristotle University of Thessa-
loniki, Thessaloniki 54124, Greece
Ville Rimpiläinen
Department of Physics, University of Bath, Claverton Down, BA27AY Bath, United King-
dom
Carsten H. Wolters
Institute of Biomagnetism and Biosignalanalysis, University of Münster, Germany, Malme-
dyweg 15, D-48149 Münster, Germany
Otto Creutzfeldt Center for Cognitive and Behavioral Neuroscience, University of Münster,
Münster, Germany
Sampsa Pursiainen
Faculty of Information Technology and Communication Sciences, Tampere University, P.O.
Box 692, 33101 Tampere, Finland
2 A. Rezaei et al.
1 Introduction
Fig. 1 Left: A schematic illustration depicting the sagittal cut of the primary somatosen-
sory cortex (SI). The P20-N20 component of the somatosensory activity occurs in the Brod-
mann area 3b of SI, which is located in the posterior wall of the central sulcus (Allison
et al. 1991). Right: The orientation of the primary currents (SEP/SEF components) in the
cerebral cortex is normal with respect to the surface due to the normal alignment of the
pyramidal cells (Hari et al. 2018).
1 Zeffiro is Italian for a ’gentle breeze’. The source code is available on-line at https:
//github.com/sampsapursiainen/zeffiro_interface/graphs/traffic
4 A. Rezaei et al.
2 Methods
This section briefly reviews the mathematical CG-HBM approach and its im-
plementation in this study. We denote by x the primary current density of
the neural activity, that is the unknown of the inverse problem, and by y the
measurement data vector. In both EEG and MEG, the dependence of y on x,
i.e., the forward model, can be formulated via the lead field matrix equation
of the form y = Lx + n, where n is a noise vector and L is the so-called
lead field matrix (Hämäläinen et al. 1993). Here L is obtained via the FEM
discretization of the classical field equations following from the quasi-static
approximation of the Maxwell’s equations as described in Miinalainen et al.
(2019); Pursiainen et al. (2016); Pursiainen (2012).
For a single given data set y, the classical Bayes formula for subjective condi-
tional probabilities can be written as
p(x) p(y | x)
p(x | y) = ∝ p(x) p(y | x). (1)
p(y)
That is, the posterior probability density p(x | y) of the unknown primary
current distribution x in the brain is proportional to the product between the
prior density p(x), i.e., the a priori knowledge of x, and the likelihood function
p(y | x) following from the measurement noise model (Schmidt et al. 1999).
The measurement error is here assumed to be a Gaussian zero mean random
vector n = y − Lx with independent entries. Consequently, the likelihood is
Conditionally Gaussian Inversion of the P20-N20 SEP/SEF Component 5
of the form p(y | x) ∝ exp(−(2σ 2 )−1 kLx − yk2 ), where σ is the standard
deviation of the noise. In the hierarchical Bayesian approach, one assumes the
prior to be a joint density
p(x, θ) ∝ p(θ) p(x | θ) (2)
of x and a hyperparameter Rθ. That is, the actual prior is, in fact, a marginal
density of the form p(x) ∝ p(θ) p(x | θ) dθ.
In CG-HBM O’Hagan and Forster (2004); Calvetti et al. (2009); Calvetti
and Somersalo (2007), the conditional part p(x | θ) is also a zero mean Gaus-
sian density. Its diagonal covariance matrix is predicted by a long-tailed hyper-
prior p(θ), meaning that the variance vector, i.e., the set of diagonal entries,
is likely to contain outliers. Thus, it is implicitly assumed that x is a sparse
vector with a small subset of entries, which are considerably large in absolute
value compared to the others (Sato et al. 2004). The number and intensity of
these outliers are controlled by the hyperprior (Calvetti and Somersalo 2007).
The resulting impulse-like prior model for the unknown is particularly advan-
tageous to obtain a focal reconstruction for the brain activity, since one can
control how many the entries in x essentially differ from zero.
As the hyperprior, we test both the gamma G(θ | β, θ0 ) and inverse gamma
IG(θ | β, θ0 ) distribution, whose density is supported on the set of non-negative
real numbers with a structure determined by the scale and shape parameter
θ0 and β, respectively. The first one of these controls the hyperprior’s effective
support size as well as its distance from the origin: the greater value the larger
the support and the greater the maximum. Again, the second one steers the
decay rate of its tail.
Given the posterior, the actual reconstruction can be found via several different
approaches. The most common ones can be divided to optimization and sam-
pling techniques. The former ones include the MAP algorithms, which target at
6 A. Rezaei et al.
finding the maximizer of the posterior density, i.e., xM AP = argmax ppost (x, θ |
y). MAP estimation usually provides the faster but less robust way to obtain a
reconstruction than the sampling
R techniques that approximate the conditional
mean xCM = E(x, θ | y) = (x, θ)ppost (x, θ | y) dx dθ (Kaipio and Somersalo
2004). The detailed descriptions for the IAS MAP estimation method and the
MCMC sampler employed for CM estimation in this study can be found in
Calvetti et al. (2009).
Fig. 2 1st and 2nd from the left: A top view of the positions for the successfully
recorded 72 electrode (left) and 271 magnetometer (right) channels. The magnetometer ori-
entations are also shown. 3rd and 4th from the left: A sagittal cut of the six compartment
tetrahedral FE mesh for 1 and 2 mm resolution (left and right, respectively). The modeled
compartments are the following: skin (brown), compact bone (beige), spongious bone (blue),
cerebrospinal fluid (green), grey matter (grey) and white matter (light grey).
tion (PBO) interpolation with the 10-source (8-point) stencil. That is, a given
dipolar current source was estimated via the 4 linear face and 6 quadratic edge
vector basis functions associated with the barycenter of the tetrahedron con-
taining the source position. The sources were placed in the interior part of the
grey matter compartment in the elements with a full set (four) of neighbors
belonging to the same compartment. The rest of the compartment forming the
boundary layer of the grey matter contained no sources, since the modeling
accuracy is known to be reduced for the boundary layer (Miinalainen et al.
2019).
To obtain a uniform (mesh independent) source density, 100,000 points
were distributed randomly in the grey matter for each FE mesh. A uniform
point spread was obtained through a straightforward random permutation due
to the uniform mesh structure. The points placed on the boundary layer in the
initial stage were filtered out of the eventual distribution consisting of 76,000
and 61,000 positions for 1 and 2 mm FE mesh, respectively. The lower source
count for the 2 mm case was caused by the thicker boundary layer following
from the larger element size. Each position comprised three sources oriented
along the three Cartesian coordinate axes. Hence, the total number of sources
was 228,000 and 183,000 for 1 and 2 mm FE mesh, respectively.
The Cartesian set of sources was used in inverting the data. After the
inversion process, the distribution obtained was projected using the neuro-
physiological normal constraint (Figure 1): the component coinciding with the
direction of the surface normal constituted the final reconstruction.
The inversion computations were conducted using a (non-open) data set which
was obtained for a right-handed, 49-year-old, healthy male subject, whose right
median nerve was stimulated, when lying in a supine position in a magnetically
shielded room. Simultaneous SEP/SEF measurements were performed using
80 AgCl sintered ring electrodes (EASYCAP GmbH, Herrsching, Germany)
including 74 EEG channels with additional 6 channels for detecting eye move-
ments together with an MEG system including 275 axial gradiometers and 29
reference coils (OMEGA2005, VSM MedTech Ltd). Four magnetometers and
two EEG sensors were reported as defective channels. Measurements from 72
electrodes and 271 magnetometers (Figure 2) were used in the eventual data
set. The total number of 1,200 stimuli were obtained during a 10 minute mea-
surement session. The electric pulse duration was 0.5 ms, and, to determine the
magnitude, the stimulus strength was increased until a clear movement of the
thumb was visible. Each measurement had a 300 ms total duration, which was
subdivided into 100 ms pre-stimulus, stimulus and post-stimulus sub-intervals.
The inter-stimulus interval varied between 350 and 450 ms. The measurements
were averaged and pre-processed using a notch filter for the frequency 50 Hz
and for its harmonics to remove the power-line noise. The response measured
8 A. Rezaei et al.
Fig. 3 The data obtained in the simultaneous EEG (left) and MEG (right) SEP/SEF
measurements. The actual stimulus response was measured for a 100 ms interval between
the pre-stimulus and post-stimulus phase. The P20-N20 component investigated in this
study corresponds to the peaks corresponding to the 20 ms post-stimulus time point which
is indicated by the vertical line.
for the different stimuli were averaged to produce the SEP/SEF data (Figure
3) the amplitude of which was normalized to one.
The eventual signal corresponded to the P20-N20 activity peak occurring
at the 20 ms post-stimulus time point (Figure 3). The data vector y for the
inversion computation was obtained for the 20 ms post-stimulus time point
after filtering the data with a low- and high-pass filter to obtain the frequency
range 20–250 Hz.
The MAP estimate was found via three IAS iteration steps. For CM, a sample
of 10,000 points was created with the MCMC sampler. Of these, 1,000 points
in the beginning of the sequence were neglected as a burn-in phase. The CM
Conditionally Gaussian Inversion of the P20-N20 SEP/SEF Component 9
Table 1 The values of the scale parameter θ0 for different reconstructions specified by
the type of the data (Measured/Synthetic), measurement modality (EEG/MEG), estimate
(MAP/CM), and the hyperprior (G/IG).
Data Modality Estimate Hyperp. Scale
Meas. EEG MAP G 1E-12
IG 1E-11
CM G 1E-12
IG 1E-12
MEG MAP G 1E-12
IG 1E-11
CM G 1E-12
IG 1E-12
Synth. EEG MAP G 1E-12
IG 1E-11
CM G 1E-14
IG 1E-14
MEG MAP G 1E-11
IG 1E-11
CM G 1E-14
IG 1E-14
evaluation was performed by limiting the activity within a spherical ROI which
was defined as a single sub-domain based on preliminary MAP estimates (Fig-
ure 4) suggesting that the P14-N14 (thalamus) and P22-N22 (Brodmann area
1) components, which are peaked earlier and later with respect to P20-N20
(Buchner et al. 1994, 1995), were not distinguishable. The placement of the
ROI (Figure 4) was selected referring to the literature the hand-knob within
the Brodmann area 3b (Hari et al. 2018). The difference vector pointing from
the synthetic source position to the center point of the ROI was (4 mm, -1
mm, 2 mm).
The scale parameter values used in finding the inverse estimates can be
found in Table 1. Based on the preliminary tests, the scale parameter was
chosen to be θ0 = 1E-12 and θ0 = 1E-14 for the measured and synthetic data,
respectively. The main goal in selecting the scale parameter value was to make
the posterior probability model sensitive enough to detect the activity deep in
the sulcal wall. The value for the MAP estimation process was set to be larger
than for CM evaluation, if the gradient-based IAS algorithm did not otherwise
find the peak of the posterior.
The shape parameter value was fixed to β = 3. The main criterion for
selecting selecting this value was the shape of the posterior density, whose
peak (the credibility interval containing 90 % of the probability mass around
its maximum) was assumed to be have a few millimeters diameter w.r.t. the
mass center of x, i.e., comparable to the mutual distance of the lead field
source space density, in order to avoid the failure of the sampling process due
to an extremely peaked posterior structure.
The present forward and inverse methods have been implemented in the Zeffiro
interface (ZI) (He et al. 2018) toolbox which uses the Matlab (The MathWorks
10 A. Rezaei et al.
Fig. 4 Left: The hand knob (green line) is a part of the Brodmann area 3b in the central
sulcus (between the blue and red areas) Hari et al. (2018). Center: General overview of the
P20-N20 component reconstruction in the posterior bank of the central sulcus, Brodmann
3b area. Right: The region of interest (ROI) utilized in the CM computations is the region
restricted by the 24 mm diameter grey spherical surface approximately covering the hand-
knob of the left hemisphere. The number of A MAP estimate for synthetic EEG data is
visualized on the cortex.
3 Results
The hierarchical Bayesian approach was found to successfully detect the peak
of the P20-N20 component in the area 3b of the left hemisphere in altogether
32 inversion tests. An overlaid P14-P14 (thalamus) or P22-N22 (Brodmann
Conditionally Gaussian Inversion of the P20-N20 SEP/SEF Component 11
Table 2 The values obtained for the spread of reconstructed source as well as for the
position and orientation difference between the synthetic source and the mass center of the
reconstructed one for each inverse estimate.
Spread Orientation Position
FE Mesh Data Modality Estimate Hyperp. (mm2 ) ∆ (deg) ∆ (mm)
1 mm Meas. EEG MAP G 44.7 9.7 3.4
IG 43.9 9.5 3.4
CM G 71.8 13.3 3.8
IG 37.7 14.4 3.8
MEG MAP G 32.0 10.8 3.4
IG 32.2 10.8 3.4
CM G 48.8 11.7 3.7
IG 42.0 12.5 3.8
Synth. EEG MAP G 42.0 5.8 3.5
IG 40.3 5.7 3.5
CM G 64.8 11.5 3.7
IG 69.9 12.1 3.7
MEG MAP G 22.0 12.8 3.5
IG 13.7 14.3 3.5
CM G 52.5 12.8 3.7
IG 52.6 12.6 3.7
area 1) activity was not detected. Table 2 includes a numeric measure for the
spread (focality) of the reconstructed and normally restricted activity defined
as the area of the a set in which its intensity exceeds 80 % of the maximum
value. The position and orientation difference between the synthetic source
and the mass center of the reconstructed activity are also given. Figures 5–8
visualize the reconstructed activity on the white matter surface (i.e. on the
inner surface of the grey matter) in the vicinity of the ROI. Each distribution
shows the activity in the direction of the outward-pointing surface normal.
The MAP estimates are shown in Figure 5 and 7 for 1 and 2 mm FE mesh,
respectively. All the inverse estimates localized the activity in the sulcal wall
with the position and orientation difference varying less than 0.4 mm and
10.4 degrees within the complete set of reconstructions. In the 1 mm case,
they were maximally 3.8 mm and 14.4 degrees, respectively; MEG provided a
12 A. Rezaei et al.
Fig. 5 The MAP estimation results obtained with the IAS iteration corresponding to the
measured and synthetic data and the 1 mm FE mesh. The placement and orientation of the
synthetic source is shown by the red pin and the mass center of the reconstruction by the
green one.
3.2 CM estimation
Figure 6 and 7 illustrate the CM estimates obtained for the ROI together with
the corresponding marginal densities (histograms) for the volumetric mass
center of the posterior. Overall, CM had a higher maximum intensity in a
mutual comparison to MAP regarding both real and synthetic data, while
the location of the maximum was virtually similar. The marginal densities
obtained show that maximum length of the 90 % credibility interval for the
marginal posterior mass center was in the range 0.9–1.4 and 1.2–2.3 mm for
the 1 and 2 mm FE mesh resolution, matching with the targeted range, and
that the mutual differences in the median, for each coordinate direction, were
less than 0.2 and 1.1 mm, respectively. Akin to the MAP, the spread of the CM
obtained with the 2 mm FE mesh resolution varied more between the different
reconstructions than in the case of the 1 mm mesh, while the maximal intensity
of the CM was observed to vary less than that of the MAP.
Conditionally Gaussian Inversion of the P20-N20 SEP/SEF Component 13
Fig. 6 The CM estimation results obtained with the sampler corresponding to the measured
and synthetic data and the 1 mm FE mesh. The marginal density (histograms) of the
(volumetric) posterior mass centre is illustrated for each case and Cartesian coordinate
component, including the median (red dashed line) and the 90 % credibility interval (blue
solid line). The placement and orientation of the synthetic source is shown by the red pin
and the mass center of the reconstruction by the green one.
4 Discussion
Fig. 7 The MAP estimation results obtained with the IAS iteration corresponding to the
measured and synthetic data and the 2 mm FE mesh.
Fig. 8 The CM estimation results obtained with the sampler corresponding to the measured
and synthetic data and the 2 mm FE mesh. The marginal density (histograms) of the
(volumetric) posterior mass centre is illustrated for each case and Cartesian coordinate
component.
Conditionally Gaussian Inversion of the P20-N20 SEP/SEF Component 15
exclusively limited in the area 3b in ten subjects and the thalamus was found
to be activated in two. Consequently, even if limiting the exploration to the
3b area might be appropriate for the majority of the subjects, it might be also
necessary to include the thalamus in some cases. One of the most important
future investigations will, therefore, be to apply our method in a somatosen-
sory group study in which more areas and their interaction as well as other
stimulation types, e.g., tactile stimulation, will be investigated. This future
direction is motivated by our CG-HBM implementation which is, in principle,
able to also reconstruct also deep sources in the presence of superficial activity,
as is suggested by the earlier computer simulations (Calvetti et al. 2009; Lucka
et al. 2012).
Based on the results, especially the position difference with respect to the
mass center, it seems that a source localization accuracy of around 4 mm could
be achieved in the area 3b. This coincides the maximal spatial accuracy found
for the MEG, i.e., 2-4 mm for superficial areas (Tarkiainen et al. 2003; Cohen
and Cuffin 1991), and even surpasses that of EEG which for superior locations
is in average about 9 mm (Cuffin et al. 2001a,b; Buchner et al. 1994). A
significant factor affecting the accuracy of EEG is the uncertainty related to the
conductivity distribution (Wang et al. 2009). However, taking into account the
total estimated 32-116 mm2 areal spread of the inverse estimates, the accuracy
found here does not exceed the suggested maximal accuracy limits. Here, the
spread of the estimates found follows from the current numerical framework
as the maximal achievable focality without a potential numerical bias. The
relationship between the estimates found and the actual physiological spread
of the source is not evaluated here and would need further work.
The values selected for the shape and scale parameter are crucial with
respect to the inversion outcome. Relying on the experience obtained from
this study, the scale parameter θ0 for detecting the P20-N20 component needs
to be selected so that the following two conditions will be satisfied. Firstly,
(i) θ0 has to be small enough to guarantee that the activity is reconstructed
in the sulcal wall instead of the gyrus part. At the same time, (ii) to avoid
a bias due to the numerical modeling accuracy, the posterior peak-width of
the posterior density should be maintained above the source the source space
density. The marginal densities obtained suggest that the condition (i) could
be satisfied for both EEG and MEG, when the the scale parameter was set to
be 1E-12 and 1E-14 for measured and synthetic data, respectively. A larger
value was found to be necessary to ease up the convergence of some IAS MAP
estimates, especially, in the case of the IG hyperprior. In order to fulfill (ii), the
shape parameter was given the value 3 which provided overall an appropriate
peak-width (the larger the scale parameter, the wider the peak). A lower value
was likely to result in a narrow peak which was not necessarily found by the
MCMC sampler.
CG-HBM, as a statistical model, might be advantageous for obtaining ro-
bust inverse estimates. When the parameters are chosen appropriately, the
sampler-based approach seems to provide a robust technique for estimating
the marginal posterior and the CM, giving information of the posterior distri-
16 A. Rezaei et al.
Acknowledgments
AR, QH, and SP were supported by the Academy of Finland Centre of Excel-
lence in Inverse Modelling and Imaging 2018–2025. AK was supported by the
2 https://surfer.nmr.mgh.harvard.edu
Conditionally Gaussian Inversion of the P20-N20 SEP/SEF Component 17
References
Ahlfors SP, Han J, Belliveau JW, Hämäläinen MS (2010) Sensitivity of MEG and EEG to
source orientation. Brain topography 23(3):227–232
Allison T, Wood CC, McCarthy G, Spencer DD (1991) Cortical somatosensory evoked po-
tentials. ii. effects of excision of somatosensory or motor cortex in humans and monkeys.
Journal of neurophysiology 66(1):64–82
Beltrachini L (2018) Sensitivity of the projected subtraction approach to mesh degenera-
cies and its impact on the forward problem in eeg. IEEE Transactions on Biomedical
Engineering
Braess D (2001) Finite Elements. Cambridge University Press, Cambridge
Brette R, Destexhe A (2012) Handbook of Neural Activity Measurement. Cambridge Uni-
versity Press, New York, DOI http://dx.doi.org/10.1017/CBO9780511979958
Buchner H, Fuchs M, Wischmann HA, Dössel O, Ludwig I, Knepper A, Berg P (1994)
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 topography 6(4):299–310
Buchner H, Adams L, Müller A, Ludwig I, Knepper A, Thron A, Niemann K, Scherg
M (1995) Somatotopy of human hand somatosensory cortex revealed by dipole source
analysis of early somatosensory evoked potentials and 3d-nmr tomography. Electroen-
cephalography and Clinical Neurophysiology/Evoked Potentials Section 96(2):121–134
Buchner H, Knoll G, Fuchs M, Rienäcker A, Beckmann R, Wagner M, Silny J, Pesch J
(1997) Inverse localization of electric dipole current sources in finite element models of
the human head. Electroencephalogr Clin Neurophysiol 102(4):267–78
Calvetti D, Somersalo E (2007) A gaussian hypermodel to recover blocky objects. Inverse
problems 23(2):733
Calvetti D, Hakula H, Pursiainen S, Somersalo E (2009) Conditionally Gaussian hypermod-
els for cerebral source localization. SIAM J Imaging Sci 2(3):879–909
Calvetti D, Pascarella A, Pitolli F, Somersalo E, Vantaggi B (2015) A hierarchical krylov–
bayes iterative inverse solver for MEG with physiological preconditioning. Inverse Prob-
lems 31(12):125,005
Calvetti D, Pascarella A, Pitolli F, Somersalo E, Vantaggi B (2018) Brain activity mapping
from MEG data via a hierarchical bayesian algorithm with automatic depth weighting.
Brain topography pp 1–31
Cohen D, Cuffin BN (1991) Eeg versus meg localization accuracy: theory and experiment.
Brain topography 4(2):95–103
Cuffin BN, Schomer DL, Ives JR, Blume H (2001a) Experimental tests of eeg source
localization accuracy in realistically shaped head models. Clinical neurophysiology
112(12):2288–2292
Cuffin BN, Schomer DL, Ives JR, Blume H (2001b) Experimental tests of eeg source local-
ization accuracy in spherical head models. Clinical neurophysiology 112(1):46–51
Fuchs M, Wagner M, Wischmann HA, Köhler T, Theißen A, Drenckhahn R, Buchner H
(1998) Improving source reconstructions by combining bioelectric and biomagnetic data.
Clinical Neurophysiology 107(2):93–111
Götz T, Huonker R, Witte OW, Haueisen J (2014) Thalamocortical impulse propagation and
information transfer in eeg and meg. Journal Of Clinical Neurophysiology 31(3):253–260
Hämäläinen M, Hari R, Ilmoniemi RJ, Knuutila J, Lounasmaa OV (1993) Magnetoen-
cephalography — theory, instrumentation, and applications to invasive studies of the
working human brain. Reviews of Modern Physics 65:413–498
18 A. Rezaei et al.