Marcin KOŁODZIEJ, Andrzej MAJKOWSKI, Remigiusz J. RAK Warsaw University of Technology

Matlab FE_Toolbox - an universal utility for feature extraction of EEG signals for BCI realization Abstract. The main aim of the article is to introduce a new Matlab toolbox (FE_Toolbox - a collection of feature extraction algorithms) to EEG signal analysis. Such a toolbox can be useful in the process of designing effective Brain-Computer Interfaces (BCI). The implemented feature extraction algorithms are based on frequency analysis (DFT), wavelet transform and higher order statistics (HOS) in connection with an autoregressive model. Streszczenie. W artykule przedstawiono opracowany przez autorów toolbox do Matlaba (FE_Toolbox), który umożliwia łatwe użycie różnych metod ekstrakcji cech z sygnału EEG. Toolbox może być pomocny przy konstruowaniu interfejsów mózg komputer (BCI). Zaimplementowane algorytmy ekstrakcji cech wykorzystują analizę częstotliwościową (DFT), transformację falkową oraz statystyki wyższych rzędów w połączeniu z autoregresją. (Toolbox Matlab_FE – uniwersalne narzędzie ekstrakcji cech sygnałów EEG do realizacji interfejsu człowiek-komputer)

Keywords: BCI, EEG, feature extraction. Słowa kluczowe: BCI, EEG, ekstrakcja cech.

Introduction Implementing communication between man and machine by the use of EEG signals is one of the biggest challenges in signal theory. Such a communication system could improve the standard of living of people with severe motor disabilities [1]. Some disable persons cannot move, however they can think about moving their arms, legs and in this way produce stable motor-related EEG signals (so called event-related desynchronization/synchronization ERD/ERS). The fundamental problem in all BCI systems is the proper interpretation of EEG signals. An effective EEG signal classification algorithm demands a numerous investigations in techniques of feature extraction. There are many methods of extracting features from signal: time series, Fourier transform, time-frequency analysis, wavelet transform, higher order statistics, autoregressive model and so on. The main aim of the article is to introduce a new Matlab toolbox (FE_Toolbox: Feature_Extraction_Toolbox) which is a collection of many feature extraction algorithms used in EEG signal analysis. Such a toolbox can be useful in the process of designing effective Brain-Computer Interfaces. A utility which enables in easy way implementing many different feature extraction methods makes possible to choose the best one for a special classification problem. It is especially true today when even an average PC has relatively high computational power. Asynchronous BCI system Brain Computer Interfaces are usually very complicated control-measurement systems. During the design process one should solve many problems which can appear at the stage of signal acquisition, signal processing and finally devices controlling (fig.1). At first, direct measurement of EEG signal is very difficult for the reason that EEG signal has very small amplitude values - micro volts. Also the position of electrodes is crucial in that case. The very important stage in BCI system is the signal processing module. It consist of two blocks: feature extraction and classification. There are many classification methods which can be implemented in BCI systems and give good results (for example: neural networks, SVM, Kmeans, Naive Bayess Classifier). But feature extraction algorithms are much more critical in BCI construction. Although there are many well known methods of feature extraction there is still a need to select the better ones which can give better classification results.

44

Fig.1. The block diagram of a BCI system

Brain Computer Interfaces can be divided into systems working in synchronous and asynchronous modes. In the article we consider only the systems working in asynchronous mode in which no cue stimulus is used, and the examined person can think of a specific activity whenever he likes [2]. The brain signals have to be analyzed continuously in order to detect and classify special events and then transform the detected event into a control signal as quickly and accurately as possible [3].

Fig.2. An example of asynchronous BCI system

An example of asynchronous BCI system is presented in figure 2. A person is imagining a left or right hand movement. We continuously analyse EEG signal trying to find when the person is thinking about the movement. The EEG signal is divided into 1 second, overlapping windows. For each window feature vectors are calculated [4,5,6,7]. It is worth mentioning that the feature vectors varies even for the same case and their values depend on many factors, such as the person which is examined, what he is actually thinking about, position of electrodes and so on. Often using different feature extraction methods and then combining the features which well separates some events into feature

