I wanted to share some code to generate spectrograms of muse EEG data, and also ask for suggestions on best practices. Here’s a simple script that generates spectrograms of the 4 EEG channels from an ASCII OSC output file (generated by muse-player -O):
Here are some spectrograms that it generates:
(zoom/maximize the image for effective viewing)
This was a session where I had my eyes open for 10 seconds, closed for the next 30 seconds, open for 10 seconds, closed again for about 25 seconds, and open for the rest of the session. I can clearly see increased alpha at TP9 and TP10 when my eyes are closed. The spectrograms use 256-length segments for the FFT. Does anyone have any recommendations on tuning this or other specgram() parameters to improve the visual appearance of the spectrograms?