Skip to content
This repository has been archived by the owner on Jul 27, 2019. It is now read-only.

Borda/BCI-speller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BCI-hack: Mind keyboard

Build Status Codacy Badge

Authors: Jiri Borovec [data processing] & Łukasz Skarżyński [frontend/backend] & Jan Toman [design] & Marcin Matłacz [frontend/backend]

The idea is having liners kaybord and orienting over the keyboard by blinking which appears in the EEG as artifacts. We can set start/stop blink and double blink for a change... Used device Brain-Computer Interface (BCI) from g.TEch. See Writing-with-our-mind.

Applications

The whole workflow:

  1. Receiving raw signal from BS interface [blueatooth] (apps/detector_peaks.py)
  2. Processing & cleaning signals from BCI (apps/detector_peaks.py)
  3. Detecting commands and sending to backend [sockets] (apps/detector_peaks.py)
  4. Broadcasting actions from backend to frontend (apps/websocket_client.py & web_speller/*)
  5. Controlling the keyboard in the frontend application (web_speller/*)

Data processing

The data processing application is decoding BCI signal and sending commands to backend. The used communication to the BCI devise is labstreaminglayer.

Future ideas:

  • detect blinking

To simulate data sending use apps/simul_send_data.py

BackEnd

backend

FrontEnd

keyboard

The layout is located in landing page

Data

The can be streamed from the BCI device in following 17 channels, each as float32. The repository contains also recording samples of visual artifacts such as blinking and biting in sequences and blinking by both/left/right eye.

Recorded channels, in this particular "vision" configuration we were observing 8 eeg channels measuring mainly back part of human scale related to vision perception>.

  • 8 EEG
  • 3 ACC
  • 3 Gyro
  • 1 battery
  • 1 count
  • 1 val IO

Required pre-processing, see sample notebooks

  • remove the moise caused by electricity - 50Hz, use Notch filter
  • band pass filter on 0.5 to 30Hz