Skip to main content
NIHPA Author Manuscripts logoLink to NIHPA Author Manuscripts
. Author manuscript; available in PMC: 2025 Apr 1.
Published in final edited form as: Biomed Signal Process Control. 2023 Dec 9;90:105796. doi: 10.1016/j.bspc.2023.105796

Localization of Brain Signals by Alternating Projection

Amir Adler 1, Mati Wax 2, Dimitrios Pantazis 3
PMCID: PMC10795592  NIHMSID: NIHMS1953319  PMID: 38249934

Abstract

A popular approach for modeling brain activity in MEG and EEG is based on a small set of current dipoles, where each dipole represents the combined activation of a local area of the brain. Here, we address the problem of multiple dipole localization with a novel solution called Alternating Projection (AP). The AP solution is based on minimizing the least-squares (LS) criterion by transforming the multi-dimensional optimization required for direct LS solution, to a sequential and iterative solution in which one source at a time is localized, while keeping the other sources fixed. Results from simulated, phantom, and human MEG data demonstrated the high accuracy of the AP method, with superior localization results than popular scanning methods from the multiple-signal classification (MUSIC) and beamformer families. In addition, the AP method was more robust to forward model errors resulting from head rotations and translations, as well as different cortex tessellation grids for the forward and inverse solutions, with consistently higher localization accuracy in low SNR and highly correlated sources.

Index Terms—: MEG, EEG, source localization, least-squares, alternating projection, beamformer, MUSIC, forward model errors, coherent sources

I. Introduction

Localization of brain signals collected from an array of magnetoencephalography (MEG) or electroencephalography (EEG) sensors is essential for elucidating the neural basis of cognitive processes [1]. The localization problem can be formulated as estimating the location and moment of a small set of dipoles that best match the MEG/EEG measurements in a least-squares (LS) sense [2]. This multiple dipole localization approach avoids the ill-posedness inherent in imaging methods, such as minimum-norm [3], which seek to estimate a current density map throughout the cortex and thus assume a much higher number of unknown sources (in a discrete grid) than the number of sensors.

Multiple dipole localization methods are divided into dipole fitting and scanning methods. Dipole fitting methods solve the optimization problem directly using techniques that include the Nelder-Mead simplex algorithm, gradient descent, multistart, simulated annealing, and genetic algorithms [4]–[7]. However, these methods have not been widely adopted because they are too computationally expensive or converge to a suboptimal local optimum. Dipole scanning methods use adaptive spatial filters to search for optimal dipole positions throughout a discrete grid representing the source space [8]. Source locations are then determined as those for which a metric (localizer) exceeds a given threshold. While these approaches do not lead to true least squares solutions, they can be used to initialize a local least squares search. The most popular scanning methods are MUSIC [2] and beamformers [9], [10], both widely used for electromagnetic brain mapping, but they assume linearly independent and uncorrelated sources, respectively. When the sources are highly correlated (in the extreme case, fully correlated sources are referred to as coherent sources) the performance of MUSIC and beamformers deteriorates and the estimated time courses are distorted. Several multi-source extensions have been proposed for coherent sources [11]–[19], however they require some a-priori information on the location of the coherent sources, are limited to the localization of pairs of coherent sources, or are limited in their performance.

We present a novel solution to the problem of multiple dipole localization based on the LS estimation criterion. As is well known, jointly fitting all dipoles simultaneously yields a multidimensional nonlinear and non-convex minimization problem, making it extremely hard to avoid undesirable local minima [20]. To tackle this problem and effectively ameliorate the issue of undesirable local minima, we propose the use of the Alternating Projection (AP) algorithm, which is well known in sensor array signal processing community [21]. The AP method transforms the multidimensional problem to an iterative process involving only one-source maximization problems that are computationally much simpler. In addition, it has an effective initialization scheme which is key to its good global convergence.

The AP method is conceptually close to recursive scanning methods (e.g. Recursively Applied and Projected Multiple Signal Classification (RAP-MUSIC) [22], Truncated RAP-MUSIC (TRAP-MUSIC) [23], RAP-Beamformer [1]), in that it estimates the source locations iteratively at each step, projecting out the topographies of the previously found dipoles before forming the localizer for the current step. One notable characteristic of all these methods (including AP) is the absence of formal stopping criteria to determine the number of sources. Consequently, additional estimation procedures, such as the Akaike information criterion (AIC) [24] and the minimum description length criterion (MDL) [25], are typically employed. However, while recursive methods terminate after detecting the last source based on the determined model order, the AP algorithm continues refining the detected sources across several iterations. In our implementation, we terminate the iterations of the AP algorithm after achieving convergence, which is determined when the location of any of the sources no longer undergoes any changes. This iterative refinement process distinguishes the AP method from recursive approaches, as it allows for further optimization of the localized sources.

Another distinguishing aspect is that the AP method does not require explicit computation of the signal subspace, as compared to the MUSIC-based solutions. Instead, it directly utilizes the data covariance matrix, enabling significantly improved performance in localizing highly correlated and coherent sources.

In this paper, we present the AP method and compare it against popular MUSIC and beamformer variants in a variety of simulations involving different SNR, inter-source correlation levels, and number of active dipole sources. We also demonstrate the robustness of the AP method to forward model errors resulting from head rotations and translations and different cortex tessellation grids for the forward and inverse solutions. Finally, we validate the AP method and characterize its localization properties with experimental MEG phantom and human data. We note that, while our evaluation uses MEG data, the AP method is also directly applicable to EEG. An early part of this work was presented at the IEEE 19th International Symposium of Biomedical Imaging (ISBI), 2022 [26].

II. Materials and Methods

A. Problem formulation

The primary source of MEG and EEG signals is widely believed to be the electrical currents flowing through the apical dendrites of pyramidal neurons in the cerebral cortex [20]. Clusters of thousands of synchronously activated pyramidal cortical neurons can be modeled as an equivalent current dipole (ECD). The current dipole is therefore the basic element used to represent neural activation in MEG and EEG localization methods.

Here we briefly review the notations used to describe the measurement data, forward matrix, and sources, and formulate the problem of estimating current dipoles. Consider an array of M MEG or EEG sensors that measures data from a finite number Q of equivalent current dipole (ECD) sources emitting signals {sq(t)}q=1Q at locations {pq}q=1Q. The measurement signal y(t) received by the array is a M×1 vector given by:

y(t)=q=1Ql(pq)sq(t)+n(t), (1)

where l(pq) is the topography of the dipole at location pq and n(t) is the additive noise. The topography l(pq), is given by:

l(pq)=L(pq)q, (2)

where L(pq) is the M×3 forward matrix at location pq and q is the 3 × 1 vector of the orientation of the ECD source. Depending on the problem, the orientation q may be known, referred to as fixed-oriented dipole, or it may be unknown, referred to as freely-oriented dipole.

Assuming that the array is sampled N times at t1,,tN, the matrix Y of the sampled signals can be expressed as:

Y=AS+N, (3)

where Y is the M×N matrix of the sampled signals Y=[y(t1),,y(tN)] and A is the M×Q mixing matrix of the topography vectors at the Q locations P=[p1,,pQ]:

A=[l(p1),,l(pQ)], (4)

Note, even though the mixing matrix depends on the source locations, A(P), we drop P to ease notation. S=[s(t1),,s(tN)] is the Q×N matrix of the sources, with s(t)=[s1(t),,sQ(t)]T, and N=[n(t1),,n(tN)] is the M×N matrix of noise.

We further make the following assumptions regarding the emitted signals and the propagation model:

  • A1: The number of sources Q is known and obeys Q<M.

  • A2: The forward matrix L(p) is known for every location p (computed by the forward model).

  • A3: All Q topography vectors {l(pq)}q=1Q are linearly independent, i.e., rankA=Q.

  • A4: The emitted signals are unknown and arbitrarily correlated, including the case that a subset of the sources or all of them are perfectly coherent.

Assumptions A1–A3 are shared by existing methods, such as RAP-MUSIC. Assumption A1 can be addressed using approaches that estimate the model order, including the Akaike information criterion (AIC) [24], and the minimum description length criterion (MDL) [25]. Assumption A4 does not impose any restrictions to the activation time courses.

We can now state the problem of localization of brain signals as follows: Given the received data Y, estimate the Q locations, orientations, and amplitudes of the sources {pq}q=1Q.

B. The Alternating Projection solution

We first solve the problem for the fixed-oriented dipoles and then extend it to freely-oriented dipoles. The least-squares estimation criterion, from (3), is given by

{Pˆ,Sˆ}ls=arg minP,SYASF2. (5)

where F denotes the Frobenius norm. To solve this minimization problem, we first eliminate the unknown signal matrix S by expressing it in terms of P. To this end, we equate the derivative of (5) to zero with respect to S, and solve for S:

Sˆ=(ATA)1ATY. (6)

Defining ΠA=A(ATA)1AT the projection matrix on the column space of A, and using the rotation property of the trace operator and the idempotence property (Π2=Π) of the projection operator, equations (5), and (6) yield:

Pˆ=arg minP(IΠA)YF2=arg maxPΠAYF2=arg maxP tr(ΠACΠA)=arg max Ptr(ΠAC) (7)

where tr( ) denotes the trace operator, subscript F denotes the Frobenius norm, C=YYT is the data covariance matrix, and I denotes the identity matrix.

This is a nonlinear and nonconvex Q-dimensional maximization problem. The AP algorithm [21] solves this problem by transforming it to a sequential and iterative process involving only one-dimensional maximization problems. The transformation is based on the projection-matrix decomposition formula. Let B and D be two matrices with the same number of rows, and let Π[B,D] denote the projection-matrix onto the column space of the augmented matrix [B,D]. Then:

Π[B,D]=ΠB+ΠΠBD, (8)

where ΠB is the projection onto the orthogonal complement of the span of B, given by ΠB=(IΠB).

The AP algorithm exploits this decomposition to transform the multidimensional maximization (7) into a sequential and iterative process involving a maximization over only a single parameter at a time, with all the other parameters held fixed at their pre-estimated values. More specifically, let j denote the current iteration number, and let q denote the current source to be estimated (q is sequenced from 1 to Q in every iteration). The other sources are held fixed at their pre-estimated values: {pˆij}i=1q1, which have been pre-estimated in the current iteration, and {pˆij1}i=q+1Q, which have been pre-estimated in the previous iteration. With this notation, let Aqj denote the M×(Q1) matrix of the topographies corresponding to these values (note that the q-th topography is excluded), given by:

Aqj=[l(pˆ1j),,l(pˆq1j),l(pˆq+1j1),,l(pˆQj1)] (9)

By the projection matrix decomposition (8), we have:

Π[Aqj,l(pq)]=ΠAqj+ΠΠAqjl(pq). (10)

Substituting (10) into (7), and ignoring the contribution of the first term since it is not a function of pq, we get:

