Vous êtes sur la page 1sur 4

Autonomuos Robot Control based on EEG and Cross-

Correlation

D. Hari Krishna Jigar Patel


Associate Professor, ECE Dept. Lab Instructor, ECE Dept.
B.V. Raju Institute of Technology B.V. Raju Institute of Technology
Narsapur, Telanagana, India Narsapur, Telanagana, India
harikrishna.dodde@bvrit.ac.in Jigar.patel@bvrit.ac.in

Abstract: This paper focuses on the real time control of better performance. ERD/ERS is mainly elicited when an
autonomous robot through the detection of multiple types of individual has periods of rest followed by intended or actual
motor imagery. The EEG data contains when subject performs movement. SSVEP is elicited under the influence of
imagery motor activity. The motor imagery activity includes flickering visual stimuli presented ipsilaterally or
movements of left hand, right hand, left leg and right leg. For contralaterally. p300 is a waveform elicited in the EEG time
feature extraction, the cross-correlation method is used to series when a person attends/ searches for a particular
calculate six statistical features (mean, median, mode, stimulus around 300 milliseconds after the stimulus
maximum, minimum, and standard deviation). For presentation. In this study, we used Imagination of motor
classification, Support Vector Machine (SVM) was used. As
movement or Motor Imagery.
SVM is binary classifier, one verses rest approach is
implemented for multiclass classification. II. METHOD
Keywords: BCI, Cross-Correlation, EEG, Motor Imagery A. Data Acquisition:

I. INTRODUCTION A portable EEG unit and cap manufactured by NCC


medical corp. was used. The EEG system recorded from 23
The humans communicate or interface with outside channels with the sampling rate of 128 Hz arranged in
world by using some muscles of human body. The brain
standard 10-20 system around the scalp. The EEG signals
generates the intension which transmits through the neurons
to the muscles to stimulate the movement. The BCI or Brain were band pass filtered 0.1-40 Hz. The raw data was stored
Computer Interface system uses either “Active” or in system native .NED format which were subsequently
“Reactive” approach [Zander and Kothe, 2011] to generate converted to a .TXT file for further processing using
similar intents which can be decoded using neuroimaging software supplied by the NCC medical. Data acquisition was
methods and can be used to control or operate external controlled by EEG system and experimental design was
devices. Even though the main intent behind developing controlled by Psychophysics toolbox in MATLAB.
such systems to provide assistance to individuals with motor MATLAB was used for all subsequent data processing. For
disabilities or neurological diseases such ALS [Mak and real time processing, the data is stored in a buffer which is
Wolpaw, 2009, Wolpaw et al., 2002], recent studies revealed read by MATLAB program approximately every 250
that the BCI approaches can be used in the area of milliseconds.
recreational activities such as gaming and virtual reality
devices [Lécuyer et al., 2008]. B. Experiment Design
Jeannerod et al. (1995) reported that the Motor Imagery
Electroencephalogram (EEG) is the most used activity also activates the similar brain area as the actual or
neuroimaging technique in Brain Computer Interface physical motor activity. In this study, we use the same
research. Even though EEG provides very low spatial paradigm. This study mainly aims for real time classification
resolution, the main reason of its popularity lies in the low of EEG signals. The subjects are required to undergo a
cost, portability and high temporal resolution. The EEG session to provide data to train the classifier. For the training
machine used in this study is 24-channel portable EEG session, subjects are instructed to perform one of the four
machine manufactured by NCC medical Corp. types of motor imagery activity according the symbols
EEG based BCI paradigms find wide ranging appear on the screen in front of them. This data is then used
applications using event-related synchronization/ to train the classifier and in separate session, subject is
desynchronization (ERD/ERS), p300 (using speller or instructed to perform same motor imagery activity in order to
oddball paradigms), and steady- state visual evoked control the autonomous robot. There are 50 trials of data for
potentials (SSVEP) [Bashashati et al., 2007, Mak et al., each types of motor imagery are collected in first session to
2012, Muller-Putz and Pfurtscheller, 2008]. Some of the train the classifier. Each of the trial consists of performing a
recent studies also use hybrid approaches in order to get particular motor imagery activity for three seconds followed
by three seconds of relax or resting time. The experiment The six statistical values, mean, median, mode, standard
setup is shown in figure 1. deviation, maximum and minimum calculated from cross-
correlation sequence are the aspects that symbolize the brain
activity for imagination of the motor activity [Siuly et al.
2012]. These six statistical values are used as features in the
present study.
The features were extracted from EEG signals using
cross-correlation techniques by,
 One of the EEG channels is selected as a Reference
