A Muse 2 device was used to record EEG data while participants encoded information during the forward Digit Span (DS) task. We planned to make a user interface (UI) for the DS task, adapted from an existing psychometric test published on Psytoolkit.org (https://www.psytoolkit.org/experiment-library/digitspan.html).

The Muse 2 device provided a channel-based EEG raw data stream with a sampling rate of 256 Hz. This stream was captured using the ‘muse-lsl’ python module, which stored it within a list via CSV. Data was then extracted using javascript, which fetched data to a JSON object held within a server. The “py.app” python module was then used to send requests for data from python.

Using the ‘pandas’ module, data was read into python as a two-dimensional array. Data was then normalized using the “pandas” python module. Signal processing was then completed for the 4 channels. A Fast Fourier Transformation (FFT) was applied using the ‘numpy’ module. A bandpass filter was then applied using the ‘matplotlib’ module to limit the data range from 8-35 Hz (alpha and beta frequencies).

Built With

Share this project:

Updates