PRZEGLĄD ELEKTROTECHNICZNY (Electrical Review), ISSN 0033-2097, R. 86 NR 1/2010

vectors gives the best classification results. To make mater worse the EEG signal is usually registered from many electrodes and we don’t know exactly what the optimal location of the electrodes is. For that reason it is necessary to examine many channels and many methods of feature extraction. Methods of feature extraction The Matlab FE_Toolbox, designed by the authors, implements some of the feature extraction methods which are frequently used in connection with EEG signal analysis. The implemented feature extraction algorithms are based on frequency analysis (DFT), higher order statistics (HOS) in connection with wavelet transform and autoregressive model. The method of feature extraction from EEG signal based on frequency analysis operates on earlier described quite freely selected portions of signal (for example one second long). For each time window the Discrete Fourier Transform is calculated. The DFT is defined by the formula: (1)

(4) Yet another method frequently used for feature extraction is based on autoregressive model. The method belongs to the group of linear prediction formulas in which a x[n] sample is predicted using the previous ( x[n-1], x[n2],..., x[n-p]) samples. The notation AR(p) refers to the autoregressive model of order p. The AR(p) model is depicted by: (5)



where , … ,   are the parameters of the model, C is a is a white noise. The features of EEG constant and signal are calculated as the parameters of the model.



The features in this case are absolute values of Xk, that corresponds with the amplitudes of signal components of kth frequency component. Different approach to feature extraction makes use of higher order statistics. In FE_Toolbox variance, skewness and kurtosis of wavelet details of EEG signal are calculated. Also in this case we divided EEG signal into consecutive blocks, for example one second length windows of signal. Blocks can overlap. For each block wavelet transform is calculated. In wavelet analysis, we can distinguish approximations and details. The approximations are the low-frequency components of the signal. The details are the high-frequency components. The filtering process at its most basic level is presented in figure 3.

Fig.3. Filtering process decomposition level

where σ is the standard deviation of X. The kurtosis of a X distribution is defined as

of

wavelet

decomposition

-

first

Fig.4. Wavelet decomposition tree

FE_Toolbox description Using the FE_Toolbox we can build feature vectors from EEG signals. At first the EEG signal is loaded into Matlab workspace. Earlier we must select some input parameters. We should define input data variable, describe window length, sampling frequency, number of samples that overlap in time windows (fig.5). Next we chose options connected with feature extraction methods. For HOS method we can select a decomposition wavelet, number of decomposition levels and statistics we want to be count. AR model demands to choose the number of coefficients. For frequency method we have the option to choose type of window to use in FFT calculation. Calculated feature vectors, together with its detailed description, are saved in Matlab workspace.

We take into consideration details of the signal on different decomposition levels. For these details variance, skewness and kurtosis are calculated. The decomposition process can be iterated, with successive approximations being decomposed in turn, so that one signal is broken down into many lower resolution components. This is called the wavelet decomposition tree (fig.4). Variance, skewness and kurtosis are counted on the successive details cD1, cD2, cD3, …, cDn. If a random variable X has the expected value μ = E(X), then the variance v of X is given by: (2) The skewness of a X distribution is defined as

Fig.5. FE_Toolbox control panel

(3)

PRZEGLĄD ELEKTROTECHNICZNY (Electrical Review), ISSN 0033-2097, R. 86 NR 1/2010

45

Experiments As an example of experiment there is presented a simple method of feature selection. Using FE_Toolbox we can find which features of sample EEG signal are strongly correlated. High correlation between two features means that we can resign from one of them. In this example only a single channel EEG is used. The signal has the length of about 4 minutes. The considered features are skewness of wavelet details. We use 4-th order Daubechies wavelet. The correlation matrix of individual features is presented in table 1. Table 1. The correlation DN – N-th level detail) S(D1) S(D2) S(D1) 1 0,010 S(D2) 0,010 1 S(D3) 0,056 0,507 S(D4) 0,037 0,449 S(D5) 0,082 0,657 S(D6) 0,058 0,674 S(D7) 0,051 0,599

