Detection of Implicit Racial Bias using EEG Data
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Clone or download the repository to your local machine.
Then run conda create --name the-mirror python=3.8
to create a conda environment called "the-mirror" with the correct python version. The run conda activate the-mirror
. Since the requirements.txt is pip-syntaxed, run pip install -r requirements.txt
after.
Local app only records EEG data using OpenBCI hardware. For the test we used Psytoolkit Online IAT Racism online cognitive-psychological experiment. Psytoolkit can also be used offline by just opening iat_race.html
file in any modern browser.
IMPORTANT: at the end of the experiment closing the running python code is important to save the final data from OpenBCI board. Pressing "q" will quit the program and save the data as well in the same directory. Closing the code in terminal will also save the data into the file
To run local app:
On MAC:
- python main.py --board-id 2 --serial-port /dev/cu.usbserial-DM02587F
On Windows:
- python main.py --board-id 2 --serial-port COM3
NOTE: Please verify the port names in your local PC
- Python - Python Web Framework
- Psytoolkit - Psytoolkit for running cognitive-psychological experiments and surveys
- OpenBCI OpenBCI cyton and daisy boards
- Siddhant Gadamsetti - Developer - MSc Digital Health, Hasso Plattner Institute Potsdam, Germany
- Florian Hermes - Developer - MSc Digital Health, Hasso Plattner Institute Potsdam, Germany
- Kamran Ali - Developer - MSc Digital Health, Hasso Plattner Institute Potsdam, Germany
- No Copyright from us on code contained in main.py
- For Copyrights of libraries and tools used in the app please visit respective library documents, library list is included in requirements.txt
- For psytoolkit.org please visit Their Website