Giter Club home page Giter Club logo

online-eeg-hai's Introduction

Online-EEG-HAI

This is the source code for an online Human-Agent Interaction (HAI) system, controlling directions (left or right) of Unity games using online EEG signals from the Emotiv EPOC+ headset

Setup

Hardware equipments required:

  1. A Windows computer/laptop installed with Unity (The reading of EEG raw data from the headset is only supported by the Windows OS)
  2. An Emotiv Epoc+ Headset

Software environment:

The project supports Python3. The recommended version is Python 3.6.11.

Anaconda is recommended for managing the environment.

Installation

  1. Download the project folder.

    The EEG folder contains some libraries needed for this project.

    The gumpy folder is another library we use for the EEG signal pre-processing (modified from gumpy).

    The data folder contains the training IM dataset from BCI Competition IV-2a.

    The three files starting with "CNN_" are the files for the pretrained classification model.

  2. Navigate to the gumpy folder. Execute pip install . to install the gumpy library.

  3. The project also requires the kapre library. Install by executing pip install kapre==0.1.3

  4. Put on the Emotiv Epoc+ headset, make sure it's turned on and connected to the Windows computer/laptop. Make sure the contact quality is good. Open a Unity game on Windows, such as the Karting game.

  5. Execute the EEG_Control_CNN.py python EEG_Control_CNN.py to control the Unity game using real-time EEG signals from the headset. By default, it's using the pretrained classification model.

    If you want to train your own model using the training dataset, you can modify here by changing the "load" parameter to load = False

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.