pˆqj =arg max pq tr(ΠΠAqjl(pq)C) (11)
=arg maxpq tr(ΠQqjl(pq)C), (12)

where

Qqj=ΠAqj=(IΠAqj), (13)

is a projection matrix that projects out all but the q-th source at the j-th iteration.

Using the properties of the projection and trace operators, the j-th iteration (12) can be written as:

pˆqj=arg maxpqlT(pq)QqjCQqjl(pq)lT(pq)Qqjl(pq), q=1,,Q. (14)

The maximization is carried out by an exhaustive search over the grid of dipole locations.

The initialization of the algorithm is straightforward. First we solve (7) for a single source:

pˆ10=arg maxp1lT(p1)Cl(p1)lT(p1)l(p1). (15)

Then, we add one source at a time and solve for the q-th source:

pˆq0=arg maxpqlT(pq)Qq0CQq0l(pq)lT(pq)Qq0l(pq), q=2,,Q, (16)

where Qq0 is the projection matrix that projects out the previously estimated q1 sources:

Qq0=(IΠA(Pˆq0)), (17)

with Aq0 being the M×(q1) matrix:

Aq0=[l(pˆ10),,l(pˆq10)]. (18)

Once the initial location of the Q-th source has been estimated, subsequent iterations, described by (14), refine the estimate by sweeping consecutively through all sources multiple times. The iterations continue until achieving convergence, which is determined when the location of any of the sources no longer undergoes any changes. The algorithm is bound to converge because a maximization is performed in every iteration, so the value of the maximized function can never decrease. Depending on the initial condition, convergence may be at a local or global maximum [21].

In the case of freely-oriented dipoles, it follows from (2) that the solution (14) becomes:

pˆqj=arg maxpq,qqTLT(pq)QqjCQqjL(pq)qqTLT(pq)QqjL(pq)q, q=1,,Q. (19)

whose solution is given by

qˆj=arg maxpqv1(Fqj,Gqj), (20)
pˆqj=arg max pqλ1(Fqj,Gqj), (21)

where

Fqj=LT(pq)QqjCQqjL(pq), (22)
Gqj =LT(pq)QqjL(pq), (23)

with λ1(Fqj,Gqj) and v1(Fqj,Gqj) denoting the maximum generalized eigenvalue and its corresponding generalized eigen-vector, derived as solutions to the generalized eigenvalue problem of the matrix pencil (Fqj,Gqj):

Fqjv=λGqjv. (24)

C. Performance evaluation with simulations

We evaluated the performance of the AP method for the fixed-oriented dipoles model against RAP-MUSIC [22], RAP-beamformer [1], and Truncated RAP-MUSIC [23]. Comparisons included different source configurations of varying levels of SNR and inter-source correlation (denoted by ρ).

The geometry of the sensor array was based on the whole-head Megin Triux MEG system (306-channel probe unit with 204 planar gradiometer sensors and 102 magnetometer sensors). The geometry of the MEG source space was modeled with the cortical manifold extracted from a real adult human subject’s MR data using Freesurfer [27]. Simulated sources were restricted to approximately 15,000 grid points over the cortex, and reconstructed sources were estimated on a different grid of 50,000 points over the cortex. The simulation and reconstruction grids did not have overlapping points (average distance of 0.7 mm between neighboring points) to avoid the inverse crime of using identical parameters to synthesize and invert data in an inverse problem [28], [29]. The forward matrix for both grids was estimated using the boundary element method as implemented in OpenMEEG [30] in BrainStorm [31]. To evaluate localization performance under realistic head model errors, we introduced translations and rotations to the reconstruction grid before computing the forward matrix.

In our study, we comprehensively assessed the localization accuracy across a wide range of inter-source correlation values, SNR levels, and varying numbers of sources. As the number of active sources increased, the localization problem posed increasing complexity. To ensure robustness, we conducted extensive simulations involving 500 Monte Carlo random samples in each case.

The source time courses were modeled using 50 time points, represented as mixtures of sinusoidal signals. Each source had random frequencies ranging from 10 Hz to 30 Hz. Sources were simulated in random locations throughout the cortex and with equal amplitude. The orientation of each source was normal to the cortex at its respective location, in accordance with the fixed-oriented dipoles model. Source time courses were then modified using the Cholesky decomposition method to assign specific inter-source correlation values. Following the mapping of sources to sensor measurements, we introduced Gaussian white noise to the MEG sensors to emulate instrumentation noise at specific SNR levels. To quantify the SNR, we used the ratio of the Frobenius norm of the signal-magnetic-field spatiotemporal matrix to that of the noise matrix for each trial, as described in [32]. We terminated the iterations of the AP algorithm after convergence, that is, when the location of the sources would not change.

D. Performance evaluation with a real phantom

We assessed the performance of the AP localization method using the phantom data provided in the phantom tutorial1 of the Brainstorm software [31]. The phantom device was provided with the Megin Neuromag system and contained 32 artificial dipoles in locations dispersed in four quadrants. The phantom dipoles were energized using an internal signal generator and an external multiplexer box was used to connect the signal to the individual dipoles. Only one dipole could be activated at a time, therefore we combined data trials from different dipoles to simulate the concurrent activation of multiple sources. All dipoles were activated with the same sinusoidal signal and were thus perfectly coherent.

