Abstract
BACKGROUND:
Brain computer interface (BCI) technology is a communication and control approach. Up to now many studies have attempted to develop an EEG-based BCI system to improve the quality of life of people with severe disabilities, such as amyotrophic lateral sclerosis (ALS), paralysis, brain stroke and so on. The proposed BCIBSHS could help to provide a new way for supporting life of paralyzed people and elderly people.
OBJECTIVE:
The goal of this paper is to explore how to set up a cost-effective and safe-to-use online BCIBSHS to recognize multi-commands and control smart devices based on SSVEP.
METHODS:
The portable EEG acquisition device (Emotiv EPOC) was used to collect EEG signals. The raw signals were denoised by discrete wavelet transform (DWT) method, and then the canonical correlation analysis (CCA) method was used for feature extraction and classification. Another part is the control of smart home devices. The classification results of SSVEP can be translated into commands to control several devices for the smart home.
RESULTS:
Here, the Power over Ethernet (PoE) technology was utilized to provide electrical energy and communication for those devices. During online experiments, four different control commands have been achieved to control four smart home devices (lamp, web camera, guardianship telephone and intelligent blinds). Experimental results showed that the online BCIBSHS obtained 86.88
CONCLUSION:
The BCI and PoE technology, combined with smart home system, overcoming the shortcomings of traditional systems and achieving home applications management rely on EEG signal. In this paper, we proposed an online steady-state visual evoked potential (SSVEP) based BCI system on controlling several smart home devices.
Keywords
Introduction
Brain computer interface (BCI) technology is a communication and control approach that does not depend on the brain’s normal output channels of peripheral nerves and muscles [1]. Hence, the initial and most important research motivation of BCI is to provide a pathway of communication or control with the outside world for those disabled patients whose brain is not damaged, while central nervous system or motor system is seriously impaired. Moreover, with increasing aged population, a system that can make the home environment more intelligent, assistive and electricity security is also needed for elderly people. Brain activity can be recorded with several noninvasive BCI techniques, such as electroencephalography (EEG), magnetoencephalography (MEG) and functional magnetic resonance imaging (fMRI). Among these, EEG is the most effective manner because of its portability. Up to now many studies have attempted to develop an EEG-based BCI system to improve the quality of life of people with severe disabilities, such as amyotrophic lateral sclerosis (ALS), paralysis, brain stroke and so on [2, 3, 4, 5].
For decades, several EEG-based typical BCI systems have been proposed, including slow cortical potential (SCP) [6], motor imagery (MI) [7], steady-state visual evoked potential (SSVEP) [8], the P300 potential [9] and hybrid BCI [10]. Each type of these BCI systems has its unique characteristic. Among these typical BCI systems, the SSVEP signal that is a repeated response to visual stimulation at frequencies greater than 6 Hz [11]. Besides frequency, the SSVEP signal is also affected by spacing, shape and color of the stimulus [12, 13, 14]. The SSVEP has many advantages such as less training, higher signal-to-noise ratio (SNR) and higher information transfer rates (ITR) [15, 16]. Therefore, an increasing number of international research groups began to engage in this research and achieved remarkable results [8, 11, 17, 18].
Recently, with the advancement in sensor technology and information technology, the idea of the smart home environment is gradually becoming a reality. Many research teams have achieved several works which use BCIs in the smart home system. However, most research groups focus on using BCI in virtual smart home system [19, 20, 21, 22]. In this case, maybe it is difficult to reconstruct in the real environment [23]. Compared with these, a few studies are trying to use BCI in a real smart home [24, 25, 26]. For example, Carabalona et al. used P300 potential to construct a real smart home system [24]. Kosmyna et al. achieved a realistic smart home system with 77% task accuracy [25]. However, in both case, their BCIBSHS were achieved by g.tec cap. Therefore, most users can not benefit from this work due to expensive and bulky EEG acquisition equipment. And it is difficult to control devices with high classification accuracy. Lin et al. set up a smart home system based on brain-computer interface in UPnP Home Networking [26]. Although their BCIBSHS was effective, an EEG electrode-based the international 10–20 EEG system was used to recognize cognitive state. As such, few smart home applications (light) were controlled by monitoring the theta and alpha rhythms.
Power over Ethernet (PoE) is a technology which based on the Cat.5 wiring infrastructure, only using ethernet transmission cable to transmit the network signal and current simultaneously. Compared with standard power supply, this method reduces the onerous process and cost of setting the power cord. Moreover, only need to consider the management of the network cable in the maintenance work without a power cord, power adapter and power socket. In a word, PoE technology, combined with home equipment, can potentially make the home environment more secure and reliable. A typical PoE structure includes a power sourcing equipment (PSE) and a powered device (PD). Cisco proposed the PoE technology and solved the problem of IP telephony power supply at the first time in 1999. The first IEEE 802.3af PoE standard was introduced in 2003 [27]. Wu et al. achieved four-pair architecture with input current balance function for PoE System [28]. Besides, in our previous study, we have achieved intelligent lighting system using PoE technology to control LED [29]. Up to now PoE technology has been successfully used in several applications, such as Voice over Internet Protocol (VoIP), web camera, wireless access points (AP), monitoring system, sales terminal, home automation and other fields, as is shown in Fig. 1 [28].
The goal of this paper is to explore how to set up a cost-effective and safe-to-use online BCIBSHS to recognize multi-commands and control smart devices based on SSVEP. To address these issues, the cost-effective EEG device (Emotiv EPOC) and PoE device were used to control electric home appliances with wireless manner. And the offline results of the Emotiv EPOC was used to select the optimal parameters for the online BCIBSHS. Moreover, the BCIBSHS with PoE technology has the advantages of safety, convenience, low cost, etc. Hence, in this paper, the combination of the BCI technology and PoE technology will provide a new way for supporting daily life of paralyzed people and elderly people in the smart home system.
The structure of the remaining parts of this paper is as follows. The materials and methods are introduced in Section 2. Experimental results and analysis are displayed in Section 3. The discussion and conclusion are summarized in Section 4.
General structure of a typical PoE.
Schematic architecture of the proposed BCIBSHS.
The architecture of BCIBSHS
The BCIBSHS consists of EEG signal acquisition, preprocessing, signal feature extraction, signal classification, command translation, controlled smart home devices and feedback, as is shown in Fig. 2. In SSVEP stimulus paradigm, EEG signal acquisition is performed by selecting locations channels which are used for data recording after ensuring good conductivity in the headset setup status monitoring part of the software. The collected EEG signals are transmitted to the computer through Bluetooth for processing (preprocessing, signal feature extraction and classification). Preprocessing steps are performed, especially for eliminating artifacts and extracting relevant frequencies information. DWT is used to denoise and reconstruct useful information for the next step. In feature extraction and classification, canonical correlation analysis (CCA) is used to find the largest correlation coefficient among many correlation coefficients. Because only the maximum correlation coefficient can best describe the ability of the typical variable correlation. After calculation, the classification results are converted to the corresponding instruction signals. Then the command signal is sent to the PoE device. Finally, PoE device controls smart home devices to perform corresponding tasks, and the results of tasks are fed back to subjects.
Design of the smart home
The smart home consists of four main rooms, including a living room, two bedrooms and a bathroom, as is shown in Fig. 3. The apartment with PoE technology is equipped with several smart home devices to perform some tasks. In BCIBSHS, lamp, guardianship telephone, web camera, and intelligent blinds are selected for elderly people and paralyzed people who cannot live independently and suffer severe motor disabilities can benefit from both BCI and PoE technology. Therefore, The objective of the BCIBSHS is to enhance elderly people and paralyzed people’s self-confidence, increase their ability to live independently and improve their quality of life.
The smart home.
Experimental layout for SSVEP.
Visual stimulation is performed by LCD computer monitor, but it is limited by the monitor 60 Hz refresh rate. Therefore, the choice of stimulus frequencies is very important due to the monitor refresh rate and principle of SSVEP. Four different stimulus frequencies, namely, 6 Hz, 7.5 Hz, 8.57 Hz and 10 Hz are chose to turn on/off lamp, web camera, guardianship telephone and intelligent blinds. Each selected frequency is not harmonic of another chosen frequency. Stimuli is delivered to participants through laptop screen, and the distribution of the four targets stimulus are shown in Fig. 4. There are four white-black stimuli of shape in black board. The flickering frequencies of the squares at the top, bottom, left, and right positions were 6 Hz, 7.5 Hz, 8.57 Hz and 10 Hz, respectively.
For example, in this BCIBSHS, in order to adjust the brightness of the room, paralyzed people and elderly people can turn the lamp on or off, they directly control the current rather than toggling switch status. Guardianship telephone was used to call his assistant or family when they need help such as drinking water, having a rest and eating. Videocorder was used to record video of rooms when they turn on the web camera. In order to avoid the sun, they can turn the intelligent blinds on or off. Moreover, assistant or family can also use the mobile phone to monitor the rooms and control other devices.
According to the SSVEP type, the BCIBSHS combined with four virtual keys was designed. The SSVEP-based EEG signals generated by the four different frequencies, and each frequency corresponds to the unique virtual key. When a virtual key was pressed, a controlled smart home device will be turned on or off, as is shown in Table 1.
The control commands of BCIBSHS
The control commands of BCIBSHS
Eight healthy subjects, including six males and two females. All participants were aged from 21 to 26 years old (average age is 24
EEG recording of the experiment.
The EEG data were collected by Emotiv EPOC, which was a low-cost, portable and wireless headset that consists of 14 channels. The EEG data were internally sampled at a frequency of 2048 Hz, then got down-sampled to 128 Hz sampling frequency in each channel, and send the data via Bluetooth or Wi-Fi. Each electrode connects to the scalp by a felt pad which must be damped with saline solution before positioning on the head. The electrodes were placed at 10–20 system locations, that is, they are AF3, F7, F3, FC5, T7, P7, O1, O2, P8, T8, FC6, F4, F8 and AF4, as well as two reference electrodes located above the subject’s ears (CMS and DRL), as is shown in Fig. 6. After ensuring good conductivity on all the electrodes, all electrodes were used to capture EEG signals. Furthermore, the Emotiv Software Development Kit (SDK) provides a writable marker trace to tag time period of stimulus signal. And the Application Programming Interface (API) can use C++, C#, Java, Matlab to write program [30]. In order to collect the effective EEG signals on online BCIBSHS, Matlab and C code mixed program was used to compile API.
Frequency band range of each level of wavelet decomposition
(a) Emotiv EPOC headset and (b) distribution of electrode position.
In the BCIBSHS, discrete wavelet transform (DWT) and canonical correlation analysis (CCA) method were utilized to process EEG signals. DWT was used to analyze the collected EEG signals and provide information in the time-frequency domain. It has advantage of multi-resolution decomposition [31, 32]. The multi-scale characteristics of wavelet transform can decompose the signal into multiple sub-bands, which can analyze the characteristics of the signal in each sub-band. The sub-bands of the respective components are shown in Table 2. Assuming that
Where
Taking the Mallat algorithm to achieve multilayer signal decomposition, the formula follows that:
Where
CCA is a multivariable statistical method, which is used to analyze the potential correlation between two sets of data [33]. Suppose that two multidimensional random variables
Where the maximum of
The power scalp distribution.
In this paper, the CCA method was used in our BCIBSHS, as is shown in Fig. 7.
Where
The channels selected for subject 4 in the experiment. The selected channels are located in the occipital region according to the power scalp distribution. Where red indicates that the region has larger contribution to the SSVEP signal. On the contrary, blue indicates that the region has smaller contribution to the SSVEP signal.
Time domain of the original signal and reconstructed signal. The first subject was gazing a certain visual stimulus, the collected four seconds of EEG signals were denoised. Discrete wavelet transform with wavelet basis function db4 was utilized to achieve 5-layer decomposition of EEG signals and 
In this online experiment section, we designed an overall evaluation experiment for BCIBSHS. All subject were required to complete 4 tasks, including turning on or off lamp, guardianship telephone, web camera, and intelligent blinds. Each subject performed 5 experiments on each home equipment, and a total of 20 trials. After a set of trials (4 trials), an USE questionnaire were given to each subject to evaluate the performance of the system [34]. Usability was used to assess each of the devices in the BCIBSHS. And the questions were based on a 7-point Likert rating scales which ranging from strongly disagree to strongly agree. Furthermore, objectively, the correct rate and ITR were also considered in this experiment. Therefore, the following points are used to evaluate the performance of the BCIBSHS:
Usability; Correct rate: accuracy of 20 online trails in the BCIBSHS;
ITR: rate of information transfer, It is defined as
where,
There are three important parameters in SSVEP-based system, including channel location, window length
Channel location
EEG signals of all channels of eight subjects were collected in offline experiments. And the channels selected by analyzing the power scalp distribution of each subject. For example, the power scalp distribution of the subject 4 in four frequencies are shown in Fig. 8. We can see from the Fig. 6b and the Fig. 8 that the significant region is located P7, P8, O1 and O2. So locations P7, P8, O1 and O2 were selected to collect EEG signals for online BCIBSHS.
Wavelet denoising analysis
DWT was used to improve performance in BCIBSHS. For example, EEG signal of the subject 1, as is shown in Fig. 9. By utilizing DWT method to reconstruct EEG signal, the drift phenomenon of EEG signal disappears in the time domain.
The relationship between accuracy rate and time window length.
Classification accuracy of eight subjects, with the time window length being 1 s, 2 s, 3 s, 4 s, respectively, as is shown in Fig. 10. The longer the time window is, the higher the classification accuracy of the signal is. When the time was more than 2 s (do not contain 2 s), subjects 1, 2, 4, 6, 8 had a higher accuracy rate in classification, and subjects 3, 5, 7 had classification accuracy of not less than 79%. So, through the analysis of experiment data, 3 s or 4 s (time window length) was used for the online BCIBSHS.
The relationship between average accuracy with
and ITR
The relationship between average accuracy with
Any two of the three variables (
Result of the online BCIBSHS
Result of the online BCIBSHS
Average correct times and SD counted by users gaze visual stimulation of guardianship telephone, lamp, web camera and intelligent blinds, respectively.
When subjects did not gaze any target or only watching the target switch process (no task state), CCA method still outputs result, which is not a control command. Therefore, threshold detection method was used to detect idle state. Moreover, this method makes the online BCIBSHS more practical when subjects take a break or do other things for a short while. In our previous study, we have analyzed the thresholds of different frequencies by Emotiv EPOC headset [10]. Therefore, in this paper, the online BCIBSHS selected 0.22 as CCA threshold.
Average scores and SD counted by subjects about usability on a scale from 1 to 7.
Through the comprehensive analysis among channel location, time window length
Discussion and conclusion
In this paper, this study aims at developing a smart home system based BCI technology and PoE technology. The proposed BCIBSHS could help to provide a new way for supporting life of paralyzed people and elderly people. The results demonstrate that the proposed BCIBSHS could enhance their self-confidence, increase their ability to live independently and improve their quality of life.
This study also demonstrates that effect of BCIBSHS by Emotiv EPOC with wireless manner. This study utilized a relatively simple and evidently practical classification method. By using DWT to reconstruct EEG signal and using CCA with threshold value as the core to classify EEG data. So the BCIBSHS implements 5 kinds of tasks (four control commands and one idle status command) without excluding the noise of the family environment. Eight subjects were recruited to do the experiments to control lamp, web camera, guardianship telephone and intelligent blinds. In offline experiments, we analyzed some important parameters for the online BCIBSHS. This research worked with an average correct rate of 86.88
In most of the previous works [8, 11, 35], their systems have a high ITR. The reasons are as follows: first, compared with NeuroScan, g.tec, the Emotiv EPOC has a lower sampling rate and fewer channels. Second, the experimental SSVEP paradigm uses LCD method to stimulate. Compared with LED-based stimulation method, this SSVEP paradigm may be limited by the monitor 60 Hz refresh rate. But compared with them [8, 11, 35], this paper provided a new way to bring the BCI technology out of lab, and the combination of BCI and PoE technology gives us a new perspective on the smart home system.
Moreover, in recent years, Emotiv EPOC is rapidly evolving in BCI applications, may be due to its convenience, low price, wireless, secondary development. Comparing with the current SSVEP-based BCI system with Emotiv EPOC [36, 37, 38], the proposed BCIBSHS shows higher average correct rate or ITR than others. Moreover, In order to solve a difficult problem [38], we wrote program to build a stable connection between Emotiv EPOC and Matlab in online experiment. Furthermore, compared with these [24, 25, 26], the BCIBSHS is also an innovative application. Not only that, PoE technology has the advantage of safety, low energy consumption, low cost and convenience. The BCI and PoE technology, combined with smart home system, overcoming the shortcomings of traditional systems and achieving home applications management rely on EEG signal. In the future work we may pay more attention to improving BCIBSHS usability.
Footnotes
Acknowledgments
This work was supported by the Young and Middle-Aged Innovation Talents Cultivation Plan of Higher Institutions in Tianjin (grant no. 20130830) and the National Natural Science Foundation of China (grant no. 61502340).
Conflict of interest
The authors declare that there is no conflict of interest regarding the publication of this manuscript.
