Toward Practical P300-based Brain–Computer Interfaces: Asynchrony, Channel Optimization and Assistive Applications
Abstract
Departamento de Teoría de la Señal y Comunicaciones e Ingeniería Telemática
Full text
Doctoral Program of Information and Telecommunication Technologies Doctoral Thesis Toward Practical P300-based Brain–Computer Interfaces: Asynchrony, Channel Optimization and Assistive Applications Thesis presented by D. V´ıctor Mart´ınez-Cagigal to apply for the Ph.D. degree from the University of Valladolid Directed by: Dr. Roberto Hornero S´anchez 2020 Valladolid, Spain
A mi familia,
Defense T´ ıtulo Toward Practical P300-based Brain–Computer Interfaces: Asynchrony, Channel Optimization and Assistive Applications Autor D. V´ıctor Mart´ınez-Cagigal Director Dr. D. Roberto Hornero S´anchez Departamento Teor´ıa de la Se˜nal y Comunicaciones e Ingenier´ıa Telem´atica Tribunal Presidente Dr. D. Jos´e Mar´ıa Azor´ın Poveda Vocal Dr. D. Jorge Leon Morales Quezada Secretario Dr. D. Jes´us Poza Crespo acuerda otorgarle la calificaci´on de En Valladolid, a de del
Escuela T´ecnica Superior de Ingenieros de Telecomunicaci´on Dpto. de Teor´ıa de la Se˜nal y Comunicaciones e Ingenier´ıa Telem´atica Research Stay for the International Mention City: Graz (Austria) Faculty: Graz University of Technology Institution: Institute of Neural Engineering Research group: Laboratory of Brain–Computer Interfaces Dates: 09/09/2019-10/12/2019 Duration: 92 days (3 months) Supervisor: Prof. Dr. Gernot M¨uller-Putz
Acronyms A1 Primary auditory cortex ACO Ant Colony Optimization ADC Analog-to-Digital Converter ALS Amyotrophic Lateral Sclerosis AUC Area Under ROC Curve BCI Brain–Computer Interface BA Bees Algorithm BAS Binary Ant System (B)DE (Binary) Differential Evolution BE Backward Elimination BH Benjamini-Hochberg correction BOLD Blood-Oxygen-Level-Dependent response BP Bereitschaftspotential (B)PSO (Binary) Particle Swarm Optimization CAR Common Average Reference CCA Canonical Correlation Analysis CNS Central Nervous System CNV Contingent Negative Variation CP Cerebral Palsy CS Center Speller paradigm DFGA Dual-Front Sorting Genetic Algorithm EEG Electroencephalography ERD Event-Related Desynchronization ERP Event-Related Potential ERS Event-Related Synchronization FA Firefly Algorithm FDR False Discovery Rate V
VI Acronyms FIR Finite Impulse Response FLD Fisher’s Linear Discriminant FIRDA Frontal Intermittent Rhythmic Delta Activity FRDA Friedreich’s Ataxia fMRI Functional Magnetic Resonance Imaging fNIRS Functional Near-Infrared Spectroscopy FNR False Negative Rate FS Forward Selection FWER Family-Wise Error Rate GA Genetic Algorithm HS Healthy Subjects IIR Infinite Impulse Response ISI Inter-Stimuli Interval JCR Journal Citation Reports LIS Locked-In Syndrome LDA Linear Discriminant Analysis LOO Leave one out M1 Primary Motor Cortex MD Muscular Dystrophy MDS Motor-Disabled Subjects MEG Magnetoencephalography MI Motor Imagery MOBDE Multi-Objective Binary Differential Evolution MOPSO Multi-Objective Particle Swarm Optimization MRCP Movement-Related Cortical Potential MS Multiple Sclerosis MSE Multiscale Entropy NF Neurofeedback NSGA-II Non-Sorting Genetic Algorithm 2 OCM Output Characters per Minute OIRDA Occipital Intermittent Rhythmic Delta Activity PET Positron Emission Tomography PFC Prefrontal Cortex PLS Partial Least Squares PSD Power Spectral Density RCP Row-Col Paradigm ROC Receiving Operating Characteristic
VII RSVP Rapid Serial Visual Presentation S1 Primary Somatosensory Cortex SampEn Sample Entropy SCI Spinal Cord Injury SCP Slow Cortical Potentials SD Stimulus Duration SMR Sensorimotor Rhythms SOA Stimulus Onset Asynchrony SPEA2 Strength Pareto Evolutionary Algorithm 2 SQUID Superconducting Quantum Interference Device SQ-UKF Square-Root Unscented Kalman Filter SSVEP Steady-State Visual Evoked Potential SVM Support Vector Machine SW Step-Wise regression V1 Primary Visual Cortex VEP Visual Evoked Potential
Contents Abstract I Acronyms V 1 Introduction 1 1.1 Compendium of publications: thematic consistency . . . . . . . . . 2 1.2 Context: biomedical engineering, biomedical signal processing and evolutionary computation . . . . . . . . . . . . . . . . . . . . . . . 7 1.3 Thehumanbrain............................ 9 1.3.1 Overview of cerebrum anatomy . . . . . . . . . . . . . . . . 9 1.3.2 Brain functional specialization . . . . . . . . . . . . . . . . 10 1.3.3 Brain activity measurement . . . . . . . . . . . . . . . . . . 12 1.4 Brain–Computer Interfaces . . . . . . . . . . . . . . . . . . . . . . 16 1.4.1 Aclosedloop.......................... 16 1.4.2 EEG-based systems . . . . . . . . . . . . . . . . . . . . . . 18 1.4.3 Control signals . . . . . . . . . . . . . . . . . . . . . . . . . 22 1.4.4 Current limitations . . . . . . . . . . . . . . . . . . . . . . . 30 1.5 Motordisabilities............................ 31 1.6 Stateoftheart............................. 33 1.6.1 Asynchrony........................... 33 1.6.2 Channel selection . . . . . . . . . . . . . . . . . . . . . . . . 34 1.6.3 BCI web browsers . . . . . . . . . . . . . . . . . . . . . . . 35 1.6.4 MobileBCIs .......................... 36 2 Hypothesis and objectives 39 2.1 Hypothesis ............................... 39 2.2 Objectives................................ 41 IX
X Contents 3 Subjects and signals 43 3.1 Subjects................................. 43 3.2 Oddballparadigms........................... 45 3.3 Acquisitionsetup............................ 49 4 Methods 51 4.1 Signal pre-processing . . . . . . . . . . . . . . . . . . . . . . . . . . 51 4.2 Channelselection............................ 52 4.2.1 Dual-Front Sorting Genetic Algorithm . . . . . . . . . . . . 54 4.3 Featureextraction ........................... 58 4.4 Featureselection ............................ 58 4.4.1 Step-Wise regression . . . . . . . . . . . . . . . . . . . . . . 59 4.5 Feature classification . . . . . . . . . . . . . . . . . . . . . . . . . . 59 4.5.1 Linear Discriminant Analysis . . . . . . . . . . . . . . . . . 60 4.6 Asynchrony management . . . . . . . . . . . . . . . . . . . . . . . 61 4.6.1 Thresholding .......................... 61 4.6.2 Multiscale sample entropy . . . . . . . . . . . . . . . . . . . 62 4.7 Performance assessment . . . . . . . . . . . . . . . . . . . . . . . . 64 4.7.1 Cross-validation . . . . . . . . . . . . . . . . . . . . . . . . 64 4.7.2 Speedrates ........................... 65 4.8 Statistical analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 4.8.1 Hypothesis testing . . . . . . . . . . . . . . . . . . . . . . . 65 4.8.2 Multiple testing correction . . . . . . . . . . . . . . . . . . . 66 5 Results 67 5.1 Asynchronous management using thresholding and entropy metrics 67 5.2 Novel meta-heuristics as channel selection methods . . . . . . . . . 71 5.3 An asynchronous assistive application for web browsing . . . . . . 72 5.4 Control of smartphone-based social networks . . . . . . . . . . . . 78 6 Discussion 83 6.1 Assuring the asynchrony of practical systems . . . . . . . . . . . . 84 6.2 A novel nature-inspired algorithm to select relevant channels . . . 87 6.3 A web browsing application for real users . . . . . . . . . . . . . . 92 6.4 Toward smartphone-oriented BCIs . . . . . . . . . . . . . . . . . . 95 6.5 Limitations of the study . . . . . . . . . . . . . . . . . . . . . . . . 98
Contents XI 7 Conclusions 101 7.1 Contributions.............................. 101 7.2 Mainconclusions............................ 102 7.3 Future research lines . . . . . . . . . . . . . . . . . . . . . . . . . . 103 A Papers included in this Doctoral Thesis 105 A.1 Mart´ınez-Cagigal et al. (2019b).................... 105 A.2 Mart´ınez-Cagigal et al. (2020)..................... 117 A.3 Mart´ınez-Cagigal et al. (2017)..................... 138 A.4 Mart´ınez-Cagigal et al. (2019a).................... 150 B Scientific achievements 163 B.1 Publications............................... 163 B.1.1 Papers indexed in the JCR . . . . . . . . . . . . . . . . . . 163 B.1.2 Bookchapters ......................... 164 B.1.3 International conferences . . . . . . . . . . . . . . . . . . . 164 B.1.4 National conferences . . . . . . . . . . . . . . . . . . . . . . 166 B.2 International internship . . . . . . . . . . . . . . . . . . . . . . . . 167 B.3 Awardsandhonors........................... 169 C Resumen en castellano 171 C.1 Introducci´on............................... 171 C.2 Hip´otesis y objetivos . . . . . . . . . . . . . . . . . . . . . . . . . . 174 C.3 Sujetos.................................. 175 C.4 M´etodos................................. 176 C.5 Resultados y discusi´on . . . . . . . . . . . . . . . . . . . . . . . . . 178 C.6 Conclusiones .............................. 181 Bibliography 183 Index 195
List of Figures 1.1 Main contributions of the papers included in the compendium of publications, arranged along the common structure of a BCI system. ASOC: Applied Soft Computing, IEEE TNSRE: IEEE Transactions on Neural Systems and Rehabilitation Engineering, ESWA: Expert Systems With Applications. . . . . . . . . . . . . . . . . . . . . . . 4 1.2 Primary anatomical areas of the human cerebral cortex from above (left) and lateral (right) views. The major four lobes are shaded by different colors: blue, frontal lobe; yellow, parietal lobe; purple, occipital lobe; and green, temporal lobe. Anatomical tags corresponds to: (a) interhemispheric fissure, (b) prefrontal association cortex, (c) precentral gyrus, (d) central sulcus, (e) postcentral gyrus, (f) primary motor cortex, (g) primary somatic sensory cortex, (h) primary visual cortex, (i) preoccipital notch, (j) cerebellum, (k) brainstem, (l) primary auditory cortex, and (m) lateral sulcus. Adapted from Wolpaw and Wolpaw (2012a) and Society for Neuroscience (2017)................................... 10 1.3 Cross section of sensory and motor homunculi over the primary somato sensory cortex (S1, left) and the primary motor cortex (M1, right), respectively. Adapted from Wolpaw and Wolpaw (2012a) and Society for Neuroscience (2017). ................. 12 1.4 Temporal and spatial resolution of different brain activity measurement techniques. Degree of invasiveness (DI) is also represented as a color gradient, according to the brain layers (right). ECoG: electrocorticography, MEG: magnetoencephalography, EEG: electroencephalography, fMRI: functional magnetic resonance imaging, fNIRS: functional near-infrared spectroscopy, PET: positron emission tomography. Adapted from Wolpaw and Wolpaw (2012a). . . 13 XIII
Chapter 1 Introduction The current Doctoral Thesis focuses on contributing the Brain–Computer Interface (BCI) field by designing, developing and testing novel signal processing methods and assistive applications. BCI systems, which allow users to control applications or external devices by processing their own brain signals, could rely on either invasive or non-invasive approaches. Owing to the practicality of the system, this study has been focused on non-invasive BCIs that analyze electroencephalographic (EEG) signals. This research have led to the publication of a total of four articles in journals indexed in the Journal Citation Reports (JCR) from the Web of Science . In particular, up to three papers were published between September 2017 and April 2019. Additionally, a fourth article is currently under review. As a result of the aforementioned scientific productivity, this work is written as a compendium of publications. The thematic consistency of the manuscripts in relation to the Doctoral Thesis is proved in section 1.1. The general context is briefly described in section 1.2, which introduces biomedical engineering, signal processing and evolutionary computation fields. Section 1.3 is devoted to the human brain, where the cerebrum anatomy, its functions, and the measurement of brain activity are discussed. Section 1.4 is focused on providing the basis for understanding BCI systems, including their structure, invasiveness, and the control signals that correlate with the users’ intentions. Current limitations of the BCI systems are detailed as well. The latter, indeed, are the cause motivating the research problem. Due to the ability of BCIs to establish a communication pathway between our brain and the environment, these systems are specially suited to improve the quality of life of the severely disabled. Therefore, motor disabilities of the target users that evaluated 1
2 Chapter 1. Introduction the applications included in the current doctoral thesis are described in section 1.5. Finally, section 1.6 provides a comprehensive state-of-the-art revision of previous approaches. 1.1 Compendium of publications: thematic consistency The idea of establishing a link between our brains and the environment, as well as the possibility of acting through neural signals rather than muscles, have fascinated mankind for a century. The discovering of EEG by Hans Berger in 1929 (Berger,1929), the initial work of Jacques Vidal in 1973 and further progresses in neuroscience made this idea even more plausible (Vidal,1973a). Nowadays, science fiction is becoming reality. For the past 25 years, research groups have made great efforts to decode neural signals and provide different BCI systems to disabled users and general population. Invasive and non-invasive, dependent or independent, exogenous or endogenous, active or passive, synchronous or asynchronous; many types of BCIs have arisen and are being improved by the research community. Nonetheless, most BCI systems still lack the required reliability for emancipating from the laboratories to a practical environment. Hardware limitations, scarce performances, lack of validation or need of supervision are some of the problems that current BCIs should face up to. In this context, the present Doctoral Thesis aims at developing novel signal processing methodologies and assistive applications, both intended to provide a real use of the BCIs by motor-disabled people. Particularly, all the studies that have been carried out in this work deal with P300 evoked potentials, a reliable control signal that provides such performances that P300-based BCIs are the only ones that are currently used by disabled people on a daily basis (Sellers Eric W.,2012). This is the common thread shared by all the papers included in the present compendium of publications. The relationship of the papers with each other and with the aforementioned objective is illustrated in the Figure 1.1, whose main contributions are depicted inside the common structure of a BCI system. According to this non-chronological order, the first two papers were focused on the signal processing level, whereas the last two were aimed at providing assistive applications. The first paper (Mart´ınez-Cagigal et al.,2019b) dealt with the need of supervision of current BCIs. Nowadays, most P300-based BCIs rely on synchronous paradigms, leading to a random selection of commands even when
1.1. Compendium of publications: thematic consistency 3 users are not paying attention to the stimuli. We investigated if sample entropy features are able to track users’ attention in real-time and provide an asynchronous (i.e., self-paced) control of the system. We also developed a wrapper thresholdbased approach, which was then applied in the third (Mart´ınez-Cagigal et al., 2017) and fourth (Mart´ınez-Cagigal et al.,2019a) papers. In the second paper (Mart´ınez-Cagigal et al.,2020), we assessed the ability of three single- and three multi-objective meta-heuristics to select a customized channel set for each user. Then, we developed and proposed a novel method to overcome their limitations, and we established a set of guidelines for adapting any meta-heuristic algorithm to the P300-BCI channel selection problem. The last two papers were intended to develop practical assistive BCIs for bridging the accessibility gap in new technologies for the severely disabled. In particular, the third paper (Mart´ınez-Cagigal et al., 2017) was aimed at providing an asynchronous P300-based BCI web browser. For the sake of viability, the system was tested with sixteen multiple sclerosis patients and five healthy volunteers, reaching average accuracies of 84.14% and 95.75%, respectively. Lastly, the fourth paper (Mart´ınez-Cagigal et al.,2019a) was also intended to provide a P300-based assistive application for motor-disabled people. This time the paper presented an asynchronous BCI for controlling smartphonebased social networks. The system was tested with eighteen motor-disabled and ten healthy subjects, achieving mean accuracies of 80.6% and 92.3%, respectively. Due to the structure of the present Doctoral Thesis, organized as a compendium of publications, consulting each paper separately is essential for a comprehensive understanding of this document as a whole. Therefore, Appendix A includes the aforementioned manuscripts. Titles, authors, and abstracts of each one, as well as the journals in which they were published are shown below: Asynchronous control of P300-based Brain–Computer Interfaces using sample entropy (Mart´ınez-Cagigal et al.,2019b). V´ıctor Mart´ınez-Cagigal, Eduardo Santamar´ıa-V´azquez and Roberto Hornero. Entropy, vol. 21(3), p. 230, 2019. Impact factor in 2019: 2.494, Q2 in “physics, multidisciplinary” (JCR-WOS). Abstract: Brain-computer interfaces (BCI) have been traditionally worked using synchronous paradigms. In recent years, many efforts have been made to reach an asynchronous management, providing users with the ability to decide when a command should be selected. However, to the best of our knowledge, entropy metrics have not yet been explored. The present study follows a twofold purpose:
4 Chapter 1. Introduction Figure 1.1: Main contributions of the papers included in the compendium of publications, arranged along the common structure of a BCI system. ASOC: Applied Soft Computing, IEEE TNSRE: IEEE Transactions on Neural Systems and Rehabilitation Engineering, ESWA: Expert Systems With Applications. (i) to characterize both control and non-control states by examining the regularity of the EEG signals; and (ii) to assess the efficacy of a scaled version of the sample entropy algorithm to provide an asynchronous control for BCI systems. Ten healthy subjects participated in the study, who were asked to spell words through a visual oddball-based paradigm, attending (i.e., control) and ignoring (i.e., non-control) the stimuli. An optimization stage was performed for determining a common combination of hyperparameters for all subjects. Afterwards, these values were used to discern between both states using a linear classifier. Results show that control signals are more complex and irregular than non-control ones, reaching an average accuracy of 94.40% in classification. In conclusion, the present study demonstrates that the proposed framework is useful to monitor the attention of the user and grant the asynchrony of the BCI system.
1.1. Compendium of publications: thematic consistency 5 Brain–Computer Interface channel selection optimization using metaheuristics and evolutionary algorithms (Mart´ınez-Cagigal et al.,2020). V´ıctor Mart´ınez-Cagigal, Eduardo Santamar´ıa-V´azquez and Roberto Hornero. Applied Soft Computing, Under Review (R2), 2020. Impact factor in 2019 (last year available): 5.472, D1 (Q1) in “computer science, interdisciplinary applications”, and Q1 in “computer science, artificial intelligence” (JCR-WOS). Many brain–computer interface (BCI) studies overlook the channel optimization procedure due to its inherent complexity. However, a suitable channel selection procedure increases the performance and users’ comfort while reducing the cost of the system. Evolutionary meta-heuristics, which have gained importance due to their excellent performances in solving complex problems, have not been fully exploited yet in this context. The purpose of the study is two-fold: (1) to propose a novel algorithm to find an optimal channel set for each user and compare its usefulness with other existing meta-heuristics; and (2) to establish guidelines for adapting these optimization strategies to this framework. A total of 3 single-objective (GA, BDE, BPSO) and 3 multi-objective (NSGA-II, BMOPSO, SPEA2) existing algorithms have been adapted and tested with 3 public databases: ‘BCI competition III–dataset II’, ‘Center Speller’ and ‘RSVP Speller’. Dual-Front Sorting Algorithm (DFGA), a novel multi-objective discrete method especially adapted to the BCI framework, is proposed as well. Results show that all the applied meta-heuristics reached accuracies that significantly outperformed the entire set and the common 8-channel set of P300-based BCIs. DFGA showed a significant improvement of accuracy of 3.9% over the 8-channel set using also 8 channels; and obtained similar accuracies than it using a mean of only 4.66 channels. Binary-based algorithms stood out because of their faster convergence, especially the DFGA. Topographic results showed that optimal sets differed among users, which reinforces the need to customize a channel set for each of them. The proposed method computes an optimal subset for each number of channels, allowing the user to select the most suitable set for further BCI sessions. Brain–Computer Interface web browser for severely disabled people (Mart´ınez-Cagigal et al.,2017). V´ıctor Mart´ınez-Cagigal, Javier Gomez-Pilar, Daniel ´ Alvarez, and Roberto Hornero. IEEE Transactions on Neural Systems and Rehabilitation Engineer-
6 Chapter 1. Introduction ing, vol. 25(8), pp. 1332–1342, 2017. Impact factor in 2017: 3.972, D1 (Q1) in “rehabilitation”, and Q1 in “engineering, biomedical” (JCR-WOS). Abstract: This paper presents an electroencephalographic (EEG) P300-based brain-computer interface (BCI) Internet browser. The system uses the“odd-ball” row-col paradigm for generating the P300 evoked potentials on the scalp of the user, which are immediately processed and translated into web browser commands. There were previous approaches for controlling a BCI web browser. However, to the best of our knowledge, none of them was focused on an assistive context, failing to test their applications with a suitable number of end users. In addition, all of them were synchronous applications, where it was necessary to introduce a “read-mode” command in order to avoid a continuous command selection. Thus, the aim of this study is twofold: 1) to test our web browser with a population of multiple sclerosis (MS) patients in order to assess the usefulness of our proposal to meet their daily communication needs; and 2) to overcome the aforementioned limitation by adding a threshold that discerns between control and non-control states, allowing the user to calmly read the web page without undesirable selections. The browser was tested with sixteen MS patients and five healthy volunteers. Both quantitative and qualitative metrics were obtained. MS participants reached an average accuracy of 84.14%, whereas 95.75% was achieved by control subjects. Results show that MS patients can successfully control the BCI web browser, improving their personal autonomy. Towards an accessible use of smartphone-based social networks through Brain–Computer Interfaces (Mart´ınez-Cagigal et al.,2019a). V´ıctor Mart´ınez-Cagigal, Eduardo Santamar´ıa-V´azquez, Javier Gomez-Pilar, and Roberto Hornero. Expert Systems with Applications, vol. 120, pp. 155-166, 2019. Impact factor in 2019: 5.452, D1 (Q1) in “operations research & management science”, Q1 in “computer science, artificial intelligence”, and Q1 in “engineering, electrical & electronic” (JCR-WOS). Abstract: This study presents an asynchronous P300-based Brain–Computer Interface (BCI) system for controlling social networking features of a smartphone. There are very few BCI studies based on these mobile devices and, to the best of our knowledge, none of them supports networking applications or are focused on an assistive context, failing to test their systems with motor-disabled users. Therefore, the aim of the present study is twofold: (i) to design and develop an asynchronous P300-based BCI system that allows users to control Twitter and
1.2. Context: biomedical engineering, biomedical signal processing and evolutionary computation 7 Telegram in an Android device; and (ii) to test the usefulness of the developed system with a motor-disabled population in order to meet their daily communication needs. Row-col paradigm (RCP) is used in order to elicitate the P300 potentials in the scalp of the user, which are immediately processed for decoding the user’s intentions. The expert system integrates a decision-making stage that analyzes the attention of the user in real-time, providing a comprehensive and asynchronous control. These intentions are then translated into application commands and sent via Bluetooth to the mobile device, which interprets them and provides visual feedback to the user. During the assessment, both qualitative and quantitative metrics were obtained, and a comparison among other state-of-the-art studies was performed as well. The system was tested with 10 healthy control subjects and 18 motor-disabled subjects, reaching average online accuracies of 92.3% and 80.6%, respectively. Results suggest that the system allows users to successfully control two socializing features of a smartphone, bridging the accessibility gap in these trending devices. Our proposal could become a useful tool within households, rehabilitation centers or even companies, opening up new ways to support the integration of motor-disabled people, and making an impact in their quality of life by improving personal autonomy and self-dependence. 1.2 Context: biomedical engineering, biomedical signal processing and evolutionary computation Biomedical engineering is the branch of science that applies engineering principles to understand, control and modify biologic systems (Bronzino and Peterson,2014). It covers a wide range of clinical, industrial and academic activities, including both experimental and theoretical research. One of the greatest benefits of biomedical engineering is the identification and resolution of issues and needs of our healthcare system using technology and systems methodology (Bronzino and Peterson,2014). However, due to its interdisciplinary character, it is unlikely that a single person could be expertized in the entire field, being essential the interplay among experts of more specific scopes. For instance, specific fields such as neuroengineering, rehabilitation engineering and human performance engineering are also closely related to the design and development of BCI systems. Physiological signal processing has become the key to understand biological systems from an engineering perspective. The different physiologic systems in hu-
8 Chapter 1. Introduction man body (e.g., cardiovascular, endocrine, vision, auditory, gastrointestinal, respiratory, nervous) produce a great number of biomedical signals that reflect their behavior over time (Bronzino and Peterson,2014). By analyzing these signals, the biomedical engineer may monitor the state of the user, detect meaningful changes in these systems or identify pathological conditions. Unfortunately, this analysis cannot usually be performed at first sight, but a processing step is essential to extract and interpret hidden information. Understanding signals as functions that convey information about the behavior or attributes of some phenomena (Priemer, 1990), signal processing aims at extracting features that characterize them by applying mathematical and information theory methodologies (S¨ornmo and Laguna, 2005). Evolutionary computation, indeed, covers a great number of methodologies that have been successfully applied to such purposes. The term, which has become increasingly important in the last decades, represents a family of optimization algorithms inspired by biological evolution (Eiben and Smith,2003). All of them are based on the reproduction, variation, competition and natural selection of individuals in a population, which share a common objective. In many of these algorithms, a collective and self-organized behavior emerges from individuals that a priori are only able to follow simple rules, known as swarm intelligence (Yang,2014). In other words, stigmergy arises while the population converges into a common objective, usually referred to as meta-heuristic. While heuristics rely on problem-specific strategies, meta-heuristics generalize them to problemindependent frameworks (Bozorg-Haddad et al.,2017;Yang,2014). As nature does, the power of meta-heuristics rely on the most basic problem solving technique – that of trial-and-error (Eiben and Smith,2003). This apparent simplicity, however, does not hinder their efficacy in solving complex optimization problems, which has led to their successful application in industrial fields, such as computer vision, soft computing, signal and image processing, scheduling, and aerospace engineering, among others (Coello and Lamont,2004). In this Doctoral Thesis, the aforementioned fields are applied in physiological signals derived from the brain. An overview of the cerebrum anatomy is thus essential to understand the different brain activity measurements, which are further used to implement BCI systems. A detailed description of this topic is introduced in the next section.
1.3. The human brain 9 1.3 The human brain The human brain is the central organ of the nervous system, responsible of processing and coordinating the information received by the senses, making decisions and controlling most of the activities of the body (Standring,2016). Together with the spinal cord, they constitute the central nervous system (CNS). In a nutshell, the main function of the CNS is to respond to events that occur in either the external world or the body by eliciting neuromuscular or hormonal outputs that serve the needs of our organism (Wolpaw and Wolpaw,2012b). BCI systems essentially employ these outputs to replace or improve CNS functions by generating artificial signals. Therefore, human brain anatomy, functions and the measurement of its activity are briefly introduced below. 1.3.1 Overview of cerebrum anatomy Brain (i.e., encephalon) is composed by the cerebrum, diencephalon, brainstem and cerebellum. The former is in turn encompassed by the cerebral cortex and the subcortical areas, which include the hippocampus, basal ganglia and amygdala (Standring,2016). Although subcortical structures, as well as the diencephalon, brainstem and cerebellum, make important contributions to the CNS, lack of note to practical BCIs due to their unapproachable locations by non-invasive techniques (Miller and Hatsopoulos,2012). The cerebral cortex, by contrast, is relatively easy to access experimentally, and it has become the primary focus in BCI research. The cortex is the brain’s outer layer of neural tissue, divided by the interhemispheric fissure into two paired hemispheres, which are in turn connected beneath the cortex by the corpus callosum (Standring,2016). It is colloquially known as gray matter because of the color that exhibits its large number of neurons, whereas the white matter refers to the many nerve fibers that interconnect the different cortical areas and connect them to subcortical structures (Miller and Hatsopoulos, 2012). The cerebral cortex of higher mammals has seemingly evolved from a relatively smooth sheet to a highly convoluted surface, composed by a set of sulci (i.e., ridges) and gyri (i.e., grooves). As shown in the Figure 1.2, these convolutions divide the cortex into four major anatomical lobes: frontal, parietal, occipital and temporal (Miller and Hatsopoulos,2012). Even though this division have traditionally relied on an anatomical rationale, it has been demonstrated that lobes are specialized in carrying out the bulk of certain basic functions, which will be discussed afterwards.
16 Chapter 1. Introduction 1.4 Brain–Computer Interfaces Since the invention of the EEG by the professor Hans Berger in 1929, scientists have speculated about the possibility of moving or communicating through brain signals rather than muscles (Berger,1929). Nevertheless, it took until 1973 to publish the first BCI in the literature. The system, developed by the professor Jacques Vidal, was able to detect the direction of the eye gaze by processing visual evoked potentials with the objective of controlling a two-dimensional cursor (Vidal, 1973b,1977). Even though there is still a lot to be done, BCIs have drastically evolved since then to the point of being successfully applied with motor-disabled people to improve their quality of life; or even of becoming commercially interesting in many non-clinical applications. 1.4.1 A closed loop BCIs provide a communication pathway between the brain and the environment, making it possible to control external devices or applications by using the user’s brain activity. More specifically, Wolpaw and Wolpaw (2012a) define this emerging technology as: “(A BCI is) a system that measures CNS activity and converts it into artificial output that replaces, restores, enhances, supplements, or improves natural CNS output and thereby changes the ongoing interactions between the CNS and its external or internal environment.” This definition not only describes what a BCI is, but also the five most straightforward applications. In practice, BCIs might: (1) replace natural outputs that have been lost due to injuries or diseases (e.g., speech synthesizer for people that cannot longer speak); (2) restore weak responses (e.g., muscle stimulation via implanted electrodes for spinal cord injuries); (3) enhance CNS outputs (e.g., sound alert for warning against somnolence when driving); (4) supplement neural outputs (e.g., control of an extra robotic hand); and (5) improve CNS responses (e.g., rehabilitation of muscles via sensorimotor brain signals in stroke patients) (Brunner et al.,2015;Wolpaw and Wolpaw,2012a). Independently of their final purpose, BCI systems share a closed loop structure. The three main stages that compose them, depicted in the Figure 1.5, are detailed below: 1)Signal acquisition. The first stage involves the recording of brain activity. As discussed in section 1.3.3, there are several methods that monitor electrical, magnetical or metabolic activity from the brain at different levels of
1.4. Brain–Computer Interfaces 17 Figure 1.5: Classical structure of a BCI system. Firstly, user’s brain activity is acquired using EEG electrodes. Then, user’s intentions are decoded by the signal processing stage, which involves feature extraction, selection and classification steps. Finally, the decoded intentions (i.e., commands), are sent to the final application, which provides feedback to the user. As shown, applications are intended to replace, restore, enhance, supplement and/or improve the natural nervous outputs of the user. invasiveness. Owing to the practicality of the system, most BCI studies in the literature employ the EEG because of its non-invasiveness, low-cost and ease of use. 2)Signal processing. Users’ intentions are not directly reflected in their brain signals. The second stage is thus intended to process the acquired signals in order to detect measurable changes that are correlated with the users’ intentions. Signal processing is in turn composed by feature (1) extraction, (2) selection, and (3) classification stages. The former aims to extract several features somewhat correlated with the intentions by applying signal processing methodologies. Selection algorithms are then applied to select the most relevant features for preventing the curse of dimensionality
18 Chapter 1. Introduction (Blankertz et al.,2011). Finally, feature classification makes use of machine learning algorithms to identify the intentions of the user and convert them into application commands. 3)Application. Although signal acquisition and processing stages are usually shared in BCI systems, the third stage depends utterly on the study. The application is intended to receive and interpret the commands for providing a real-time feedback to the user. This feedback is essential to close the loop, allowing users to react by selecting new commands or modulating their own brain activity. 1.4.2 EEG-based systems From a practical point of view, BCIs for general population should ideally be non-invasive, portable, cheap, reliable, easy to setup, comfortable, and robust against different environments and external artifacts. Attending to these aspects, techniques that are invasive, such as microarrays, ECoG and PET; cumbersome or expensive, such as MEG, fMRI and fNRIS; are often delegated to the research field. Therefore, EEG-based BCIs have been prioritized in the present Doctoral Thesis, because of their non-invasiveness, low-cost and ease of use. Electroencephalogram is a non-invasive monitoring technique that records electrical activity from the brain by placing a set of electrodes over the user’s scalp. Each electrode reflects a space-averaged activity of 100 million to a billion of neurons, whose coordinated firing is strong enough to be recorded from outside the brain (Nunez et al.,1997;Wolpaw and Wolpaw,2012a). A typical EEG recording involves the use of, at least, three electrodes (ground, reference and channel), a differential amplifier, hardware filtering, an operational amplifier and an analog- to-digital converter (ADC). The ground electrode is connected to the amplifier ground, which is isolated from the power supply, preventing amplifier drifts and favoring the common-mode rejection (Srinivasan,2012). Note that EEG recordings are bipolar, and thus they measure voltage differences between a channel and a reference. The reference electrode should be ideally located far enough from brain sources, which is usually placed at the ear, mastoid or neck. Electrodes are directly connected to a differential amplifier, intended to amplify the difference between each channel and the reference, and to suppress the common voltage between them (i.e., common-mode). Remaining common voltages are due to unequal impedances between electrodes, which are lessened by applying a conductive gel between the electrodes and the scalp (Ferree et al.,2001). Then, hardware filters
1.4. Brain–Computer Interfaces 19 Figure 1.6: Schematic views of the standard International System 10–10 montage for EEG recordings: (A) lateral, (B) top, and (C) scalp projection. In (A) and (B), gray electrodes are not labeled for clarification purposes. This standard uses proportional distances of 10% between the nasion and the inion for locating the landmarks. typically remove frequencies below 0.5 Hz and over 200 Hz, although it depends on the implementation. Signals are finally amplified about 2 ·104times, sampled and digitized. Channel positions are not arbitrary, but are specified in different standards, such as International Systems 10–20, 10–10 or 10–5 (Srinivasan,2012). In the present Doctoral Thesis, the standard 10–10 is applied, which establishes landmarks following proportional distances of 10% between the nasion and the inion (Chatrian et al.,1985), as depicted in the Figure 1.6. The high sampling rate of the ADC (commonly, fs≥250 Hz) guarantees a suitable temporal resolution (i.e., 1–15 ms), good enough to capture electrical aftermaths of neurological processes in real time. However, the spatial resolution of the EEG is limited due to the distance between cortical sources and the scalp. As shown in the Figure 1.7, the cortical sources reflected by the EEG are caused by large assemblies of pyramidal neurons that are arranged perpendicularly to the cortex’s surface (Nunez et al.,1997). From a macroscopic point of view, each source may be simplified as a dipole, making EEG more sensitive to correlated dipoles on gyri than on sulci. In fact, sulci folds provoke the cancellation of their electrical sources, which cannot be recorded by EEG channels (Srinivasan,2012). Moreover, the individual contribution of a single source is hindered by the set of tissues that must go through. This tough journey is characterized by two phenomena: (1) source effect, and (2) volume conduction. The former involves the attenuation, distortion and noise contamination of a source when it passes through the cortex, meninges and the skull (Wang,2010). Volume conduction is concerned with the spread of electrical activity when it encounters a different surface, such as the scalp
20 Chapter 1. Introduction Figure 1.7: Anatomical illustration of cortical sources perceived by the EEG. Pyramidal cells are depicted as dipole layers that are perpendicular to the cortical sheet. EEG is more sensitive to correlated dipoles in gyri perpendicular to the electrode (e.g., G–H); less sensitive to correlated dipoles that are not completely perpendicular (e.g., D–E); and insensitive for such dipoles that cancellate themselves, such as those found in sulci (e.g., B–C–D, E–F–G, H–I–J, K–L–M). Source effect and volume conduction phenomena are also depicted. (Nunez et al.,1997). Even though the laws that govern the volume conduction effect are well-known, their application to EEG is extremely complex because of the time dependence (Nunez,2012). It is necessary to take into consideration that both effects are inherent to EEG recordings. The attenuation and distortion that neural sources suffer when traveling from the cortex to the scalp makes EEG sensitive only to the coordinated activity of billions of neurons at the same time. For this reason, EEG is often interpreted as a rhythmic activity that reflects neural oscillations (Cohen,2014). Although the frequency spectrum is not limited, the oscillations that are thought to be associated with cognitive processes are comprised in frequencies between 2–150 Hz (Cohen, 2014). As shown in the Figure 1.8, EEG signals may be further decomposed into five main frequency rhythms or bands: 1)Delta (δ, 1–4 Hz). The slowest frequency band, characterized by highamplitude waves, prevails frontally in adults in deep sleep. It is also seen in awake babies, but spatially located at occipital electrodes. An excessive and generalized delta activity is abnormal, commonly associated with subcortical,
1.4. Brain–Computer Interfaces 21 Figure 1.8: Neural oscillations of electroencephalographic (EEG) signals of a healthy awake subject. (A) EEG segment of 5 seconds from channel Pz; (B) power spectral density (PSD) of the EEG signal; (C) decomposition of the EEG segment in the five main bands: δ(1–4 Hz), θ(4–8 Hz), α(8–13 Hz), β(13–30), and γ(30–100 Hz). deep midline or diffuse lesions, as well as with metabolic encephalopathy hydrocephalus (Tatum IV,2014). 2)Theta (θ, 4–8 Hz). Predominant in frontal or frontocentral regions, theta activity is common in young adults. These waves are commonly enhanced by drowsiness or hyperventilation; and are associated with meditative, emotional and creative states (Tatum IV,2014). Intermittent bursts of generalized theta activity are often abnormal, which could indicate mild diffuse encephalopathy or hydrocephalus (Tatum IV,2014). 3)Alpha (α, 8–13 Hz). Also known as the posterior basic rhythm, the alpha band was the first reported rhythmic activity by Hans Berger (Berger,1929). These waves are most prominent in bilateral posterior head regions during relaxed wakefulness. For most adults, alpha rhythms increase their amplitude immediately after eye closing, and attenuate in eye opening or mental exertion. Unilateral failure may reflect an ipsilateral abnormality (Tatum IV,2014). Furthermore, alpha band is also referred as mu rhythm (µ, 8– 13 Hz) when its topography is mainly located over the sensorimotor cortex (i.e., S1 and M1 regions). The mu rhythm is a decrease of contralateral alpha activity associated with limb movements, or even the imagination of these movements (Reilly,2013;Wolpaw et al.,2002). It may be asymmetrical or only seen at one side, which do not necessarily disclose a brain lesion. By contrast, abnormal behavior is reflected if mu rhythm is persistent or not
22 Chapter 1. Introduction reactive to motor execution (Tatum IV,2014). 4)Beta (β, 13–30 Hz). Frontal low-amplitude beta rhythms are closely linked to anxiety, active concentration, drowsiness or light sleep. An excessive activation in this band is often associated with the consumption of benzodiazepines, barbiturates and chloral hydrates; as well as with pathologies such as the Dup15 syndrome (Tatum IV,2014). 5)Gamma (γ, 30–100 Hz). Less studied, gamma rhythms are thought to be related with high cognitive processing. These waves arise during cross-modal sensory processing (perception that involves two or more senses at the same time) and short-term memory matching (Kisley and Cornwell,2006). Recent studies also associate gamma activity with abrupt interactions between excitatory and inhibitory neurotransmitter concentrations (Fuchs et al.,2007). 1.4.3 Control signals The most important role of a BCI system is to accurately detect the intentions of the user in real-time, which is not a straightforward process. As aforementioned, complex cognitive processes such as thinking or decision making involve the interaction between different parts of the brain (section 1.3.2). Furthermore, the spatial resolution of EEG and its inability to record neither non-perpendicular pyramidal neurons or deep activity would hinder the focusing on certain brain areas (section 1.4.2). Under this rationale, users’ intentions are not directly reflected on their raw EEG signals, making paradigms and signal processing steps essential to identify and convert them into application commands. Actually, EEG-based BCI systems rely on the processing of measurable changes related to cognitive tasks, known as control signals. Control signals may be divided in function of the required time to master them. Exogenous signals rely on processing natural responses of our brains to external stimuli; thus, do not require any training, but a short calibration (Kleber and Birbaumer,2005;Nicolas-Alonso and Gomez-Gil,2012). By contrast, endogenous signals are based on users’ ability to self-regulate their brain activity through neurofeedback (NF) training (Nicolas-Alonso and Gomez-Gil,2012). Based on operant conditioning, NF involves a real-time presentation of certain EEG parameters to the user, together with positive reinforcement for favoring the learning of the desired regulation (Kleber and Birbaumer,2005). In practice, users eventually find their own strategies to self-regulate their brain rhythms in order to complete a
1.4. Brain–Computer Interfaces 23 certain task or, in this case, to generate measurable changes in their EEG signals. Unfortunately, the control of these endogenous signals is time-consuming, lasting from hours to weeks, depending on the user (Nicolas-Alonso and Gomez-Gil, 2012). Notwithstanding the clear distinction between both types of control signals in function of the training time, this taxonomy may be confusing because there are control signals that encompass both exogenous and endogenous components (Donchin et al.,1978). Slow cortical potentials Slow cortical potentials (SCP) are a family of slow endogenous voltage shifts that are time-locked and phase-locked to certain sensorimotor activities (i.e., occur at specific times before, during and after the events) (Allison Brendan Z.,2012). These events are triggered by executing or imaging movements, or by achieving cortical activation through cognitive tasks (e.g., mental arithmetic, concentration) (Allison Brendan Z.,2012;Nicolas-Alonso and Gomez-Gil,2012;Wolpaw et al., 2002). SCPs are characterized by a slow negative wave, which starts 1.5−2 s prior to the movement onset and reaches its peak negativity at the onset; followed by a positive rebound that usually lasts 1−1.5 s (Guger et al.,2014). Their characteristic slowness makes them appear in low delta bands (<1 Hz). In the literature, SCPs are often referred as movement-related cortical potentials (MRCP), since they are thought to reflect neural activation in preparation for action (Allison Brendan Z.,2012;Guger et al.,2014;Jahanshahi and Hallett,2003). MRCP (i.e., SCP) waveforms differ depending on the NF paradigm and their source localization across the cortical surface. Notwithstanding the numerous components that make the MRCPs up, whose nomenclature and taxonomy vary among authors (Allison Brendan Z.,2012;Farina et al.,2013;Jahanshahi and Hallett,2003), recent BCI studies distinguish between the bereitschaftspotential (BP) and the contingent negative variation (CNV) (Guger et al.,2014). Both are subcomponents of the MRCPs, but generated using different NF paradigms: self-paced (i.e., asynchronous) for BP; and cue-based (i.e., synchronous) for CNV. The BP, also referred as readiness potential (RP), consists of a negative voltage deflection that usually begins 0.5−1.5 s before a volitional movement (Jahanshahi and Hallett,2003). Although it was originally believed that BP sources lain in subcortical structures, such as basal ganglia and thalamus, more recent studies suggest that sensorimotor areas (M1 and S1) are probably generators of BPs (Ikeda et al.,1992;Toma et al.,2002). CNVs (or anticipation-related potentials) , by contrast, are produced when the user anticipates motor or cognitive tasks (Guger
24 Chapter 1. Introduction Figure 1.9: Grand averaged MRCPs of 15 subjects performing motor movement tasks with their elbow and wrist. Shaded areas represent the 95% confidence interval across trials. (A) Motor execution response over Cz. (B) Motor imagery response over FCz. MRCPs were computed using a public EEG dataset of upper limb movements (Ofner et al.,2017). et al.,2014). These waves are negative EEG drifts elicited 0.2−0.5 after displaying a cue that warns an imperative stimulus will occur several seconds later. Since a CNV reflects preparation for response, it is highly affected by motivational and task-specific aspects. Besides being distributed over the regions that are directly involved in the motor action, CNVs are mainly generated in frontal areas, such as the PFC (Allison Brendan Z.,2012;Lu et al.,2012). Regardless of their main subcomponent, a successful elicitation involves previous training, which usually requires repeated sessions over weeks or months. Moreover, SCPs only offer dichotomous decisions: cortical inhibition or activation. SCP-based BCIs typically dissociate the problem-specific set of commands in a tree-based selection framework, allowing users to select any command by sequentially performing binary selections. This scheme ends up hindering the speed and ease of use of the final application, reaching low transmission rates and making the BCI prone to errors (Allison Brendan Z.,2012;Nicolas-Alonso and Gomez-Gil, 2012). For these reasons, SCPs in BCI systems have been gently relegated and substituted by more reliable control signals. Further SCP applications might be focused on supplementing hybrid BCIs with a complementary measure to anticipate users’ movements or to reach an asynchronous control, enhancing the restoring of muscle functions for rehabilitation purposes, or performing basic research or neuromarketing, among others (Allison Brendan Z.,2012).
1.4. Brain–Computer Interfaces 25 Sensorimotor rhythms Sensorimotor rhythms (SMR) are oscillations in mu (8–13 Hz), beta (18–30 Hz), and gamma (30–100 Hz) bands recorded over the sensorimotor cortex (i.e., S1 and M1 areas). SMRs are modulated by endogenous motor activity, leading to EEG variations that are time-locked to the event, but not phase-locked (Pfurtscheller and Lopes da Silva,1999). In other words, the power of SMRs may vary in association with actual or imagined sensorimotor events, experimenting either a (1) decrease, known as event-related desynchronization (ERD); or an (2) increase, known as event-related synchronization (ERS) (Pfurtscheller and Lopes da Silva, 1999;Pfurtscheller and McFarland,2012). In particular, mu band SMRs exhibit two different behaviors. For lower frequencies (8-10 Hz), ERDs occur for any kind of motor event across the entire somatosensory region, which suggests a reflection of motor preparation or attentional processes. On the other hand, ERDs produced in higher mu frequencies (10-13 Hz) are topographically and functionally restricted over certain task-specific areas (Pfurtscheller and McFarland,2012). Note that the cortical representation is contralateral to the movement. These localized mu ERDs are usually accompanied by simultaneous ERSs in neighbor cortical areas, reflecting a phenomenon known as focal-ERD/surround-ERS. Is it though that this effect may depict a mechanism that joins efforts on an specific sensorimotor subsystem by inhibiting other non-related cortical areas (Pfurtscheller and McFarland,2012). Therefore, ERD/ERS variations reflect local interactions between neurons, allowing accentuations/inhibitions of certain oscillations (Pfurtscheller and Lopes da Silva,1999). Beta SMRs also exhibit ERDs in response to motor events or somatosensory stimulation, but usually followed by a short ERS after movement, known as beta rebound. Owing to the similarity between ERD/ERS variations caused by actual and imagined motor events, SMR-based systems have gained a special interest in the BCI literature. Through NF training, some users can learn to self-regulate their own SMRs, even for subjects whose actual limb control is hindered or non-existent (Pfurtscheller and McFarland,2012). SMR variations are achieved by means of motor imagery, repeatedly emphasizing kinesthetic experiences rather than visual representations of movements (Nicolas-Alonso and Gomez-Gil,2012). Eventually, the control become automatic and the imagery turns out to be less important. Nevertheless, current SMR-based BCIs are only able to detect spatially well separated classes, usually two (e.g. left and right hands); although some studies have attempted to control up to four (left and right hands, foot and tongue) (Ofner et al.,
32 Chapter 1. Introduction target users for BCIs. In general, motor disabilities of most BCI users are often caused by neurodegenerative diseases, traumas, muscle disorders, or any illness that impairs the neural pathways that control muscles or the muscles themselves (Wolpaw et al.,2002). All the assistive BCI applications that are presented in this Doctoral Thesis have been evaluated with target users, in order to provide an accurate measurement of performance in a real environment. All subjects presented different motor disabilities caused by one of the following diseases: 1)Multiple sclerosis (MS). MS is the most common autoimmune disease that affects the CNS. In MS, the immune system damages the myelin of brain and spinal cord nerve cells, causing an inflammation that disrupts the ability of neurons to communicate. This results in a variety of symptoms, including motor problems, cognitive deficits or psychiatric disorders. Indeed, up to 60% of the patients develop a motor disability before twenty years after the onset (Compston and Coles,2008). In rare cases the disease may be terminal, although most people with MS have a normal life expectancy (Compston and Coles,2008). 2)Stroke. Also known as cerebrovascular accident, the stroke is the major cause of disability and second most common cause of death worldwide. In this condition, brain cells die because of insufficient blood flow, caused either by an ischemic (i.e., lack of blood flow) or a hemorrhagic (i.e., bleeding) origin. Both lead to functional brain damage in the affected regions, which can be permanent (Donnan et al.,2008). 3)Spinal cord injury (SCI). An SCI is a damage to the spinal cord that results in temporary or permanent loss of mobility or feeling. The injury (caused by trauma or disease) can be either complete if a total loss of function is presented, or incomplete if some nerves are able to pass the damaged area. Depending on the degree of affectation, the location, and the rehabilitation procedure, long-term SCI outcomes range from complete recovery to permanent paraplegia or quadriplegia (McDonald and Sadowsky,2002). 4)Cerebral palsy (CP). CP is the most common movement disorder in children. It reflects an abnormal brain development that usually leads to spasticity (i.e., stiff muscles), dyskinesia (i.e., uncontrollable movements) and ataxia (i.e., poor coordination) (NINDS,2013). Often, the cause is unknown; though is closely related to problems that occur during pregnancy,
1.6. State of the art 33 childbirth or immediately after it. There is no cure for CP and thus, people with CP require long-term care, including medications, therapies and even surgical procedures (NINDS,2013). 5)Muscular dystrophies (MD). MD comprises a group of muscle diseases that lead to progressive weakness and loss of muscle mass. Although there are several types of MD, all of them are considered inherited genetic disorders; i.e., caused by mutations on genes involved in making muscle proteins. There is no cure for MD and most people eventually become unable to walk. However, symptoms may be monitored and relieved by medication, physical therapy and surgery (Mercuri and Muntoni,2013). 6)Friedreich’s ataxia (FRDA). FRDA is an inherited neurodegenerative disease in which the production of the protein fraxatin is hindered, resulting in cellular damage and death. The ataxia is eventually caused by the degeneration of the spinal cord nerves. Symptoms, which usually starts in childhood, progressively worsen until people lose the ability to stand or walk. FRDA has no cure; thus, patients rely on physical and occupational therapies the rest of their lives (Delatycki et al.,2000). 1.6 State of the art The main contributions of this Doctoral Thesis are related with the asynchrony of the BCIs, the channel selection problem and the development of assistive applications (i.e., web browser, social networking app). Therefore, the next subsections reflect a comprehensive state of the art revision of these topics: 1.6.1 Asynchrony As mentioned in section 1.4.4, synchrony is one of the main limitations of current P300-based BCIs. Conventional synchronous BCIs are typically associated with visual oddball paradigms, in which random flashings elicit P300 potentials and allows the system to discriminate among different commands. As the BCI cannot monitor users’ attention, it will continue selecting random commands even if the user is ignoring the stimuli. Thus, recent investigation have been focused on providing a real asynchronous control of the system; i.e., to discriminate between control (attending) and non-control (ignoring) states.
34 Chapter 1. Introduction Based on the hypothesis that P300 potentials are more easily discriminated when users are attending to the stimuli, many studies rely on a threshold derived from classifier’s scores, which are expected to be higher in the control state. These scores were obtained from support vector machines (SVM) (He et al.,2017;Li et al.,2013;Zhang et al.,2008) or linear discriminant analysis (LDA) (Alcaide- Aguirre et al.,2017;Aloise et al.,2011;Aref and Huggins,2012;Breitwieser et al., 2016;Mart´ınez-Cagigal et al.,2017,2019a;Tang et al.,2018) classifiers. Aydin et al. (2018) proposed the use of labels instead of scores for designing different criteria to define the non-control state. Some studies proposed modifications of the paradigm to elicit SSVEPs; using P300 potentials to determine the target command, and SSVEPs to identify the non-/control states (Li et al.,2013;Panicker et al.,2011). Similarly, other studies took a step further, hypothesizing that the stimulation already produces residual SSVEPs in control states, provided flashings occur at a fixed rate. Hence, spectral methods were also proposed as features, such as relative powers (Ma and Qiu,2018), sums of spectral components (Pinegger et al.,2015) or canonical correlation analysis (CCA) (Santamar´ıa-V´azquez et al., 2019). Further modifications for hybrid BCIs have been also proposed, involving MI tasks via SMR (Yu et al.,2017) or tactile ERPs (Breitwieser et al.,2016). 1.6.2 Channel selection Channel selection optimization is usually overlooked in BCI literature due to its inherent complexity. Nevertheless, a channel selection procedure is beneficial to reduce the dimensionality of the data, the cost of the system, the power consumption and to increase users’ comfort. According to the aforementioned limitations of current BCIs (see section 1.4.4), this problem involves the hardware and reliability aspects of the systems. Generally, P300-based studies use the 8-channel combination proposed by Krusienski et al. (2008), mainly located over parieto-occipital regions. This approach is valid as a general rule of thumb, but ignores the intrinsic inter-subject variability of ERP responses. For this reason, many recent studies were aimed at testing novel metrics to find the most appropriate channels for each subject. Note that an exhaustive search is intractable, due to the enormous amount of possible combinations (i.e., 2Ncfor a Nc-channel cap). Meta-heuristics have demonstrated excellent performances solving complex optimization problems, especially swarm intelligence and evolutionary computation approaches. In particular, particle swarm optimization (PSO), a single-objective algorithm, has been successfully
1.6. State of the art 35 applied in P300-based BCIs (Arican and Polat,2020;Gonzalez et al.,2013,2014; Jin et al.,2010;Perseh and Sharafat,2012). However, a BCI-oriented channel selection should optimize two objectives simultaneously: (1) to maximize the performance, and (2) to minimize the number of channels. As a preliminary work, we used a weighted aggregation approach to merge both objectives into a single expression and adapted 5 single-objective approaches to the discrete domain, including PSO, bees algorithm (BA), artificial bee colony (ABC), binary ant system (BAS) and firefly algorithm (FA) (Mart´ınez-Cagigal and Hornero,2017a,b). Nevertheless, simultaneous optimization was not explored; indeed, the application of multi-objective algorithms in P300-based BCI channel selection is more limited. To the best of our knowledge, only Kee et al. (2015) applied a non-sorting genetic algorithm II (NSGA-II), while Chaurasiya et al. (2017) used a multi-objective binary differential-evolution algorithm (MOBDE), achieving promising results. In spite of their scarce application, evolutionary computation applied is a growing research field that integrates many different algorithms that have not been fully exploited yet in this context. Moreover, their application in P300-based BCIs is not straightforward, due to the dichotomy of the problem (e.g., select or reject each channel). The discretization of these meta-heuristics must be performed carefully, by means of adapting inner equations and employing binary operators (e.g., crossover, mutation, transfer functions, etc.). 1.6.3 BCI web browsers As aforementioned, the most straightforward application of BCI systems is to improve the quality of life of the severely disabled, for instance, by replacing the control of some devices to make them assistive and favor their accessibility. Owing to the advance of Internet in the last decades, it is natural to think whether a BCI web browser could be feasible. Nowadays, web browsers are designed to be controlled by a keyboard and a mouse, but not with a small amount of control signals. In this regard, several previous attempts aimed at controlling a BCI web browser were reported in the literature. The first ones employed SCP or SMR as control mechanisms, using dichotomous decision trees to select or reject commands (Bensch et al.,2007;Karim et al.,2006). Notwithstanding their usefulness as the precursors of BCI-based web browsers, the binary selection strategy was slow and required a supervisor to adjust several parameters (e.g., reading pauses, address book entries, etc.). Furthermore, users needed to spend a lot of time to
36 Chapter 1. Introduction learn to control SCP and SMR signals, and it was not guaranteed that they could eventually control them with enough ability to experiment a real command of the system (Bensch et al.,2007;Karim et al.,2006). Mugler et al. (2010) overcome the selection slowness by developing a P300-based system, in which commands were selected using the oddball paradigm. Page links were tagged with an alphanumeric coding, allowing its selection provided the code was entered using P300 selections. Sirvent Blasco et al. (2012) also used a P300-based approach, but the selection of links was made by simulating the movement of the mouse trough commands that shifted its position a fixed amount of pixels in different directions. A hybrid approach was also developed by Yu et al. (2012), in which the horizontal and vertical movements of the mouse were controlled by SMR and P300 potentials, respectively. Nonetheless, these approaches were synchronous and thus, it was required to include a “read mode” command to pause the stimulation when the user wanted to calmly read a web page . This pause, however, was fixed for a predefined number of seconds, which could result too long or too short a time for the user (Mugler et al.,2010;Sirvent Blasco et al.,2012). For a truly free surfing, this synchronous mode is impractical and cannot be applied in a real setup. To the best of our knowledge, there are not asynchronous-based BCI web browsers in the literature. Noteworthy, Karim et al. (2006), Bensch et al. (2007) and Mugler et al. (2010) tested their proposals with 1, 4 and 3 ALS patients, respectively; reaching averaged accuracies of 80% and 72% (results of Bensch et al. (2007) were not reported). Accuracies of healthy subjects, by contrast, reached a mean of 93% (Mugler et al.,2010;Sirvent Blasco et al.,2012;Yu et al.,2012), which compromises the generalization of the results and the feasibility of those studies that lacked of validation with motor-disabled patients. 1.6.4 Mobile BCIs Other BCI application could be focused on controlling some functionalities of the smartphones. Currently, these devices have more than 4.9 billion of unique users in the world, becoming an essential aspect of our daily lives (Kemp,2018). Although their functionalities cover managing finances, reading news, watching videos, shopping, playing games or searching for information, among other uses; more than the 56% of the time spent is dedicated to socializing via social media and instant messaging (Ipsos MORI and Google,2017). In spite of this development, smartphones are still restricted for motor-disabled people than cannot control their fingers or hands accurately. Therefore, whether a BCI controlled smartphone could
1.6. State of the art 37 bridge the accessibility gap in these trending devices is a reasonable concern. Despite the popularity of smartphones or tablets nowadays, studies that aim at controlling their functionalities using BCIs are scarce in the literature. These studies, tested with healthy subjects (HS), are limited to dial numbers in cell phones (Chi et al.,2012;Wang et al.,2011), call contacts (Campbell et al.,2010;Wang et al.,2011), accept incoming calls (Katona et al.,2014), play a simple racing game (Wu et al.,2014), spell words (Campbell et al.,2010;Elsawy et al.,2017;Obeidat et al.,2017), or open pre-installed apps and visualize the image gallery (Elsawy and Eldawlatly,2015). Among them, the works of Wang et al. (2011) and Chi et al. (2012) used SSVEPs as control signals, reaching averaged accuracies of 95.90% (10 HS) and 89.00% (2 HS), respectively. Others used a commercial control signal from the Neurosky cap, achieving an accuracy of 75.00% (5 HS) (Katona et al., 2014;Wu et al.,2014). The rest of them used P300 potentials, reaching accuracies of 88.89% (3 HS) (Campbell et al.,2010), 83.34% (6 HS) (Elsawy and Eldawlatly, 2015), 64.17% (6 HS) (Elsawy et al.,2017) and 90.00% (14 HS) (Obeidat et al., 2017). Nevertheless, to the best of our knowledge, none of those studies has been focused on making social apps accessible, nor providing a high-level control of a smartphone or tablet. In addition, results show a poor performance of HS compared with those reported in other P300-based BCI studies, likely due to simple EEG acquisition equipment and signal processing pipelines, leaving room for improvement. Furthermore, they have not tested their proposals with motor-disabled people, which are presumably the target users of their applications. From these state-of-the-art revision it is thus clear that a BCI system to control socializing functionalities of a smartphone could be a novel contribution to the literature, as well as a suitable assistive application to meet the daily communication needs of the motor-disabled. Once the main topics of this Doctoral Thesis have been introduced, the rest of the document is organized as follows. Chapter 2 enumerates the hypotheses that have motivated each study, including the overall purpose and the specific objectives. Databases and EEG acquisition procedure are detailed in the chapter 3. Afterward, chapter 4 describes the methodology, including signal pre-processing, feature extraction, selection and classification, channel selection, performance assessment and statistical analysis. Main results are shown in the chapter 5, which are further discussed in the chapter 6, enumerating the current limitations. Finally, the contributions of this Doctoral Thesis, as well as the final conclusions, are detailed in the chapter 7. The last sections are intended to complement this doc-
38 Chapter 1. Introduction ument by including: the papers of the compendium of publications (appendix A), the scientific achievements achieved during the Ph.D. (appendix B), and a brief summary in Spanish (appendix C).
Chapter 2 Hypothesis and objectives As it has been previously shown, developing reliable BCI systems for improving the quality of life of the severely disabled has become a major concern in the last decades. Therefore, the proposals developed in this Doctoral Thesis are focused on providing asynchronous and channel selection signal processing methodologies and assistive applications, intended to provide a real use of P300-based BCIs by motordisabled people. Thereby, the hypotheses that have motivated each study, as well as the joint main hypothesis that justify the present Doctoral Thesis are declared in section 2.1. On the other hand, section 2.2 introduces the main objective and the specific objectives that must be fulfilled to reach it. 2.1 Hypothesis Despite the growing interest of scientific literature in BCI systems in the last years, the current limitations of these systems have relegated their application to laboratories. Consequently, studies usually overlook the potential utilization of the BCI on a real situation and focus on merely academic purposes. Thus, a naive hypothesis can be formulated as a starting point: limitations of current BCIs that hinder their application outside the laboratories can be lessened. Notwithstanding its usefulness as an introductory step, this high-level statement does not suffice to approach any particular investigation by its own. Therefore, additional lower level hypotheses need to be examined for reaching that point. As stated in subsection 1.4.4, current BCIs should mainly face the following limitations: (1) reliability, (2) synchrony, (3) hardware, and (4) validation. In general, (1) reliability may be addressed by using control signals with a proper 39
40 Chapter 2. Hypothesis and objectives inter-subject generalization ability and a reduced calibration. In other words, signals that do not depend on the ability of users to self-regulate their own activity, such as P300 evoked potentials (as discussed in subsection 1.4.3). Addressing the (2) synchrony is absolutely essential to provide a comprehensive self-paced control of the BCI. Asynchrony can only be achieved if the BCI is able to determine whether the user wants to deliver a command (i.e., control state) or not (i.e., non-control state). Thereby, it has been assumed that novel feature extraction and classification approaches are able to reach an asynchronous control. Since it can be thought that control state is more demanding than non-control, it is particularly hypothesized that entropy-based measurements can characterize the regularity of non-/control EEG signals and provide complementary information for discriminating between both states. (3) Hardware limitations may be mainly addressed through electronic improvements (e.g., dry electrodes, wireless communication, battery autonomy, etc.), although some software approaches can contribute too. For instance, reducing the number of electrodes would reduce the cost of the system, power consumption and increase users’ comfort. Due to their great abilities to solve complex optimization problems, it has been hypothesized that meta-heuristics based on evolutionary computation are able to optimize the channel set for each user in P300-based BCIs. Similarly, it has been assessed whether these approaches effectively avoid the curse of dimensionality and maximize the P300 potential detection accuracy, somehow contributing to the (1) reliability issue as well. Regarding the last limitation, every single BCI intended to be used by the severely disabled should be (4) validated with a target population for guaranteeing a proper performance, and not only with healthy subjects. Nowadays, there are still numerous applications and devices whose accessibility is greatly limited for motor-disabled people (e.g., surfing the Internet, accessing social networks). It has been thus hypothesized whether a P300-based asynchronous BCI web browser is able to provide a reliable Internet surfing for motor-disabled people. By extension, it has been also assessed if a P300-based asynchronous BCI can provide a comprehensive control of smartphone-based social networks for the motor-disabled; including Twitter –a microblogging service–, and Telegram –a cloud-based instant messaging application–. These statements are the main hypotheses that form the core of the present Doctoral Thesis, which can be merged into the following global hypothesis: “P300-based BCI systems may be oriented toward a real use outside laboratories by applying novel signal processing methodologies (e.g., asynchronous management, channel selection) and developing asyn-
2.2. Objectives 41 chronous applications (e.g., web browser, social networks).” 2.2 Objectives The general goal of this Doctoral Thesis is to design, develop and evaluate novel signal processing methodologies and assistive applications toward a real use of P300-based BCIs by motor-disabled people. These methodologies were focused on optimizing channel sets and reaching a fully self-paced control of the systems; whereas the assistive applications were aimed at bridging the accessibility gap in web browsers and smartphone-based social networks. In order to achieve the main objective, the following specific objectives arise: I. To review the bibliography and state-of-the-art related to non-invasive BCI systems, putting special emphasis in channel selection and asynchronous techniques, as well in development of assistive applications. II. To build a database of non-/control state EEG recordings for approaching the asynchronous problem in P300-based BCIs and to recruit a large population of motor-disabled users (including MS, stroke, SCI, CP, MD, and FRDA), as well as their socio-demographic data, to validate the assistive applications. III. To implement the most appropriate methods to optimize channel sets, discriminate between asynchronous states, and identify P300 potentials; and to investigate the suitability of further improvements. IV. To design and develop two P300-based assistive asynchronous systems for controlling: (1) a web browser, and (2) smartphone-based social networks. V. To evaluate the ability of the selected methods for optimizing the channel set of each user and reaching a self-paced control of P300-BCIs by testing them in both public and previously recorded databases, as well as to validate the developed P300-based assistive asynchronous BCIs with the recruited motordisabled population, as well as with healthy subjects. VI. To conduct statistical analysis of results for evaluating the suitability of each proposal, and for characterizing performances depending on the population; and to compare and discuss the results to draw appropriate conclusions, including a comprehensive comparison with previous state-of-the-art studies. VII. To disseminate the main results and conclusions in JCR indexed journals, as well as in book chapters and international and national conferences.
48 Chapter 3. Subjects and signals Table 3.4: Oddball parameters for each database. Study Paradigm N† s Timings SD ISI SOA Mart´ınez-Cagigal et al. (2019b) RCP 15 75 ms 100 ms 175 ms Mart´ınez-Cagigal et al. (2020)RCP 15 100 ms 75 ms 175 ms CS 10 100 ms 100 ms 200 ms RSVP 10 N.r. N.r. 83 ms Mart´ınez-Cagigal et al. (2017) RCP 15 62.5 ms U(125, 250) ms U(187.5, 312.5) ms Mart´ınez-Cagigal et al. (2019a) RCP 15 62.5 ms U(125, 250) ms U(187.5, 312.5) ms SD: stimulus duration, ISI: inter-stimuli interval, RCP: row-col paradigm, CS: center speller, RSVP: rapid serial visual presentation, N.r.: not reported (Treder et al.,2011), Urandomized within uniform distribution. †Number of sequences of the training data. flash according to the oddball paradigm, allowing the user to select them in two stages: (i) the group, (ii) the specific command. Unlike the RCP, this paradigm does not require an accurate control of the gaze, since flashings are presented on the center of the screen. 3)Rapid Serial Visual Presentation (RSVP). The RSVP paradigm was developed to exploit the foveal visual field and avoid eye movements (Acqualagna and Blankertz,2013). As shown in figure 3.1(C), RSVP depicts symbols in the center of the screen in a serial manner. In order to favor the identification of the symbols, half of the characters are uppercase and the other half lowercase, using 5 different colors. A sequence is thus finished when all symbols have been presented. The procedure is repeated Nstimes to get enough observations for assuring the reliability of the P300 potential. Note that few flashings will elicit a P300 (i.e., infrequent class) in comparison with those that are not associated to the target command (i.e., frequent class), leading to ratios of 1:6 in both examples. Generally, calibration data is recorded with 10 ≤Ns≤15 sequences; being reduced to an understandable number after classifier training. Of course, flashings should be randomized inside a sequence; otherwise, the user could expect their onsets, violating the core principle of P300 elicitation: an unexpected stimulation. Figure 3.1(D) depicts the time course of a sequence of flashings. The stimulus onset asynchrony (SOA), i.e. the elapsed time between two consecutive onsets; is composed by the stimulus duration (SD) and the inter-stimuli interval (ISI). Although there is not a general consensus about the fixation of these parameters,
3.3. Acquisition setup 49 Figure 3.2: Electrode montages used in this Doctoral Thesis, according to the International System 10–10: (A) asynchrony study (Mart´ınez-Cagigal et al.,2019b); (B) application studies (Mart´ınez-Cagigal et al.,2017,2019a); (C) RCP (left), CS (center), and RSVP (right) databases of the channel selection study (Mart´ınez-Cagigal et al., 2020). Ground and reference electrodes are marked in yellow and blue, respectively. SOA usually takes values in the range of 175–200 ms (Acqualagna and Blankertz, 2013;Blankertz et al.,2006;Treder et al.,2011;Wolpaw and Wolpaw,2012a). Occasionally, ISI varies among sequences to hinder users’ anticipation. Table 3.4 indicates the values that have been used in this Doctoral Thesis. It is noteworthy that the epoch length used to classify both classes typically contains several flashings and thus, the output ERP is a superposition of delayed P300 waves. 3.3 Acquisition setup As the databases vary, the acquisition setup also varied among the studies. Figure 3.2 shows the electrode montages for each study, according to the International System 10–10 (see section 1.4.2). EEG signals for the asynchrony (Mart´ınez- Cagigal et al.,2019b), web browser (Mart´ınez-Cagigal et al.,2017) and social networks (Mart´ınez-Cagigal et al.,2019a) studies were recorded with a g.USBAmp (g.tec Medical Engineering, Austria), at a sampling rate of 256 Hz and using 16, 8 and 8 active electrodes, respectively. Data was referenced to the earlobe, using the channel Fpz as a ground. Conversely, the public databases that were used in the channel selection study (Mart´ınez-Cagigal et al.,2020) differ: RCP database was recorded using 64 channels at 240 Hz (equipment, reference and ground not
50 Chapter 3. Subjects and signals reported) (Blankertz et al.,2006); CS and RSVP databases were recorded via 63 and 61 active electrodes connected to BrainAmp systems (Brain Products, Germany) at 1000 Hz, referenced to the left mastoid and placing a ground electrode over the forehead (Acqualagna and Blankertz,2013;Treder et al.,2011).
Chapter 4 Methods This chapter describes the methods that have been applied through the compendium of publications. Signal conditioning and channel selection algorithms are detailed in sections 4.1 and 4.2, respectively; followed by the standard EEG signal processing pipeline: feature extraction (section 4.3), selection (section 4.4) and classification (section 4.5). Afterward, section 4.6 is devoted to the asynchrony management. Different methods to assess the performance of the proposed algorithms are detailed in section 4.7. Finally, section 4.8 provides a brief description of applied statistical analyses. 4.1 Signal pre-processing After the EEG acquisition, a signal conditioning or pre-processing step must be performed to remove artifacts and enhancing temporal, spectral or spatial characteristics of the signals: 1)Frequency filtering. As EEG frequencies above 40 Hz have a very low signal-to-noise ratio (see section 1.4.2) and amplifier’s low-frequency drifts are sometimes present, a band-pass filtering is essential for BCI applications (Krusienski Dean J.,2012). In this case, signals were band-pass filtered between 0.1–60 Hz and then, a 50 Hz notch filter was applied to remove the power interference. For the offline studies, finite impulse response (FIR) filters were used (Mart´ınez-Cagigal et al.,2019b,2020); for the online ones, infinite impulse response (IIR) filters were applied (Mart´ınez-Cagigal et al., 2017,2019a). 51
52 Chapter 4. Methods Figure 4.1: Spatial filtering techniques in EEG-based BCIs. The mean of blue electrodes would be subtracted from the current channel (e.g., Cz), depicted in yellow. (A) Ear reference. (B) Laplacian filtering, (C) CAR filtering. 2)Spatial filtering. Spatial filters are fundamentally used to improve source localization, to enhance particular channels or to remove certain artifacts. Considering the latter, a common average reference (CAR) filtering was applied by subtracting, for each channel, the mean value of all of them, as shown in figure 4.1(C). Hence, xc=xc−1 NcPNc i=1 xi, where xcis the signal for the electrode c, and Ncis the number of channels (Krusienski Dean J., 2012). In this way, artifacts that are common to all electrodes, such as power interference, are minimized. CAR provides a biased estimate of referenceindependent potentials as well, whose approximation error decreases in highdensity electrode montages. 4.2 Channel selection The stimuli repetitions that are required to elicit a reliable P300 response (see section 3.2) constitute high-dimensional data liable to produce an over-fitting of the classifier. This phenomenon, known as the curse of dimensionality, may produce spoiled performances if data are not properly processed by means of feature extraction and/or selection methods, regularized classifiers or channel selection procedures. The latter is often overlooked in BCI literature, due to its inherent complexity; and thus it is common to see a 8-channel set in P300-based BCIs as a general rule of thumb (Krusienski et al.,2008). However, among these approaches, channel selection procedures are the only that are able to reduce the cost of the system, the power consumption and to increase users’ comfort. For this reason, we studied the ability of several single- and multi-objective optimization approaches for selecting the most appropriate channel set for each user Mart´ınez-Cagigal et al.
4.2. Channel selection 53 (2020). We also proposed a novel meta-heuristic that overcame their limitations, while the rest of the studies of this Doctoral Thesis used the Krusienski’s set (Mart´ınez-Cagigal et al.,2017,2019a), or an extended version of it (Mart´ınez- Cagigal et al.,2019b). Dealing with the problem of selecting the most suitable set of channels is not trivial. For an Nc-channel cap, there are 2Ncpossible subset combinations of channels to consider, making an exhaustive search intractable in practice. Channel selection is therefore viewed as a complex optimization problem, where iterative meta-heuristics are applied to find an optimal (or suboptimal but suitable) solution in a reasonable amount of time (Bozorg-Haddad et al.,2017). Here, a solution is represented as s= [s1, s2, . . . , sNc], si∈ {0,1}, where 1 and 0 values indicate the selection or rejection of a specific channel i, respectively. Moreover, there must be a way to assess the fitness of each solution for achieving an objective function. In a P300-BCI, two main objectives should be pursued: (1) to maximize the performance of the system, and (2) to minimize the number of EEG channels; which may be modeled as: min F(s) = f1(s) = 1 −AUC(s) f2(s) = PNc i=1 si ,(4.1) where f1(s) and f2(s) are the first and second objective, respectively. AUC(s) denotes the area under receiving-operating characteristic (ROC) curve for the solution s, an estimate of the discriminative ability of a binary classifier using calibration data (Colwell et al.,2014;Zweig and Campbell,1993). In this case, a 5-fold cross-validated linear discriminant analysis was used to derive the averaged AUC (see sections 4.7.1 and 4.5.1), after a proper feature extraction process involving epoch windowing and decimation (Mart´ınez-Cagigal et al.,2020) (see sections 4.3). Once the objective functions are modeled, the solution associated with the global optima may be found by using a meta-heuristic; i.e., an algorithm that iteratively improves a candidate solution. Even though there are more than 70 evolutionary computation based meta-heuristics (Jr et al.,2013), only a few key strategies are repeatedly used by these algorithms and slightly modified among them. Furthermore, most of them are single-objective oriented. The aforementioned multi-objective formulation can be adapted into a single expression by using weighted approaches (Coello and Reyes-Sierra,2006;Mart´ınez-Cagigal and Hornero,2017a,b;Mart´ınez-Cagigal et al.,2018); however, the supervisor would
54 Chapter 4. Methods get a single solution, lacking of the possibility to consider the multi-objective optimization tradeoff. Among the well-known single-objective meta-heuristics, stand out: genetic algorithms (GA) (Holland,1992), (binary) differential evolution (BDE, DE) (Storn and Price,1997), (binary) particle swarm optimization (BPSO, PSO) (Kennedy and Eberhart,1995), ant colony optimization (ACO) (Dorigo et al.,2006), or bees algorithms (BA) (Pham et al.,2006), among others. By contrast, multi-objective algorithms try to optimize more than one objective simultaneously. Since these objectives usually conflict among themselves, it is required to introduce a new metric in order to measure the quality of each solution: the dominance. It is said that a solution s1dominates another solution s2 (i.e., s1s2) if ∀i:fi(s1)≤fi(s2) and ∃j:fj(s1)< fj(s2) –in minimization problems–. Therefore, those solutions that are not dominated by any other are considered optimal. As shown in figure 4.2, the set containing optimal solutions forms the Pareto-front curve, which depicts the tradeoff between the objectives (Deb,2005). Concerning the BCI channel selection model of equation 4.1, the Pareto-front would display configurations that use different number of channels, allowing the supervisor to freely select one of them. Common multi-objective meta-heuristics include: non-sorting genetic algorithm II (NSGA-II) (Deb et al., 2002); multi-objective PSO (MOPSO) (Reyes-Sierra and Coello,2005); or strength pareto evolutionary algorithm 2 (SPEA2) (Zitzler et al.,2001); among others. 4.2.1 Dual-Front Sorting Genetic Algorithm In spite of the large amount of existing meta-heuristics, all of them should be adapted to the BCI channel selection context to assure a proper performance. The peculiarities of this discrete problem make some of the inner strategies of the meta-heuristics suboptimal or even futile. For instance, continuous or crowding distances, distance soughts, transfer functions or even any repository control approach. For this reason, we proposed a novel multi-objective algorithm especially designed for the BCI channel selection problem: the dual-front sorting genetic algorithm (DFGA) (Mart´ınez-Cagigal et al.,2020). The pseudocode of DFGA is shown in figure 4.2(C), and its five main key aspects are detailed below: 1)Deterministic initialization. Heuristics generally initialize the population by generating random solutions. However, the use of deterministic initialization may reduce both the inter-run variability due to stochastic effects and a large amount of computation time. Although deterministic algorithms are not likely to provide a global optimum, DFGA considers their outputs as
4.2. Channel selection 55 1: procedure DFGA(Nc, pc, pm) 2: [RS,F ]←backward elimination() 3: [OS,F ,SS,F ]←dual front(R) 4: while ¬stopCondition do 5: /* Parent selection */ 6: So←binary tournament(2Nc/3,O) 7: Ss←binary tournament(Nc/3,S) 8: PS←So∪Ss 9: /* Genetic operators */ 10: P0 S←crossover(PS, pc) 11: P00 S←mutation(P0 S, pm) 12: P00 F←F(P00 S) 13: /* Synthetic solutions */ 14: QS←generate synthetic(RS) 15: QF←F(QS) 16: /* Repository updating */ 17: RS,F ←rep update(R∪P00 ∪ Q) 18: [OS,F ,SS,F ]←dual front(R) 19: end while 20: return OS,F 21: end procedure Figure 4.2: (A) Dominance concept in a two-objective minimization problem: (orange) non-dominated solutions, (blue) dominated solutions. (B) Optimization of a Kursawe function: (orange) solutions that belong to the Pareto-Front, (blue) suboptimal solutions. (C) Pseudocode of DFGA. intermediate solutions. Regardless of their qualities, we hypothesized that these solutions are equivalent to those that will be eventually reached after several generations of a randomly initialized algorithm. In this study, backward elimination (BE, section 4.4.1) is used to initialize the repository. The algorithm begins with the full set of channels and sequentially removes the most irrelevant one (Jobson,1991). The rejected channel in each step is the one that returns the minimum f1(s) value if removed from the model s(i.e., its inclusion does not contribute to improve the system’s performance). The algorithm continues removing channels until the set is empty. Note that this operation will fill the repository Rup with Ncsolutions. 2)Elitism. In each generation, the repository is updated following an elitist approach. As depicted in the figure 4.3(A), for each unique value of f2(s) (i.e., for each number of channels), the repository solution that minimizes f1(s) is selected. Note that this operation is applied in the repository, which
56 Chapter 4. Methods Figure 4.3: Visual aids to clarify DFGA operations: (A) elitism, (B) dual-front sorting, (C) parent selection, (D) single-point crossover and (E) bit-string mutation. includes both non-dominated and dominated solutions, creating a balance between local and global exploitation. 3)Dual-front sorting. Due to the deterministic initialization, the repository should have a well-defined curve from the very beginning of the algorithm. This aspect leads to a Pareto-front that is supposed to include solutions with few channels. Traditionally, only Pareto-optimal solutions are considered in the selection stage. Despite their convenience over dominated solutions, considering only the Pareto-front will lead to a local exploitation of solutions with few channels. However, because of the intrinsic fixed size of the repository in BCI problems (i.e., limited to Nc), the exploitation of solutions with a greater number of channels was no longer an issue. Furthermore, it might favor the spreading of the Pareto-front and the global search of DFGA. According to this rationale, DFGA subdivides the repository into two sets: O (i.e., optimal set), which includes the non-dominated solutions; and S(i.e.,
4.2. Channel selection 57 sub-optimal set), which includes the dominated solutions. Dual-front sorting operation is shown in figure 4.3(B). Then, binary tournament selection is applied in both sets, selecting 2Nc/3solutions from O, and Nc/3solutions from S. Note that a solution may be selected more than once in the new population. Finally, these solutions are combined in the population in order to suffer recombination (i.e., crossover) and mutation, as shown in the figure 4.3(C). 4)Genetic operators. Owing to the binary nature of the search space, traditional genetic operators were considered the most convenient approach for generating new solutions from a parent population. First, for each solution xi, single-point crossover is applied with probability pc. That is, siand another randomly picked solution sj(i6=j) are combined into s0 i←si[1 : u]∪xj[u+ 1 : N], where u∼rand ∈[1, N]. For each solution, bit-string mutation is also computed with probability pm. In other words, if the n-th bit of a solution s0 ihas to be mutated, its value is flipped (i.e., s00 i[n]← ¬s0 i[n]). The procedure is illustrated in the figure 4.3(D–E). In (Mart´ınez-Cagigal et al.,2020), following the recommendations of the literature, we fixed pmand pcto 1/Ncand 0.90, respectively (Deb et al., 2002). 5)Synthetic solutions. When the values of pcor pmare too high, the mutated population tends to exploit the middle part of the repository. In other words, solutions with few channels tend to add more channels, whereas crowded solutions tend to decrease their number of channels. In order to maintain a similar exploitation across the entire repository spectrum, synthetic solutions are generated apart from the mutated population. However, a random generation of solutions across this spectrum will unnecessarily increase the number of evaluations, slowing down the algorithm. DFGA generates synthetic solutions using a metric that is intended to maintain the most relevant channels of the current repository. The rank of the i-th channel is defined as the number of times that the channel iis present in the repository (i.e., ri=|i∈ R|). DFGA iteratively creates solutions that have from 1 to Nc−1 channels by means of a roulette wheel selection (i.e., fitness proportionate selection) based on the rank values. It is worthy to mention that DFGA generates a total of Nc−1 solutions, since the Nc-th solution that contains all the channels is already part of the repository.
64 Chapter 4. Methods Figure 4.4: Epoch extraction procedure of a single trial for the application of SampEnbased MSE. The number of possible epochs (E) matches the total number of sequences. 4.7 Performance assessment During the different studies that compose the present Doctoral Thesis, several validation methods were applied to assess the performance of the proposed signal processing methods and applications. 4.7.1 Cross-validation Fundamentally, cross-validation (CV) is a model validation technique that assesses the generalization ability of the results of a statistical analysis. In other words, CV allows to evaluate if a model can generalize to an independent dataset; which is not assured if training samples were not representative (Witten and Frank,2011). 1)Folds. In a k-fold CV, the training dataset is split into kequal partitions. Then, the algorithm sequentially uses one of the folds for testing, keeping the remainder dataset to train the model. That is, every instance has been used for testing exactly once, returning a diagnostic ability statistic (e.g., accuracy) for each fold. Therefore, providing an adequate estimate of the generalization ability of the model when averaging these statistics (Witten and Frank,2011). This algorithm was used in Mart´ınez-Cagigal et al. (2020) to estimate the performance of the single- and multi-objective algorithms for channel selection. 2)Leave one out (LOO). The LOO CV is a particularization of the k-fold CV that keeps only one sample (or subject) for testing (i.e., equivalent to an mfold CV if the training dataset is composed by mobservations) (Witten and Frank,2011). This technique was used in Mart´ınez-Cagigal et al. (2019b) to optimize the MSE hyperparameters and to estimate the performance of the signal processing pipeline to reach an asynchronous control of the BCI.
4.8. Statistical analysis 65 4.7.2 Speed rates When a practical P300-based BCI application to assist the motor-disabled is developed, not only the performance should be evaluated, but also the speed of the system for selecting commands. 1)Information transfer rate (ITR). Traditionally, ITR has been employed as a metric to measure the speed of BCI systems. Based on Shannon’s information theory, the ITR estimates the number of bits per trial selection: ITR = 1 Tlog2N+Plog2P+ (1 −P) log2 1−P N−1,(4.8) where Nis the number of trial selections, Pis the selection accuracy, and Tsis the average duration of a trial in seconds (Wolpaw et al.,2000). However, the ITR assumes that: (1) the system is memoryless, (2) all possible characters are equally probable, and (3) a synchronous paradigm is used. The metric is thus biased for asynchronous BCIs because it neither considers multiple character matrices, nor correction of erroneous selections, nor asynchronous pauses (Speier et al.,2013). 2)Output characters per minute (OCM). In contrast to ITR, OCM is a communication rate metric especially suitable for asynchronous systems. The metric is simply the ratio of the number of selections to the duration of the task in minutes; i.e., OCM = N/Tmin (Speier et al.,2013). OCM was used in Mart´ınez-Cagigal et al. (2019a) to evaluate the speed of the developed social networking BCI system. 4.8 Statistical analysis In order to make a fair comparison between two groups of results, several statistical tests were applied in the compendium of publications. For instance, to assess significant differences between non-/control features (Mart´ınez-Cagigal et al.,2019b), or between results obtained from controls and patients (Mart´ınez-Cagigal et al., 2017,2019a). 4.8.1 Hypothesis testing A statistical test evaluates the evidence the data provides against the null hypothesis H0, which usually states that data is generated by random processes. The
66 Chapter 4. Methods returned p-value indicates the probability of getting an fluctuation away from the H0distribution, assuming that H0is true. It is considered that H0is false (i.e., that there are significant differences in the data) if p-value < α, where α= 0.05 is the level of significance (Narsky and Porter,2013). In the present Doctoral Thesis, two different univariate, continuous, nonparametric statistical tests have been used. Before their application, it was stated that data were not normal and homoscedastic. When the comparisons were paired (i.e., dependent, when data came from the same subjects), Wilcoxon signed-rank tests were used. For instance, comparisons such as non-/control features or changes in measurements between sessions (Mart´ınez-Cagigal et al.,2017,2019a,b). For unpaired comparisons (i.e., independent, when data came from different populations), such as the ones that compare control subjects versus patients, Mann– Whitney Utests (i.e., Wilcoxon rank-sum tests) were applied (Mart´ınez-Cagigal et al.,2017,2019a). 4.8.2 Multiple testing correction In the literature, the result of a test is considered significant if p-value < α; i.e., the probability of the comparison not being significant (false positive, type I error) is less than α. However, when Nindependent tests are applied, the probability of making at least one type I error by chance drastically increases to 1 −(1 −α)N (e.g., 99.41% for N= 100 and α= 0.05), the so-called family-wise error rate (FWER). This phenomenon is known as the multiple comparisons problem or the look-elsewhere effect, and requires to establish a stricter αvalue or to adjust the p-values to compensate the inferences being made (Narsky and Porter,2013). Multiple testing can be addressed by correcting the FWER (e.g., Bonferroni, ˇ Sid´ak, Holm-Bonferroni) or the false discovery rate (FDR) (e.g., Benjamini- Hochberg, Benjamini-Yekutieli, Storey q-values) (Farcomeni,2008). The latter is defined as the expected proportion of type I errors among the tests that have already been considered significant. In this Doctoral Thesis, the procedure of Benjamini-Hochberg (BH) was applied to correct the p-values by assuring that FDR = α(Mart´ınez-Cagigal et al.,2019b). The algorithm (1) sorts the obtained p-values in descending order, p; (2) calculates ˆ p=Npk/k for k= 1,2, . . . , N; and finally (3) adjusts the p-values by computing the cumulative minimum of vector ˆ p, i.e. p∗ k= min ˆp1,...,k (Benjamini and Hochberg,1995).
Chapter 5 Results In this chapter, the most relevant results of the Doctoral Thesis are summarized. They are organized according to the hypotheses of section 2.1, which in turn have almost a directly relation with the papers that encompasses the compendium of publications (see appendix A). 5.1 Asynchronous management using thresholding and entropy metrics Asynchronous management in P300-based BCI systems was assessed by two different approaches: thresholding (section 4.6.1), and MSE (section 4.6.2). The thresholding approach was implemented in the assistive applications. Its viability was tested online with motor-disabled subjects (Mart´ınez-Cagigal et al., 2017,2019a) according to the procedure detailed in section 4.6.1. Figure 5.1 shows the normalized SW-LDA scores of the selected characters for non-/control calibration runs in both applications. As shown, the discriminative ability of the threshold is higher for HS, reaching averaged training accuracies of 96.00%±4.77% and 96.74%±3.47% for the web browser and social networking applications, respectively. By contrast, these accuracies were reduced for the patients, yielding 86.77%±7.47% and 84.31%±9.16%, respectively. The predictive validity of the thresholds was thus expected to decay in the evaluation sessions. However, it should be noted that the purposes of both papers were oriented toward the evaluation of the web browser and social networking applications. Therefore, the asynchronous management was not isolated and online performances were evalu- 67
68 Chapter 5. Results Figure 5.1: Asynchronous threshold estimation in the calibration sessions of (A) web browser and (B) social networking applications. Boxplots depict normalized SW-LDA scores of the selected characters for control (blue) and non-control (red) runs. The averaged threshold value of each user is also shown as a dash-dotted line. ated using thresholding as a part of the overall system (see sections 5.3 and 5.4). In this regard, the false negative rate (FNR), defined as the ratio of false negatives to the total number of selections, is an excellent measure to estimate the benefit from using an asynchronous approach. HS reached an averaged FNR of 4.61%±6.48% and 1.10%±3.17% for the web browser and social networking applications, respectively; whereas motor-disabled patients obtained 10.87%±12.46% and 1.54%±4.18%. Non-/control state signals were also characterized offline by applying SampEnbased MSE, according to the procedure described in section 4.6.2. As aforementioned, EEG recordings of 10 HS attending (i.e., control) and ignoring (i.e., noncontrol) the RCP stimuli were recording with a 16-channel cap (see section 3.1). Then, data was randomly divided into optimization (36 trials per user) and validation (84 trials per user) sets. Hyperparameters were optimized using a wrapper LDA-based leave one subject out procedure (see sections 4.5.1 and 4.7.1) over the optimization set (Mart´ınez-Cagigal et al.,2019b).
5.1. Asynchronous management using thresholding and entropy metrics 69 Table 5.1: Validation results for each user in the asynchronous SampEn-based MSE approach. Ns1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Accuracies (%) AH01 71.4 77.4 81.0 85.7 88.1 88.1 89.3 90.5 94.1 94.1 92.9 92.9 94.1 95.2 94.1 AH02 83.3 88.1 89.3 85.7 89.3 89.3 91.7 91.7 91.7 90.5 92.9 91.7 92.9 94.1 92.9 AH03 83.3 82.1 88.1 83.3 86.9 90.5 88.1 90.5 94.1 92.9 92.9 92.9 92.9 92.9 92.9 AH04 61.9 78.6 81.0 75.0 75.0 75.0 81.0 81.0 79.8 81.0 83.3 90.5 89.3 91.7 91.7 AH05 72.6 70.2 72.6 78.6 78.6 82.1 89.3 89.3 91.7 91.7 91.7 94.1 95.2 96.4 96.4 AH06 89.3 94.1 96.4 96.4 95.2 94.1 96.4 95.2 94.1 95.2 96.4 96.4 96.4 97.6 98.8 AH07 75.0 89.3 92.9 95.2 96.4 96.4 95.2 95.2 92.9 94.1 95.2 95.2 96.4 96.4 95.2 AH08 77.9 80.6 85.7 86.9 86.9 88.1 86.9 84.5 89.3 89.3 86.9 89.3 90.5 89.3 89.3 AH09 78.6 90.5 91.7 88.1 94.1 90.5 92.9 95.2 95.2 92.9 95.2 95.2 97.6 95.2 96.4 AH10 76.2 86.9 91.7 95.2 95.2 92.9 94.1 92.9 95.2 97.6 97.6 96.4 96.4 96.4 96.4 Mean 76.9 83.8 87.0 87.0 88.6 88.7 90.5 90.6 91.8 91.9 92.5 93.5 94.2 94.5 94.4 SD 7.6 7.2 7.1 7.1 7.2 6.2 4.6 4.7 4.6 4.5 4.4 2.5 2.8 2.6 2.8 CC Mean 0.8 3.5 8.2 14.6 22.6 32.5 43.7 54.9 69.7 86.3 104.9 125.2 146.4 170.6 196.8 SD 1.0 0.3 0.8 1.0 1.4 2.0 3.1 3.3 3.8 4.7 5.6 6.0 6.5 7.2 8.6 Ns: number of sequences; CC: computational cost (in ms), SD: standard deviation. These results were obtained using the optimal hyperparameters: τ= 2, m= 1, r= 0.3. The parameters that maximized the accuracy over the optimization set were m= 1, r= 0.3 and τ= 2. It was observed that accuracies show a decreasing tendency as the scale increased, regardless of the embedding dimension. Furthermore, the variation of the tolerance did not make a significant impact on the results, especially for the smallest scales. Figure 5.2(A) depicts the grand-averaged MSE values from the optimization set among all subjects for control (blue) and non-control (red) trials. Note that differences between both states were also statistically significant (p-values <0.05, Wilcoxon signed-rank test, FDR-BH corrected) for all scales and channels. At the subject level with the fixed hyperparameters (see Figure 5.2(B)), these differences were mainly significant over the prefrontal and occipital lobes. Table 5.1 summarizes the results of the validation stage. An average accuracy of 94.49% ±2.81% in classification was reached using 15 sequences. As expected, the higher the number of sequences, the higher performance. Since the optimal scale was found to be τ= 2, an online setup would only compute the SampEn over the decimated signal, ignoring the remaining scales. In order to demonstrate the viability of the proposed framework, an average of 1000 iterations of the algorithm were computed to estimate the computational cost under an Intel Core i7-7700 CPU @ 3.60GHz (32 GB RAM, Windows 10, MATLAB ® 2018a). As shown, the averaged elapsed time when using 15 sequences was 196.78 ±8.64 ms.
70 Chapter 5. Results Figure 5.2: (A) Grand-averaged MSE values from the optimization set of control (blue) and non-control (red) states. Embedding dimension and tolerance were set to m= 1 and r= 0.3, respectively. Solid lines indicate the average values, whereas shaded areas indicate the standard deviation across observations. (B) Significant differences between control and non-control features from the optimization set of each user. Hyperparameters were set to the optimal values (τ= 2, m= 1, r= 0.3). Significant results are colored (p-value <0.05, Wilcoxon signed-rank test, FDR-BH corrected), whereas non-significant results are depicted in white.
5.2. Novel meta-heuristics as channel selection methods 71 5.2 Novel meta-heuristics as channel selection methods The usefulness of meta-heuristics as channel selection methods for P300-based BCIs was explored in (Mart´ınez-Cagigal et al.,2020). A total of 3 single- (GA, BDE, BPSO) and 3 multi-objective (NSGA-II, BMOPSO, SPEA2) existing evolutionary algorithms were compared with three public databases that used RCP, CS and RSVP paradigms (see sections 3.1 and 3.2). Owing to the limitations of these meta-heuristics when applied to this discrete problem, DFGA was also proposed as a novel multi-objective algorithm especially designed to the BCI framework. In order to assure a fair comparison among the algorithms, all of them used m= 20 individuals and performed a total of 4000 evaluations. Furthermore, all the algorithms were computed 20 times in order to avoid local minima . Convergence analysis of the meta-heuristics, in function of the database, is summarized in figure 5.3. Averaged convergence curves of single-objective algorithms show the evolution of the aggregated objective function F(s) across generations, estimating the ability of each method to search for an optimal solution in training phase. Training pareto-optimal solutions of the multi-objective approaches across subjects are also depicted. Figure 5.4 shows the grand-averaged ranks of selected channels for each algorithm; i.e., a rank is the normalized number of times that a channel was selected across the repetitions. Results of the testing phase of single- and multi-objective meta-heuristics are detailed in table 5.2 and figure 5.5, respectively. Table 5.2 details the averaged testing accuracies of the solution that reached the minimum F(s) value across the repetitions. The increase in accuracy of GA, BDE and BPSO in comparison with the entire set of channels and the Krusienski’s set was statistically significant for almost all subjects (i.e., p-values<0.05, Wilcoxon signed-rank test, FDR-BH corrected). Differences among GA, BDE and BPSO were not significant. Figure 5.5, by contrast, shows the testing accuracies of those solutions that formed the Pareto-front, using the maximum number of sequences available. A computational analysis was also performed under an Intel Core i7-7700 CPU @ 3.60 GHz, 32GB RAM, Windows 10 Pro, using MATLAB ® 2018b. In order to estimate the computational burden of each algorithm, the required time to evaluate a solution was measured: NSGA-II (331 ms), DFGA (591 ms), GA (785 ms), BDE (810 ms), SPEA2 (835 ms), BMOPSO (852 ms), and BPSO (858 ms). From a complexity point of view, all the multi-objective meta-heuristics, including DFGA, behave as O(Nom2), where Nois the number of objectives and mis the
72 Chapter 5. Results Figure 5.3: Convergence analysis of the applied meta-heuristics in the channel selection study for each database. (A) Grand-averaged convergence curves of single-objective meta-heuristics (GA, BDE, BPSO) in function of the aggregated F(s) objective. Mean values are displayed with solid lines, whereas the 95% confidence interval of the subjects’ repetitions is indicated by the shaded area. (B) Pareto-optimal solutions of multiobjective approaches (DFGA, NSGA-II, SPEA2, BMOPSO) across subjects and repetitions. Figure 5.4: Grand-averaged channel ranks of each meta-heuristic (single: GA, BDE, BPSO; multi: NSGA-II, BMOPSO, SPEA2, DFGA) in function of the database. Krusienski’s set (KRU) is also depicted. population size. 5.3 An asynchronous assistive application for web browsing The application of the asynchronous thresholding method led to the development of a practical assistive P300-based BCI application for web browsing. The sys-
5.3. An asynchronous assistive application for web browsing 73 Figure 5.5: Testing character accuracies of the final Pareto-fronts returned by multiobjective meta-heuristics (DFGA, NSGA-II, SPEA2, BMOPSO) for the averaged subjects of each database. For comparison purposes, Krusienski’s set (KRU) is also depicted as a cross. Table 5.2: Averaged testing accuracies and number of channels across users of the selected run for each single-objective meta-heuristic. Mtd. Competition Center RSVP Acc. NAcc. NAcc. N GA 92.0% 14.0 97.4% 12.4 84.6% 13.4 BDE 92.0% 14.5 97.9% 12.5 85.5% 13.4 BPSO 92.0% 14.0 96.8% 12.5 85.0% 13.7 ALL 92.0% 64.0 86.5% 63.0 80.3% 61.0 KRU 86.5% 8.0 95.2% 8.0 78.6% 8.0 Mtd.: method, Acc.: accuracy, N: no. of sequences. Results obtained using the maximum number of sequences available for each database (competition: 15, center: 10, RSVP: 10). tem was composed by three stages: (1) data acquisition, which recorded and pre-processed the EEG signals; (2) processing, which encompassed the feature extraction and classification, as well as the asynchronous management; and (3) web surfing, which translated the selections into browser commands and returned feedback to the users (Mart´ınez-Cagigal et al.,2017). Figure 5.6 depicts the graphical user interface. The application displayed the Google Chrome web browser on the left side of the screen, reserving space for the RCP matrices on the right side. In particular, two different RCP matrices were used due to the great amount of commands required to perform a comprehensive web surfing: (i) navigation and (ii) keyboard matrices. The small size of the former (5×3) allowed users to select the commands quickly and perform a smooth navigation. The latter (9×5), by contrast, included alphanumeric characters and symbols, because it was intended to write e-mails and fill out forms. Note that the user could toggle between both by selecting the command MTX. Signal processing,
80 Chapter 5. Results Figure 5.9: Snapshots of the assistive social networks mobile application. From left to right: Twitter’s profile timeline, dialog for writing tweets and tweet view; and Telegram’s conversation list, group chat and contacts list. Table 5.5: Evaluation tasks for the assistive social networks mobile application. Task AT Description OS RM MDP HS MS Eval-I Toggling Yes Scroll up and down Twitter’s timeline and toggle to Telegram 3 N 1:10 1:46 Retweeting Yes Scroll down Twitter’s timeline, select a tweet and retweet it 4 N 1:50 3:13 Writing a tweet Yes Open the form to write a tweet and spell “hello” 7 N,K 3:54 6:01 Replying Yes Access the user profile and reply the last tweet with “great!” 11 N,K 5:53 8:13 Creating a chat Yes Select a Telegram’s contact, create a new chat and spell “how are you?” 11 N,K 6:15 7:31 Chatting Yes Select a Telegram’s chat and reply with “fine, and you?” 12 N,K 7:31 7:49 AT: asynchronous threshold enabled?, OS: optimal selections, RM: required matrices (N: navigation matrix, K: keyboard matrix), AD: average duration in minutes:seconds, HS: healthy subjects, MDP: motor disabled patients. number of sequences for each session and subject are detailed in table 5.6. It is noteworthy that 4 patients (DP01, DP07, DP11 and DP13) were discarded from the assessment because they did not obtain a minimum accuracy of 70% in the calibration sessions. At the end of Eval-I, a 7-point Likert questionnaire was given to the subjects in order to collect their impressions and suggestions. Averaged qualitative results of the questionnaires are shown in figure 5.10. As shown, subjects were generally satisfied with the application. Exceptions were the same as in the web browser assessment, including the time that was required to navigate through the application and the toughness of the sessions. By contrast, suggestions were focused on getting rid of the conductive gel and demanding more speed.
5.4. Control of smartphone-based social networks 81 Table 5.6: Accuracy results of the assessment sessions for the assistive social networks mobile application. Subjects Cal-I Cal-II NsEval-I Average T1 T2 T3 T4 T5 T6 Acc. OCM1 HS DH01 100% 91.7% 11 100% 100% 100% 90.9% 90.9% 91.7% 93.8% 1.38 DH02 100% 97.2% 6 100% 100% 85.7% 100% 100% 100% 97.9% 2.37 DH03 95.8% 95.8% 13 100% 83.3% 85.7% 100% 100% 92.3% 94.2% 1.10 DH04 100% 95.8% 7 100% 66.7% 100% 81.8% 100% 73.3% 85.2% 1.95 DH05 87.5% 91.7% 5 100% 100% 100% 90.9% 100% 100% 98% 2.90 DH06 91.7% 91.7% 8 100% 100% 71.4% 100% 100% 66.7% 86.7% 1.57 DH07 95.8% 100% 8 100% 60% 57.1% 81.8% 91.7% 81.8% 79.6% 1.84 DH08 77.8% 91.7% 4 100% 100% 100% 100% 90.9% 91.7% 95.8% 3.55 DH09 100% 100% 8 100% 100% 100% 91.7% 100% 100% 98% 1.90 DH10 100% 95.8% 7 100% 80% 100% 100% 90.9% 91.7% 93.9% 2.06 Mean 94.9% 95.1% 7.7 100% 89% 90% 93.7% 96.4% 88.9% 92.3% 2.06 SD 7.4% 3.4% 2.7 0% 14.8% 14.4% 7.1% 4.4% 10.9% 6% 0.73 MD DP01 <70% <70% - - - - - - - - - DP02 41.7% 83.3% 10 †66.7% 60% 66.7% 63.6% 63.6% †100% 65.2% 1.58 DP03 50% 50% 14 †100% †57.1% - - - - 72.7% 1.41 DP04 95.8% 95.8% 9 100% 100% 100% 100% 77.8% †100% 95.1% 1.51 DP05 95.8% 70.8% 7 100% 100% 85.7% 90.9% †100% 100% 95.6% 2.11 DP06 83.3% 77.8% 7 100% 85.7% 100% 100% 100% 84.6% 94.3% 2.18 DP07 <70% <70% - - - - - - - - - DP08 87.5% 68.2% 10 100% 100% 85.7% 58.3% †40% †71.4% 71.1% 1.50 DP09 100% 72.2% 13 100% 100% 100% 81.8% †50% 0% 84.4% 1.15 DP10 79.2% 79.2% 13 †66.7% 40% 75% †63.6% 0% 0% 63% 1.20 DP11 <70% <70% - - - - - - - - - DP12 83.3% 87.5% 12 †66.7% 100% 75% 81.8% †60% 0% 76.3% 1.15 DP13 <70% <70% - - - - - - - - - DP14 66.7% 58.3% 9 †66.7% 100% 85.7% 58.3% †66.7% †60% 68.8% 1.62 DP15 83.3% 87.5% 13 100% 66.7% 87.5% 72.7% 100% 100% 88.2% 1.12 DP16 95.8% 87.5% 14 †66.7% 100% 75% 90.9% 91.7% 100% 89.8% 1.02 DP17 50% 33.3% 15 100% 83.3% 66.7% 45.5% - - 65.5% 1.01 DP18 95.8% 91.7% 7 100% 100% 100% 100% 100% 92.3% 98% 2.02 Mean 79.2% 74.5% 10.988.1% 85.2% 84.8% 77.5% 70.8% 67.4% 80.6% 1.47 SD 18.8% 16.9% 2.7 16% 19.9% 12% 17.7% 29.5% 40.8% 12.4% 0.40 Patients DP01, DP07, DP11 and DP13 were removed from the assessment because they did not achieved a minimum accuracy of 70% in the calibration sessions. Ns: number of sequences, Acc.: accuracy, OCM: output characters per minute. SD: standard deviation. 1Averaged OCM do not include those tasks that users could not accomplish, since total duration would be unknown. †Task not completed.
82 Chapter 5. Results Figure 5.10: Questionnaire results for the assistive social networks mobile application. Boxplots of HS (green) and motor-disabled patients (orange) are shown, where mean values are indicated as black dots. For visualization purposes, negative questions are detailed first, followed by positive ones.
Chapter 6 Discussion In this Doctoral Thesis, several aspects of practical P300-based BCIs have been addressed. Firstly, BCI asynchrony was explored by proposing two different approaches. The thresholding approach was implemented and tested in a real application with motor-disabled subjects, assuring its efficacy in a practical environment. Then, an offline MSE approach was able to successfully characterize asynchronous states, finding that control signals are significantly more complex and irregular than non-control ones. Secondly, a novel multi-objective meta-heuristic was especially designed to select a customized set of channels for each user. The viability of the proposed method was analyzed in terms of computational cost and convergence, as well as by comparing the results with those yielded by other existing single- and multi-objective algorithms. Thirdly, a practical asynchronous BCI web browser was developed and tested with HS and MS subjects. Testing accuracies of HS and MS patients reached 95.75% and 84.14%, respectively; exhibiting a suitable control of the system. Lastly, a mobile BCI application to access social networks was developed and assessed by HS and motor-disabled subjects. Results showed that users could successfully control the BCI, reaching averaged online accuracies of 92.3% and 80.6%, respectively. We consider that these applications contributed to bridge the accessibility gap of Internet and mobile networks, making an impact in the quality of life of the motor-disabled by improving their personal autonomy. In this chapter, the aforementioned findings are discussed according to the flow of hypotheses and results of previous chapters. At the end, the main limitations of this thesis are presented. 83
84 Chapter 6. Discussion 6.1 Assuring the asynchrony of practical systems Assuring the asynchrony of the BCI is essential to provide a comprehensive selfpaced control of the system in a real environment. The thresholding approach has demonstrated its viability in a practical setup, reaching averaged training accuracies above 96% and 84% for HS and motor-disabled patients, respectively; and avoiding a large number of incorrect selections in online sessions (Mart´ınez- Cagigal et al.,2017,2019a). This implies that the discrimination of non-/control state signals based on SW-LDA scores is feasible. Furthermore, owing to the fact that the method is embedded into the classification stage, it does not increase the overall complexity of the signal processing pipeline. However, its greatest advantage it is also its main defect. It is well known that the EEG presents a high inter-session variability, which causes the need to recalibrate the ERP classifier frequently. The dependence on the classifier forces to also update the thresholding approach due to changes in classifier’s scores, which implies recording additional non-control signals. Therefore, its performance is linked to the pattern recognition stage, compromising the overall system as the number of sessions increase. The aforementioned limitation of the thresholding method is overcome by the MSE approach. It has been demonstrated that SampEn-based MSE can characterize non-/control state signals, allowing a reliable discrimination between them, which is also independent of the ERP classifier (Mart´ınez-Cagigal et al.,2019b). As shown, both states behave similarly to dynamical changes in different MSE scales, but control signals present a steeper slope. Thus, non-control signals are more regular in most scales, which implies that control signals are, from the point of view of the information theory, more complex (Costa et al.,2002). It is noteworthy that non-control signals become more unstable as the scale increases, whereas control ones are generally more defined, showing smaller values of standard deviation. For most subjects, these variations yielded significant differences (p–values <0.05) in almost all channels, favoring the discrimination between both states. Topographical results also showed an easier discrimination over the PFC, commonly associated with planning complex cognitive behaviors, personality expression, decision making and selective attention (Miller et al.,2002). This is consistent with the RCP task, which implies a constant attention to identify target stimuli among other background stimuli. In fact, oddball tasks were demonstrated to produce hemodynamic changes in the dorsolateral PFC, associated with response strategies (i.e., mapping of the stimuli to responses) (Huettel and McCarthy,2004). Another recent study suggested that the elicitation of P300 waves are linked to complex
6.1. Assuring the asynchrony of practical systems 85 processes such as memory, attention and decision making; somewhat related with the PFC (Bojorges-Valdez and Yanez-Suarez,2018). Although less intense, differences over V1 are also shown. Neurons of V1 fire action potentials whenever visual stimuli appears in the receptive field and thus, a higher amount of neurons are expected to be activated in the control state (Standring,2016). Since the feature extraction process used raw signals including target and non-target stimuli, neural activation of V1 is expected to spread electrical activity across the frequency spectrum. Entropy measures are thus able to follow that activation, increasing the irregularity of control state signals. The ability of SampEn to discriminate between asynchronous states is reinforced in the validation sessions, reaching an average accuracy of 94.4% in HS. Even though the asynchronous detection is feasible for all scales, maximum differences were found in τ= 2, equivalent to reducing the sampling rate of the EEG signal by half before applying the SampEn algorithm. In practice, it would not be required to compute all MSE scales, but only to implement a decimation block, followed by a SampEn feature extraction process. As shown, the total computational duration for 15 sequences was 196.8 ms. Since most P300-based BCIs use pauses of more than 1 second between characters (Farwell and Donchin,1988; Schalk et al.,2004;Treder et al.,2011), the computational cost of the proposed algorithm assures its viability in a practical online BCI assessment. Discrimination accuracies also depicted an increasing tendency as the number of sequences increased, suggesting that the proposed method is dependent on the length of the raw signals. Particularly, all subjects except AH04 and AH08 reached more than 90% accuracy using 9 sequences; and even AH06, AH07 and AH09 reached it using only 3 sequences. Although this tendency is clear for all subjects, some users presented a sequential increase (e.g., AH01, AH05, AH08, AH09), while others reached a standstill (e.g., AH03, AH10). This behavior reinforces the need to perform individual calibrations and optimize BCI applications to each subject separately. Table 6.1 summarizes a comparison between previous asynchronous P300-based BCI applications, emphasizing their asynchronous strategies. As shown, most of the studies followed a thresholding approach, either LDA (Aloise et al.,2011;Breitwieser et al.,2016;Mart´ınez-Cagigal et al.,2017,2019a;Pinegger et al.,2015; Tang et al.,2018) or SVM based (Li et al.,2013;Zhang et al.,2008). Despite their suitable performances, the dependence on the ERP classifier makes them impractical in the long term due to the inherent inter-session variability of the EEG. As aforementioned, threshold values should be updated each time the classifier
86 Chapter 6. Discussion Table 6.1: Comparison between asynchronous P300-based BCI applications. Study Signal Paradigm Asynchronous management Subjects Zhang et al. (2008) P300 Cells ROC thresholding using SVM scores 4HS Panicker et al. (2010) P300, SSVEP Hybrid Detection of SSVEPs using relative peak amplitude in PSD 10HS Aloise et al. (2011) P300 RCP ROC thresholding using LDA scores 11HS Li et al. (2013) P300, SSVEP Hybrid ROC thresholding using SVM scores (P300) and relative powers (SSVEP) 8HS Pinegger et al. (2015) P300 RCP Thresholding using LDA scores and sum of spectral components 10HS Breitwieser et al. (2016) P300, SSSEP Hybrid Thresholding using multi-class LDA 14HS Mart´ınez-Cagigal et al. (2017) P300 RCP ROC thresholding using LDA scores 5HS, 16MS He et al. (2017) P300 RCP Combination of two different SVM 8HS Yu et al. (2017) P300, SMR MI, RCP SMR activate the RCP 11HS, 8HS Aref and Huggins (2012) P300 RCP Certainty algorithm: t-test over LDA scores 11HS, 19CP Ma and Qiu (2018) P300 RCP ROC thresholding using relative powers 4HS Aydin et al. (2018) P300 HOS ROC thresholding using classifier labels 10HS Tang et al. (2018) P300 RCP ROC thresholding using LDA scores 4HS Santamar´ıa-V´azquez et al. (2019) P300, SSVEP RCP Oddball steady response detection 15HS Mart´ınez-Cagigal et al. (2019a) P300 RCP ROC thresholding using LDA scores 18HS, 10MDS Mart´ınez-Cagigal et al. (2019b) P300 RCP SampEn features and LDA classification 10HS SSVEP: steady-state visual evoked potentials, SSSEP: somatosensory evoked potentials, SMR: sensorymotor rhythms, MI: motor imagery, RCP: row–col paradigm, ROC: receiver operating characteristic, SVM: support vector machines, PSD: power spectral density, LDA: linear discriminant analysis, SampEn: sample entropy, CS: control subjects, MS: multiple sclerosis, CP: cerebral palsy, MDS: motordisabled subjects. weights are modified, requiring additional EEG recordings of non-control state observations. Other approaches added complementary spectral features (Ma and Qiu,2018;Pinegger et al.,2015) or employed hybrid paradigms (Li et al.,2013; Panicker et al.,2010;Yu et al.,2017) to implement filter methods independent of the ERP classifier. Yu et al. (2017) used SMR to activate RCP stimuli via MI, including a selection command to stop them. However, SMR-based control is considered unreliable and the extra command selection entails an increase of the required time to handle the asynchrony, making the system even more demanding. Li et al. (2013) and Panicker et al. (2010), by contrast, superimposed the RCP with a flickering visual effect. This strategy was intended to generate SSVEPs whenever users were paying attention to the stimuli, further detected using relative powers. An utterly different approach was followed by Pinegger et al. (2015) and Ma and Qiu (2018), who hypothesized that the RCP also generates residual
6.2. A novel nature-inspired algorithm to select relevant channels 87 SSVEP components provided the stimuli are displayed at a constant rate. These SSEVPs were identified in the frequency spectrum, providing supplementary features to the LDA scores. Recently, Santamar´ıa-V´azquez et al. (2019) extended this approach by proposing a novel filter method based on canonical correlation analysis that does not require the recording of non-control trials. Unfortunately, most of these studies were intended to develop novel assistive applications, reporting accuracies that depict the overall performance to predict correct characters, but ignoring non-control ones. For that reason, a quantitative statistical comparison cannot be performed among them. To sum up, one wrapper (thresholding) and one filter (MSE) asynchrony methods have been proposed. The thresholding approach has demonstrated its viability with motor-disabled subjects, yet it is strongly dependent on inter-session variability (Mart´ınez-Cagigal et al.,2017,2019a). Although this fact does not invalidate thresholding-based approaches straightaway, it is time consuming, affects the usability of the BCI and could be frustrating for users. Hence, strategies that do not depend on the classifier scores, such as residual SSVEP detection or the proposed entropy-based algorithm, should be preferred in the long-term. Although none of them has been evaluated with a motor-disabled population, results obtained by HS suggest the generalization is feasible. Among these methods, the SampEn-based has demonstrated to be able to characterize non-/control signals and monitor their dynamical changes to provide an asynchronous management independent of the inter-session variability (Mart´ınez-Cagigal et al.,2019b). It is also believed that performance could be improved by integrating other features from complementary methods, such as spectral-based algorithms; however, this hypothesis has not been explored yet. 6.2 A novel nature-inspired algorithm to select relevant channels Notwithstanding their still scarce application in BCIs, it has been demonstrated that single- and multi-objective meta-heuristics are able to select optimal BCI channel sets according to the features of each user, independent of the P300- based paradigm (Mart´ınez-Cagigal et al.,2020). In further BCI sessions, the supervisor should use the selected channels to avoid over-fitting, while reducing the preparation time and the overall cost of the assessment. In the light of the results, single-objective meta-heuristics such as GA, BDE
88 Chapter 6. Discussion and BPSO have succeeded in finding proper channel sets. In training phase, GA converged the fastest, followed by BDE and finally BPSO. Moreover, the overall complexity of the algorithms also follows this behavior, being GA the less computationally intensive, followed by BDE and BPSO. However, the quality of their optimized solutions F(s) were analogous, which explains the similarity of their performances in testing phase. This behavior is consistent for all databases, reinforcing the generalization of the results across different paradigms. It could be thus considered that GA is more fitted to the BCI channel selection problem, likely due to its inherently discrete inner strategies. On average, GA, BDE and BPSO reached 91.47% accuracy using 13.38 channels. The increase in accuracy compared to the entire channel set (i.e., ALL) and the standard Krusienski’s P300 8-channel set (i.e, KRU) was statistically significant for both (p-value <0.05). Therefore, it can be assured that customized channel sets are able to significantly improve the performance, making channel selection a beneficial stage for BCI system. It should be noted, however, that single-objective sets employed more channels than KRU. In this regard, channel densities of the solutions may be easily modified by adjusting the importance of the aggregated objectives: minimization of the amount of channels, f1(s); and maximization of the overall performance, f2(s) (equation 4.1). Despite the possibility to tune the total number of channels to be selected, single-objective meta-heuristics always return a single solution. Multi-objective algorithms, by contrast, return a set of optimal solutions, each one with different number of channels. The supervisor is then allowed to select one of them in function of the desired channel density. This fact poses a major advantage over traditional single-objective methods that should be taken into account if the supervisor has enough time for the computation. Among the existing algorithms, NSGA-II and SPEA2 reached similar Pareto-fronts, outperforming BMOPSO. Nonetheless, some of their inner strategies are suboptimal in the BCI channel selection problem, hindering the convergence of the algorithms. In this framework, solutions must be dichotomous, making continuous-based operations futile or counter-productive, such as crowding distances, distance soughts or transfer functions. Even repository control approaches are worthless, since its maximum size is already limited by the number of channels. Ultimately, all meta-heuristics must have been adapted to the problem to a greater or lesser extent. DFGA, by contrast, have been especially designed for the BCI channel selection framework, and so its Pareto-front is comparable to NSGA-II and SPEA2 while it converges faster. Channel ranks of BMOPSO also exposed a lack of convergence to a global optimum, which was
6.2. A novel nature-inspired algorithm to select relevant channels 89 afterward reflected in testing results. Accuracies indicated that KRU was outperformed using only 4 channels by DFGA, NSGA-II and SPEA2. Furthermore, results showed that there was a point where performance came to a standstill, making the use of more than 15–20 channels counter-productive. From the channel ranks results it was observed that optimal channel sets differ for each subject, confirming that a customized set benefits the subsequent performance. In spite of the usefulness of KRU as a general rule-of-thumb solution (Krusienski et al.,2008), results did not consider that combination optimal for any case. In fact, KRU was outperformed by both single and multi-objective metaheuristics, even using only 4 channels in case of DFGA, NSGA-II and SPEA2. This fact should not be surprising, since classifiers are always optimized for each subject due to the inherent variability of the EEG signals (Wolpaw and Wolpaw, 2012a). In fact, the inter-subject variability of optimal channel sets have been repeatedly observed in the literature, suggesting that the concept of using a general channel set for an entire population is suboptimal and should be avoided to the extent possible (Chaurasiya et al.,2017;Gonzalez et al.,2013;Jin et al.,2010;Kee et al.,2015). Since the selection of channels is somewhat related with the identification of P300 waves, a possible explanation of this phenomenon could be related with inter-subject differences between these potentials. It is documented that the amplitude, latency, and even the topographic distribution of P300 waves vary depending on: (i) individual differences (e.g., age, intelligence, personality, absolute pitch), (ii) psychological (e.g., attention, motivation) and (iii) pharmacological aspects (e.g., consumption of alcohol and other drugs), (iv) the paradigm (e.g., task complexity, target probability), (v) psychiatric disorders (e.g., schizophrenia, autism, obsessive-compulsive disorder, psychopathy, dementia, etc.), and (vi) external factors (e.g., variations in cap positions) (Picton,1992). In fact, the latter is present in almost all recordings, where EEG caps do not correctly fit some users, making some electrodes wobbly and producing noise. Taking into account all these facts, it is not surprising that most relevant channels for classification are not the same among different users, requiring a subject-optimized procedure to maximize the BCI performance. Moreover, channel ranks showed that meta-heuristics had a slight tendency to select electrodes over the occipital lobe. From a biological point of view, this tendency is sound. The EEG response of these visual oddball task is modeled as an ERP, composed by several components that are taken into account when extracting and classifying the features. Due to the ability of V1 to process information about visual stimuli, static and moving objects, it is thus expected that occipital electrodes contain relevant discriminative information about target
96 Chapter 6. Discussion that evaluating with HS and patients are radically distinct experiences. From the experience acquired by testing both the web browser and the social networking applications, it could be suggested that a patient tested BCI cannot be fully generalized to other patients. Hence, the viability of a HS-tested BCI should not be guaranteed for disabled patients under no circumstances. As indicated in the results of the evaluation session, HS achieved an averaged accuracy of 92.3%, whereas motor-disabled patients reached 80.6%. These results are in accordance with the web browser assessment, which stated that patients had a big handicap when controlling the BCI system, in comparison with HS. Motor-disabled subjects also experimented a lower speed because of their higher number of sequences, and not all of them were able to finish all the tasks. Differences between accuracies, number of sequences and average OCM of HS and MDS were significant (p–values <0.05). Despite the aforementioned issues, 80.6% is considered sufficient for experimenting an actual control of a BCI (K¨ubler et al., 2001). Noteworthy, it was observed that selection errors often caused more mistakes thereafter, probably due to despondency. A possible bypass could rely on spelling dictionaries or processing error-related potentials. Questionnaire results were similar to those obtained with the web browser, showing a general satisfaction with the system. Users did not experiment impatience, boredom, fatigue or stress; and patients could imagine themselves using the application in their daily life. However, they demanded more speed and shorter evaluation sessions. The latter also reveals an issue that should be taken into consideration when designing the tasks, their duration and the structure of the assessment sessions; which could be tiresome for some users due to individual characteristics caused by their diseases. Even so, users were willing to carry out more sessions and participate in similar studies. Notwithstanding the growing popularity of smartphones, mobile BCIs are scarce in the literature. Furthermore, to the best of our knowledge, there are no previous studies that attempted to provide a high-level control of the device, nor controlling any social network or their functionalities. Table 6.4 shows a comparison among previous mobile BCIs, detailing the control signal, the target operating system, their main functionalities and the final assessment accuracies. Previous studies were focused to dial numbers (Chi et al.,2012;Wang et al.,2011), call contacts (Campbell et al.,2010;Katona et al.,2014;Wang et al.,2011), spell words (Elsawy et al.,2017;Obeidat et al.,2017), visualize the gallery (Elsawy and Eldawlatly,2015) or play simple games (Wu et al.,2014). Most of them used P300 potentials, whereas some of them used SSVEPs (Chi et al.,2012;Wang et al.,
6.4. Toward smartphone-oriented BCIs 97 Table 6.4: Comparison between mobile P300-based BCI applications. Study Signal Target OS Main functionalities Subjects Acc.1 Campbell et al. (2010) P300 iOS Call contacts 3HS 88.89% Wang et al. (2011) SSVEP Cell Dial numbers 10HS 95.90% Chi et al. (2012) SSVEP Cell Dial numbers 2HS 89.00% Katona et al. (2014) Conc. WP Accept/reject incoming calls 5HS 75.00% Wu et al. (2014) Conc. Android Play a simple racing game 5HS N.r. Elsawy and Eldawlatly (2015) P300 Android Open pre-installed apps 6HS 79.17% and visualize the gallery 87.50% Elsawy et al. (2017) P300 Android Spell words 6HS 64.17% Obeidat et al. (2017) P300 Android Spell words 14HS 90.00% Mart´ınez-Cagigal et al. (2019a) P300 Android Full asynchronous control 18MDS 80.60% of Twitter and Telegram 10HS 92.30% OS: operating system, Acc.: accuracy, SSVEP: steady state visual evoked potential, Conc.: concentration signal (derived from Neurosky EEG caps), Cell: cell phone, WP: Windows phone, HS: healthy subjects, MDS: motor-disabled subjects, N.r.: not reported. 1If a study provides several measurements, the highest online accuracy is shown. 2011) and Neurosky concentration (Katona et al.,2014;Wu et al.,2014) control signals. Although the processing of the latter is simple and can be handled by the headset itself, it is a commercial signal that only offers dichotomous decisions, hindering its use for a high-level control of a smartphone. As far as we know, none of them tested their proposals with motor-disabled patients, so their feasibility with target users is compromised. Moreover, the averaged HS accuracy of our approach (92.30%) overcame those reported for P300-based studies (Campbell et al., 2010;Elsawy and Eldawlatly,2015;Elsawy et al.,2017;Obeidat et al.,2017), and the results of MDS (80.60%) is also higher than those obtained by HS in (Katona et al.,2014) and Elsawy and Eldawlatly (2015). In fact, significant differences in performance were found between the latter and our study (p–values <0.05). The remaining studies did not provide unfolded accuracies for each user and thus, statistical analysis could not be performed. As shown, very few studies have attempted to control mobile devices through BCIs, and none of them was focused on providing a high-level control of the device nor social networking services. Our system provided a comprehensive control of Twitter and Telegram, covering all their functionalities and simultaneously reaching high accuracy results. For that reason, we could consider this study as a precursor that demonstrated the viability of smartphone-oriented BCIs, opening a new application field for BCIs aimed at increasing the quality of life of motordisabled people.
98 Chapter 6. Discussion 6.5 Limitations of the study Despite the utility of our proposals, the present Doctoral Thesis has some limitations that should be discussed as well. The asynchronous management using thresholding has demonstrated its feasibility with target users. However, the technique has a strong dependence on the ERP classifier, which forces the supervisor to record additional non-control signals whenever the classifier is updated. That wrapper dependence was overcome by the MSE-based proposal but, unfortunately, it was not tested with motor-disabled patients. Moreover, the validation was made using an offline LOO procedure, using more training trials in each iteration than those that are generally used in practice. Therefore, the performance of the proposed MSE-based asynchronous method is expected to decay slightly in a real environment. Further endeavors should be focused on testing the method in an online application. Even though meta-heuristics have demonstrated their utility in finding optimal channel sets for each user, they were only tested with HS subjects. Furthermore, since the purpose of the study was focused on the channel selection procedure, only basic feature extraction and classification algorithms were used. Whether these results could be improved or not using more sophisticated algorithms is still unknown. The proposed algorithms also entail high computational cost due to their wrapper nature, restricting their application after the calibration session. Moreover, hyperparameters were fixed according to the recommendations of the literature, but not optimized for each subject. It should be also noted that the ‘III BCI Competition’ database had more training trials than those that are usually recorded in practice. Regarding the assistive applications, their asynchronous managements were composed by thresholding approaches. Owing to the results, MSE-based asynchrony exhibited a higher offline performance than the thresholding approach and thus, it is suggested that results could have been improved by using it. In both applications, patients requested a higher speed. Whether the classifier’s performance and the speed could have been improved by using more robust classifiers or more training trials in the calibration session is an open question. Moreover, both applications lacked of despondency bypassing, causing a mistake to propagate further in some occasions. Regarding the social networking application, it should be highlighted that signal processing stage required a laptop to be executed, which favored the reliability but impaired the portability. In turn, it was tested with a heterogenous motor-disabled population, where a population with a certain disease
6.5. Limitations of the study 99 would have allowed to characterize its performance within that kind of patients. Likewise, in both applications the patients not only presented motor-disabilites, but also cognitive damage, which hindered the control of the BCIs. The last limitation concerns the number of subjects that composed each database. Although this limitation is commonly present in BCI studies due to the difficulty to recruit motor-disabled patients, the sample size should be increased to favor the generalization of the results.
Chapter 7 Conclusions During the previous chapters of this Doctoral Thesis it has been laid bare the common thread of the included studies: signal processing (i.e., asynchrony, channel selection) and assistive applications (i.e., web browser, social networking app) of P300-based BCIs toward a real use of these devices by motor-disabled people. These studies are intended to be a starting point to take the leap from laboratories and provide an actual use of BCIs in real environments. Among the signal processing approaches, it has been proposed two asynchronous methods to provide a comprehensive control of the BCIs, and a multi-objective meta-heuristic to select reduced but efficient customized channel sets. In fact, the asynchronous thresholding method was implemented in the assistive applications: the web browser and the mobile social networking app, whose feasibility has been assessed by target users. In this chapter, the original contributions of this compendium of publications are highlighted in section 7.1. The next section 7.2 indicates the joint conclusions of these studies. Lastly, future endeavors related to this research are enumerated in section 7.3. 7.1 Contributions The main contributions provided by this compendium of publications are listed next: 1) Development of a thresholding asynchronous method based on SW-LDA scores to monitor users’ attention while using P300-based BCIs. Evaluation 101
102 Chapter 7. Conclusions of its feasibility with target users through its integration into two assistive applications (Mart´ınez-Cagigal et al.,2017,2019a). 2) Characterization of control and non-control state EEG signals during RCP stimulation through entropy-based measures. The analysis in terms of regularity and complexity led to the proposal of a MSE-based asynchronous method to avoid unintended selection of commands when using P300-based BCIs (Mart´ınez-Cagigal et al.,2019b). To the best of our knowledge, this was the first time that asynchronous states were characterized through entropy measures and used to develop an asynchronous monitoring independent from the ERP classifier. 3) Comparison of single and multi-objective meta-heuristics to select appropriate sets of channels for each user. Although some existing algorithms were previously applied to this problem, to the best of our knowledge, this was the first time that their performances were compared, as well as evaluated with different paradigms apart from RCP (Mart´ınez-Cagigal et al.,2020). 4) Proposal of DFGA, a novel multi-objective algorithm especially designed for the P300-based BCI channel selection problem. The algorithm demonstrated to reach similar or even higher performances than other approaches (MOPSO, NSGA-II, SPEA2), exhibiting a faster convergence (Mart´ınez- Cagigal et al.,2020). 5) Design, development and evaluation of an asynchronous BCI web browser to assist motor-disabled people. The application was successfully tested with a population of 16 MS and 5 HS users, demonstrating its viability with target users (Mart´ınez-Cagigal et al.,2017). 6) Design, development and evaluation of an asynchronous mobile BCI to control social networks (Twitter and Telegram) for those whose command of hands and fingers is limited. The system was assessed by a population of 18 motor-disabled and 10 HS, demonstrating its feasibility to bridge the accessibility gap in current smartphones (Mart´ınez-Cagigal et al.,2019a). 7.2 Main conclusions The analysis of the results (chapter 5) and its discussion (chapter 6) of the studies as a whole allows to draw the main conclusions of this Doctoral Thesis, which are enumerated below:
7.3. Future research lines 103 1) A practical P300-based BCI should implement an asynchronous management in order to avoid unintended command selections. This stage is essential to provide a comprehensive control of the system and avoid the dependence of supervisors, supporting the personal autonomy of the target users. 2) The integration of an asynchronous detection stage improves significantly the performance of the users in assistive BCI applications. The amount of selection mistakes is also reduced drastically. 3) EEG signals of users when attending to visual oddball stimuli are significantly more complex and irregular that those obtained when ignoring them. These differences allow to monitor their attention using entropy-based metrics. 4) Optimal channel sets depends strongly on the individual, showing a high inter-subject variability. Therefore, an optimization for each user is beneficial for the overall performance of the BCI, constituting a recommendable procedure if enough time is available after the calibration. 5) Discrete multi-objective meta-heuristics are suitable to find optimal sets in function of the number of electrodes, significantly outperforming the general rule-of-thumb of using eight channels for P300-based BCIs. A balanced combination of deterministic and stochastic techniques (e.g., DFGA) is also beneficial for their convergence. 6) Performances of motor-disabled users are significantly lower than those obtained by control subjects. Hence, assistive BCIs must be tested with target users in order to assure their feasibility in a real setup. 7) P300-based social networking through smartphones and web browsing have proven to be useful assistive applications for the motor-disabled. Their integration in the everyday life of dependent people is viable. 8) Opinions of the motor-disabled population reflect a general satisfaction with the assistive applications. Patients imagine themselves using P300-based BCIs in their daily life in the near future. 7.3 Future research lines Several questions derived from this investigation may be the object of further endeavors to complement our findings, or even to take care of other topics that do
104 Chapter 7. Conclusions not belong to the scope of this Doctoral Thesis. In this regard, the most interesting future research lines are discussed next. Concerning the MSE-based asynchronous approach, the combination of the proposed method with other complementary filter algorithms (e.g., spectral analysis) may improve its performance and constitutes an interesting future line of investigation. Moreover, the fact that the MSE-based algorithm does not depend on the ERP classifier leads us to encourage its assessment with a motordisabled population to favor the generalization of the results. Studying whether the proposed feature is useful in characterizing other related aspects such as BCI illiteracy or inter-session variability would be interesting as well. Regarding the channel selection algorithms, the proposed meta-heuristics were evaluated using a simple processing pipeline. Future work could be focused on (i) improving the performance by complementing them with regularization techniques; or (ii) reducing their computational cost by integrating embedded strategies into the ERP classifiers. Another interesting future research could be the application of these meta-heuristics to feature selection problems. With respect of the applications, the asynchronous management of both (web browser and social networking) employed the thresholding approach. Improvements could be made by integrating the MSE-based proposal, which is independent of the ERP classifier and avoids the recording of non-control data whenever is updated. One natural way to continue our investigation would be the assessment of these proposals with a larger motor-disabled database. Moreover, it would be interesting to focus on disabilities that do not entail cognitive problems, such as ALS or stroke; who constitute the fittest target users for BCIs. We also believe the general performance of the assistive applications may be improved by using more complex classification algorithms that could follow the inter-subject and inter-session variability of the ERPs; e.g., deep learning techniques. Finally, a long-term longitudinal validation of these applications could give insight into how socio-technological interactions and disease progression would affect the efficacy of the BCI system.
Appendix A Papers included in this Doctoral Thesis
Figure 4: Accuracy results of the optimization stage in function of different values of embedding dimension m, tolerance r, and scale τ. Optimal combination of hyperparameters is marked with a cross, which corresponds to m= 1,r= 0.3, and τ= 2. Figure 5: Wilcoxon signed-rank test p-values that show significant differences (i.e., from 0 to 0.05) between control and non-control SampEn features in the optimization dataset. Hyperparameters were fixed to their optimal values. Note that p-values were adjusted using the Benjamini–Hochberg False Discovery Rate (FDR) step-up procedure. ever, since we extract features using the entire raw control EEG signal, P300 are surpassed by nontarget stimuli. Recent studies suggest that peripheral flickering stimuli in the RCP task produce SSVEP responses (Panicker et al., 2010;Pinegger et al.,2015;Ma and Qiu,2018), which propagate from occipital to prefrontal electrodes (Srinivasan et al.,2006). Note that these topographic results measure significant differences between the irregularity of control- and non-control-state EEG signals. According to previous analysis, attending to a RCP task should activate a greater number of neurons than ignoring the stimuli, spreading electrical activity across the frequency spectrum. Therefore, entropy measures follow that spectral activation, increasing the irregularity of the control signals. One of the most crucial obstacles of BCI systems is to find methods that can be applied in real time. In relation to this, we consider important to analyze the potential of the proposed framework to determine the asynchronous state upon which a character is selected. As indicated in Table 2, the maximal computational time of the SampEn algorithm is approximately 197 ms using 15 sequences. Since most P300-based BCI studies use pauses of at least two seconds after each character, the computational cost of the proposed framework is perfectly acceptable (Schalk et al.,2004;Martínez-Cagigal et al.,2017,2018,2019). Concerning the validation stage, Figure 6and Table 1 show an increasing tendency of the final accuracies for all subjects as the number of sequences increases. Therefore, it is clear that the proposed asynchrony approach is dependent on the length of the signals, reaching an average accuracy of 94.40% for all subjects using 15 sequences. 7 112 Appendix A. Papers included in this Doctoral Thesis
Figure 6: Cumulative testing accuracies (control vs. non-control) as sequences increase for each subject. Lines indicate the number of sequences, where a solid line implies an increase and a dashed line implies a decrease of accuracy. Table 1: Testing accuracies of control vs. non-control states for each subject in function of the number of sequences. Ns1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 U01 71.43% 77.38% 80.95% 85.71% 88.10% 88.10% 89.29% 90.48% 94.05% 94.05% 92.86% 92.86% 94.05% 95.24% 94.05% U02 83.33% 88.10% 89.29% 85.71% 89.29% 89.29% 91.67% 91.67% 91.67% 90.48% 92.86% 91.67% 92.86% 94.05% 92.86% U03 83.33% 82.14% 88.10% 83.33% 86.90% 90.48% 88.10% 90.48% 94.05% 92.86% 92.86% 92.86% 92.86% 92.86% 92.86% U04 61.90% 78.57% 80.95% 75.00% 75.00% 75.00% 80.95% 80.95% 79.76% 80.95% 83.33% 90.48% 89.29% 91.67% 91.67% U05 72.62% 70.24% 72.62% 78.57% 78.57% 82.14% 89.29% 89.29% 91.67% 91.67% 91.67% 94.05% 95.24% 96.43% 96.43% U06 89.29% 94.05% 96.43% 96.43% 95.24% 94.05% 96.43% 95.24% 94.05% 95.24% 96.43% 96.43% 96.43% 97.62% 98.81% U07 75.00% 89.29% 92.86% 95.24% 96.43% 96.43% 95.24% 95.24% 92.86% 94.05% 95.24% 95.24% 96.43% 96.43% 95.24% U08 77.38% 80.95% 85.71% 86.90% 86.90% 88.10% 86.90% 84.52% 89.29% 89.29% 86.90% 89.29% 90.48% 89.29% 89.29% U09 78.57% 90.48% 91.67% 88.10% 94.05% 90.48% 92.86% 95.24% 95.24% 92.86% 95.24% 95.24% 97.62% 95.24% 96.43% U10 76.19% 86.90% 91.67% 95.24% 95.24% 92.86% 94.05% 92.86% 95.24% 97.62% 97.62% 96.43% 96.43% 96.43% 96.43% Mean 76.90% 83.81% 87.02% 87.02% 88.57% 88.69% 90.48% 90.60% 91.79% 91.90% 92.50% 93.45% 94.17% 94.52% 94.40% SD 7.58% 7.23% 7.11% 7.13% 7.23% 6.18% 4.59% 4.74% 4.61% 4.52% 4.38% 2.46% 2.77% 2.58% 2.81% Nsindicates number of sequences. In particular, all subjects except U04 and U08 reached more than 90% accuracy using nine sequences. Furthermore, U06, U07, and U09 were even able to reach it using only three sequences. Even though the increasing tendency is clear for all subjects, the slope appreciably varies among them. Some users present a sequential increase (e.g., U01, U05, U08, U09), while others reach a standstill (e.g., U03, U10). These results reinforce the fact that it is important to perform individual calibrations and separately optimize BCI applications to each subject (Wolpaw et al.,2002;Nicolas-Alonso and Gomez-Gil,2012; Martínez-Cagigal et al.,2018). Table 3depicts a comparison between previous asynchronous P300-based state-of-the-art applications. As shown, most of them follow a thresholding approach to discern between control and non-control states (Zhang et al.,2008;Aloise et al.,2011;Li et al.,2013;Pinegger et al.,2015;Breitwieser et al.,2016;Martínez-Cagigal et al.,2017;Aref and Huggins,2012;Alcaide-Aguirre et al.,2017;Ma and Qiu,2018;Aydin et al.,2018;Tang et al.,2018;Martínez-Cagigal et al.,2019). These thresholds are usually derived from receiver operating characteristic (ROC) curves that were fed using output scores of SVM (Zhang et al.,2008;Li et al.,2013) or LDA (Aloise et al.,2011;Pinegger et al.,2015;Breitwieser et al., 2016;Martínez-Cagigal et al.,2017;Tang et al.,2018; Martínez-Cagigal et al.,2019) classifiers. Note that these classifiers use downsampled raw signals from the stimuli onset as input features (Zhang et al.,2008;Panicker et al.,2010;Nicolas-Alonso and Gomez-Gil,2012; Li et al.,2013;Pinegger et al.,2015;Martínez-Cagigal et al.,2017;Yu et al.,2017b;Martínez-Cagigal et al., 2018;Aydin et al.,2018;Martínez-Cagigal et al.,2019). Since they were trained in a calibration session to detect P300 responses, these studies hypothesize that output scores of non-control characters are lower than those spelled in the control state. Therefore, the classifier that is intended to detect the P300 responses is also intended to discern between both asynchronous states. Notwithstanding their usefulness as computationally simple solutions, these approaches entail a clear drawback. Owing to the high intersession variability of the EEG signals, classifier weights should be updated from time to time to assure suitable performance (Wolpaw et al.,2002; 8 A.1. Mart´ınez-Cagigal et al. (2019b) 113
Table 2: Computational cost in milliseconds of the sample entropy algorithm in function of the number of sequences. Ns1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Mean 0.82 3.46 8.24 14.64 22.57 32.51 43.66 54.92 69.70 86.33 104.87 125.24 146.41 170.58 196.78 SD 0.99 0.28 0.82 1.03 1.40 2.00 3.10 3.30 3.84 4.69 5.56 5.96 6.50 7.20 8.64 Nsindicates the number of sequences. These results are obtained after running the sample entropy algorithm 1000 times. Nicolas-Alonso and Gomez-Gil,2012;He et al.,2017; Martínez-Cagigal et al.,2017,2019). Since threshold values depend on classifier scores, they are no longer useful if these weights are modified. Hence, additional control and non-control characters should be recorded in order to update the thresholds, which would entail a great amount of time. Other approaches add complementary spectral features (Pinegger et al.,2015;Ma and Qiu,2018) or implement hybrid paradigms (Panicker et al.,2010; Li et al.,2013;Yu et al.,2017b) to develop filter methods that are independent of the P300 classifier. Some of the hybrid paradigms superimpose the RCP oddball technique, intended to generate P300 responses, with a flickering visual effect, intended to generate SSVEPs when users are paying attention to the visual stimuli (Panicker et al.,2010;Li et al.,2013). Therefore, asynchrony is handled by the detection of SSVEPs using relative powers: control state if SSVEPs are present, non-control state if SSVEPs are missing (Panicker et al.,2010;Li et al., 2013). Pinegger et al. (2015); Ma and Qiu (2018) also used SSVEP detection techniques to reach asynchronous control, but their approach is utterly different. By contrast, they hypothesized that inherent RCP flashings also generate residual SSVEP components when the stimuli are displayed using a constant rate. These components were identified in the frequency spectrum, providing supplementary features to the LDA scores (Pinegger et al., 2015). Finally, it is also worthy to mention the contribution of Yu et al. (2017b), who implemented a hybrid approach to reach a semiasynchronous BCI application. Users activated the RCP flashings by regulating their cortical activity through motor imagery. However, stopping RCP was handled by a “stop” command, which increases the required time to manage the asynchrony and makes the system more demanding. Since the vast majority of these previous studies were intended to provide an asynchronous assistive application, instead of just evaluating a novel method to reach asynchronous control, the provided accuracies reflect the final performance of the system. In other words, results depict the performance of the system to predict correct characters, while ignoring those than are considered non-control. Unfortunately, control versus non-control accuracies are not reported and, thus, quantitative and statistical comparisons cannot be performed with the present study. Despite this issue, it is noteworthy that, to the best of our knowledge, there are no studies that have previously investigated the ability of entropy-based features to discern between both asynchronous states. Moreover, since our approach is independent of classifier, weights updates do not affect asynchronous management, avoiding the need to record extra EEG signals (Zhang et al.,2008;Aloise et al.,2011;Li et al.,2013;Pinegger et al.,2015;Breitwieser et al.,2016; Martínez-Cagigal et al.,2017;Aref and Huggins,2012; Alcaide-Aguirre et al.,2017;Aydin et al.,2018;Tang et al., 2018;Martínez-Cagigal et al.,2019). We also believe that further endeavors could be aimed at complementing our proposed entropy features with SSVEP-based ones, which could presumably improve the final performance of asynchronous P300-based BCI systems (Pinegger et al.,2015; Ma and Qiu,2018). Owing to these outcomes, several insightful implications can be derived. First, it was demonstrated that a scaled version of SampEn can follow the dynamic changes of control and non-control EEG signals, providing a useful tool to monitor the attention of the user. Furthermore, the proposed framework is not only able to work in real time for P300-based BCI systems, but also may be considered as a filter method. In other words, the metric is independent of the classifier that determines the selected command, in contrast with previous approaches (Zhang et al.,2008;Aloise et al.,2011;Li et al.,2013; Pinegger et al.,2015;Breitwieser et al.,2016;Martínez- Cagigal et al.,2017;Aref and Huggins,2012;Alcaide- Aguirre et al.,2017;Ma and Qiu,2018;Aydin et al., 2018;Tang et al.,2018;Martínez-Cagigal et al.,2019). Since our proposal does not rely on the classifier’s scores, the command-oriented classifier can be updated without requiring a further training of the asynchrony method. Moreover, both states were also analyzed in this study, showing that control-state signals are more irregular and complex than non-control ones. Finally, a combination of user-independent hyperparameters were determined. To summarize, it was demonstrated that the proposed SampEn-based framework is suitable for providing asynchronous control in P300-based BCI systems. In spite of these results, the present study has several limitations. The proposed framework only employed temporal features derived from the SampEn algorithm to classify between control and non-control states. The performance of this approach could be extended in the future by integrating complementary spectral features in order to improve its performance (Pinegger et al.,2015;Panicker et al.,2010;Li et al.,2013;Breitwieser et al.,2016). It is also noteworthy that the global combination of hyperparameters was defined using 10 control subjects who are not the target users of BCI systems. A future endeavor should be aimed at incrementing the database with both 9 114 Appendix A. Papers included in this Doctoral Thesis
Table 3: Comparison between previous asynchronous P300-based brain–computer interface (BCI) applications. Study Control Signal Experimental Paradigm Asynchrony Technique No. Subjects Zhang et al. (2008) P300 Single cell ROC thresholding using SVM scores 4 CS Panicker et al. (2010) P300 and SSVEP Hybrid: RCP-based Detection of SSVEPs using relative peak amplitude in PSD 10 CS Aloise et al. (2011) P300 RCP ROC thresholding using LDA scores 11 CS Li et al. (2013) P300 & SSVEP Hybrid: oddball & SSVEP ROC thresholding using SVM scores (P300) and relative powers (SSVEP) 8 CS Pinegger et al. (2015) P300 RCP Thresholding using LDA scores and sum of spectral components 10 CS Breitwieser et al. (2016) P300 and SSSEP Hybrid: tactile & oddball Thresholding using multi-class LDA 14 CS Martínez-Cagigal et al. (2017) P300 RCP ROC thresholding using LDA scores 5 CS, 16 MS He et al. (2017) P300 RCP Combination of two different SVM 8 CS Yu et al. (2017b,a) P300 and MI MI monitoring & RCP MI signal activates the RCP 11 CS, 8 CS Aref and Huggins (2012); Alcaide-Aguirre et al. (2017) P300 RCP Certainty algorithm: t-test over LDA scores 11 CS, 19 CP Ma and Qiu (2018) P300 RCP ROC thresholding using relative powers 4 CS Aydin et al. (2018) P300 Hex-o-Spell ROC thresholding using classifier labels 10 CS Tang et al. (2018) P300 RCP ROC thresholding using LDA scores 4 CS Martínez-Cagigal et al. (2019) P300 RCP ROC thresholding using LDA scores 18 CS, 10 MD Present study P300 RCP LDA classification using SampEn features 10 CS SSVEP: steady-state visual evoked potentials, SSSEP: somatosensory evoked potentials, MI: motor imagery, RCP: row-col paradigm, ROC: receiver operating characteristic, SVM: support vector machines, PSD: power spectral density, LDA: linear discriminant analysis, SampEn: sample entropy, CS: control subjects, MS: multiple sclerosis, CP: cerebral palsy, MD: motor-disabled. control and motor-disabled users in order to improve the generalization of these results. Furthermore, the variability of the optimal hyperparameters was not addressed in this study. Finally, it should be noted that the validationstagewas applied underanLOOprocedure. Although this method is excellent to estimate the performance of a statistical model, it requires more training trials in each iteration than those that are commonly used in practice. Moreover, owing to the limited number of subjects and characters in the database, optimization could not be performed using different users than in the validation procedure. 5. Conclusions In this study, differences between control and noncontrol signal was analyzed using entropy metrics. Furthermore, a method to discern between both states and provide an asynchronous control of a P300-based BCI has been proposed. Dataset was composed of the EEG signals of ten healthy subjects who were asked to perform spelling tasks in a row-col paradigm, attending and ignoring the stimuli. Signals were then subdivided into optimization and validation sets. The former was used to determine a common optimal combination of hyperparameters by applying MSE features in a LOO procedure. These parameters were thereafter fixed at m= 1, r= 0.3, and τ= 2 for all subjects. Then, the latter was used to test the ability of a scaled version of SampEn to characterize both states. Multiscale analysis results showed that control signals are more irregular and complex than non-control ones, regardless of scale. These features were also demonstrated to be suitable for classifying both states, reaching an average accuracy of 94.40%. From the experimental outcomes of this exploratory research, we conclude that: (i) MSE measures could follow the dynamic changes of control and non-control signals; (ii) the optimal combination of hyperparameters favors the discrimination between both states for all control subjects; (iii) theproposed framework hasthe potentialto provide asynchronous control with high accuracies; and (iv) the computational cost of the method is negligible, reaching real-time processing. Acknowledgments This study was partially funded by projects DPI2017- 84280-R of Ministerio de Ciencia, Innovación y Universidades and the European Regional Development Fund (FEDER), and the project “Análisis y correlación entre el genoma completo y la actividad cerebral para la ayuda en el diagnóstico de la enfermedad de Alzheimer” (Inter-regional co-operation program VA Spain–Portugal POCTEP 2014-2020) of the European Commission and FEDER. V.M.-C. was in receipt of a PIF-UVa grant of the University of Valladolid. 10 A.1. Mart´ınez-Cagigal et al. (2019b) 115
References Alcaide-Aguirre, R. E., Warschausky, S. A., Brown, D., Aref, A., Huggins, J. E., 2017. Asynchronous brain–computer interface for cognitive assessment in people with cerebral palsy. Journal of Neural Engineering 14 (066001), 1–10. Aloise, F., Schettini, F., Aricò, P., Leotta, F., Salinari, S., Mattia, D., Babiloni, F., Cincotti, F., 2011. P300-based brain–computer interface for environmental control: an asynchronous approach. Journal of Neural Engineering 8 (2), 025025. Aref, A., Huggins, J., 2012. The P300-certainty algorithm: improving accuracy by withholding erroneous selections. In: EEG and Clinical Neuroscience Society Conference 2012. Aydin, E. A., Bay, O. F., Guler, I., 2018. P300-Based Asynchronous Brain Computer Interface for Environmental Control System. IEEE Journal of Biomedical and Health Informatics 22 (3), 653–663. Benjamini, Y., Hochberg, Y., 1995. Controlling the False Discovery Rate : A Practical and Powerful Approach to Multiple Testing. Journal of the Royal Statistical Society 57 (1), 289–300. Bojorges-Valdez, E., Yanez-Suarez, O., 2018. Association between EEG spectral power dynamics and event related potential amplitude on a P300 speller. Biomedical Physics and Engineering Express 4 (2). Breitwieser, C., Pokorny, C., Müller-Putz, G. R., 2016. A hybrid threeclass brain-computer interface system utilizing SSSEPs and transient ERPs. Journal of Neural Engineering 13 (6). Costa, M., Goldberder, A. L., Peng, C.-K., 2002. Multiscale EntropyAnalysis of Complex Physiologic Time Series. Physical Review Letters 89 (6), 1–4. Costa, M., Goldberger, A. L., Peng, C. K., 2005. Multiscale entropy analysis of biological signals. Physical Review E - Statistical, Nonlinear, and Soft Matter Physics 71 (2), 1–18. Farwell, L. A., Donchin, E., 1988. Talking off the top of your head: toward a mental prosthesis utilizing event-related brain potentials. Electroencephalography and Clinical Neurophysiology 70 (6), 510– 523. Goodale, M. A., Ingle, D. J., Mansfield, R. J. W., 1982. Analysis of visual behavior. Mit Press Cambridge, MA:. He, S., Zhang, R., Wang, Q., Chen, Y., Yang, T., Feng, Z., Zhang, Y., Shao, M., Li, Y., 2017. A P300-Based Threshold-Free Brain Switch and Its Application in Wheelchair Control. IEEE Transactions on Neural Systems and Rehabilitation Engineering 25 (6), 715–725. Huettel, S. A., McCarthy, G., 2004. What is odd in the oddball task? Prefrontal cortex is activated by dynamic changes in response strategy. Neuropsychologia 42 (3), 379–386. Humeau-Heurtier, A., 2015. The multiscale entropy algorithm and its variants: A review. Entropy 17 (5), 3110–3123. Jasper, H. H., 1958. The ten-twenty electrode system of the international federation. Electroencephalography and Clinical Neurophysiology 10, 371–375. Lebedev, M. A., Messinger, A., Kralik, J. D., Wise, S. P., 2004. Representation of attended versus remembered locations in prefrontal cortex. PLoS Biology 2 (11). Li, Y., Pan, J., Wang, F., Yu, Z., 2013. A hybrid BCI system combining P300 and SSVEP and its application to wheelchair control. IEEE Transactions on Biomedical Engineering 60 (11), 3156–3166. Ma, Z., Qiu, T., 2018. Quasi-periodic fluctuation in Donchin’s speller signals and its potential use for asynchronous control. Biomedizinische Technik 63 (2), 105–112. Martínez-Cagigal, V., Gomez-Pilar, J., Álvarez, D., Hornero, R., 2017. An asynchronous P300-based Brain–Computer Interface web browser for severely disabled people. IEEE Transactions on Neural Systems and Rehabilitation Engineering 25 (8), 1332–1342. Martínez-Cagigal, V., Santamaría-Vázquez, E., Gomez-Pilar, J., Hornero, R., 2019. Towards an accessible use of smartphone-based social networks through brain-computer interfaces. Expert Systems with Applications 120, 155–166. Martínez-Cagigal, V., Santamaría Vázquez, E., Hornero, R., 2018. A Novel Hybrid Swarm Algorithm for P300-Based BCI Channel Selection. In: Proceedings of the World Congress on Medical Physics & Biomedical Engineering (Vol. 3) (IUPESM 2018). Springer, Prague, pp. 41–45. Nicolas-Alonso, L. F., Gomez-Gil, J., 2012. Brain computer interfaces, a review. Sensors 12 (2), 1211–1279. Panicker, R. C., Puthusserypady, S., Pryana, A. P., Sun, Y., 2010. Asynchronous P300 BCI: SSVEP-based control state detection. European Signal Processing Conference 58 (6), 934–938. Pfurtscheller, G., 2010. The hybrid BCI. Frontiers in Neuroscience 4 (April), 1–11. URL http://journal.frontiersin.org/article/10.3389/ fnpro.2010.00003/abstract Picton, T. W., 1992. The P300 wave of the human event-related potential. Journal of Clinical Neurophysiology 9 (4), 456–479. Pinegger, A., Faller, J., Halder, S., Wriessnegger, S.C., Müller-Putz, G. R., 2015. Control or non-control state: that is the question! An asynchronous visual P300-based BCI approach. Journal of Neural Engineering 12 (1), 014001. Richman, J. S., Moorman, J. R., 2000. Physiological time-series analysis using approximate entropy and sample entropy. American Journal of Physiology-Heart and Circulatory Physiology 278 (6), H2039–H2049. URL http://www.physiology.org/doi/10.1152/ajpheart. 2000.278.6.H2039 Schalk, G., McFarland, D. J., Hinterberger, T., Birbaumer, N., Wolpaw, J. R., 2004. BCI2000: A general-purpose brain-computer interface (BCI) system. IEEE Transactions on Biomedical Engineering 51 (6), 1034–1043. Srinivasan, R., Bibi, F. A., Nunez, P. L., 2006. Steady-state visual evoked potentials: distributed local sources and wave-like dynamics are sensitive to flicker frequency. Brain Topography 18 (3), 167–187. URL papers3://publication/uuid/ FFD5DEE5-D729-4307-A600-6A24DCAA799F Tang, J., Liu, Y., Jiang, J., Yu, Y., Hu, D., Zhou, Z., 2018. Toward Brain-Actuated Mobile Platform. International Journal of Human- Computer Interaction 00 (00), 1–12. URL https://www.scopus.com/inward/record. uri?eid=2-s2.0-85052079123{&}doi=10. 1080{%}2F10447318.2018.1502000{&}partnerID= 40{&}md5=e273e7a6b25ac3cc9f818703ae1191a3 Valencia, F., Porta, A., Clari, F., 2009. Refined Multiscale Entropy : Application to 24-h Holter Recordings of Heart Period Variability in Healthy and Aortic Stenosis Subjects. IEEE Transactions on Biomedical Engineering 56 (9), 2202–2213. Witten, I. H., Frank, E., 2011. Data Mining: Practical Machine Learning Tools and Techniques, 3rd Edition. Morgan Kaufmann. Wolpaw, J. R., Birbaumer, N., McFarland, D. J., Pfurtscheller, G., Vaughan, T. M., 2002. Brain-computer interfaces for communication and control. Clinical Neurophysiology 113 (6), 767–91. Wolpaw, J. R., Wolpaw, E. W., 2012. Brain-computer interfaces: principles and practice. OUP USA. Yu, Y., Zhou, Z., Jiang, J., Yin, E., Liu, K., Wang, J., Liu, Y., Hu, D., 2017a. Toward a Hybrid BCI: Self-Paced Operation of a P300-based SpellerbyMergingaMotorImagery-Based“BrainSwitch”intoaP300 Spelling Approach. International Journal of Human-Computer Interaction 33 (8), 623–632. URL http://dx.doi.org/10.1080/10447318.2016.1267450 Yu, Y., Zhou, Z., Liu, Y., Jiang, J., Yin, E., Zhang, N., Wang, Z., Liu, Y., Wu, X., Hu, D., 2017b. Self-paced operationofawheelchairbasedona hybrid brain-computer interface combining motor imagery and P300 potential. IEEE Transactions on Neural Systems and Rehabilitation Engineering 25 (12), 2516–2526. Zhang, H., Guan, C., Wang, C., 2008. Asynchronous P300-based braincomputer interfaces: a computational approach with statistical models. IEEE Transactions on Biomedical Engineering 55 (6), 1754–63. URL http://www.ncbi.nlm.nih.gov/pubmed/18714840 11 116 Appendix A. Papers included in this Doctoral Thesis
Brain–Computer Interface Channel Selection Optimization using Meta-heuristics and Evolutionary Algorithms Víctor Martínez-Cagigal, Eduardo Santamaría-Vázquez, Roberto Hornero Biomedical Engineering Group, E.T.S.I. Telecomunicación, University of Valladolid, Paseo de Belén 15, 47011, Valladolid, Spain Applied Soft Computing Volume -, -, Pages -, Under Review (R2) Abstract Many brain–computer interface (BCI) studies overlook the channel optimization procedure due to its inherent complexity. However, a suitable channel selection procedure increases the performance and users’ comfort while reducing the cost of the system. Evolutionary meta-heuristics, which have gained importance due to their excellent performances in solving complex problems, have not been fully exploited yet in this context. The purpose of the study is two-fold: (1) to propose a novel algorithm to find an optimal channel set for each user and compare its usefulness with other existing meta-heuristics; and (2) to establish guidelines for adapting these optimization strategies to this framework. A total of 3 single-objective (GA, BDE, BPSO) and 3 multi-objective (NSGA-II, BMOPSO, SPEA2) existing algorithms have been adapted and tested with 3 public databases: ‘BCI competition III–dataset II’, ‘Center Speller’ and ‘RSVP Speller’. Dual- Front Sorting Algorithm (DFGA), a novel multi-objective discrete method especially adapted to the BCI framework, is proposed as well. Results show that all the applied meta-heuristics reached accuracies that significantly outperformed the entire set and the common 8-channel set of P300-based BCIs. DFGA shown a significant improvement of accuracy of 3.9% over the 8-channel set using also 8 channels; and obtained similar accuracies than it using a mean of only 4.66 channels. Binary-based algorithms stood out because of their faster convergence, especially the DFGA. Topographic results shown that optimal sets differed among users, which reinforces the need to customize a channel set for each of them. The proposed method computes an optimal subset for each number of channels, allowing the user to select the most suitable set for further BCI sessions. Keywords: Brain–computer interface (BCI), channel selection, multi-objective optimization, evolutionary algorithms, P300 event-related potentials. 1. Introduction Brain–Computer Interfaces (BCIs) are communication systems that allow users to control devices and applications using their own brain signals. These systems have been successfully applied in order to improve the quality of life of motor-disabled people who suffer any disease that impairs the neural pathways that control muscles or even the muscles themselves (Wolpaw and Wolpaw,2012). Electroencephalogram (EEG) is commonly used to monitor the brain activity due to its portability, non-invasiveness and low cost. Therefore, electric potentials are recorded by placing electrodes over the users’ scalp (Wolpaw and Wolpaw,2012). Since the decoding of users’ intentions from the EEG is not straightforward, many BCIs use exogenous signals to handle the control of the system. In particular, P300 evoked potentials, which are positive peaks produced as Email addresses: victor.martine[email protected] (Víctor Martínez- Cagigal), [email protected] (Eduardo Santamaría- Vázquez), [email protected] (Roberto Hornero) a response to infrequent and significant stimuli at about 300 ms after their onset, are the key aspect of the most known BCI-based spelling system (Wolpaw and Wolpaw, 2012). The ‘P300 Speller’ generates these signals through the odd-ball paradigm in order to spell certain words or commands. The application displays a matrix that contains characters or symbols, whose rows and columns are randomly flashing. Users, who have to focus attention on a desired command, will generate a P300 potential whenever the row or the column that contains it is highlighted. Hence, the selected command is determined by computing the intersection between the row and the column that produced the potential (Farwell and Donchin,1988). Due to the low signal-to-noise ratio and the high intersession variability of these event-related potentials, several repetitions of the same stimulus are required to detect a reliable potential. Without a proper processing stage, this high dimensional data may produce an overfitting of the classifier, resulting in a reduced performance (Cecotti et al.,2011;Perseh and Sharafat,2012). The curse of dimensionality can be addressed by means DOI: Under Review (R2) A.2. Mart´ınez-Cagigal et al. (2020) 117
of feature selection and extraction methods (Perseh and Sharafat,2012;Tahernezhad-Javazm et al.,2017), regularized classifiers (Blankertz et al.,2011) or channel selection procedures (Cecotti et al.,2011;Martínez-Cagigal and Hornero,2017b). Among them, only channel selection methods are able to reduce the cost of the system, reduce the power consumption in EEG caps and increase the users’ comfort (Cecotti et al.,2011). Nevertheless, the selection of the most relevant sensors is not trivial, since there are 2Nsubset combinations for an N-channel cap, making the exhaustive search intractable in practice (Cecotti et al.,2011). For this reason, most P300-based studies overlook the optimization of the most relevant channel subset and take a predefined 8-channel set as a general rule of thumb (Krusienski et al.,2008). Notwithstanding its usefulness as a quick solution, an optimization for each user is beneficial owing to the intrinsic intersubject variability of the BCI systems. Although there are well-known feature selection methods that could be applied to this problem, such as stepwise regression (Jobson,1991), fast correlation based filters (Yu and Liu,2003) or even elastic neural networks (Zou and Hastie,2005), meta-heuristics have demonstrated high performances solving complex optimization problems (Yang,2014). Heuristics refer to problem-specific strategies that iteratively improve a candidate solution, whereas meta-heuristics generalize these strategies to problem-independent frameworks (Yang,2014;Bozorg-Haddad et al.,2017). Swarm intelligence techniques and evolutionary algorithms, families of population-based meta-heuristics, have been previously applied to channel selection optimization both in motor imagery (MI) (Lv and Liu,2008;Hasan and Gan, 2009;Hasan et al.,2010;Wei and Wang,2011;Kee et al., 2015;Aler and Galván,2015;Franklin Alex Joseph and Govindaraju,2019;Zhang and Wei,2019;González et al., 2019) and P300-based BCIs (Perseh and Sharafat,2012; Jin et al.,2010;Gonzalez et al.,2013,2014;Kee et al., 2015;Martínez-Cagigal and Hornero,2017b;Chaurasiya et al.,2017;Arican and Polat,2020). Regarding the P300-based BCI studies, most of them have used singleobjective algorithms that optimized the final classification accuracy of the system (Jin et al.,2010;Perseh and Sharafat,2012;Gonzalez et al.,2013,2014;Arican and Polat,2020). However, a channel selection procedure should follow a two-fold objective: (i) to minimize the number ofselected channels, and (ii)to maximizethe system’s performance. Some recent studies used a weighted aggregation approach to combine both objectives into a single one, butthe simultaneous optimizationwas notexplored (Martínez-Cagigal and Hornero,2017b;Martínez- Cagigal et al.,2018;Zhang and Wei,2019). Traditional multi-objective approaches, which optimize both objectives at the same time, have been explored in MI-based BCIs, such as multi-objective particle swarm optimization (MOPSO) (Hasan and Gan,2009; Hasan et al.,2010;Wei and Wang,2011) or non-sorting genetic algorithm II (NSGA-II) (Aler and Galván,2015; González et al.,2019). However, MI-based and P300- based BCIs are completely different in terms of processing and signal elicitation and thus, methodology and results cannot be generalized. By contrast, multi-objective algorithms in P300-based BCIs are more limited. Kee et al. (2015) compared the performance between several single-objective genetic algorithms (GA) and NSGA-II with 2 subjects, whereas Chaurasiya et al. (2017) employed a multi-objective binary differential-evolution algorithm with 9 subjects, reaching several subsets of channels that assured suitable classification performances. Nevertheless, the number of subjects was limited, and both databases were recorded using the row-col paradigm (RCP). Nowadays, P300-based BCIs offer a wide range of stimulation paradigms that elicit different event-related responses and thus, the generalization of those results to other setups is limited. Furthermore, despite their scarce application in P300-based BCI studies, swarm intelligence and evolutionary computation are growing research fields that integrate a large amount of different algorithms that could be adapted to the channel selection problem. In fact, the vast majority of them have not yet been applied in P300-based BCIs. To the best of our knowledge, there are not studies that compare their efficacy to select the most appropriate channel subset or even establish the key aspects for their adaptation to BCI systems, which is not trivial. Moreover, there is also no study aimed at designing any multi-objective algorithm customized for the P300-based BCI channel selection problem. The objective of this study is two-fold: (1) to propose a novel multi-objective method to find an optimal channel set especially suited for P300-based BCIs and compare its usefulness with 6 additional meta-heuristics; and (2) to establish guidelines for adapting these optimization strategies to the channel selection problem. Although there are many meta-heuristics that could be adapted to this problem, only those that have direct or explicit contribution to our proposed multi-objective meta-heuristic were included in this comparison: GA, BDE and BPSO as single-objective; and NSGA-II, SPEA2 and BMOPSO as multi-objective. We have also tried to maintain diversity in the way they deal to the updating of the population for each iteration. The manuscript is organized as follows. Section 2details the 3 different databases that were used to test the algorithms. In section 3, the methodology is described, including pre-processing and feature extraction, problem definition, 3 single-objective and 3 multi-objective meta-heuristics, and our proposed algorithm. Sections4and5showtheresults anddiscussthem, respectively; analyzing the convergence, selected channel distributions, assessment accuracies, hyperparameters and computational cost. At the end of section 5, a set of guidelines for adapting meta-heuristics to the BCI channel selection problem is detailed, followed by the contributions, limitations and future endeavors. To sum 2 118 Appendix A. Papers included in this Doctoral Thesis
up, section 6draws the final conclusions of the study. 2. Subjects In order to improve the generalization of the results, algorithms have been tested with three public P300-based BCI databases that used different stimulation paradigms: row-col paradigm (RCP), center speller (CS) and rapid serial visual presentation (RSVP). Examples of stimulation sequences for the paradigms are depicted in the figure 1. 2.1. BCI competition III: dataset II The ‘BCI competition III: dataset II’ (Blankertz et al., 2006) was recorded from 2 different healthy subjects (i.e., A and B) that were asked to spell words in 5 RCP sessions. Signals were recorded using a 64-channel EEG cap with a sampling frequency of 240 Hz and band-pass filtered from 0.1 Hz to 60 Hz. Training and testing sets were composed of 85 and 100 trials, respectively (Blankertz et al.,2006). RCP is the most common P300-based spelling paradigm, which consists of displaying a matrix that contains characters or symbols. Users have to stare at the target command while the matrix’s rows and columns are randomly flashing. Whenever the row or column that contains the target is flickered, a P300 potential is generated. Hence, the desired command can be identified by computing the intersection between the row and the column that produced these P300 responses (Farwell and Donchin,1988). In this dataset, there are 12 different classes (i.e., rows and columns), and 15 sequences (i.e., repetitions) were used. Therefore, a trial is composed by 180 observations (Blankertz et al.,2006). 2.2. Center Speller database The ‘Center Speller (008-2015)’ database (Treder et al., 2011) was recorded from 13 healthy subjects (i.e., C01- C13) that were asked to perform spelling tasks using the CS paradigm. Signals were recorded using a 63-channel EEG cap with a sampling frequency of 250 Hz and bandpass filtered from 0.016 Hz to 250 Hz. Training data was composed of 17 trials, whereas testing data varied between 32-49 trials, depending on the subject (Treder et al.,2011). CS was originally designed to avoid eye movements. The paradigm displays groups of commands in the center of the screen, superimposed with colored geometric shapes. The groups are randomly flickered until the user selects one of them. Then, the commands that were included inside the selected group are displayed in the same way, allowing the user to select the final command (Treder et al.,2011). In practice, there are 12 different classes (6 groups in 2 levels), and 10 sequences were used. A trial is composed by 120 observations (Treder et al.,2011). 2.3. RSVP Speller database The ‘RSVP Speller (010-2015)’ database (Acqualagna and Blankertz,2013) was recorded from 12 healthy subjects (i.e., R01-R12) that were asked to perform spelling tasks using the RSVP paradigm. Signals were recorded using a 63-channel EEG cap with a sampling frequency of 1000 Hz, and then down-sampled to 200 Hz (Acqualagna and Blankertz,2013). However, since the fifth subject only used 61 channels, electrodes P8 and O2 were excluded from the database for the sake of homogeneity. Training data was composed of 24 trials, whereas testing data (copy and free spelling) varied between 37-50 trials, depending on the subject (Acqualagna and Blankertz, 2013). RSVP was also developed to exploit the foveal visual field and avoid eye movements by depicting symbols in the center of the screen in a serial manner. The database encompasses a vocabulary of 30 characters (26 letters and 4 symbols). In order to favor the identification of the shapes, half of the letters were uppercase and the other half lowercase, using 5 different colors. Therefore, there are 30 classes, and 10 sequences were used, resulting in 300 observations per trial (Acqualagna and Blankertz,2013). 3. Methods 3.1. Pre-processing and feature extraction Before applying any optimization procedure, relevant features of the EEG signals should be extracted for each epoch (i.e., stimulus) and channel. In fact, preprocessing, as well as feature extraction and selection procedures influence the final accuracy in a high extent. Due to the purpose of the study, signal processing stages were composed of a standard framework, intended to isolate the channel selection procedure. We did not applied any further pre-processing step besides the aforementioned band-pass filtering embedded in each database (Blankertz et al.,2006;Treder et al.,2011;Acqualagna and Blankertz,2013). Epochs were extracted using windows in the range [0,800] ms from the stimuli onsets, and normalized using a z-score over a [−200,0] ms baseline (i.e., zero mean, unit standard deviation). As stated in BCI literature, this range is large enough to capture the relevant event-related potentials, including the P300 wave (Wolpaw and Wolpaw,2012). These epochs were then decimated to 25 Hz, keeping a total of 20 features per stimulus and channel. It is noteworthy that the decimation process encompasses a low-pass filtering (to avoid aliasing), followed by a down-sampling procedure (Martínez-Cagigal and Hornero,2017a,b). Hereafter, epochs from different databases and sampling rates have the same number of features. Note that, from the point of view of a subsequent classifier, epochs are input observations. 3 A.2. Mart´ınez-Cagigal et al. (2020) 119
Figure 1: Examples of stimuli intensification sequences for the paradigms: (a) row-col paradigm, (b) center speller, (c) rapid serial visual presentation. 3.2. Defining the optimization problem The goal of an optimization algorithm is to provide a suitable solution that satisfies the problem constraints and optimizes (either maximizing or minimizing) one or more objective functions to the greatest extent (Bozorg- Haddad et al.,2017). Since we are considering an N- channel selection problem, a possible solution may be defined as x= [x1, x2, . . . , xN], xi∈ {0,1}, where 1and 0 represent the selection and rejection of a specific channel, respectively. Hence, the problem is constrained to a discrete N-dimensional space, whose solutions are restricted to binary positions. When a solution xis evaluated, the features associated with the channels that satisfy xi= 1 are concatenated as an input feature vector. In a BCI channel selection problem, two main objectives must be pursued: (i) to maximize the system’s performance, and (ii) to minimize the number of channels. Even though the modeling of the latter is straightforward (see equation 1), the system’s performance can be estimated following several approaches. The most intuitive solution is to use the output training accuracy of the classifier using a certain solution x(Jin et al.,2010; Kee et al.,2015;Chaurasiya et al.,2017). However, due to the limited number of trials, this method usually provides a low-resolution score (Colwell et al.,2014). The resolution can be improved using methods based on the stimuli, instead of the character trials. Previous studies have employed several approaches derived from the confusion matrix of the stimuli classification (Perseh and Sharafat,2012;Gonzalez et al.,2013,2014). Nevertheless, the area under ROC curve (AUC) is recommended because it is able to successfully estimate the discriminative ability of a binary classifier using only training data (Cecotti et al.,2011;Colwell et al.,2014). Therefore, the objectives may be modeled as follows: min F(x) = f1(x) = 1 −AUC(x) f2(x) = N P n=1 xn ,(1) where f1(x)belongs to the first objective (i.e., minimize the error of the system) and f2(x)to the second objective(i.e., minimizethe number ofchannels). In this study, AUC has been derived from a 5-fold cross-validated linear discriminant analysis (LDA) that is applied to the solution xusing the training dataset (Martínez-Cagigal and Hornero,2017a,b). That is, the features whose channels satisfy xi= 0 are removed from the observations matrix, which is the input of the LDA classifier. Training set is then divided into 5 subsets and a cross-validation procedure is applied (i.e., 4 subsets are used for training and the remaining one for testing), returning a total of 5 AUCs. Finally, AUC is computed as the average of all of them. LDA was used as classifier due to its well-known excellent performances in P300-based BCI and the lack of hyperparameters to optimize (Tahernezhad-Javazm et al., 4 120 Appendix A. Papers included in this Doctoral Thesis
2017;Blankertz et al.,2011;Kee et al.,2015;Aler and Galván,2015;Chaurasiya et al.,2017;Treder et al.,2011; Martínez-Cagigal and Hornero,2017b;Martínez-Cagigal et al.,2017). 3.3. Single-objective meta-heuristics Meta-heuristics produce acceptable solutions to complex problems in a reasonable computation time (Yang, 2014). In particular, single-objective meta-heuristics iteratively produce these solutions following a certain objective. However, a BCI channel selection problem should have a two-fold purpose. Thus, the multi-objective problem stated in equation (1) is then combined into a singleobjective one (Coello and Reyes-Sierra,2006): min F(x) = ω1f1(x) + ω2f2(x)−1 N−13 ,(2) where ω1+ω2= 1, and ω1and ω2are constants that weigh the importance of each objective. Since we consider that reaching suitable accuracies is more important than drastically reducing the number of required channels, coefficients have been heuristically set to ω1= 0.7 and ω2= 0.3(Martínez-Cagigal and Hornero,2017a,b; Martínez-Cagigal et al.,2018). In addition, after mapping the f2(x)from [1, N]→[0,1], its output is raised to the 3-th power in order to empathize the search of lightweight solutions. Note that the polynomial function punishes more the search of solutions with high number of channels than a simple linear function. This function was heuristically chosen after a preliminary testing (Martínez-Cagigal and Hornero,2017a,b;Martínez- Cagigal et al.,2018). The three single-objective metaheuristics that have been adapted to BCI framework are described below. 3.3.1. Genetic Algorithm One of the most well-known meta-heuristics is the genetic algorithm (GA), originally developed by Holland (1992). GAs have been modified to improve their ability to find the global optimum of a complex optimization problem in many ways. GAs apply the Darwinian principle of survival of the fittest individuals of a population using recombination, selection and mutation operators (Yang,2014;Bozorg-Haddad et al.,2017). In this study, a GA with elitism, binary tournament selection, single-point crossover and bit string mutation has been employed (Yang,2014;Bozorg-Haddad et al.,2017). 3.3.2. Binary Differential Evolution The differential evolution (DE) algorithm, originally developed by Storn and Price (1997) for continuous functions, has some similarities to GAs owing to its structure, composed by mutation, crossover and selection. However, instead of making random mutation and crossover schemes, DE combines the information of three randomly chosen individuals. Binary DE (BDE) applies a discretization of the mutation formula in order to adapt it to binary problems (Wang et al.,2012). The mutation of the i-th channel of an individual xis performed as follows: x0 i=ui,if rand ≤pcor i=r xi,otherwise ,(3) where rand ∼ U(0,1),ris a random integer between [1, N],pcis the crossover rate, and uiis the mutated channel, computed as: ui=(1,if rand ≤(1 + e−2b(vi+F·(yi−zi)−1 /2) 1+2F)−1 0,otherwise ,(4) where rand ∼ U(0,1);v,yand zare randomly selected individuals of the current population; Fis the weighting factor; and b > 0is the bandwidth factor. 3.3.3. Binary Particle Swarm Optimization Kennedy and Eberhart (1995) developed the Particle Swarm Optimization (PSO) algorithm, a nature-inspired meta-heuristic based on the social schooling and flocking behavior of fishes and birds. The optimization is based on adjusting the trajectories and positions of a set of particles (i.e., solutions) that “fly” over the search space, whose movement have both deterministic and stochastic components (Kennedy and Eberhart,1995;Yang,2014; Bozorg-Haddad et al.,2017). In this study, the standard constraint of Clerc and Kennedy (2002) is used, which leads to: v0=χ[v+1C1(l−x) + 2C2(g−x)],(5) χ=2 φ−2 + pφ2−4φ,with φ=C1+C2;(6) where v0is the updated velocity of a particle x;vis the last velocity; 1, 2∼ U(0,1);χis the constraint multiplier; C1and C2are the personal and global confidence constants, respectively; lis the best position found by the particle; and gis the best global position found so far. It is worthy to note that the standard constraint requires that φ > 4(Clerc and Kennedy,2002;Poli et al.,2007). Since the velocities are continuous, the algorithm should be adapted to binary spaces. Binary PSO (BSPO) is usually achieved using a position transformation via transfer functions (Kennedy and Eberhart,1997;Mirjalili and Lewis,2013). In this study, the adaptation has been performed following the expression: x0 i=¬xi,if rand < T (v0 i) xi,if rand ≥T(v0 i),(7) whererand ∼ U(0,1), and T(t) = |t/√1 + t2|isa v-shaped transfer function (Mirjalili and Lewis,2013). 5 A.2. Mart´ınez-Cagigal et al. (2020) 121