Skip to content

mr-kamran-ali/the-mirror

Repository files navigation

The Mirror Project

Detection of Implicit Racial Bias using EEG Data

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Installing

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.

Running Locally

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

Built With

  • Python - Python Web Framework
  • Psytoolkit - Psytoolkit for running cognitive-psychological experiments and surveys
  • OpenBCI OpenBCI cyton and daisy boards

Authors

License

  • 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages