Project group from Neuromatch 2022 session
Roses are red, BCIs are cool, data is frail, and our model too.
Brain-computer interface (BCI) is an emerging technology that can help patients with various disabilities, such as psychiatric disorders, paralysis, or motor coordination impairment. It is based on the principle that we can decode behaviour from brain activity, which can be measured by many different methods. One of them is electrocorticogram (ECoG) - an invasive method, but with high spatial and temporal precision. Here, we are testing whether patients’ actions could be predicted from the ECoG recordings. For this purpose, we use a dataset obtained from patients performing an n-back task, which is a standard paradigm for investigating increasing load on working memory. Working memory overload arises when working memory cannot retain relevant information. In an ECoG study, two patients undertook an n-back task, where they were presented with a sequence of images and asked to press the button when they recognised a previously presented image, in a set of experiments with increasing difficulty. We used different classifier algorithms on this dataset in order to identify the best model for decoding responses and predict whether the patients are still able to retain relevant information in memory and press the button when needed. We applied principal component analysis (PCA) to identify brain regions explaining the most variance in our data and to reduce the dimensionality of the channels. A logistic model on the raw data did not predict responses well (Recall: 0.001, bounded between 0 and 1), but fitting the model on the dataset with reduced dimensions after PCA increased our prediction score (Recall: 0.111). A Random Forest classifier improved it even further (Recall: 0.388). We plan to implement more models with enhanced data processing to further ameliorate our predictions and interpret distinguishable properties of the signals.
3 subjects 5 experiments
- Fixation 1
- exp 1
- exp 2
- exp 3
- Fixation 2
Variables for each block within each subject:
dat['V']
: continuous voltage data (time by channels)dat['expinfo']
: experiment type for this blockdat['srate']
: sampling rate for voltage data, always 1000Hzdat['t_on']
: time of stimulus onset in data samplesdat['t_off']
: time of stimulus offset, usually 600 samples aftert_on
dat['stim_id
]: identity of house stimulus from 1 to 40. Stimulus 10 was the target in the 0-back task.dat['target']
: 0 or 1, indicates if this stimulus requires a responsedat['response']
: 0 or 1, indicates if the subject actually made a responsedat['rt']
: reaction time for trials with a response in voltage data samples (1000Hz).dat['locs']
: 3D locations of the electrodes on the cortical surface
- EEG
- Estimating workload using EEG spectral power and ERPs in the n-back task (given in the notebook)
- Electroencephalography Based Analysis of Working Memory Load and Affective Valence in an N-back Task with Emotional Stimuli (given in the notebook)
- Machine learning for neural decoding.
- Within- and across-trial dynamics of human EEG reveal cooperative interplay between reinforcement learning and working memory
- ECoG
- Model Comparison
- Decoding Toolbox (MNE Package) (An example, maybe not to use in the project?)