Docsity

Domotic Control System, Study Guides, Projects, Research of Biomedical Engineering

Toggle sidebar
bg1
J. Cabestany, I. Rojas, and G. Joya (Eds.): IWANN 2011, Part I, LNCS 6691, pp. 345–352, 2011.
© Springer-Verlag Berlin Heidelberg 2011
A Domotic Control System Using Brain-Computer
Interface (BCI)
Rebeca Corralejo, Roberto Hornero, and Daniel Álvarez
Grupo de Ingeniería Biomédica, E.T.S.I. de Telecomunicación, Universidad de Valladolid,
Paseo Belén 15, 47011 Valladolid, Spain
Abstract. The aim of this study was to develop a Brain Computer Interface
(BCI) application to control domotic devices usually present at home.
Electroencephalographic (EEG) activity was recorded from users’ scalp and
sensorimotor rhythms were used to control the BCI. Our application uses the
BCI2000 general purpose system. We studied four feature extraction
algorithms: AR model, Fourier transform, wavelet transform and matched filter.
An AR model achieved the best accuracy. Our application allows to control
several devices, such as a TV set, a Hi-Fi system, a DVD player and the lights
of a room. Five users from a disability reference center in LeĂłn (Spain) with
severe physical and cognitive disabilities took part in the study, achieving
accuracies up to 69.9%. Domotic BCI applications could be really useful for
disabled people. However, further research is needed.
Keywords: Brain Computer Interface (BCI), electroencephalogram (EEG),
feature extraction, feature translation, real-time applications, disabilities.
1 Introduction
A Brain-Computer Interface (BCI) is a communication system that monitors the brain
activity and translates specific signal features that reflect the user’s intent into
commands that operate a device [1]. The method most commonly used for monitoring
brain activity in BCIs is the electroencephalography (EEG). The EEG is a non-
invasive method that requires relatively simple and inexpensive equipment and it is
easier to use than other methods [2].
BCIs can be classified into two groups according to the nature of the input signals.
Endogenous BCIs depend on the user’s control of endogenic electrophysiological
activity, such as amplitude in a specific frequency band of EEG recorded over a
specific cortical area [2]. BCIs based on sensorimotor rhythms or slow cortical
potentials (SCP) are endogenous systems and often require extensive training. Other
systems depend on exogenous electrophysiological activity evoked by specific stimuli
and they don’t require extensive training [2]. BCIs based on P300 potentials or visual
evoked potentials (VEP) are exogenous systems.
The aim of the present pilot study consisted in the development of a BCI
application for disabled people to interact with the devices usually present at home.
pf3
pf4
pf5
pf8

Partial preview of the text

Download Domotic Control System and more Study Guides, Projects, Research Biomedical Engineering in PDF only on Docsity!

J. Cabestany, I. Rojas, and G. Joya (Eds.): IWANN 2011, Part I, LNCS 6691, pp. 345–352, 2011. © Springer-Verlag Berlin Heidelberg 2011

A Domotic Control System Using Brain-Computer

Interface (BCI)

Rebeca Corralejo, Roberto Hornero, and Daniel Álvarez

Grupo de IngenierĂ­a BiomĂ©dica, E.T.S.I. de TelecomunicaciĂłn, Universidad de Valladolid, Paseo BelĂ©n 15, 47011 Valladolid, Spain [email protected], [email protected], [email protected]

Abstract. The aim of this study was to develop a Brain Computer Interface (BCI) application to control domotic devices usually present at home. Electroencephalographic (EEG) activity was recorded from users’ scalp and sensorimotor rhythms were used to control the BCI. Our application uses the BCI2000 general purpose system. We studied four feature extraction algorithms: AR model, Fourier transform, wavelet transform and matched filter. An AR model achieved the best accuracy. Our application allows to control several devices, such as a TV set, a Hi-Fi system, a DVD player and the lights of a room. Five users from a disability reference center in León (Spain) with severe physical and cognitive disabilities took part in the study, achieving accuracies up to 69.9%. Domotic BCI applications could be really useful for disabled people. However, further research is needed.

Keywords: Brain Computer Interface (BCI), electroencephalogram (EEG), feature extraction, feature translation, real-time applications, disabilities.

1 Introduction

A Brain-Computer Interface (BCI) is a communication system that monitors the brain activity and translates specific signal features that reflect the user’s intent into commands that operate a device [1]. The method most commonly used for monitoring brain activity in BCIs is the electroencephalography (EEG). The EEG is a non- invasive method that requires relatively simple and inexpensive equipment and it is easier to use than other methods [2]. BCIs can be classified into two groups according to the nature of the input signals. Endogenous BCIs depend on the user’s control of endogenic electrophysiological activity, such as amplitude in a specific frequency band of EEG recorded over a specific cortical area [2]. BCIs based on sensorimotor rhythms or slow cortical potentials (SCP) are endogenous systems and often require extensive training. Other systems depend on exogenous electrophysiological activity evoked by specific stimuli and they don’t require extensive training [2]. BCIs based on P300 potentials or visual evoked potentials (VEP) are exogenous systems. The aim of the present pilot study consisted in the development of a BCI application for disabled people to interact with the devices usually present at home.

