mne-python icon indicating copy to clipboard operation
mne-python copied to clipboard

baseline correct source estimates

Open teonbrooks opened this issue 12 years ago • 14 comments

I was looking at the SourceEstimate and I noticed that it has a method mean. I was wondering if it would be useful to extend this to allow the option to baseline correct source estimates. Currently, it can only give the mean of the whole time series.

teonbrooks avatar Dec 06 '13 20:12 teonbrooks

Teon, normally baseline correction is done before. Also what does it mean to correct baseline for dSPM values which are actually F-statistics

dengemann avatar Dec 06 '13 23:12 dengemann

I was thinking that of it as the activation levels when you are dealing with free orientation. From my understanding (which could totally be wrong), if you don't baseline correct the sensor space, the pretrigger baseline would reflect the baseline activation. You could remove this from source estimate. If you were to baseline correct in sensor space, any change from baseline would lead to an increase in the source estimate, which would steadily increase over the time series so plots might exhibit a drift from baseline.

teonbrooks avatar Dec 06 '13 23:12 teonbrooks

We usually observe an obligatory increase in activity relative to baseline, especially immediately after the baseline period. Notice how there is a jump upward @ t=0:

http://www.sciencedirect.com/science/article/pii/S105381191300997X#f0015

In our case, this has to do with how the activations are computed (i.e., taking points that were originally normally distributed and giving them a folded normal distribution through the absolute value calculation), as you suggest. Although this is not great, I am not terribly troubled by this since I consider it an understandable artifact of the calculations, and so far we've always done paired comparisons so the drifts are automatically compensated for at the statistical level.

I'd have to think a bit about why baselining in source space would be okay versus sensor space. In the case of dSPM / sLORETA values, it probably doesn't make sense because it will destroy the pseudo-F qualities, which is not good. Unfortunately we don't have a way of determining if a SourceEstimate displays MNE or dSPM data, so we can't triage based on that. And for epoching data, without baselining you're more likely to lose data due to drifts. I also know people (@agramfort maybe?) have mentioned that source-space baselining is not a good idea, maybe for other reasons, so you'd need to talk to them to figure out why. At the moment, I'd be a bit uncomfortable adding the feature until we ironed out these issues.

larsoner avatar Dec 07 '13 17:12 larsoner

@Eric89GXL you could not have summarized my thoughts better.

let's put this on our todo list for the next/first MNE coding sprint?

agramfort avatar Dec 07 '13 18:12 agramfort

thanks @Eric89GXL, that's really helpful.

teonbrooks avatar Dec 08 '13 03:12 teonbrooks

Not sure if I'm thinking of this too naively: With fixed orientation solutions or when done on a component by component basis for free orientation solutions before any non-linear operations like taking absolute values or combining across 3 components, I don't see any issue with applying baseline correction in source or sensor space (regardless of MNE or dSPM or sLORETA).. i.e. shouldn't they be equivalent (for a given inverse operator)? What am I missing?

haribharadwaj avatar Dec 18 '13 04:12 haribharadwaj

indeed baselining in sensor and source space is equivalent if there is no non-linear step (abs, **2) as done when collapsing orientations in free or loose setups. If you use pick normal you're fine. Then the question is should you want to baseline correct after collapsing orientations? is there any setup where it would be good reason?

agramfort avatar Dec 19 '13 13:12 agramfort

Baseline correction is source space is fine in the sense that the interpretation is simply that you are contrasting your source estimate with some baseline condition. What is does to the statistical properties of her he result and how it influences localization inference is a separate question and depends on the processing upto that point. The user is probably the only person who can keep track of the processing history.

Personally, I haven't had many situations where I needed to do baseline correction in source space.

haribharadwaj avatar Dec 20 '13 02:12 haribharadwaj

Personally, I haven't had many situations where I needed to do baseline correction in source space.

ok so you confirm that you would not support the addition of a baseline method for stcs

agramfort avatar Dec 20 '13 12:12 agramfort

I'm neutral to it :)

haribharadwaj avatar Dec 20 '13 14:12 haribharadwaj

I'm -0.75. We should better understand the ramping up and come up with a designated function that can be used to deal with such cases. Having a method on an stc suggest that you should use it. I think this is the kind of stuff you really should understand before using.

dengemann avatar Dec 20 '13 14:12 dengemann

here is a gist to illustrate the problem:

https://gist.github.com/agramfort/8070167

you realize that the time courses ramp up and don't got back to zero at the end of the epochs

agramfort avatar Dec 21 '13 14:12 agramfort

Doesn't this have to do with averaging across trials after combining the components rather than something to do with baseline correction?

haribharadwaj avatar Dec 30 '13 21:12 haribharadwaj

yes it's due to combining components and then averaging.

if you don't combine then there is no baseline problem. right?

agramfort avatar Jan 09 '14 21:01 agramfort