Skip to content

Using EEG data, we train a classifier to determine whether the brain is in a good or bad state for learning

Notifications You must be signed in to change notification settings

zhannar/anki-eeg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

anki-eeg

Using EEG recording, we train a classifier to predict the success of memory encoding of information. See this post for more details on setup and analysis.

Currently, we are using a random selection of words from the English Language. Extensions of this experiment can involve phone numbers, pictures, sound, and other stimuli.

The inspiration for this project was from the abstract: Improving Memory Performance Using a Wearable BCI presented at the 2016 International BCI Society Meeting. Our hopes are to first replicate this study, and then apply the processing and analytic pipeline for easy integration with Anki.

Anki is a flashcard application that is opensource. It was developed in a way to allow for easy creation of 'addons' to extend the base app. The addon we are building will trigger a timestamp event to the EEG datastream for epoching data used for building the classifer.

Word list and word features was randomly generated from the Paivio et al. Word List Generator.

Experimental Procedure Outline

  • Attach OpenBCI to participant's head.
  • Record positions of EEG according to 10-20 system.
  • Have participant sit in chair in front of monitor
  • Run OpenBCI processing sketch to 'test' connections
  • Present list of words. (encode.py)
  • Wait 4-5 minutes before recall test (Listen to Rite of Spring or other way to kill the time)
  • Start Recall Procedure recognize.py

How to Run

Stimulus Presentation + Recording

  • cd paradigm
  • Run python encode.py
  • This will start the csv collection (watch out for hardcoded usb paths inside encode.py)
  • This will start the Pygame presentation of the words while recording data in csv file in data directory

Recall

  • cd paradigm
  • python recognize.py
Corroborating previous studies [1,2,3], averaging over multiple EEG trials of the
encoding phase suggest that the power of the pre-stimulus theta and beta and the power of alpha after the onset of
the words over the parietal/occipital electrodes could be potentially useful as features for identifying poorly
versus well encoded words. Moreover, signal amplitudes from 1.5 to 2s after the onset of the words in the
parietal/occipital electrodes were significantly different between the two conditions 

1 Schneider SL, Rose M. Intention to encode boosts memory-related pre-stimulus EEG beta power. NeuroImage. 125: 978-87, 2016.

2 Hanslmayr S, Staudigl T. How brain oscillations form memories-a processing based perspective on oscillatory subsequent memory effects. Neuroimage. 85:648-55, 2014.

3 Cohen N, Pell L, Edelson MG, Ben-Yakov A, Pine A, Dudai Y. Peri-encoding predictors of memory encoding and consolidation. Neuroscience & Biobehavioral Reviews. 50:128-42, 2015.

About

Using EEG data, we train a classifier to determine whether the brain is in a good or bad state for learning

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published