346 R. Corralejo, R. Hornero, and D. Álvarez

The designed BCI application uses the ÎŒ (8-12 Hz) and ÎČ (16-24 Hz) sensorimotor rhythms. The mentioned rhythms present variations in EEG over motor cortex when a self-generated movement is carried out and also when a subject observes the movement or imagines making the same [3]. Usually, to control these BCIs, users have to imagine different motor tasks. In this study, we used a paradigm consisted of two classes: motor imagery of left and right hand. For right hand motor imagery, the ÎŒ rhythm amplitude is attenuated over the left hemisphere. For left hand motor imagery, it is attenuated over the right hemisphere. This attenuation is known as Event Related Desynchronization (ERD) and it is prominent contralateral to the intended movement [4]. After signal acquisition, several signal processing methods are applied to determine the user’s intent. Firstly, feature extraction methods obtain specific signal features. Then, selection methods choose the most significant ones that encode the user’s purpose. Finally, classifiers translate them into device commands. This study analysed four feature extraction algorithms: autoregressive (AR) model, short-term Fourier transform (STFT), continuous wavelet transform (CWT) using complex Morlet wavelets and ÎŒ rhythm-matched filter. Previous studies showed these algorithms could be useful in BCI applications [4], [5], [6]. As classification method we used a linear classifier, described in [7]. This algorithm is included in the BCI general purpose system [7] that we used to develop the domotic application. Our application exploits the user’s ability for moving a cursor in 1D by means of two classes of motor imagery to navigate through a menu that access to several devices. Specifically, the application controls a television set, a DVD player, a mini Hi-Fi system and the lights of a room. Five users from a dependence and disability reference center in LeĂłn (Spain) tested and evaluated our BCI application. These users are people with severe disabilities, so they are potential users of BCI systems. This communication is organized as follows: Section 2 introduces subjects and EEG recording details. In Section 3, the proposed feature extraction algorithms are described. Section 4 details the designed BCI application and in Section 5, results are presented. Finally, in Section 6, our results are discussed and conclusions are drawn.

2 Data Recording and Subjects

We used a g.USBamp biosignal amplifier (g.tec, Austria) with 16 channels to record EEG signals. Eight channels were recorded monopolarly with the left ear serving as reference and the right ear as ground. Signals were sampled at 128 Hz and bandpass- filtered between 2 and 60 Hz. Three main channels were located over the motor cortex (C3, Cz, C4) and the other five ones over the front, temporal and parietal areas (F3, F4, T7, T8, Pz) to make a Laplacian spatial filtering of the main channels. The performance of four feature extraction algorithms was evaluated by a trained user. Signals were recorded from a healthy subject (female, 26 years) during feedback sessions. Every single trial started with a bar at the left or right of the screen, based on the CursorTask block from BCI2000. The task consisted in moving a cursor through motor imagery (left or right hand movements) to get the target showed in the screen. If subject got the target, that trial counted as a hit, otherwise as a miss. The experiment consisted of 10 runs with 20 trials each (100 trials per class) for each feature extraction algorithm. Accuracy was calculated as the percentage of hits to the

348 R. Corralejo, R. Hornero, and D. Álvarez

3.2 Short-Term Fourier Transform (STFT)

The Short-Term Fourier Transform (STFT) is used to determine the sinusoidal frequency and phase content of local sections of a signal as it changes over time:

{ [^ ]} (^ ,^ )^ [ ]^ [^ ]

STFT n X m n n m e j^ n n

≡ ω = ∞^ − −^ ω ∑ = −∞

x x w , (^) (2)

where (^) x [ ] n is the signal of interest (EEG) and (^) w [ ] n a window function (Hamming,

1 s) [5], [10]. Thus, each sample of the STFT covers a spectral width of 1 Hz. Frequency bands power related to the specific ÎŒ and ÎČ rhythms were our features.

3.3 Continuous Wavelet Transform (CWT) Using Complex Morlet Wavelets

This algorithm is based on the winner algorithm from BCI Competition 2003 for Data Set III. It consists in filtering EEG data with complex Morlet wavelets [4]. These specific wavelets take the form of modulated Gauss impulses with a characteristic eigenfrequency ω 0. To localize them in the time and frequency domain, they have to

