eduzhai > Helth Sciences > Medical >

Classification and feature extraction of EEG motion images based on average partial power spectral density

  • sky
  • (0) Download
  • 20211031
  • Save American Journal of Biomedical Engineering 2013, 3(6): 208-219 DOI: 10.5923/j.ajbe.20130306.10 Average Partial Power Spectrum Density Approach to Feature Extraction for EEG-based Motor Imagery Classification Ha Truong Ngoc1, Thanh Hai Nguyen2,*, Cuong Ngo1 1Electronics and Telecommunications Department, Faculty of EEE, University of Technical Education HCMC, Vietnam 2Biomedical Engineering Department, International University, VNU, HCMC, Vietnam Abstract Brain Computer Interface (BCI) has attracted many researchers in recent years, in which one of non-invasive techniques for the BCI issue is Electroencephalography (EEG). This EEG technique can allow to investigate human brain related to muscle for diagnosis and rehabilitation. In this paper, we proposed an Average Partial Power Spectrum Density (APPSD) approach and a bandpass filter to classify mental tasks using an EGG system with 24 channels, in which the relevant mental tasks are: left hand movement, right hand movement and rest. The proposed approach is the combination of the 2 Hz bandpass filter and the APPSD algorithm in the specific frequency ranges to find out features of imagery for classification. For the accuracy of the feature extraction, outliers which sparsely appear in the range of the PSD are removed. From the obtained features of movements, an Artificial Neuron Network (ANN) model was used to classify imagery status. Experiments were performed on 2 subjects with 200 runs per one subject to illustrate the effectiveness of the proposed method. Keywords EEG Technique, Bandpass Filter, Average Partial Power Spectrum Density Method, Neuron Network Model 1. Introduction EEG signal was firstly recorded by Hans Berger in 1924. The human brain's electrical charge is maintained by billions of neurons which are constantly exchanging ions with the extracellular. This process generates a voltage. When the wave of ions reaches the electrodes on the scalp, they can push or pull electrons on the metal on the electrodes. Since metal conducts the push and pull of electrons easily, the difference in push or pull voltages between any two electrodes can be measured. These voltages over time are the EEG signals[1]. Non-invasive and invasive techniques have been used in BCI applications in recent years[2, 3], in which the non-invasive techniques such as Electroencephalography (EEG)[4], functional Magnetic Resonance Imaging (fMRI) [5] and Near Infrared Spectroscopy (NIRS)[6] are often used for diagnosis and rehabilitation. The main advantage of these techniques is that the sensors are designed to directly contact the scalp surface with electrodes for recordings of brain activity. * Corresponding author: (Thanh Hai Nguyen) Published online at Copyright © 2013 Scientific & Academic Publishing. All Rights Reserved There were many applications based on recorded EEG signal for last years. The problem of rehabilitation and diagnosis based on EEG features has attracted a lot of researchers in recent years. A mean threshold algorithm was proposed to detect eye blinks using EEG[7]. The activity of eye blinking related to the delta area of human brain was investigated using EEG technology. In particular, a BCI system can allow people communicate and control external devices without using traditional motor output pathways[8]. One can translate brain activities into messages or commands to control devices[10]. For classification of EEG signals, a recursive training algorithm to generate recognition patterns from EEG signals was proposed to control an electric wheelchair[11]. Mental task was classified using prefrontal EEG[12]. The relevant mental tasks used are mental arithmetic, ringtone, finger tapping and words composition with additional tasks which are baseline and eyes closed. Another application is that the feature extraction is based on the Hilbert Huang Transform (HHT) energy method and the classification algorithm is based on an Artificial Neural Network (ANN) with the Genetic Algorithm (GA) optimization[13]. Base on different ranges of frequency, EEG signal obtained from human brain is often divided into five kinds: Delta (δ: 1-4 Hz), Theta (θ: 4-7 Hz), Alpha (α: 8-12 Hz), Mu (μ: 8-13 Hz), Beta (β: 13-30 Hz), Gamma (γ: over 30 American Journal of Biomedical Engineering 2013, 3(6): 208-219 209 Hz)[14]. Moreover, μ and β are recorded on primary motor cortex related to human activity. During motor imagery, EEG signals accompany power changes in movement related m (8–12 Hz) and b (18–26 Hz) rhythms, representing a power increase or decrease named event-related desynchronization and synchronization (ERD=ERS) in specific motor cortex areas[15]. In this paper, we proposed the recognition algorithm for developing a brain computer interface using EEG technique. First of all, EEG data obtained from human brain are centered with zero mean. For feature extraction of motor imagery, data are calculated using an Average Partial Power Spectrum Density (APPSD) approach and a bandpass filter. In this approach, the sparse outliers are removed for more accurately feature extraction. From the obtained features, an Artificial Neural Network model is employed to classify motor imagery[16] as shown in Figure 1. The remaining sections corresponding to blocks in the above diagram are held for more details. Data acquisition, pre-processing and feature extraction are presented in Section 2. Structures of the artificial neural network are also shown in this section. Section 3 is the results and discussion of our work. Conclusion is briefly represented in Section 4. Figure 2. The Biosemi system connected to a desktop EEG signals were obtained from BioSemi ActiveTwo as shown in Figure 2. This BioSemi system was located at Room 104 of Biomedical Engineering Department, International University, Vietnam. The system has 64 channels are based on the international 10/20 system[17] as shown in Figure 3. Two right handed participants (1 male: 32 years old, 62 kg weights, 1 female: 21 years old, weigh 47 kg) were invited to participate into this study. The subject informed consents agreement after reading and understanding the experiment protocol and the EEG technique. Offline data were obtained from the Biosemi system during the subject performing motor imagery of the left hand movement and right hand movement. Figure 1. Block diagram of Recognition algorithm 2. Materials and Methods 2.1. Data Acquisition Figure 3. Ten red electrodes for signal collection: C1 to C6, CP3, CP4, FC3, FC4 and one blue Cz reference Rest: 4s Motor imagery movement: 4s Figure 4. Time protocol for motor imagery The subjects were instructed to perform the mental task, the motor imagery of the left hand and right hand. In this 210 Ha Truong Ngoc et al.: Average Partial Power Spectrum Density Approach to Feature Extraction for EEG-based Motor Imagery Classification motor imagery, a protocol includes 4 s (Rest) – 4 s (motor imagery) is shown in Figure 4. It means that the mental tasks include: − Rest: The participants relaxed in 4 s. − Motor imagery movement: The participants imagine he left/right hand movement continuously in 4 s. − He/she did with this protocol 10 times for left hand imagery and that for right hand imagery per a run of experiment. EEG signals were sampled at 512 Hz, and were recorded using electrodes FC3, FC4, C5, C3, C1, C2, C4, C6, CP3, CP4 with the reference electrode placed on Cz. These electrodes installed at the motor cortex area and sensorimotor activity[18] with the standard electrode positions of the international 10-10 system. The recorded data will be applied for training and testing. 2.2. Signal Pre-processing All recorded samples from the 6th to 7th seconds were used for analyzing motor imagery. Signal from 2nd to 3rd seconds were for detecting rest time. After that, a discrete surface Laplacian spatial filter was implemented on channel C3, C4[19]. We got the new processed signals, C3n and C4n, using the following equations C3n = 4C3 − FC3 − C5 − C1 − CP3 (1) C4n = 4C4 − FC4 − C6 − C2 − CP4 (2) To use these channel signals for feature extraction, one normalized by shifting the signals to be the mean signals as described in the following formula: C3= na (i) C3n (i) − µC3n (3) C4= na (i) C4n (i) − µC4 n (4) in which, µC3n , µC4n is the average value of C3n and C4n , respectively. In particular, an original signal of C3n was processed to produce the mean signal and then its spectrum was calculated as shown in Figure 5a, b, c. 7700 7600 7500 7400 7300 C3n(t) 7200 7100 7000 6900 6800 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 Time(s) Figure 5a. Original signal of C3n American Journal of Biomedical Engineering 2013, 3(6): 208-219 211 C3na(t) 400 300 200 100 0 -100 -200 -300 -400 -500 0 40 35 30 25 20 15 10 5 0 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 Time(s) Figure 5b. Signal of C3n normalized 5 10 15 20 25 30 35 Frequency (Hz) Figure 5c. Spectrum of normalized C3n signal |Y(f)| 212 Ha Truong Ngoc et al.: Average Partial Power Spectrum Density Approach to Feature Extraction for EEG-based Motor Imagery Classification 2.3. Feature Extraction After the signal was shifted to the average point, the obtained mean signals x[n] of channels, C3na and C4na, were passed through a 4-order Butterworth band pass filter with the impulse response h(n), n, k = 1,2,…. In this paper, for extraction of features, the APPDS algorithm is employed. In particular, the filters have pass-band frequency of 2 Hz with order of 4 were applied. More details, there are 11 bandpass filters. The first one has the pass-band of 8 – 10Hz and the second is the pass-band of 10 – 12Hz. In similarity, the 11th filter has the pass band of 28 – 30Hz. Figure 6 shows the amplitude response of the 2 Hz bandpass filter. The FFT algorithm was applied for the output signal of the Butterworth band pass filter to determine the frequency spectrum. Based on this spectrum, one can know the frequency bandwidth of signal. Assume that the outputs of C3na after passing through the 1st to 11th filter are C31, C32, …, C311, respectively. One of the output of the filters is shown in Figure 7a. Similarly to those of C4na, we have C41, C42, …, C411, respectively. Therefore, the PSD of the outputs were determined for calculating the average values of separated parts which were considered as features for training and testing. Each part corresponds to 11 parts of the bandpass filters. The average values of the PSD of C3na on each part 8–10 Hz, 10–12 Hz, …, 28–30 Hz were named F1, F2,…, F11 as shown in Figure 7b for one case. In the case of C4na, The average values are F12, F13, …, F22. Before analysis of characteristics of the signals, one needs to remove the outliers which are outside of the interval[x1-1.5 * A, * A +1.5 x3] as shown in Figure 8. The statistical analysis of right hand movement imagery is shown in Figure 9. Each characteristic is represented using box plot[20]. From the above implementation, currently there are 22 values of doing imagery of movement left/right side. These values are used as the inputs of the network for training and testing. 2.4. Classification There are many classification techniques, such as Linear Discriminant Analysis (LDA), Support Vector Machines (SVM), Artificial Neural Networks (ANN), etc. In this paper, we used ANN for training and classification and the multilayer feed forward network is chosen here. The net has 3 layers: input, hidden and output layer. Input samples are 22 values got above. For good performance of the network, its input must be chosen carefully. Outlier was discarded. In Figure 9, the sample 9 of F14 is removed before used for training. The number of node of hidden layer is chosen of 10. Figure 10 shows the used network. With the hidden layer, the double sigmoid function was utilized while the sigmoid function was for the output layer. Standard back propagation is applied for training this 3- layer neural network. It is a gradient descent algorithm, in which the network weights are moved along the gradient negative of the performance function. With this argument, the training is based on the minimization of the following error function: N −1 ∑ =E (On − dn )2 (5) n=0 where N is number of samples, O is network output and d is desired output. In this paper, the output layer is designed to produce 3 nodes to represent three tasks such as the left motor imagery, right motor imagery and rest. These tasks correspond to the desired values of[1; 0; 0];[0; 1; 0] and[0; 0; 1]. Figure 6. Amplitude response of the 2 Hz bandpass filter. The pass-band is from 8 to 10 Hz American Journal of Biomedical Engineering 2013, 3(6): 208-219 213 1.5 1 0.5 C3na 0 -0.5 -1 -1.5 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 Time(s) (a) 1 0.9 0.8 0.7 0.6 |Y(f)| 0.5 0.4 0.3 0.2 0.1 0 0 5 10 15 20 25 30 35 Frequency (Hz) (b) Figure 7. One output of bandpass filter with C3na input, in which (a) signal on time domain, (b) spectrum. There are 11 different spectra corresponding to 11 parts 8–10 Hz, 10–12 Hz, …, 28–30 Hz, respectively. The average value in each part is used as input for classification 214 Ha Truong Ngoc et al.: Average Partial Power Spectrum Density Approach to Feature Extraction for EEG-based Motor Imagery Classification Figure 8. Representation of calculating outliers. The samples have value out of (x3-x1+3A) is removed from the data set Figure 9. Box plot of features of C3na and C 4na . The average values of F1 – F22 have different max, min, and average values. For example, F14 has the greatest value while F13 is available with the maximum value Figure 10. The network has 22 nodes of the input layer, 10 nodes of the hidden layer and 3 nodes of the output layer 3. Results and Discussion For the objective of investigating brain activity through hand movements, two subjects were invited to attend experiments, in which each participant worked out 200 runs of mental tasks. The feature set consists of 100 samples of the right hand movement, 100 samples of left hand movement and 200 samples of the rest. The training set is divided equally to the testing set. This means that the set of samples was separated into 2 subsets, training set and testing set, N1 and N2, respectively. N1 has 50 samples of the left motor imagery, 50 samples of the right imagery and 100 samples of the rest. N2 contains the rest of the data set. From this separation, N1 is inserted the network for training, while the testing samples were taken from N2. Because there is difference in EEG signal regarding to each subject, the ANN training and classification were perform on each subject. The accuracy is got by calculating the exact classification samples over the population of each mental task. In the mental task of right hand movement imagery, the result of the APPSD of subject 1 is shown in Figure 11a. Figure 11b is the result of the left hand movement imagery. Figure 11c represents the rest status of the participant. In the training set N1, the outliers were discarded due to the defined condition. Therefore, the practical population of N1 is equal or less than 200 samples. Table 1 shows the result of 200 testing samples of N2 with the ANN from the American Journal of Biomedical Engineering 2013, 3(6): 208-219 215 obtained training set N1. Testing sample Left hand movement Right hand movement Rest Table 1. Accuracy for Subject-1 Results of mental task that ANN recognized Left hand movement Right hand movement Rest Accuracy (%) 47 2 1 94 3 46 1 92 4 0 96 98 The accuracy in the case of the left hand movement imagery of Subject-1 is 94% as shown in Table 1. With 50 left hand movement imagery samples, the network detects 47 samples. The accuracy for right hand movement is 92% and this is 98% in the rest task. The average accuracy for 3 mental tasks is 94.7%. The participant 2 did the same protocol of subject 1. In this case, the results of mental task were represented in Figure 12a, Figure 12b, and Figure 12c. Figure 11a. The APPSD of the right hand movement imagery of subject-1 and two outliers were discarded. The samples 9th, 50th were discarded Figure 11b. The APPSD of left hand movement - subject 1. Two outliers were discarded: 33, 15 216 Ha Truong Ngoc et al.: Average Partial Power Spectrum Density Approach to Feature Extraction for EEG-based Motor Imagery Classification Figure 11c. The APPSD of the rest time - subject 1. One outlier was discarded: 10 Figure 12a. The APPSD of the right imagery of subject-2. Three outliers were discarded: sample 19, 20, 42 American Journal of Biomedical Engineering 2013, 3(6): 208-219 217 Figure 12b. The APPSD of the left imagery of subject-2. Three outliers were discarded: 37, 36, 2 Figure 12c. The APPSD of the rest time of subject-2. Three outliers were discarded: 59, 38, 39

... pages left unread,continue reading

Document pages: 12 pages

Please select stars to rate!


0 comments Sign in to leave a comment.

    Data loading, please wait...