matrix (S – absolute value of skewness, S(D3) 0,056 0,507 1 0,404 0,548 0,620 0,571

S(D4) 0,037 0,449 0,404 1 0,520 0,656 0,553

S(D5) 0,082 0,657 0,548 0,520 1 0,757 0,622

S(D6) 0,058 0,674 0,620 0,656 0,757 1 0,716

S(D7) 0,051 0,599 0,571 0,553 0,622 0,716 1

As we can see the correlation between features are not so large. The highest correlation is between skewness counted for detail 5 and skewness counted for detail 6. Conclusion FE_Toolbox is a universal tool enabling feature extraction from EEG signal. In the next step of research a deep analysis of features should be carried out. Such an analysis will enable to choose the ones which the best separate two or more classes. Additionally the channels of EEG signal which contain the most information should be selected in order to minimize the number of electrodes.

46

REFERENCES [1] V i d a l J . , Toward, Direct Brain-Computer Communication, Annual Review of Biophysics and Bioengineering, Vol. 2, 1973, pp. 157-180) [2] Kołodziej M., Rak R. Implementation of EEG signal spectrum in Brain Computer Interface design, Przegląd Elektrotechniczny 05/09 [3] T s c h u o r L . H o f f m a n n U ., Computer Game Control through Relaxation-Induced EEG Changes, Lausanne, 4.2.2002 [4] D e n n i s J . M c F a r l a n d , L a u r i e A . M i n e r , T h e r e s a M . V a u g h a n , J o n a t h a n R . W o l p a w , Mu and Beta Rhythm Topographies During Motor Imagery and Actual Movements, Brain Topography, Volume 12. Number 3, 2000. [5] W o l p a w J . , B i r b a u m e r N . , D e n n i s J . M c F a r l a n d , P f u r t s c h e l l e r G . , V a u g h a n M . , Invited review Brain– computer interfaces for communication and control, Clinical Neurophysiology 113 (2002) 767–791 [6] O c h o a J . B . , M o l i n a G . G . , E b r a h i m i T . , EEG Signal Classification for Brain Computer Interface Applications, Report, March 28th, 2002 [7] K e n n e d y , P . R . , B a k a y R . A . (1998) Restoration of neural output from a paralysed patient by a direct brain connection, Neuroreport. June 1;9(8):1707-11 Authors: prof. nzw. dr hab. inż. Remigiusz J. Rak, e-mail: [email protected]; dr inż. Andrzej Majkowski, e-mail: [email protected]; mgr inż. Marcin Kołodziej, e-mail: [email protected] Politechnika Warszawska, Instytut Elektrotechniki Teoretycznej i Systemów InformacyjnoPomiarowych, ul. Koszykowa 75, 00-661 Warszawa.

PRZEGLĄD ELEKTROTECHNICZNY (Electrical Review), ISSN 0033-2097, R. 86 NR 1/2010

Matlab FE_Toolbox - an universal utility for feature extraction of EEG ...

Matlab FE_Toolbox - an universal utility for feature extraction of EEG signals for BCI realization.pdf. Matlab FE_Toolbox - an universal utility for feature extraction of EEG signals for BCI realization.pdf. Open. Extract. Open with. Sign In. Main menu.

517KB Sizes 0 Downloads 247 Views

Recommend Documents

Matlab FE_Toolbox - an universal utility for feature extraction of EEG ...
Matlab FE_Toolbox - an universal utility for feature extraction of EEG signals for BCI realization.pdf. Matlab FE_Toolbox - an universal utility for feature extraction ...

