Dear Kristina,<div><br></div><div>If you are counting those two channels as two and included in the data, one of them should be removed. This will automatically solve the problem. Generally, don't feed ICA with duplicated data.</div>
<div><br></div><div>Makoto</div><div><br><div class="gmail_quote">2012/12/20 Kristina Borgström <span dir="ltr"><<a href="mailto:kristina.borgstrom@psychology.lu.se" target="_blank">kristina.borgstrom@psychology.lu.se</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">
Dear Makoto,
<div><br>
</div>
<div>Thanks for explaining. I didn't average reference though, I rereferenced to the average of the mastoids. But maybe that also results in one minus rank?</div>
<div><br>
</div>
<div>regards,</div>
<div>Kristina</div><div><div class="h5">
<div><br>
</div>
<div><br>
<div>
<div>On Dec 20, 2012, at 11:23 PM, Makoto Miyakoshi wrote:</div>
<br>
<blockquote type="cite">Dear Kristina,
<div><br>
</div>
<div>I think rank is not the issue in your case, but just for your informaiton, usually rank = number of channels, and after average referencing, it is number of channels-1. From my experience, ICA does not easily crash even if you feed them weird ranked data,
but it returns some subspace (most likely alpha). By the way matlab function rank does not work properly after filtering.</div>
<div><br>
</div>
<div>Makoto<br>
<br>
<div class="gmail_quote">2012/12/20 Kristina Borgström <span dir="ltr"><<a href="mailto:kristina.borgstrom@psychology.lu.se" target="_blank">kristina.borgstrom@psychology.lu.se</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Mark,<br>
<br>
Thank you so much for replying. I think your explanation sounds reasonable. I'm running ICA through the GUI, but I'm not getting a suggestion to run PCA before. But I do get the error message you mentioned: "fixing rank computation inconsistency (124 vs 123)
most likely because running under Linux 64-bit MatlabAttempting to convert data matrix to double precision for more accurate ICA results." (My data actually only has 124 channels because we removed the eye electrodes on our sensor nets). Also, the ICA does
calculate 124 components. I'm very new to EEGlab and ICA so I don't fully understand everything about rank number, but if I understand you correctly it's because I re-referenced to average-mastoid (from vertex reference) which makes two channels dependent
on each other, that the data is no longer "full rank"? Would it be better to leave the data vertex-referenced for the ICA?<br>
<br>
If not, how do I determine the correct rank for the data? Also, I can't find how to run PCA, can it be done in the GUI? I'm sorry, I understand these questions are very basic, and I tried a google search but it wasn't very clear. If you're able to provide
a quick and easy answer I would be very grateful, otherwise I will still take your advice and try to figure out those extra steps!<br>
<br>
Thanks again!<br>
<div><br>
Kristina Borgström<br>
PhD Student<br>
Department of Psychology<br>
Lund University<br>
Sweden<br>
<a href="tel:%2B46-46-2223638" value="+46462223638" target="_blank">+46-46-2223638</a><br>
<br>
<br>
</div>
-----Ursprungligt meddelande-----<br>
Från: Matt Craddock [mailto:<a href="mailto:matt.craddock@uni-leipzig.de" target="_blank">matt.craddock@uni-leipzig.de</a>]<br>
Skickat: den 20 december 2012 13:46<br>
Till: Kristina Borgström<br>
Kopia: <a href="mailto:eeglablist@sccn.ucsd.edu" target="_blank">eeglablist@sccn.ucsd.edu</a><br>
Ämne: Re: [Eeglablist] ICA "adds" noise?<br>
<div>
<div><br>
Hi Kristina,<br>
<br>
I've recently hit on similar behaviour (and in some cases even *worse*) with some of my datasets. For me, this seemed to be because of decomposing the data as if it were full rank (i.e. all the channels are approx linearly independent from each other) when
it wasn't (there are also previous posts along these lines by Maximilien Chaumon - see
<a href="http://sccn.ucsd.edu/pipermail/eeglablist/2011/004326.html" target="_blank">
http://sccn.ucsd.edu/pipermail/eeglablist/2011/004326.html</a>). Looking in your specific case, I'd be quite cautious about removing those "noisy"<br>
components because they look to me like they also contain some genuine brain activity (though note that the two are basically identical, just opposite sign, which makes it look like the same problem as above).<br>
<br>
There are much more expert people than me on this list who can tell you much better why these noisy components happen, but what I can tell you is interpolation and rereferencing reduce the rank of the data, and this can, occasionally, make ICA do things like
you're seeing. I'd suggest running PCA first to reduce the dimensions in the data accordingly. I've seen Arnaud Delorme suggest on another list you should avoid using PCA first, but I'm not sure that advice applies when the data is not full-rank.<br>
<br>
Now, if you run ICA through the menus in EEGLAB, it should detect that your data is not full rank, suggest an appropriate number of components to return, and then run PCA before ICA. However, if you run the ICA as part of a script, it'll probably be set up
in such a way that it skips this step of suggesting an appropriate number of components and asking if it should reduce the data first. You may see a message along the lines of "fixing rank computation inconsistency probably because you're on linux 64 bit matlab";
this appears even if you're on Windows, and always selects the higher number of components returned by two different methods of calculating rank, which, in my experience, means it always decomposes the data as if it were full rank. So I'd suggest, if you're
running ICA as part of your script, calculating the rank of your data and then passing that to the pop_runica function yourself.<br>
<br>
Cheers,<br>
Matt<br>
<br>
On 19/12/2012 10:26, Kristina Borgström wrote:<br>
><br>
>> Hi,<br>
>> I have an issue regarding ICA for artifact correction that I really<br>
>> would appreciate some help with.<br>
>> Here is some background information: I have recorded child data (2<br>
>> years old) with EGI, 128 channels. Before export to EEGLab, the data<br>
>> has been band-pass filtered 1-30 Hz, epoched, clearly bad epochs<br>
>> (with more artifacts than just eye artifacts) were removed, and bad<br>
>> channels in the remaining epochs were interpolated. The data was<br>
>> rereferenced to average mastoid reference. I then imported into<br>
>> EEGlab, which treats the data as continuous, but has all the event<br>
>> information. I have then performed ICA in order to correct for eye artifacts.<br>
>><br>
><br>
> *The problem (please see the image files located at following links):*<br>
>> **<a href="https://dl.dropbox.com/u/7016081/DataPlots.jpg" target="_blank">https://dl.dropbox.com/u/7016081/DataPlots.jpg</a><br>
><br>
> <a href="https://dl.dropbox.com/u/7016081/ICAComponents.jpg" target="_blank">https://dl.dropbox.com/u/7016081/ICAComponents.jpg</a><br>
>><br>
>> In (at least) two data files, besides some clear eye artifact<br>
>> components (components 1 & 11: blink; component 7: horizontal eye<br>
>> movement), the ICA also found two components that look like pure high<br>
>> frequency noise (components 2 & 3).<br>
>> When I remove the eye artifact components (1,7 & 11), the eye<br>
>> artifacts are in fact removed, BUT the data looks generally<br>
>> "noisier", i.e. the channels overall are fuzzier (see the image<br>
>> "DataPlots" for comparisons). When I calculated individual averages<br>
>> with this data, it indeed contained massive amounts of high frequency<br>
>> noise that was not present in the averages where I did not use ICA at<br>
>> all but instead removed all epochs containing eye artifacts.<br>
>> I then continued and tested removing the "noise components" (2 & 3),<br>
>> and the data then looked like it did originally, minus the eye<br>
>> artifacts. It didn't seem to have a major effect on the ERP<br>
>> components either, but of course removed the high frequency noise.<br>
>><br>
>> *My main questions are:*How can noise be "added" to the data, after<br>
>> removal of certain components? How can I determine what type of noise<br>
>> components 2 & 3 consist of? I've looked at the frequency plots, but<br>
>> I don't think it's very clear. Can it be line noise, or EMG? The<br>
>> scalp topographies are very widespread, and EMG is usually more<br>
>> laterally located. Should it be ok to just remove these two<br>
>> components when they appear, or is there a risk that they contain cognitive components?<br>
>> Many thanks for any input you can give me!<br>
>> Regards,<br>
>> Kristina Borgström<br>
>> PhD Student<br>
>> Department of Psychology<br>
>> Lund University<br>
>> Sweden<br>
>> <a href="tel:%2B46-46-2223638" value="+46462223638" target="_blank">+46-46-2223638</a><br>
<br>
--<br>
Dr. Matt Craddock<br>
<br>
Post-doctoral researcher,<br>
Institute of Psychology,<br>
University of Leipzig,<br>
Seeburgstr. 14-20,<br>
04103 Leipzig, Germany<br>
Phone: <a href="tel:%2B49%20341%20973%2095%2044" value="+493419739544" target="_blank">+49 341 973 95 44</a><br>
<br>
_______________________________________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" target="_blank">
http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu" target="_blank">
eeglablist-unsubscribe@sccn.ucsd.edu</a><br>
For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu" target="_blank">
eeglablist-request@sccn.ucsd.edu</a><br>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
Makoto Miyakoshi<br>
JSPS Postdoctral Fellow for Research Abroad<br>
Swartz Center for Computational Neuroscience<br>
Institute for Neural Computation, University of California San Diego<br>
</div>
</blockquote>
</div>
<br>
</div>
</div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Makoto Miyakoshi<br>JSPS Postdoctral Fellow for Research Abroad<br>Swartz Center for Computational Neuroscience<br>Institute for Neural Computation, University of California San Diego<br>
</div>