Channel(e.g. Cz)
 The selected channel is correlated with all other
channels
Figure 1 Experiment Setup
 The six statistical features (mean, median, mode,
standard deviation, maximum and minimum) are
C. Pre-Processing of Data calculated from resulted sequence.
To remove line noise form the data, 59 Hz notch filter is The step-by-step process for training the classifier is shown
applied first. We employed 12 point moving average filter in Figure 2(a). As we are using one verses rest approach for
and band-pass filter of range 8-30 Hz to remove the basic multiclass classification, the last four steps are repeated for
noise. each types of motor imagery activity. The end result will be
four classifiers trained for each type of motor imagination
D. Epoch extraction activity. The classifier used for classification is Support
The Data for training the classifier contains four types of Vector Machine (SVM).
motor imagery activities. The data for these mental activities
were separated and put together into the bins designated for
the particular motor imagery activity. The time stamps
required for the separation of events or mental activities are
generated at the time of data collection by the program
which displays the stimulus. The latency time between the
starting of EEG recording and start of experiment is
carefully monitored. This latency time helps us discard the
EEG data which is recorded before the start of the actual
experiment. The length of each epoch is three seconds.
E. Classifier Training
The multichannel EEG signals are interrelated with each
other and the amount of information from EEG signals from
different places on scalp is not same [Meng et al. 2009]. In
this study, we used cross-correlation technique to measure
the similarity between signals and use it as a feature
extraction technique. The cross-correlation technique can
only measure similarity between two signals so in order to
classify between four types of mental activities; we
employed one verses rest approach.
The cross-correlation between two signals is calculated by,
𝑁−|𝑚|−1

𝑅𝑥𝑦 [𝑚] = ∑ 𝑥[𝑖]𝑦[𝑖 − 𝑚];  Figure 2. The Process for Classifier Training and Real Time Classification
𝑖=0

𝑤ℎ𝑒𝑟𝑒 𝑚 = −(𝑁 − 1), −(𝑁 − F. Autonomous Robot Operation:


2), … … .0,1,2,3, … … (𝑁 − 2), (𝑁 − 1) The National Instruments SBRIO-9632 along with
….. (1) robotic starter kit 2.0 was used in this study. As a prototype
the total control system was implemented and tested the
𝑅𝑥𝑦 [𝑚] is the cross-correlated sequence at m lag. If each
offline commands. The control system was designed with
of the signals, x and y, consists of M finite number of
respect of four types of control commands which
samples, the resultant cross-correlation sequence has 2M-1
samples. corresponds to the four types of motor imagery activity. The
commands were Forward, Backward, Turn Left and turn
Right. These commands were triggered when motor APPROXIMATION OF SYSTEM PERFORMANCE BASED ON
imagery activity of Left Leg Movement, Right Leg SUBJECT FEEDBACK
Movement, Left Hand Movement and Right Hand Subject Approx. rate of MI activity detection
Movement is detected respectively. The commands were
transmitted to the robot wirelessly via ZigBee Module. The 1 66
movement speed of robot is 5 centimeters per second and 2 68
the turning angle is set to 90◦ though the robot is capable of
having finer turning angle. 3 62
4 59

In this system, we cannot precisely determine the accuracy of


the classification in real time. So, the results were obtained
from the feedback of subjects over several testing sessions.
Each subject had several sessions to control the autonomous
robot. The duration of each session was five minutes. After
each session, the subjects were asked to give feedback on the
responsiveness of the system or how often system detected
(a) (b) the motor imagery activity the subject is performing. Based
on these results we can conclude that the system performs
well.