feature extraction & image processing for computer vision.pdf ...
feature extraction & image processing for computer vision.pdf. feature extraction & image processing for computer vision.pdf. Open. Extract. Open with. Sign In.

An Expected Utility Approach to Active Feature-value ...
be represented by the matrix F, where Fi,j corresponds to the value of the j-th ..... Learning Tools and Techniques with Java Implementations. Morgan Kaufmann ...

A Random Field Model for Improved Feature Extraction ... - CiteSeerX
Center for Biometrics and Security Research & National Laboratory of Pattern Recognition. Institute of ... MRF) has been used for solving many image analysis prob- lems, including .... In this context, we also call G(C) outlier indicator field.

Adaptive spectral window sizes for feature extraction ...
the spectral window sizes, the trends in the data will be ... Set the starting point of the 1st window to be the smallest ... The area under the Receiver Operating.

Learning a Selectivity-Invariance-Selectivity Feature Extraction ...
Since we are interested in modeling spatial features, we removed the DC component from the images and normalized them to unit norm before the learning of the features. We compute the norm of the images after. PCA-based whitening. Unlike the norm befo

A Review: Study of Iris Recognition Using Feature Extraction ... - IJRIT
analyses the Iris recognition method segmentation, normalization, feature extraction ... Keyword: Iris recognition, Feature extraction, Gabor filter, Edge detection ...

Wavelet and Eigen-Space Feature Extraction for ...
Experiments made for real metallography data indicate feasibility of both methods for automatic image ... cessing of visual impressions is the task of image analysis. The main ..... Multimedia Data mining and Knowledge Discovery. Ed. V. A. ...

IC_26.Data-Driven Filter-Bank-Based Feature Extraction for Speech ...
IC_26.Data-Driven Filter-Bank-Based Feature Extraction for Speech Recognition.pdf. IC_26.Data-Driven Filter-Bank-Based Feature Extraction for Speech ...

A Random Field Model for Improved Feature Extraction ... - CiteSeerX
Institute of Automation, Chinese Academy of Science. Beijing, China, 100080 ... They lead to improved tracking performance in situation of low object/distractor ...

Feature Extraction for Outlier Detection in High ...
Literature Review. Linear subspace analysis for feature extraction and dimensionality reduction has been stud- ..... Applied Soft Computing, 10(1):1–35, 2010. 73.

Wavelet and Eigen-Space Feature Extraction for ...
instance, a digital computer [6]. The aim of the ... The resulting coefficients bbs, d0,bs, d1,bs, and d2,bs are then used for feature ..... Science, Wadern, Germany ...

FuRIA: A Novel Feature Extraction Algorithm for Brain-Computer ...
for Brain-Computer Interfaces. Using Inverse Models ... Computer Interfaces (BCI). ▫ Recent use of ... ROIs definition can be improved (number, extension, …).

PCA Feature Extraction For Change Detection In.pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. PCA Feature ...

Feature Extraction for Outlier Detection in High ...
Outlier detection is an important data mining task and has been widely studied in .... is extracted from a transformation of the original data space (vector space).

PCA Feature Extraction For Change Detection In ieee.pdf ...
Whoops! There was a problem previewing this document. Retrying... Download. Connect more apps... PCA Feature ... In ieee.pdf. PCA Feature E ... n In ieee.pdf.

Affine Invariant Feature Extraction for Pattern Recognition
Nov 13, 2006 - I am also thankful and grateful to my thesis supervisor Dr. Syed Asif Mehmood Gilani for his continuous guidance and support that he extended during the course of this work. I had numerous discussions with him over the past year and he

A Review: Study of Iris Recognition Using Feature Extraction ... - IJRIT
INTRODUCTION. Biometric ... iris template in database. There is .... The experiments have been implemented using human eye image from CASAI database.

OntoDW: An approach for extraction of conceptualizations from Data ...
OntoDW: An approach for extraction of conceptualizations from Data Warehouses.pdf. OntoDW: An approach for extraction of conceptualizations from Data ...