The phantom data was collected using a Megin Neuromag MEG system (306-channel probe unit with 204 planar gradiometer sensors and 102 magnetometer sensors). For evaluation, we utilized the freely-oriented AP source localization method in volume space. This decision was driven by the fact that the phantom dipoles are distributed within a volume and do not conform to a specific cortical surface. The reconstruction source space comprised the volume of a sphere, centered within the MEG sensor array with 64.5 mm radius, sampled with a regular (isotropic) grid of points with 2.5 mm resolution yielding a total of 56,762 grid points. The forward matrix was estimated using BrainStorm [31] based on a single sphere head model.

E. Performance evaluation with multimodal sensory human MEG data

We collected MEG data in a multimodal sensory experiment presenting somatosensory and auditory stimuli to a single human subject. The subject gave a written informed consent, and the study was approved by the local institutional review board (Committee on the Use of Humans as Experimental Subjects at the Massachusetts Institute of Technology, protocol number 1102004309, date of approval 11/14/2019) and conducted according to the principles of the Declaration of Helsinki.

The somatosensory stimuli were delivered with electrical stimulation to the right median nerve. The auditory stimuli were binaural sounds (beeps) delivered with tubal-insert earphones. The stimuli produce well-known brain responses localized in the left primary somatosensory cortex and bilateral primary auditory cortex, respectively. Fifty trials were recorded for each stimulus type with an interstimulus interval 500 ms for the somatosensory stimuli and 1200 ms for the auditory stimuli. The data was collected with a MEGIN Triux MEG system (306-channel probe unit comprising 102 magnetometers and 204 planar gradiometers). The source space was restricted to approximately 15,000 grid points over the subject-specific cortex extracted with Freesurfer [27]. For the localization process, we assumed the sources to be fixed-oriented and oriented normal to the cortex. The raw data was pre-processed with the Maxfilter software (Elekta, Stockholm) with default parameters, a standard procedure to suppress environmental and instrumentation noise with spatiotemporal filters in MEGIN MEG systems [33]. The data was then whitened using a regularized noise covariance matrix in the BrainStorm software [31]. Regularization added an identity matrix that was scaled to 10% of the noise covariance matrix’s largest eigenvalue. Note, data whitening is standard practice in MEG localization procedures, and necessary when the data comprise different types of sensors that need to be combined, as in our case (magnetometers in units of Tesla, and gradiometers in units of Tesla/meter).

III. Results and Discussion

A. AP method had consistently low localization error in all simulated conditions

We extensively evaluated the localization performance of the AP method against RAP-MUSIC, RAP-beamformer, and Truncated RAP-MUSIC in a range of scenarios, including different number of sources, inter-source correlation values, SNR levels, and various head model errors of translation and rotation (Figures 1, 2). The AP method had the lowest localization error in nearly all tested conditions. This performance advantage was most prominent when localization was under challenging conditions, under low SNR and high inter-source correlation values. This was true for both Q=2 (Figure 1) and Q=3 (Figure 2) sources.

Fig. 1:

Fig. 1:

Localization performance for Q=2 simulated sources. Panels show results for different inter-source correlation and SNR values. Localization was estimated under the following head model error conditions: (1) Ideal conditions with same grid for source simulation and reconstruction and no head model errors. All other conditions used a distinct grid for source simulation and reconstruction, and (2) 1 mm posterior translation of the head; (3) 2 mm posterior translation; (4) 1° right tilt rotation; (5) 2° right tilt rotation; (6) 1 mm right translation; (7) 2 mm right translation; (8) 1° upward rotation; (9) 2° upward rotation; (10) 1 mm upward translation; (11) 2 mm upward translation; (12) 2° right rotation. AP: Alternating Projection; RAP: RAP-MUSIC; RAP-BF: RAP-beamformer; T-RAP: Truncated RAP-MUSIC. In all cases, localization error was defined as the average distance computed when each original source was paired with the closest estimated source.

Fig. 2:

Fig. 2:

Localization performance for Q=3 simulated sources. Panels and head models same as in Figure 1.

As expected, the performance of all methods was best in ideal conditions, under no head model errors and with the same grid for source simulation and reconstruction. Performance decreased substantially when the grids were different (to avoid the inverse crime) and the head models had errors of translation and rotation. However, the AP method was relatively more robust to all tested head model error conditions and fared better than all other methods.

The second best performance was achieved by RAP-MUSIC, which was close to the AP method when the SNR was high (0 dB) and the inter-source correlation value was low (ρ=0.1), but the performance gap was wider otherwise. RAP-Beamformer and TRAP-MUSIC yielded overall higher localization errors, but their relative performance varied considerably for the different SNR and inter-source correlation values. Examples of source time courses estimated with the AP method are shown in Figure 3.

Fig. 3:

Fig. 3:

Examples of true and estimated source time courses using the AP method. Results are for the case of Q=3 simulated sources, SNR = 0 dB, inter-source correlation ρ=0.9, and head model error of 1 mm posterior translation.

Last, we evaluated localization performance for Q=3 highly correlated sources (Figure 4). As expected, for very high inter-source correlation values (ρ0.95) the performance of all methods deteriorated. Yet, while the AP method deteriorated only slightly, the other methods deteriorated significantly, especially for perfectly coherent sources (ρ=1). Similar results were obtained for Q=6 highly correlated sources (Supplementary Figure 1).

Fig. 4:

Fig. 4:

Localization performance for highly correlated and for coherent (ρ=1.0) sources. Top row: Q=2 simulated sources. Bottom row: Q=3 simulated sources. Head models same as in Figure 1.