ACKNOWLEDGMENT (Heading 5)
The preferred spelling of the word “acknowledgment” in
America is without an “e” after the “g.” Avoid the stilted
expression “one of us (R. B. G.) thanks ...”. Instead, try “R.
B. G. thanks...”. Put sponsor acknowledgments in the
(c) (d)
Figure 3.(a) Autonomous robot starts moving after receiving
unnumbered footnote on the first page.
command. (b) Robot is avoiding obstacle by moving around it. (c)
Robot turns to left after encountering path line (d) Robot reaches
its destination
REFERENCES

While in operation, upon receiving a control command, [1] Zander, T. O., and Kothe, C., “Towards passive brain–computer
robot will take action and for very short time (while action interfaces: applying brain–computer interface technology to human–
machine systems in general,”. J. Neural Eng. 8:025005. doi:
is being performed) the subsequent commands will be 10.1088/1741-2560/8/2/ 025005, 2011
ignored. For example, after receiving the command of [2] Mak, J. N., and Wolpaw, J. R., “Clinical applications of brain-
turning left, the subsequent commands will be ignored until computer interfaces: current state and future prospects,” IEEE Rev.
robot finishes turning left (by 90◦). Also, when robot is Biomed. Eng. 2, 187–199. doi: 10.1109/RBME.2009.2035356, 2009
moving forward, the command to move backward will cause [3] Wolpaw, J. R., Birbaumer, N., McFarland, D. J., Pfurtscheller, G.,
and Vaughan, T. M., “Brain–computer interfaces for communication
it to stop moving and similarly, when robot is moving and control,” Clin. Neurophysiol. 113, 767–791. doi: 10.1016/ S1388-
backward, the command to move forward will result in 2457(02)00057-3, 2002
robot stop moving. In addition, after receiving command of [4] Lécuyer, A., Lotte, F., Reilly, R. B., Leeb, R., Hirose, M., Slater, M.,
moving forward or backward, the robot will continue “Brain-computer interfaces, virtual reality, and videogames,” IEEE
moving until command to move backward or move forward Comput. 41, 66–72. doi: 10.1109/MC.2008.410, 2008
is received respectively. Figure 3 shows the example [5] Ali Bashashati, Mehrdad Fatourechi, Rabab K Ward, and Gary E
Birch, “A survey of signal processing algorithms in brain-computer
movement of robot from point A to point B. interfaces based on electrical brain signals,” Journal of Neural
engineering, 4(2):R32, 2007.
[6] Joseph N Mak, Dennis J McFarland, Theresa M Vaughan, Lynn M
III. RESULTS AND CONCLUSION McCane, Phillippa Z Tsui, Debra J Zeitlin, Eric W Sellers, and
Jonathan R Wolpaw, “Eeg correlates of p300-based brain-computer
In this study, we employed a cross-correlation based interface (bci) performance in people with amyotrophic lateral
technique to classify between four types of mental activity of sclerosis,” Journal of neural engineering, 9(2):026014, 2012.
imagination of motor movement to operate the autonomous [7] Gernot R Muller-Putz and Gert Pfurtscheller, “Control of an electrical
robot. The approximation of performance based on subject pros- thesis with an ssvep-based BCI,” Biomedical Engineering,
feedback is shown in table 1. IEEE Transactions on, 55(1):361–364, 2008.
[8] M. J. Jeannerod, “Mental imagery in the motor context,”
TABLE 1 Neuropsychologia, vol. 33, no. 11, pp. 1419–1432, 1995.
[9] J. Meng, G. Liu, G. Huang, and X. Zhu, “Automated selecting subset
of channels based on CSP in motor imagery brain-computer system,”
in Proc. 2009 IEEE Int. Conf. Robot. Bioinformat., Guilin, China,
Dec. 19–23, 2009, pp. 2290–2294.
[10] Siuly, S., & Li, Y., “Improving the separability of motor imagery
EEG signals using a cross correlation-based least square support
vector machine for brain–computer interface,” Neural Systems and
Rehabilitation Engineering, IEEE Transactions on, 20(4), 526-538.
2012

Vous aimerez peut-être aussi