Keywords

1 Introduction

EEG/MEG is a non-invasive measurement with high temporal and low spatial resolution, which collects signals on the scalp through electrodes for analysis of brain neural activity. At the same time, EEG/MEG is also a direct and real-time way to detect a spontaneous or induced activity of the brain [1]. EEG/MEG devices have the advantages of cost-effectiveness, portability, and versatility. EEG, in particular, is widely recognized as a powerful tool for capturing real-time brain function by measuring neuronal processes [2]. The problem of EEG/MEG source localization can be further divided into two sub-problems, the forward and the inverse problem. The forward problem of EEG/MEG is to determine the surface potential or magnetic field strength of the scalp from a given configuration of neuronal current activity, whereas the inverse problem is defined as the reconstruction of brain activity sources from external electromagnetic signals which is also known as the EEG/MEG source imaging (ESI) problem [3]. However, the number of EEG/MEG external detection channels is far less than that of the brain sources, which makes the ESI an ill-posed problem.

In the past decades, numerous algorithms have been developed with different assumptions on the configuration of the source signal. One seminal work is minimum norm estimate (MNE) where \(\ell _2\) norm is used as a regularization [4], which is to explain the observed signal using a potential solution with the minimum energy. Different variants of the MNE algorithm include dynamic statistical parametric mapping (dSPM) [5] and standardized low-resolution brain electromagnetic tomography (sLORETA) [6]. The \(\ell _2\)-norm based methods tend to render spatially diffuse source estimation. To promote a sparse solution, Uutela et al. [7] introduced the \(\ell _1\)-norm, known as minimum current estimate (MCE). Also, Rao and Kreutz-Delgado proposed an affine scaling method [8] for a sparse ESI solution. q111The focal underdetermined system solution (FOCUSS) proposed by Gorodnitsky et al. encourages a sparse solution by introducing the \(\ell _{p}\)-norm regularization [9]. Besides, Bore et al. also proposed to use the \(\ell _{p}\)-norm regularization (\(p < 1\)) on the source signal and the \(\ell _1\) norm on the data fitting error term [10]. Babadi et al. [11] demonstrated that sparsely distributed solutions to event-related stimuli could be found using a greedy subspace-pursuit algorithm. Wipf et al. proposed a unified Bayesian learning method [12] that can automatically calculate the hyperparameters for the inverse problems under an empirical Bayesian framework and the sparsity of the solution is also guaranteed. It is worth noting that the sparse constraint can be applied to the original source signal or the transformed spatial gradient domain [13,14,15,16]. As the brain sources are not activated discretely due to the conductor property, an extended area of source estimation is preferred [17], and it has been used for multiple applications, such as somatosensory cortical mapping [18], and epileptogenic zone in focal epilepsy patients [19].

Following the early work of applying GSP to the ESI problem [20, 21], in this work, we proposed to use GSP and incorporate the low frequency spatial representation for the source space and rejuvenate the classical ESI methods for the estimation of an extended area of source activation, and illustrate the importance of using GSP for an extended area of source activation.

2 Method

In this section, we start by introducing the ESI inverse problem, followed by the presentation of the graph Fourier transform (GFT). Then, we propose a improve the classical source localization methods using the low-pass spatial graph filters.

2.1 EEG/MEG Source Imaging Problem

The source imaging forward problem can be described as the format \(Y = KS + E\), where \(Y\in \mathbb {R}^{C\times T}\) is the EEG/MEG measurements from the scalp, C is the number of EEG/MEG channels, T is the time sequence length, \(K\in \mathbb {R}^{C\times N}\) is the leadfield matrix which performs a linear mapping from the brain sources to the EEG/MEG electrodes on the scalp, N is the number of source locations, \(S\in \mathbb {R}^{N\times T}\) represents the active source amplitudes in N source locations for all the T time points, and E is the noise which can be assumed to follow the Gaussian distribution with zero mean and identity covariance. The inverse problem is to estimate S given Y and K. Since the source number N is much larger than the electrode number C, which makes the inverse problem ill-posed, it is challenging to obtain a unique and stable solution. Thus, in order to constrain the solution space, various regularization terms were designed based on the prior assumption of the source structure. In this case, the inverse problem can be formulated as below:

$$\begin{aligned} S = \mathop {\textrm{argmin}}\limits _S \frac{1}{2} \left\| {Y - KS} \right\| _F^2 + \lambda R (S), \end{aligned}$$
(1)

where \({\Vert \cdot \Vert _F}\) is the Frobenius norm, and S can be obtained by solving the minimizing problem. The first term in Eq. (1) is datafitting trying to explain the recorded EEG measurements. The second term is called the regularization term, which is imposed to find a unique solution by using sparsity or other neurophysiology inspired regularization. For example, if R(S) equals \(\ell _2\) norm, the problem is called minimum norm estimate (MNE).

2.2 Graph Fourier Transform (GFT)

Consider an undirected graph \(G = \left\{ \mathcal {V}, A\right\} \) generated from the 3D mesh of cortex, where \(\mathcal {V} = \left\{ v_1, v_2, \ldots , v_N \right\} \) is the set of N nodes, A is the weighted adjacent matrix with entries given by the edge weights \(a_{ij}\) that represents the connection strength between node i and node j. The graph Laplacian matrix is defined as \(L = D - A\), where D is the in-degree matrix with \(D_{ii} = \sum _{j\ne i}A_{ij}\). Since L is a positive semi-definite matrix, its eigenvalues are all greater or equal to 0 which are usually taken as the frequency of GFT, and the associated eigenvectors \(U = [u_1, u_2, \ldots , u_N]\), \(U \in \mathbb {R}^{N \times N}\) can be regarded as the basis signals of GFT where any signal in the graph can be approximated as the linear combinations of basis. Thus, the graph Fourier transform for a signal S can be defined as \(\tilde{S}= U^{T}S\), whereas the inverse graph Fourier transform is given as \(S = U\tilde{S}\). Then we define normalized graph frequency (NGF) as

$$\begin{aligned} f_G(u_i) = \frac{f_s(u_i)}{Tr(L)}, \end{aligned}$$
(2)

where Tr(L)is the trace of L, and \(f_s(u_i)\) is defined as

$$\begin{aligned} f_s(u_i) = \sum _{m=1}^{N}\sum _{n\in \mathcal {N}(m)}\mathbb {I}(u_i(m)u_i(n)<0)/2, \end{aligned}$$
(3)

where \(\mathcal {N}(m)\) represents all neighbors of node m, and \(\mathbb {I}(\cdot )\) is the indicator function which equals 1 if the values of \(u_i\) on node m and n have different sign and 0 otherwise. The number of sign flip at time t indicate how many zero crossing of a basis signal within a bounded region at t.

We calculated the NGF in the whole time series within first-order neighbors, second-order neighbors, and third-order neighbors respectively. The spectrogram, which is illustrated in Fig. 1, reveals that the NGF is positively correlated with the size of the eigenvalue of L. Thus we can further separate U into low, medium, and high-frequency components according to NGF values, and reformat it as \(U = [U_{L}, U_{M}, U_{H}]\).

Fig. 1.
figure 1

Graph frequency of the eigenvectors.

2.3 Inverse Problem with Spatial Graph Filters

The existing source localization methods can be distracted by the high-frequency components and result in a spread-out solution while reconstructing the focal extend area, even the \(\ell _1\)-norm and \(\ell _{2,1}\)-norm based method that is designed to promote the sparsity can hardly give a satisfying reconstruction result. Moreover, they do not take source spatial frequency correlation into consideration. The proposed method is trying to rejuvenate classical source localization methods using spatial graph filters by keeping the spatially low- and the top part of medium-frequency components \([U_{L}, \tilde{U}_{M}] \in \mathbb {R}^{N\times P}\) as a spatial graph filter to reconstruct the focally extended sources, where P is the number of frequency components preserved for reconstruction. Here we replace the S in Eq. (1) with \(\tilde{U}\tilde{S}^*\) for dimensionality reduction in S and K, where \(\tilde{U}=[U_{L}, \tilde{U}_{M}]\), and \(\tilde{S}^* \in \mathbb {R}^{P\times T}\) is the estimated source signal with dimensionality reduction that contains smooth part of the original signal, in other words, the part of source extents. Then we can transform Eq. (1) to the problem of estimating \(\tilde{S}^*\) by introducing the spatial graph filter with the form as below