It is worth noting that for all experiments, the true number of sources was provided to all localization algorithms and we have not estimated Q in any case. This ensured a fair comparison, allowing us to directly assess the localization accuracy of each method without any bias introduced by source number estimation.

B. The sequential iterations of the AP method refined the localization of phantom dipoles

We assessed the performance of the AP method in localizing real experimental data collected using the MEGIN phantom. The data comprised MEG recordings collected during the sequential activation of 32 artifical dipoles. Each dipole was activated 20 times with amplitude 200 nAm and 2000 nAm, yielding a total of 20 trials in each experimental condition. Note, the 200 nAm condition is close to the range of amplitudes we can expect from inter-ictal spikes due to epilepsy, visible in raw data [34]. The 2000 nAm condition was selected to characterize the AP performance and limitations in ideal conditions. The true locations of the dipoles are shown in Figure 5a.

Fig. 5:

Fig. 5:

Localization performance of real phantom dipoles. Only one phantom dipole could be activated at a time, so trials from individual dipoles were combined to simulate the simultaneous activation of pairs of dipoles. (a) Location of the 32 artificial dipoles of the MEGIN phantom. (b) Average localization error for 200 nAm and 2000 nAm amplitude dipoles for the first and last iteration of the AP method. (c) Histograms of the total number of AP iterations across all the 496 possible combinations of pairs of dipoles.

To evaluate the ability of the AP method in localizing pairs of coherent dipoles, we simulated the simultaneous activation of two sources by averaging the evoked responses for each of the 496 possible combinations of pairs of dipoles before source localization. AP localization relied on the freely-oriented solution (Eq. 19). Source localization was applied on whitened data with a noise covariance matrix that was regularized by adding an identity matrix that was scaled to 10% of the largest eigenvalue of the noise covariance matrix.

The average localization error across all combinations of pairs of dipoles for both the 200 nAm and 2000 nAm conditions in shown in Figure 5. To investigate the importance of AP iterations in refining localization, we computed the error separately for the first and last iteration of the AP algorithm. We used violin plots that combine the advantages of box plots with density traces. Each “violin” contains a box-plot (white dot, vertical thick black box and thin black line), where the white dot represents the median of the distribution, the vertical thick black box indicates the inter-quartile range, and the thin black line denotes the extensions to the maximum and minimum values. The median value is also written on the top of the violin for convenience. The mean value is depicted by a horizontal line. The shaded areas surrounding the box plot show the probability density of the data across all pairs of dipoles, with individual data points plotted as colored circles.

Localization error dropped considerably from the first to the last iteration of the AP method (Figure 5a). For the 200 nAm condition, the median localization error dropped from 9.7 mm to 4.1 mm, and for the 2000 nAm condition from 8.2 mm to 2.8 mm. The number of required AP iterations were similar for the 200 nAm and 2000 nAm conditions, with an average of 3.10 and 2.97 iterations respectively, indicating fast convergence of the AP method (Figures 5b and 5c). The quality of dipole localization is exemplified in Figure 6, showing that errors are considerably reduced from first to the last AP iteration for both the 200 nAm and 2000 nAm conditions.

Fig. 6:

Fig. 6:

Example localization of phantom dipole pairs. (a) 200 nAm dipoles, first AP iteration. (b) 200 nAm dipoles, last AP iteration. (c) 2000 nAm dipoles, first AP iteration. (d) 2000 nAm dipoles, last AP iteration.

C. Characterizing the phantom performance of the AP method

We further explored the factors affecting the quality of source localization of the AP method. Localization error was higher for sources with small spatial separation, and progressively decreased as the true dipoles were further apart (Figure 7). This was expected, as nearby sources have similar topographies and are hard to dissociate with each other.

Fig. 7:

Fig. 7:

Localization error versus source separation for the phantom dipoles in the 200 nAm condition.

The iterations of the AP algorithm were terminated upon achieving convergence, which was determined when the location of any of the sources no longer underwent any changes. Notably, the final localization error was found to be independent of the required number of AP iterations, implying that the quality of source localization did not rely on the algorithm’s initialization (Figure 8a). This observation supports the notion that the algorithm’s performance is consistent regardless of the starting conditions.

Fig. 8:

Fig. 8:

Performance of AP method for the 200 nAm phantom dataset. (a) Localization error for different values of the last AP iteration. (b) Reduction of localization error (Δ Localization Error), defined as the difference in localization error between the first and the last AP iteration. (c) Localization error for the first and second detected source. (d) Reduction of localization error for the first and second detected source.

Moreover, our analysis revealed that with an increased number of AP iterations, there was a higher reduction in localization error (Δ Localization Error, defined as the difference in localization error between the first and the last AP iteration), indicating that each successive iteration progressively improved the localization performance (Figure 8b). This finding further underscores the algorithm’s capability to refine the localization estimates through successive iterations, ultimately leading to enhanced accuracy.

The final localization error was smaller for the first than the second detected source (Figure 8c). This is consistent with the initialization of the AP method, which first detects the source that achieves the best LS fit and then progressively detects other sources. Despite this difference in localization error between the two sources, the reduction of localization error over iterations was higher for the second than the first source (Figure 8d).

D. AP method reliably localized human MEG data

To establish ground truth, we first fit single dipoles separately to the somatosensory and auditory data (all tested localization methods are equivalent for the single dipole case). Dipole fits were applied at the time of peak response, at 100 ms for the somatosensory responses and 40 ms for the auditory responses with respect to stimulus onset. The dipoles localized to well-known areas in the left primary somatosensory cortex and bilateral primary auditory cortex. In the auditory case, we fit data separately for the left and right sensors to estimate a dipole in the left and right primary auditory cortex, respectively (Figure 9a). This follows a well-known strategy of localizing a single dipole with a subset of sensors containing the dominant dipolar pattern while neglecting contributions from other sources [35].

