matlab精度检验代码-Brain-Computer-Interface-BCI-based-on-Steady-State-

  • h0_905555
    了解作者
  • 45.3KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-05-11 11:55
    上传日期
matlab精度检验代码基于稳态视觉诱发电位(SSVEP)的脑计算机接口(BCI) 有关如何使用此系统的说明 在“代码”部分下载并解压缩所有文件。 将Emotiv设备戴在头上并打开它。 通过编译Stimulator_opengl.cpp在以下位置运行GUI:GUI_OpenGl \ 在BCI2000程序包中:运行批处理\ FieldTripBuffer_Emotiv.bat,其参数为:parms \ Emotive_parameteres.prm 打开您的蓝牙设备**并在其上运行Android应用 运行Digital_Signal_Processing_MATLAB \ onlinify.m(如果是第一次连接到蓝牙设备,请将“ Bluetooth_enable”标志变量设置为1) 在使用该系统之前,您应该已经安装了MATLAB,“ Emotiv EEG 14通道”设备的驱动程序。 **蓝牙设备是指您用于通过蓝牙连接到MATLAB并拨打由MATLAB处理和获取的电话号码的设备。 介绍 这个项目是我的学士学位。 项目。 该项目的目的是实现基于SSVEP(稳态视觉诱发电位)的BCI(脑计算机
Brain-Computer-Interface-BCI-based-on-Steady-State-Visual-Evoked-Potential-SSVEP--master.zip
  • Brain-Computer-Interface-BCI-based-on-Steady-State-Visual-Evoked-Potential-SSVEP--master
  • onlinify
  • onlinifyOptions.m
    1KB
  • Onlinify Help.txt
    1.7KB
  • processSignal.asv
    189B
  • processSignal.m
    185B
  • onlinify.m
    10.7KB
  • startup.m
    1.3KB
  • GUI_OpenGl
  • glfont.txt
    3.5KB
  • Stimulator_opengl.vcxproj
    4.3KB
  • imageloader.h
    1.8KB
  • Stimulator_opengl.vcxproj.filters
    1.3KB
  • stdafx.h
    320B
  • ex_data.dat
    186B
  • imageloader.cpp
    5KB
  • ReadMe.txt
    1.7KB
  • Stimulator_opengl.cpp
    6.6KB
  • ex_data.bin
    186B
  • ex_data.txt
    5B
  • stdafx.cpp
    304B
  • glfont.h
    1.3KB
  • Stimulator_opengl.vcxproj.user
    143B
  • targetver.h
    314B
  • glfont.cc
    5.3KB
  • glfont.c
    3.7KB
  • Digital_Signal_Processing_MATLAB
  • PositionSet.asv
    1.5KB
  • test_MEC.m
    1.8KB
  • MEC_test.m
    3.7KB
  • PositionSet.m
    1.5KB
  • onlinifyOptions.m
    1KB
  • processSignal.m
    3.1KB
  • MEC.m
    3.7KB
  • onlinify.m
    12.4KB
  • MEC_beta.m
    4.3KB
  • test_MEC_dynamicWindow.m
    3.9KB
  • README.md
    5.2KB
内容介绍
# Brain Computer Interface (BCI) based on Steady State Visual Evoked Potential (SSVEP) Instructions on how to use this system 1. Download and unzip all files in “Codes” section. 2. Put the Emotiv device on your head and turn it on. 3. Run GUI at: GUI_OpenGl\ by compiling Stimulator_opengl.cpp 4. In BCI2000 package: run batch\FieldTripBuffer_Emotiv.bat with parameters: parms\Emotive_parameteres.prm 5. Turn on your Bluetooth device** and run Android app on it 6. Run Digital_Signal_Processing_MATLAB\onlinify.m (set “Bluetooth_enable” flag variable to 1, if you are connecting to your Bluetooth device for the first time) * You should have installed MATLAB, “Emotiv EEG 14 channels” device’s driver prior to use this system. ** Bluetooth device means the device you are using to be connected to MATLAB via Bluetooth and call the phone number processed and acquired by MATLAB. Introduction This project was as my B.Sc. project. The aim of this project is to implement a SSVEP (Steady State Visual Evoked Potentials) based BCI (Brain Computer Interface) which has the following application. There is a visual phone keypad displayed on the monitor and the user tries to dial that number only by looking at the numbers sequentially. The user should put a cap on his/her head which has some (in our case 14) different sensors to acquire his/her brain signals. User can dial the number that he wants by looking at the first digit of the number on the screen. Whenever that digit is showed on the screen (system also spells that number), user will look at the next digit of the number and so on. If the system gets the wrong digit, user should look at the “Backspace” button. By the time the maximum number of digits is reached or when the user has looked to “Call” button, system will dial that number using phone carrier service provider. This is how the system can be used. Bellow is the technical information and detail of how this system actually works and the end there are source codes and complete softwares which is needed to run this system using “Emotiv EEG 14 channels” device. Background BCI in general refers to any connection between the brain of human and any electronic device which usually are computers. There are several kind of brain activities which can be used like MTB, p300, SSVEP, etc. In this project we used SSVEP. In few sentences, SSVEP is kind of brain response when eyes are looking at oscillating light source; so when a person looks at the screen which is oscillating with frequency of “f”, the energy of brain signals at that frequency will increase and by analyzing the brain signals we can identify which frequency was that and so this is the physical context behind the system. Description We used “Emotiv EEG 14 Channel Device” but according to our testing we used only channels O1, O2, T7 and T8 for faster signal processing and better results. Signal is acquired by Emotiv cap and data is transferred into the computer and is handled by BCI 2000 which is a well known application in BCI scientific society. Field Trip Buffer is used to pass online data in 1 second blocks into MATLAB. When data arrives, the system will apply some filters such as 5Hz-30Hz band pass filter (to eliminate DC components and high frequency components which are not useful) and CMA filter (Common Mode Average Filter) for eliminating Mechanical noise due to relative vibration between the head and the cap. We then subtract the total signal average from the four major channels we used for processing. When the data passes through some primary filters we will begin processing using Minimum Energy Combination method [1] in order to reduce the influence of noise to the minimum possible level. In addition, we used “Dynamic Window Size” to increase both accuracy and time efficiency. This is done as follows: when the system starts, 1sec block of data is passed to MATLAB and it will be processed. If the result passes the dedicated pre-defined threshold, the classifier will report the result but if not, it will wait until new data arrives and it will concatenate on the new block with previous ones and then press again. As before, if the result passes the threshold, it will report it. Otherwise, it will wait for the next data. When this time window of data reaches its maximum value, then the window will eliminate the first one and the size of window will remain constant until the reliable classification happens. This approach will give us flexibility and reliability since if the user suddenly decides to look off the screen; the system will not use the corresponding data, since the window is moving in time. When all of the required numbers are complete or the user looks at “Call” button, the digits will be sending via Bluetooth to an Android OS and the destination program will get these numbers and will establish a call connection. Graphic Interface Graphical interface is designed using “OpenGL” which is a frame-based language and is very suitable for flickering the screen based on every refresh of the (LCD) screen. Buttons are flickering at specific frequencies, 6Hz, 8Hz, 10Hz, 11Hz, 13Hz, 14Hz, 15Hz, 17Hz, 19Hz, 20Hz, 21Hz and 23Hz. The 12Hz and 16HZ are skipped due to the second harmonic of 6Hz and 8Hz frequencies respectively.
评论
    相关推荐