Repository navigation
WIP: AMICA integration - #1796
jona-sassenhagen wants to merge 2 commits into
Conversation
|
@jona-sassenhagen we should maybe hangout via google or skype to diskuss where to go with this. I'd love to have this functionality, but binaries are a problem. |
|
@jona-sassenhagen in your experiment do you use a mixture of ICA models? as you show only 31 components it suggests you use a single model. Am I right? |
|
Correct. I have never actually used the mixtures, not even in MATLAB. IIRC for each data point, the appropriate mixture is chosen via MLE. |
|
|
I'll next week! |
|
@jona-sassenhagen are you planning to work on this again sometime? I'm just checking on old PRs. BTW I don't see any license information for the code you translated, so you'll need to see if you can find it and if you can't you'll need to contact the author to get permission to license as BSD. Code without an explicit license has an implicit restrictive license. |
|
amica is a binary file. No chance this enters the MNE code base. It would
need to be reimplemented. It may happen soon though :)
please close.
|
|
Is there a chance that this could be moved to the |
|
In principle yes, but I can't hack it together right now actually, and don't have time to. |
|
@jona-sassenhagen I am resurrecting this PR. do you have any idea of how you would quantify the performance gain of AMICA wrt to Infomax? cc @pierreablin |
|
EEGlab guys had a paper where they compared mutual information (between components) and dipolarity of the topomaps (residual variance of explaining the topography by a single dipole fit [or a symmetric pair of dipoles in some cases]). The paper is here. |
|
Yeah, in their own papers, Makeig et al use "mutual information reduction" for the components. It seems to me to be a rather indirect measure. I would be interested in something that shows stability against very badly behaved data, like a lot of artefacts. IME AMICA deals decently with that. So you could
Another one would be the quality of the recovered components, e.g. how many dipolar ones you get. (A fast proxy for dipolarity is actually the R^2 of explaining each map with a linear regression on the x and y coordinates of the channels) |
|
thanks guys for the feedback general comments:
let me know if you find this ref about PICI thanks again |
|
I found the PICI :) - no paprer, but here is some code on github: I also remember that eeglab people published something they called RELICA for finding reliable components - RELICA seems to be time-consuming but straightforward: it consists in performing ICA multiple times on random parts of the data and clustering components by similarity. (paper) |
WIP!
Wrapper for AMICA by Jason Palmer. The loadmodout_convert function is a line-by-line translation of the original MATLAB function.
Works like this:
method="amica"mne_amicawrites a parameter file viawrite_paramfile, a binary file containing the raw data and runs the binaryloadmodout_convertand reads weights and sphering matrixGist example here.