# sLORETA

**URL:** <https://mne.discourse.group/t/sloreta/354>\
**Category:** Mailing List Archive (read-only)\
**Tags:** list-archive\
**Created:** [September 1, 2011, 8:07am UTC](https://mne.discourse.group/t/sloreta/354 "2011-09-01T08:07:25Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [September 1, 2011, 8:07am UTC](https://mne.discourse.group/t/sloreta/354/1 "2011-09-01T08:07:25Z")

</div>

Dear Matti,

I would like to compare amplitudes of activation in response to auditory stimuli in the right and left temporal labels. I used sLORETA and noticed significant differences in the timecourses during pre-stimulus baseline. As the sLORETA uses noise normalization, I guess that this effect is due to different level of noise in the two labels. Would it be correct to scale the sLORETA timecourses by e.g. dividing them by the mean pre-stimulus value before statistical comparison of the left and right labels?

I have also a related question. The MNE software uses the same inverse operator for MNE and sLORETA. Is it at all identical to the sLORETA by Pascual-Marqui (Standardized low-resolution brain electromagnetic tomography (sLORETA): Technical details. METHODS AND FINDINGS IN EXPERIMENTAL AND CLINICAL PHARMACOLOGY, 2002, 24: 5-12) ?

With regards,  
Elena

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [September 1, 2011, 1:02pm UTC](https://mne.discourse.group/t/sloreta/354/2 "2011-09-01T13:02:46Z")

</div>

Hi Elena,  
&nbsp;&nbsp;&nbsp;Just my 2 cents (below) before Matti gives his expert opinion..

> Dear Matti,
> 
> I would like to compare amplitudes of activation in response to auditory  
> stimuli in the right and left temporal labels. I used sLORETA and noticed  
> significant differences in the timecourses during pre-stimulus baseline.  
> As the sLORETA uses noise normalization, I guess that this effect is due  
> to different level of noise in the two labels. Would it be correct to  
> scale the sLORETA timecourses by e.g. dividing them by the mean  
> pre-stimulus value before statistical comparison of the left and right  
> labels?

Dividing by the mean is slightly less principled since mean is not a  
'scale' parameter but rather a 'location' parameter. The scaling used in  
EEGLAB (especially for time-frequency maps) in this situation is a z-score  
derived as follows:

If x(t) is the original timecourse in a label:

z(t) = (x(t) - mean(x(baseline)))/std(x(baseline)) ;

This would give use the same time series whether you use MNE or dSPM or  
sLORETA since they are just scaled versions of each other with the scale  
factor being constant in time.

> I have also a related question. The MNE software uses the same inverse  
> operator for MNE and sLORETA. Is it at all identical to the sLORETA by  
> Pascual-Marqui (Standardized low-resolution brain electromagnetic  
> tomography (sLORETA): Technical details. METHODS AND FINDINGS IN  
> EXPERIMENTAL AND CLINICAL PHARMACOLOGY, 2002, 24: 5-12) ?

It is identical to Pascual-Marqui's solution. 'sLORETA' is a misnomer in  
the sense that it is not a noise-normalized version of LORETA but rather a  
normalization of MNE using a slightly different denominator (related to  
the resolution matrix).

Rey Ramirez's article on scholarpedia is a nice condensation of many of  
the source localization methods in use:  
[http://www.scholarpedia.org/article/Source\_localization](http://www.scholarpedia.org/article/Source_localization)

Regards,  
Hari

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [September 1, 2011, 3:32pm UTC](https://mne.discourse.group/t/sloreta/354/3 "2011-09-01T15:32:32Z")

</div>

Dear Hari,

The scaling you suggest will make the data look ?nice?, with the same mean and SD in the baseline. However, if will not resolve the problem.

According to MNE manual sLORETA scales signal to noise in some way. It seems that it proportionally decreases amplitude of the signall-of-interest if it contains more noise. Is there a way to correct for this down-scaling of the signal-of-interest by the sLORETA or would it be more correct to use MNE?

Thanks,  
Elena

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [September 1, 2011, 3:44pm UTC](https://mne.discourse.group/t/sloreta/354/4 "2011-09-01T15:44:21Z")

</div>

Dear Elena,

> The scaling you suggest will make the data look ?nice?, with the same mean and SD in the baseline. However, if will not resolve the problem.

using a z-score makes the data 'nice' but also the estimates comparable.

It's not clear, at least to me, what the problem is when you do this  
on your data.

Alex

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [September 1, 2011, 3:54pm UTC](https://mne.discourse.group/t/sloreta/354/5 "2011-09-01T15:54:22Z")

</div>

Hi Elena,

> Dear Hari,
> 
> The scaling you suggest will make the data look ?nice?, with the same mean  
> and SD in the baseline. However, if will not resolve the problem.

If the baseline has enough (handwaving) time points, then the scaling  
would produce timecourses where each point is distributed as N(0,1) (in  
the null) for both left and right labels and hence OK for statistical  
comparison purposes. Also since you are dividing out the sLORETA scaling  
(which is the same for all time points), it is identical to the z-scores  
you get from MNE.

> According to MNE manual sLORETA scales signal to noise in some way. It  
> seems that it proportionally decreases amplitude of the  
> signall-of-interest if it contains more noise. Is there a way to correct  
> for this down-scaling of the signal-of-interest by the sLORETA or would it  
> be more correct to use MNE?

Yes.. the sLORETA solution scales the MNE by a factor that depends on SNR  
at each vertex. Thus it supresses noisy vertices a little. The MNE is the  
unscaled version which is in current units (say nano Amps) and hence you  
can compare the left and right directly in a physiological sense. However  
the localization will be biased towards superficial sources and noisy  
sources. So one other thing you could do is use dSPM or sLORETA to do the  
localization/selecting labels etc.. and then use the MNE time series from  
those vertices for comparison.

Regards,  
Hari

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [September 1, 2011, 3:58pm UTC](https://mne.discourse.group/t/sloreta/354/6 "2011-09-01T15:58:12Z")

</div>

> Yes.. the sLORETA solution scales the MNE by a factor that depends on SNR  
> at each vertex. Thus it supresses noisy vertices a little. The MNE is the  
> unscaled version which is in current units (say nano Amps) and hence you  
> can compare the left and right directly in a physiological sense.

that can be problematic as MNE amplitudes are biased by the number of  
dipoles with the same forward field. Comparing MNE in one location between  
conditions is ok but comparing raw MNE between 2 brain regions is a problem.

I would really do a z-score if it's any better than raw dSPM or sLORETA.

Alex

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [September 1, 2011, 4:34pm UTC](https://mne.discourse.group/t/sloreta/354/7 "2011-09-01T16:34:45Z")

</div>

Dear all,

As has been pointed out, both the Pascual-Marqui estimate (sLORETA) and  
Dale's estimate (dSPM) normalize the MNE source estimate by the noise  
estimate at each source point.

Slightly related issue. I have recently been trying to implement the  
sLORETA noisenorm in Matlab. Sharing some lines of code to illustrate the  
difference between dSPM and sLORETA estimates (I may be wrong):

%----------------------------------  
%The common steps work as follows:  
%----------------------------------  
inv\_op = mne\_prepare\_inverse\_operator(inv\_op, 1, 1/snr, 1);  
inv\_op.operator =  
diag(sparse(sqrt(inv\_op.source\_cov.data)))\*inv\_op.eigen\_leads.data\*diag(sparse(inv\_op.reginv))\*inv\_op.eigen\_fields.data\*inv\_op.whitener\*inv\_op.proj;

% Extract the source covariance  
R = diag(sparse(inv\_op.source\_cov.data));  
% Whiten the forward solution  
G = inv\_op.whitener\*fwd\_op.sol.data;  
% Whiten the noise covariance  
% C is not necessarily an identity because of the projections and SSS  
% (some entries are zero)  
C = inv\_op.whitener\*inv\_op.noise\_cov.data\*inv\_op.whitener';

% Compute the inverse operator  
inv\_op.operator = R\*G'\*pinv(G\*R\*G' + 1/snr\*C)\*inv\_op.whitener;  
% Apply the inverse retaining only surface normal components  
source = inv\_op.operator(:,3:3:end)' \* signal;

%---------------------  
%dSPM works as follows:  
%---------------------  
% Apply the Dale noisenorm which has been precomputed in your inverse  
operator structure inv\_op  
dSPMsource = inv\_op.noisenorm \* source;

%------------------------  
%sLORETA works as follows:  
%------------------------  
% Compute the sloreta operator  
for k=1:2\*Ng  
&nbsp;&nbsp;inv\_op.sloretanoisenorm{k}.data =  
pinv(inv\_op.operator2(3\*k-2:3\*k,:)\*G(:,3\*k-2:3\*k));  
end

% Apply the sLORETA noisenorm  
for k=1:2\*Ng  
&nbsp;&nbsp;sLORETAsource(k,🙂 =  
source(3\*k-2:3\*k,:)'\*inv\_op.sloretanoisenorm{k}.data\*source(3\*k-2:3\*k,:);

Kind regards,  
Pavan

> > Yes.. the sLORETA solution scales the MNE by a factor that depends on  
> > SNR  
> > at each vertex. Thus it supresses noisy vertices a little. The MNE is  
> > the  
> > unscaled version which is in current units (say nano Amps) and hence you  
> > can compare the left and right directly in a physiological sense.
> 
> that can be problematic as MNE amplitudes are biased by the number of  
> dipoles with the same forward field. Comparing MNE in one location between  
> conditions is ok but comparing raw MNE between 2 brain regions is a  
> problem.
> 
> I would really do a z-score if it's any better than raw dSPM or sLORETA.
> 
> Alex  
> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> Mne\_analysis mailing list  
> Mne\_analysis at nmr.mgh.harvard.edu  
> [Mne\_analysis Info Page](https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis)
> 
> The information in this e-mail is intended only for the person to whom it  
> is  
> addressed. If you believe this e-mail was sent to you in error and the  
> e-mail  
> contains patient information, please contact the Partners Compliance  
> HelpLine at  
> [MyComplianceReport.com: Compliance and Ethics Reporting](http://www.partners.org/complianceline) . If the e-mail was sent to you in  
> error  
> but does not contain patient information, please contact the sender and  
> properly  
> dispose of the e-mail.

Pavan Ramkumar  
Brain Research Unit  
MEG Core  
Low Temperature Laboratory  
Aalto University School of Science  
Espoo, Finland

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [September 1, 2011, 4:56pm UTC](https://mne.discourse.group/t/sloreta/354/8 "2011-09-01T16:56:35Z")

</div>

FYI we did the sLORETA matlab code with Matti last week.

it's there

[https://github.com/mne-tools/mne-matlab](https://github.com/mne-tools/mne-matlab)

and the related commit:

[https://github.com/mne-tools/mne-matlab/commit/a7328324e5f56bbf4caa7582db4aa2fe4c5697e9](https://github.com/mne-tools/mne-matlab/commit/a7328324e5f56bbf4caa7582db4aa2fe4c5697e9)

Alex