be scaled (scaling factor s ) and temporally shifted (according to τ ):

(^1) ( 0 ) 1 ( ) 2 4 (^ )^2 (^ ) , ( )

i t^ t s f s f s f t^ e^ e s f

ω^ τ τ τ π

− −^ − − ι =. (^) (3)

We calculated CWT instantaneous amplitude for EEG segments (0.5 s) using two complex Morlet wavelets centered to the specific ÎŒ and ÎČ rhythms of each subject.

3.4 Ό Rhythm-Matched Filter (MF)

This algorithm creates a parametric model for the Ό rhythm that is evident in the scalp recorded EEG of most of healthy adults [6], [11]. Firstly, the fundamental frequency f (^) F of the characteristic Ό rhythm was determined. Then, it was decomposed in terms of a discrete number of phased-coupled sinusoidal components [11]. We calculated the amplitudes and phases of the fundamental peak and the two main harmonics ( A (^) m ,

ϕ m ). The MF was modeled as the sum of the three first harmonics present in the real rhythm. To avoid jitter effect during real-time processing, we used a complex MF: the real part using cosine functions and the complex one using sine functions:

3

1

real ( )^ m cos(^ F m ) m (^) S

nmf MF n A f

π φ =

3

1

imag ( )^ m sin(^ F m ) m (^) S

nmf MF n A f

π φ =

Thus, a template of 0.25 s length were obtained [5]. Incoming EEG data segments were circularly convolved with the template and the maximum was used as feature.

A Domotic Control System Using Brain-Computer Interface (BCI) 349

4 Designed Domotic BCI Application

The proposed BCI application exploits the user’s ability of moving a cursor in 1D by means of two classes of motor imagery, in order to navigate through a menu which allows to control several devices. Fig. 1 shows the designed application. Its interface is divided in two parts. On the left frame there are two bars, a red one on the left and a blue one on the right, and a green circle cursor. The user, by means of motor imagery of right and left hand, moves the cursor horizontally to get the desired bar. The blue bar allows to navigate through the application menu, showed in the right frame, whereas the red one is used to perform the action that is selected in the menu at that moment. As mentioned before, the application menu appears on the right frame. It consists of four buttons that allow to access the submenus to control the TV set, the DVD player, the Hi-Fi system or the lights of the room. When a user accesses to a submenu, several buttons appear showing different actions over a specific device. Fig. 2 shows two examples. Navigation through different menus is done in a circular way turning clockwise. To operate the devices, i.e. to perform the commands, our application uses an infrared (IR) emitter device connected to the PC. The IR emitter has the ability of learning signals from remote controls, so it is possible to replicate and use them to control any IR device.

5 Results

5.1 Feature Extraction Algorithms

A simple 1D movement control application was used to evaluate the accuracy obtained with each feature extraction algorithm. The results are summarized in Table

  1. The best accuracy was achieved by an AR model with the configuration AR1. This algorithm was included as feature extraction algorithm in the domotic application.

Fig. 1. Interface of the designed BCI application for controlling domotic and electronic devices

A Domotic Control System Using Brain-Computer Interface (BCI) 351

Table 2. Accuracy of proposed feature extraction algorithms achieved for a healthy subject

Accuracy (%) Average Maximum Minimum AR1 92.08 100.00 83. AR2 90.18 100.00 72. STFT 83.10 88.89 73. CWT 82.50 94.44 63. MF 81.07 93.75 58.

Table 3. Results achieved for users 1 and 3 using the domotic application: accuracy, percentage of sequences totally completed and the average of necessary steps to complete a sequence regarding to the necessary minimum steps (5 for seq. A, 7 for seq. B and C)

Accuracy (%) Sequences completed (%)

Average steps per completed sequence Sequence A 69.85 47.00 6.00 (5.00) User 1 Sequence B 47.96 26.00 8.29 (7.00) Sequence C 47.93 33.00 9.14 (7.00) Sequence A 47.13 27.00 10.67 (5.00) User 3 Sequence B 66.78 31.00 9.20 (7.00) Sequence C 51.42 0.00 0.00 (7.00)

6 Discussion and Conclusions

The performance of four extraction features algorithms was analyzed [4], [5], [6]. The AR models achieved the highest accuracies. The AR1 configuration with a frequency band width of 3 Hz and centered on the ÎŒ rhythm achieved the highest accuracy: 92.08%. Our results suggest these models could be the most adequate to extract features in real-time BCI systems. Thus, an AR model with the AR1 configuration was used as feature extraction method in the designed BCI application. On the other hand, we developed a real-time BCI application. The main purpose of this application was to control different devices present at home through the EEG signal. Therefore, this application could be really useful for people with severe disabilities that cannot interact easily with their usual environment. However, this research showed that not all the subjects of the study were able to control a cursor in 1D. Additionally, users who were able, they did not achieved a high accuracy with the real application. Probably, it could be due to two reasons: the limited training time and the cognitive problems they present. The study was limited to five weeks and approximately three sessions per week. Probably with more time and an intensive training, users could have increased their accuracy. Our results showed that accuracy from a healthy subject was higher compared to these users’ performance. While a healthy subject was able to control a cursor in 1D with more than 90% of accuracy, these users achieved lower values. It could be due to their cognitive disabilities. They have problems to concentrate in a mental task for several seconds, so they probably did not carry out the motor imagery tasks correctly. Their results improved along with training but they had more difficulties than healthy people or those with only physical

352 R. Corralejo, R. Hornero, and D. Álvarez

disabilities. Further studies should take these limitations into account extending the training period and even designing other kind of BCI systems. Maybe, a P300-based BCI, which does not require extensive training [2], could achieve higher accuracy. In summary, our results suggest AR models are adequate for EEG feature extraction in BCI systems. Furthermore, BCI systems could be very useful to control devices present at home, making interaction with these devices easier for disabled people. However, we found significant differences between people with cognitive problems and without them. It seems that cognitive disabilities are an important limitation to use Ό rhythm-based BCI systems, so longer training periods or other type of BCI systems will be required.

References

  1. Wolpaw, J.R., Birbaumer, N., Heetderks, W.J., McFarland, D.J., Peckham, P.H., Schalk, G., Donchin, E., Quatrano, L.A., Robinson, C.J., Vaughan, T.M.: Brain-Computer Interface Technology: A Review of the First International Meeting. IEEE Trans. Rehab. Eng. 8, 164–173 (2000)
  2. Wolpaw, J.R., Birbaumer, N., McFarland, D.J., Pfurtscheller, G., Vaughan, T.M.: Brain– Computer Interfaces for Communication and Control. Clin. Neurophysiol. 113, 767– (2002)
  3. Pineda, J.A., Allison, B.Z., Vankov, A.: The Effects of Self-Movement, Observation, and Imagination on ÎŒ Rhythms and Readiness Potentials (RP’s): Toward a Brain–Computer Interface (BCI). IEEE Trans. Rehab. Eng. 8(2), 219–222 (2000)
  4. Lemm, S., Schafer, C., Curio, G.: BCI Competition 2003-Data Set III: Probabilistic Modeling of Sensorimotor ÎŒ-Rhythms for Classification of Imaginary Hand Movements. IEEE Trans. Biomed. Eng. 51(6), 1077–1080 (2004)
  5. Corralejo, R., Hornero, R., AbĂĄsolo, D., Temprano, J.: ComparaciĂłn de MĂ©todos de ExtracciĂłn de CaracterĂ­sticas para su AplicaciĂłn a Brain Computer Interface. Actas del XXVI Congreso Anual de la Sociedad Española de IngenierĂ­a BiomĂ©dica, 174–177 (2008)
  6. Krusienski, D.J., Schalk, G., McFarland, D.J., Wolpaw, J.R.: A ÎŒ -Rhythm Matched Filter for Continuous Control of a Brain-Computer Interface. IEEE Trans. Biomed. Eng. 54(2), 273–280 (2007)
  7. Schalk, G., Mellinger, J.: A Practical Guide to Brain-Computer Interfacing with BCI2000. Springer, London (2010)
  8. Dornhege, G., Blankertz, B., Curio, G., MĂŒller, K.R.: Boosting Bit Rates in Noninvasive EEG Single-Trial Classifications by Feature Combination and Multiclass Paradigms. IEEE Trans. Biomed. Eng. 51(6), 993–1002 (2004)
  9. Marple, S.L.: Digital Spectral Analysis with Applications. Prentice Hall, New Jersey (1987)
  10. Portnoff, M.R.: Time-Frequency Representations of Digital Signals and Systems Based on Short-Time Fourier Analysis. IEEE Trans. Acoust. Speech Signal Process. ASSP 28(1), 55–69 (1980)
  11. Pfurtscheller, G., da Silva, F.H.L.: Event-Related EEG/MEG Synchronization and Desynchronization: Basic Principles. Clin. Neurophysiol. 110, 1842–1857 (1999)
  12. Blankertz, B., Dornhege, G., Kunzmann, V., Losch, F., Curio, G.: The Berlin Brain- Computer Interface: Machine Learning-Based Detection of User Specific Brain States. In: Dornhege, G., MillĂĄn, J., Hinterberger, T., McFarland, D.J., MĂŒller, K.R. (eds.) Towards Brain-Computer Interfacing, The MIT Press, Cambridge (2007)