-
Notifications
You must be signed in to change notification settings - Fork 2
Home
This program creates a pipeline for EEG data, collected from a player’s head, to be converted into usable input in a simple, tower-defence style game. At the start of the pipeline, a Muse headset is used to collect EEG data from the user. Subsequently, the data is transmitted to a paired computer via bluetooth (requiring a bluegiga bled112 bluetooth dongle) for processing. Immediately upon receiving the information, data from the two frontal electrodes are extracted and put through an 8-12 Hz bandpass filter, as that is the common range for alpha frequency. The filtered data is then put into a 3 second window; every second that window is polled, averaging the magnitudes of the frequencies in the range over the 3 second window (one second before the current sample, and one second after). This polling is done inside of the game, comparing the average received with a baseline average that gets calculated during the first 13 seconds of the program running. The baseline comparison is used as a threshold for attentiveness, as well as an attempt to filter out noise and artifacts, and is used to control whether or not the player is shooting at enemies.