Fig. 9:

Fig. 9:

Localization performance for multisensory MEG human data. (a) Ground truth dipoles from a human experiment presenting somatosensory and auditory stimuli. Somatosensory and auditory evoked responses were combined with different numbers of trials to assess localization performance in multisensory data: (b,c) AP method with 50 and 20 trials, respectively; (d,e) RAP-MUSIC with 50 and 20 trials, respectively. Results are shown in left and right lateral views of semi-transparent cortex. (f) Localization error averaged across the three dipoles.

The somatosensory and auditory data were then combined by adding the corresponding sensor measurements at 100 ms and 40 ms, respectively (the time of peak response), to yield multimodal data. For evaluation purposes, we utilized either 50 trials (SNR = 4.31 dB) or 20 trials (SNR = 0.33 dB) for each modality to assess the performance of the AP and RAP-MUSIC methods under varying SNR levels. SNR was calculated as the ratio of the Frobenius norm of the MEG data at peak response to that of baseline time for the averaged trial [34].

The AP method localized the three dipoles in close agreement with the ground truth (Fig. 9b,c,f). In contrast, the RAP-MUSIC method yielded only approximate results and was highly variable with the number of trials (Fig. 9d,e,f). Last, for completeness we present min-norm [3] and sLORETA [36] reconstruction results for the same multimodal data (Supplementary Figure 2). Both approaches yielded blurry and imprecise maps because they assume distributed solutions and as a result are not suitable priors for multiple dipole localization.

Note, the observed worse localization error for the AP method in Figure 9f), despite having more trials and a better SNR, is relatively minor. The decrease in localization performance was only by 0.94 mm, which, when compared to the average distance between two sources in the cortical grid we employed (4.6 mm), represents only a small fraction. The slightly worse localization error could be attributed to different factors, including random Initialization and local instabilities.

IV. Conclusion

We have addressed the problem of multiple dipole localization in MEG/EEG with a novel sequential and iterative solution based on the AP algorithm. Through simulation, real phantom, and human MEG data, we found that the AP method consistently outperformed the localization accuracy of RAP-MUSIC, RAP-beamformer, and Truncated RAP-MUSIC. This performance improvement was observed across a wide range of experiments involving different model errors, SNR, inter-source correlation values, and number of sources, and was particularly pronounced in the challenging scenario of highly correlated (ρ0.95) sources.

The computational cost of the AP method was found to be similar to that of other competing recursive scanning algorithms based on the beamformer and MUSIC frameworks. Specifically, in our phantom experiment, the AP method converged in approximately 3 iterations, a computational cost not much greater than that of the competing recursive approaches.

In terms of limitations, in this work we assumed a priori knowledge of the number of true sources Q. Estimating the number of sources can be done using various techniques, such as the Akaike information criterion (AIC) [24], the minimum description length criterion (MDL) [25], and the Bayesian information criterion (BIC) [37]. But since this is outside the scope of this work, we leave it for future research to explore this problem and its impact on the different localization methods. Further, in all cases, we defined localization error as the average distance computed when each original source was paired with the closest estimated source. However, one can also use alternate measures of localization error. These include sensitivity/specificity or precision/recall available metrics, or measures such as the dipole localization error (DLE) function, which symmetrically computes the distance of original sources paired to the closest estimated source, along with the distance of each estimated source paired to the closest original source [38], [39].

Taken together, our work demonstrated the exceptional performance of the AP method in accurately localizing MEG sources. It also highlighted the importance of iterating through all sources multiple times until convergence, as opposed to recursively scanning for sources and terminating the scan after the last source is found, which is the strategy employed by existing scanning methods.

Supplementary Material

1
2
3

Highlights:

  • A novel solution to the problem of MEG and EEG brain signals localization

  • A low-complexity iterative solution is presented, involving only 1-dimensional optimization

  • Performance simulation in challenging signal-to-noise ratios and head modeling errors demonstrate the superiority of the proposed solution

  • Experimental study with phantom data as well as somatosensory and auditory human data demonstrate the superiority of the proposed solution

Acknowledgements

We are thankful to John Mosher for insightful comments and suggestions that greatly helped us improve this work. This work was supported by the United States-Israel Binational Science Foundation grant 2020805 to A.A. and NIH grant 1R01EY033638-01 to D.P.. The authors have no relevant personal financial or non-financial interests to disclose.

Footnotes

Publisher's Disclaimer: This is a PDF file of an unedited manuscript that has been accepted for publication. As a service to our customers we are providing this early version of the manuscript. The manuscript will undergo copyediting, typesetting, and review of the resulting proof before it is published in its final form. Please note that during the production process errors may be discovered which could affect the content, and all legal disclaimers that apply to the journal pertain.

Credit Author Statement

Amir Adler: Conceptualization, Methodology, Writing, Simulations

Mati Wax: Conceptualization, Methodology, Writing

Dimitrios Pantazis: Conceptualization, Methodology, Writing, Simulations

Declaration of interests

The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.

Contributor Information

Amir Adler, Braude College of Enginnering and with the McGovern Institute for Brain Research at MIT.

Mati Wax, Technion.

Dimitrios Pantazis, McGovern Institute for Brain Research at MIT.

Data Availability

The data and analysis tools used in the current study are available at https://alternatingprojection.github.io/, including implementations in Matlab and MNE-Python.

References

  • [1].Ilmoniemi RJ and Sarvas J, Brain Signals: Physics and Mathematics of MEG and EEG, MIT Press, 2019. [Google Scholar]
  • [2].Mosher JC, Lewis PS, and Leahy RM, “Multiple dipole modeling and localization from spatio-temporal MEG data,” IEEE Transactions on Biomedical Engineering, vol. 39, no. 6, pp. 541–557, June 1992. [DOI] [PubMed] [Google Scholar]
  • [3].Hämäläinen M, Hari R, Ilmoniemi RJ, Knuutila J, and Lounasmaa OV, “Magnetoencephalography—theory, instrumentation, and applications to noninvasive studies of the working human brain,” Reviews of Modern Physics, vol. 65, no. 2, pp. 413–497, Apr. 1993. [Google Scholar]
  • [4].Huang M, Aine CJ, Supek S, Best E, Ranken D, and Flynn ER, “Multistart downhill simplex method for spatio-temporal source localization in magnetoencephalography,” Electroencephalography and Clinical Neurophysiology/Evoked Potentials Section, vol. 108, no. 1, pp. 32–44, Jan. 1998 [DOI] [PubMed] [Google Scholar]
  • [5].Uutela K, Hamalainen M, and Salmelin R, “Global optimization in the localization of neuromagnetic sources,” IEEE Transactions on Biomedical Engineering, vol. 45, no. 6, pp. 716–723, June 1998. [DOI] [PubMed] [Google Scholar]
  • [6].Khosla D, Singh M, and Don M, “Spatio-temporal EEG source localization using simulated annealing,” IEEE Transactions on Biomedical Engineering, vol. 44, no. 11, pp. 1075–1091, Nov. 1997. [DOI] [PubMed] [Google Scholar]
  • [7].Jiang T, Luo A, Li X, and Kruggel F, “A Comparative Study Of Global Optimization Approaches To Meg Source Localization,” International Journal of Computer Mathematics, vol. 80, no. 3, pp. 305–324, Mar. 2003. [Google Scholar]
  • [8].Darvas F, Pantazis D, Kucukaltun-Yildirim E, and Leahy RM, “Mapping human brain function with MEG and EEG: methods and validation,” NeuroImage, vol. 23, pp. S289–S299, Jan. 2004. [DOI] [PubMed] [Google Scholar]
  • [9].van Veen BD, van Drongelen W, Yuchtman M, and Suzuki A, “Localization of brain electrical activity via linearly constrained minimum variance spatial filtering,” IEEE Trans. Biomed. Eng, vol. 44, no. 9, pp. 867–880, Sep 1997. [DOI] [PubMed] [Google Scholar]
  • [10].Vrba J and Robinson SE, “Signal processing in magnetoencephalography,” Methods, vol. 25, pp. 249–271, 2001. [DOI] [PubMed] [Google Scholar]
  • [11].Dalal SS and Sekihara K and Nagarajan SS, “Modified beamformers for coherent source region suppression,” IEEE Transactions on Biomedical Engineering, vol. 53, no. 7, pp. 1357–1363, July 2006. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [12].Brookes MJ, Stevenson CM, Barnes GR, Hillebrand A, Simpson MI, Francis ST, and Morris PG, “Beamformer reconstruction of correlated sources using a modified source,” NeuroImage, vol. 34, no. 4, pp. 1454–1465, 2007. [DOI] [PubMed] [Google Scholar]
  • [13].Hu HB, Pantazis D, Bressler SL and Leahy RM, “Identifying true cortical interactions in MEG using the nulling beamformer,” NeuroImage, vol. 49, no. 4, pp. 3161–3174, 2010. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [14].Diwakar M and X Huang M and Srinivasan R and Harrington DL and Robb A and Angeles A and Muzzatti L and Pakdaman R and Song T, Theilmann RJ and Lee RR, “Dual-core beamformer for obtaining highly correlated neuronal networks in MEG,” NeuroImage, vol. 54, no. 1, pp. 253–263, 2011. [DOI] [PubMed] [Google Scholar]
  • [15].Diwakar M, Tal O, Liu T, Harringtona D, Srinivasan R, Muzzatti L, Song T, Theilmann R, Lee R, and Huang M-X, “Accurate reconstruction of temporal correlation for neuronal sources using the enhanced dual-core MEG beamformer,” NeuroImage, vol. 56, pp. 1918–1928, 2011. [DOI] [PubMed] [Google Scholar]
  • [16].Moiseev A, Gaspar JM, Schneider JA and Herdman AT, “Application of multi-source minimum variance beamformers for reconstruction of correlated neural activity,” NeuroImage, vol. 58, no. 2, pp. 481–496, Sep 2011. [DOI] [PubMed] [Google Scholar]
  • [17].Moiseev A and Herdman AT, “Multi-core beamformers: Derivation, limitations and improvements,” NeuroImage, vol. 71, pp. 135–146, 2013. [DOI] [PubMed] [Google Scholar]
  • [18].Liu H and Schimpf PH, “Efficient localization of synchronous eeg source activities using a modified rap-music algorithm,” IEEE Transactions on Biomedical Engineering, vol. 53, no. 4, pp. 652–661, April 2006. [DOI] [PubMed] [Google Scholar]
  • [19].Ewald A, Avarvand FS and Nolte G, “Wedge MUSIC: A novel approach to examine experimental differences of brain source connectivity patterns from EEG/MEG data,” NeuroImage, vol. 101, pp. 610–624, 2014. [DOI] [PubMed] [Google Scholar]
  • [20].Baillet S, Mosher JC, and Leahy RM, “Electromagnetic brain mapping,” IEEE Signal Processing Magazine, vol. 18, no. 6, pp. 14–30, Nov 2001. [Google Scholar]
  • [21].Ziskind I and Wax M, “Maximum likelihood localization of multiple sources by alternating projection,” IEEE Transactions on Acoustics, Speech, and Signal Processing, vol. 36, no. 10, pp. 1553–1560, Oct 1988. [Google Scholar]
  • [22].Mosher JC and Leahy RM, “Source localization using recursively applied and projected (RAP) MUSIC,” IEEE Transactions on Signal Processing, vol. 47, no. 2, pp. 332–340, Feb 1999. [DOI] [PubMed] [Google Scholar]
  • [23].Mäkelä Niko, Stenroos Matti, Sarvas Jukka, and Ilmoniemi Risto J., “Truncated RAP-MUSIC (TRAP-MUSIC) for MEG and EEG source localization,” NeuroImage, vol. 167, pp. 73–83, Feb. 2018. [DOI] [PubMed] [Google Scholar]
  • [24].Akaike Hirotugu, “A new look at the statistical model identification,” IEEE transactions on automatic control, vol. 19, no. 6, pp. 716–723, 1974. [Google Scholar]
  • [25].Wax Mati and Kailath Thomas, “Detection of signals by information theoretic criteria,” IEEE Transactions on acoustics, speech, and signal processing, vol. 33, no. 2, pp. 387–392, 1985. [Google Scholar]
  • [26].Adler A, Wax M, and Pantazis D, “Brain source localization by alternating projection,” in 2022 IEEE 19th International Symposium on Biomedical Imaging (ISBI), 2022, pp. 1–5. [Google Scholar]
  • [27].Fischl B, Salat DH, van der Kouwe AJW, Makris N, Ségonne F, Quinn BT, and Dale AM, “Sequence-independent segmentation of magnetic resonance images,” NeuroImage, vol. 23, pp. S69–S84, Jan. 2004. [DOI] [PubMed] [Google Scholar]
  • [28].L Colton D and Kress R, Inverse acoustic and electromagnetic scattering theory, vol. 93, Springer, 1998. [Google Scholar]
  • [29].Wirgin A, “The inverse crime,” 2004.
  • [30].Gramfort A, Papadopoulo T, Olivi E, and Clerc M, “Openmeeg: opensource software for quasistatic bioelectromagnetics,” Biomedical engineering online, vol. 9, no. 1, pp. 1–20, 2010. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [31].Tadel F, Baillet S, Mosher JC, Pantazis D, and Leahy RM, “Brainstorm: a user-friendly application for MEG/EEG analysis,” Computational intelligence and neuroscience, 2011. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [32].Sekihara K, Nagarajan SS, Poeppel D, Marantz A, and Miyashita Y, “Reconstructing spatio-temporal activities of neural sources using an MEG vector beamformer technique,” IEEE Transactions on Biomedical Engineering, vol. 48, no. 7, pp. 760–771, 2001. [DOI] [PubMed] [Google Scholar]
  • [33].Taulu S and Simola J, “Spatiotemporal signal space separation method for rejecting nearby interference in MEG measurements,” Physics in Medicine and Biology, vol. 51, no. 7, pp. 1759–1768, mar 2006. [DOI] [PubMed] [Google Scholar]
  • [34].Makoto O, Hiroshi O, Shigeki K, Nobuhito M, Hiroshi M, Masaomi K, and Ryuichi T, “Epileptic spikes: magnetoencephalography versus simultaneous electrocorticography,” Epilepsia, vol. 43, no. 11, pp. 1390–1395, 2002. [DOI] [PubMed] [Google Scholar]
  • [35].Pang Elizabeth W, Gaetz William, Otsubo Hiroshi, Chuang Sylvester, and Cheyne Douglas, “Localization of auditory n1 in children using meg: source modeling issues,” International Journal of Psychophysiology, vol. 51, no. 1, pp. 27–35, 2003. [DOI] [PubMed] [Google Scholar]
  • [36].Pascual-Marqui RD, “Standardized low resolution brain electromagnetic tomography (sLORETA): technical details,” Methods and Findings in Experimental and Clinical Pharmacology, vol. 24, Suppl D, pp. 5–12, 2002. [PubMed] [Google Scholar]
  • [37].Schwarz Gideon, “Estimating the dimension of a model,” The annals of statistics, pp. 461–464, 1978. [Google Scholar]
  • [38].Becker Hanna, Albera Laurent, Comon Pierre, Nunes J-C, Gribonval Rémi, Fleureau Julien, Guillotel Philippe, and Merlet Isabelle, “Sissy: An efficient and automatic algorithm for the analysis of eeg sources based on structured sparsity,” NeuroImage, vol. 157, pp. 157–172, 2017. [DOI] [PubMed] [Google Scholar]
  • [39].Yao Jun and Dewald Julius PA, “Evaluation of different cortical source localization methods using simulated and experimental eeg data,” Neuroimage, vol. 25, no. 2, pp. 369–382, 2005. [DOI] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

1
2
3

Data Availability Statement

The data and analysis tools used in the current study are available at https://alternatingprojection.github.io/, including implementations in Matlab and MNE-Python.

RESOURCES