Hi, i'm trying to import File from Muse into Brainstorm, i found that forum thread
And is quite confusing and long, and i think that adding the support for new file format will be easier and it will simplify the whole process.
Muse stream data to devices over udp (also muse monitor, an unofficial app for mobile that support the 2nd version of muse - 2016) and his own program can output proprietary file (.muse) but also other
EEGLAB has an import plugin that allow to import .csv file recorded with musemonitor (that is shown in the video in the other thread)
Brainstorm look amazing to read those signal but now is really hard to import correctly and witouth error auto-preparated data.
Is possible to have a plugin or something? thanks,
We could add a support for the .csv files easily. I looked at the EEGLAB plugin, and it looks like a very simple file format. Please send me and example .csv file if you are interested in reading such files in Brainstorm.
About the .muse files: I don’t know what they are. If you have Matlab code for reading them, we could also add support for them in Brainstorm.
But EEGlab doesn’t import correctly sensor’s position, it usually “read” TP10 as a_TP10 so it must be corrected manually at every import, i don’t know if is musemonitor’s fault or just EEGlab bug
But there is also a more interesting aspect, that is the marked event during the registration, EEGlab isn’t able to import those…
Here is a short session with some random marks if you want to check
they also write on the last column of .csv if the headset is properly “sensing” or if is not, if there is some way to import those information it would be easier to clean the signal
I did something completely different from the EEGLAB’s plugin. EEGLAB assumes that all samples are recorded linearly in the correct order, which is not true. The sampling is quite irregular and the samples are not even the correct order.
So I added a step of reinterpolation of the signals on a linear time axis. I’m not sure this was the best way of proceeding but I didn’t have any other idea.
Please update Brainstorm and try loading your files, make sure the shape of the signals, timing and event latencies are correct.
@jeremym: do you have any suggestion? If you still have some of your test files, could you try loading them in Brainstorm?
Hi, I have an error when I try to launch the muse.csv file. ''Timestamp not found'', my excel file is separated with '';'' and not '','', could it be the problem? I tried to changed it to '','' but my excel don't seem to have the option.
Alternatively, you can try to fix the file reader yourself.
Edit file brainstorm3/toolbox/io/in_data_muse_csv.m, replace line 51 with: Labels = strtrim(str_split(Labels, ',;'));
to enable splitting the values based on both the , and ; separator.
If this work for you, I could directly push this modification to the Brainstorm distribution.
Have you been opening/editing this file with Excel?
It contains a weird mix of commas (,) and dots (.) to separate the decimal and fractional parts of the values... Matlab cannot read values with commas easily. And no one does, these files should be reconverted.
If this is a file directly generated by the Muse software, this should be reported as a bug.
If someone after acquisition opened this file with Excel or any other program: tell that person to change the settings of the program to use only dots and no commas.
I will fix the Muse reader in Brainstorm to work with a mix of . and , but think about revising your acquisition procedure and/or report this as a bug to Muse customer support.
Hi Francois, just found this older post - sorry for bringing it up again. I have used the Muse (1 and 2) for quite some while now but only now got into brainstorm and would love to use the Muse data with it. You mention the problem with the timeing information and that you tried to interpolate. I guess that the time in the csv is just the storing/processing time but not the time of recording the data point. Sampling time seems to be very precise (220 for muse 2014, 256 for later models). See also here. Thus i would suppose you can just ignore the time stamp and take 220/256 Hz as a given. Thank you, Ben
@bgodde We have no expertise with the Muse EEG systems, and I can't give any recommendation on whether to trust or not the timestamps in the .csv files.
I added an option to the Muse .csv reader, so that you have the choice to resample the signals or not.
Then this is up to you to decide what is the best approach, maybe after contacting the Muse company.
Hi, I'm writing this to all those who where wondering too, whether "Resample" or "Ignore" would be the better option when importing Muse data recorded via the Mind-Monitor-App.
According to the Mind-Monitor Creator it would be "Ignore" and setting the sample rate to 256Hz.
Thanks to the Brainstorm-Team for implementing the "Ignore" option.