Classification of EEG Motor Imagery Using Support Vector Machine and Convolutional Neural Network

Yu-Te Wu, Tzu-Hsuan Huang, Chun Yi Lin, S. Tsai, Po-Shan Wang
{"title":"Classification of EEG Motor Imagery Using Support Vector Machine and Convolutional Neural Network","authors":"Yu-Te Wu, Tzu-Hsuan Huang, Chun Yi Lin, S. Tsai, Po-Shan Wang","doi":"10.1109/CACS.2018.8606765","DOIUrl":null,"url":null,"abstract":"In this study, we used two machine learning algorithms, namely, linear support vector machine (SVM) and convolutional neural network (CNN), to classify the BCI (Brain Computer interface) competition IV-2a 2-class MI (motor imagery) data set which consists of EEG data from 9 subjects. For each subject, 5 sessions of signals from three electrodes (C3, Cz, and C4) were recorded with sampling rate 250Hz. The training data, which consisted of the first 3 sessions, included 400 trials. The evaluation data, which consisted of the last 2 sessions, included 320 trials. Each trial started with gazing at fix cross on screen for 3 seconds followed by a one-second visual cue pointing either to the left or right to instruct the subject for left or right motor imagery over a period of 4 seconds, and then followed by a short break of at least 1.5 seconds. Features were extracted from the 0.5 to 2.5 second signals after the cue for each trial from C3 and C4. Each EEG trial was band pass filtered into different frequency bands, namely, delta (0.5-3Hz), theta (4-8Hz), alpha (8-12Hz), beta bands (13-30Hz), gamma bands (31-60Hz). Those filtered signals were then used as the input data for training the linear SVM. In addition, we generated a 2 by 500 matrix by down sampling the training data from each trial. There are 5760 such matrices in total generated from all subjects and serve as the input data for training CNN and the trained model was evaluated by another 340 matrices from each subject. Our CNN architecture consisted of 2 convolution layer and 2 fully connect layers, and there was a batch normalization layer before the activated layer and a dropout layer with a probability of 50% after the activated layer. The classification accuracies evaluated by averaged kappa values obtained from linear SVM and CNN are 0.5 and 0.621, respectively, suggesting the deep learning CNN method is superior to the classical linear SVM on the EEG classification.","PeriodicalId":282633,"journal":{"name":"2018 International Automatic Control Conference (CACS)","volume":"36 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2018-11-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"16","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2018 International Automatic Control Conference (CACS)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/CACS.2018.8606765","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 16

Abstract

In this study, we used two machine learning algorithms, namely, linear support vector machine (SVM) and convolutional neural network (CNN), to classify the BCI (Brain Computer interface) competition IV-2a 2-class MI (motor imagery) data set which consists of EEG data from 9 subjects. For each subject, 5 sessions of signals from three electrodes (C3, Cz, and C4) were recorded with sampling rate 250Hz. The training data, which consisted of the first 3 sessions, included 400 trials. The evaluation data, which consisted of the last 2 sessions, included 320 trials. Each trial started with gazing at fix cross on screen for 3 seconds followed by a one-second visual cue pointing either to the left or right to instruct the subject for left or right motor imagery over a period of 4 seconds, and then followed by a short break of at least 1.5 seconds. Features were extracted from the 0.5 to 2.5 second signals after the cue for each trial from C3 and C4. Each EEG trial was band pass filtered into different frequency bands, namely, delta (0.5-3Hz), theta (4-8Hz), alpha (8-12Hz), beta bands (13-30Hz), gamma bands (31-60Hz). Those filtered signals were then used as the input data for training the linear SVM. In addition, we generated a 2 by 500 matrix by down sampling the training data from each trial. There are 5760 such matrices in total generated from all subjects and serve as the input data for training CNN and the trained model was evaluated by another 340 matrices from each subject. Our CNN architecture consisted of 2 convolution layer and 2 fully connect layers, and there was a batch normalization layer before the activated layer and a dropout layer with a probability of 50% after the activated layer. The classification accuracies evaluated by averaged kappa values obtained from linear SVM and CNN are 0.5 and 0.621, respectively, suggesting the deep learning CNN method is superior to the classical linear SVM on the EEG classification.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
基于支持向量机和卷积神经网络的脑电运动图像分类
在本研究中,我们使用线性支持向量机(SVM)和卷积神经网络(CNN)两种机器学习算法,对由9名受试者的脑电数据组成的BCI (Brain Computer interface)竞赛IV-2a 2类MI (motor imagery)数据集进行分类。每个受试者记录C3、Cz、C4三个电极的5次信号,采样率为250Hz。训练数据包括前3次训练,包括400次试验。评估数据包括最近2期的320项试验。每次试验开始时盯着屏幕上的固定十字3秒,然后是指向左边或右边的1秒视觉提示,指导受试者在4秒内进行左或右运动意象,然后是至少1.5秒的短暂休息。从C3和C4的每次提示后0.5 ~ 2.5秒的信号中提取特征。每次脑电试验经带通滤波后分为delta (0.5-3Hz)、theta (4-8Hz)、alpha (8-12Hz)、beta (13-30Hz)、gamma (31-60Hz)频段。然后将这些滤波后的信号作为训练线性支持向量机的输入数据。此外,我们通过对每次试验的训练数据进行下采样,生成了一个2 × 500矩阵。所有科目总共产生5760个这样的矩阵,作为训练CNN的输入数据,训练后的模型由每个科目的另外340个矩阵进行评估。我们的CNN架构由2个卷积层和2个完全连接层组成,激活层之前有一个批处理归一化层,激活层之后有一个概率为50%的dropout层。用线性支持向量机和CNN的平均kappa值评估分类准确率分别为0.5和0.621,表明深度学习CNN方法在脑电分类上优于经典线性支持向量机。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
Implementation of PD (Proportional Derivative) Control System On Six-Legged Wall Follower Robot A Wireless Control Mobile Hoist System The robot for recycling based on machine learning Object Transportation Using Networked Mobile Manipulators without Force/Torque Sensors A Method for Finding the Routes of Mazes
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1