$$\begin{aligned} \tilde{S}^* = \mathop {\textrm{argmin}}\limits _{\tilde{S}^*} \frac{1}{2} \Vert {Y - K\tilde{U}\tilde{S}^*} \Vert _F^2 + \lambda R (\tilde{S}^*), \end{aligned}$$
(4)

Finally, S can be simply obtained from \(\tilde{U}\tilde{S}^*\). The intuition is that the main energy of the source signal usually lies in the low-frequency components which are associated with the regions on the cortex with relatively large source extend area in a time series. Keeping the low graph frequency could promote a source extend area reconstruction and decrease the impact of the noise. Moreover, the reduced dimensional estimation in the inverse problem could further constrain the solution space and make the solution more easily solved and robust.

3 Numerical Experiments

In this section, we conducted numerical experiments to validate the effectiveness of the proposed method on synthetic EEG data under different levels of neighbors (LNs), Signal Noise Ratio (SNR) settings and further validate it on real MEG recordings from a visual-auditory test.

3.1 Simulation Experiments

We first conducted experiments on synthetic data with known activation patterns.

Forward Model: To generate synthetic EEG data, we used a real head model to compute the leadfield matrix. The T1-MRI images were scanned from a 26-year-old male subject. The brain tissue segmentation and source surface reconstruction were conducted using FreeSurfer [22]. Then a three-layer boundary element method (BEM) head was built based on these surfaces. A 128-channel BioSemi EEG cap layout was used and the EEG channels were co-registered with the head model using Brainstorm and then further validated on the MNE-Python toolbox [23]. The source space contains 1026 sources in each hemisphere, with 2052 sources combined, resulting in a leadfield matrix L with a dimension of 128 by 2052 (Fig. 2).

Synthetic Data Generation: To make the synthetic data more realistic, 200 out of 2052 locations in the source space were activated. Furthermore, as illustrated in Fig. 3, we used 3 different neighborhood levels (1-, 2-, and 3-level of the neighborhood) to represent different sizes of source extents, then we activated the whole “patch” with different neighborhood levels at the same time. The activation strength of the 1-, 2-, and 3-level adjacent regions was successively set to be 80%, 60%, and 40% of the central region. The strength of the source signal was set to be constant, then the scalp EEG data was calculated based on the forward model under different SNR settings (SNR = 40 dB, 30 dB, 20 dB, and 10 db). SNR is defined as the ratio of the signal power \(P_{\text {signal}}\) to the noise power \(P_{\text {noise}}\): \(\text {SNR}=10\log (P_{\text {signal}}/P_{\text {noise}})\).

In total, there were 12: 3 (source extents) \(\times \) 4 (SNRs) data sets (Y and S pairs).

Fig. 2.
figure 2

Source distributions corresponding to eigenvectors with different NGFs.

Fig. 3.
figure 3

Brain source distributions with different levels of neighbors (LNs).

Table 1. Performance Evaluation

Experimental Settings: We adopted MNE [4], MCE [7], \(\ell _{2,1}\)(MxNE) [24], dSPM [5], and sLORETA [6], as benchmark algorithms for comparison. We separately performed EEG source localization based on benchmark algorithms with and without the proposed GFT-based dimensionality reduction method. Next, we performed brain source reconstruction on the results from all algorithms. All the experiments were conducted on Linux environment with CPU Intel(R) Xeon(R) Gold 6130 CPU @2.10 GHz and 128 GB memory. The performance of each algorithm was quantitatively evaluated based on the following metrics:

  1. (1)

    Localization error (LE): it measures the Euclidean distance between centers of two source locations on the cortex meshes.

  2. (2)

    Area under curve (AUC): it is particularly useful to characterize the overlap of an extended source activation pattern.

Better performance for localization is expected if LE is close to 0 and AUC is close to 1. The performance comparison between the proposed method and benchmark algorithms on LE and AUC is summarized in Table 1, and the boxplot figures for SNR = 40 dB, and 20 dB are given in Fig. 4. The comparison between the reconstructed source distributions with a 3-level of the neighborhood and 40 dB SNR is shown in Fig. 5.

From Table 1 and Fig. 4 and 5, we can find that:

Fig. 4.
figure 4

Performance comparison of different algorithms on AUC and LE with 3-level of the neighborhood for SNR = 40 dB (subplot A and C), and SNR = 20 dB (subplot B and D).

Fig. 5.
figure 5

Brain sources reconstruction by different ESI algorithms with the single activated area and 3-level of the neighborhood for SNR = 40 dB.

  1. (1)

    MNE, MCE, \(\ell _{2,1}\), sLORETA, and dSPM can only reconstruct the brain sources when the activated area is small and the SNR level is high, and even the evaluation metrics are good in this case, the reconstruction for source extend area is poor as shown in Fig. 5. As the source range expands and the SNR decreases, a significant increase in LE and an obvious reduction in AUC can be observed. The reconstructed source distributions are no longer concentrated.

  2. (2)

    By contrast, the results of the rejuvenated methods outperform benchmark methods in most cases after applying the spatial graph filters. They both show good stability for varied neighborhood levels and SNR settings. Particularly, the performance of rejuvenated \(\ell _1\) regularization family (i.e., \(\ell _1\)-norm and \(\ell _{2,1}\)-norm) exhibits better performance on reconstructing source extents without losing its advantage in sparse focal source reconstruction and outperforms other methods in most instances.

Fig. 6.
figure 6

Averaged MEG time series plot and topographies.

3.2 Real Data Experiments

We further validated the proposed methodology on a real dataset that is publicly accessible through the MNE-Python package [23]. In this dataset acquirement, checkerboard patterns were presented into the left and right visual field, interspersed by tones to the left or right ear with stimuli interval 750 ms. The subject was asked to press a key with the right index finger as soon as possible after the appearance of a smiley face was presented at the center of the visual field [25]. Interictal spikes were extracted from the MEG measurements, and then we averaged these spikes for source reconstruction under MNE, MCE, \(\ell _{2,1}\), dSPM, sLORETA with and without the proposed GFT-based dimensionality reduction method. The averaged spikes are shown in Fig. 6, and the reconstructed source distributions are shown in Fig. 7.

From Fig. 7, we can see that the source area estimated by MNE, MCE, \(\ell _{2,1}\), sLORETA, and dSPM is highly broad. By contrast, and the rejuvenated methods provide more sparse focal source reconstructions. Moreover, the reconstructed focal for the rejuvenated methods falls primarily on areas with the strongest source signal, while others would spread to several regions. Obviously, the spatial graph filter in the rejuvenated methods promotes a concentrated and accurate estimation of the visual zone.

Fig. 7.
figure 7

Reconstructed source activation patterns from MEG data.

4 Conclusion

In this study, we rejuvenated classical source localization methods using spatial graph filters to solve the inverse problem of ESI. The proposed methodology enjoys the advantage of reconstructing focal source extents with sparsity and minimizing the impact from the noise by transforming the estimation of the source signal into an estimation of a lower dimensional latent variable in the subspace spanned by spatial frequency graph filters. Numerical experiments demonstrated that the proposed method performs particularly well on source extents, yields excellent robustness when the SNR level is low, and greatly improves the performance of the \(\ell _1\) family regularization. In the experiment on real data we performed, the proposed methodology provides a satisfactory reconstruction with more concentrated source distribution and more stability to noise than benchmark algorithms.