IEEE TRANSACTIONS ON BIOMEDICAL ENGINEERING, VOL. 00, NO. 00,

Similar documents
BRAIN-COMPUTER interface (BCI) systems have been

IJESRT. (I2OR), Publication Impact Factor: 3.785

A BCI Control System for TV Channels Selection

Brain-Computer Interface (BCI)

Common Spatial Patterns 2 class BCI V Copyright 2012 g.tec medical engineering GmbH

Common Spatial Patterns 3 class BCI V Copyright 2012 g.tec medical engineering GmbH

EEG Eye-Blinking Artefacts Power Spectrum Analysis

Feature Conditioning Based on DWT Sub-Bands Selection on Proposed Channels in BCI Speller

Digital Effects Pedal Description Ross Jongeward 10 December 2014

TECHNICAL SPECIFICATIONS, VALIDATION, AND RESEARCH USE CONTENTS:

Design of a Mobile Brain Computer Interface-Based Smart Multimedia Controller

ECG Demonstration Board

A Low Power Delay Buffer Using Gated Driver Tree

An Integrated EMG Data Acquisition System by Using Android app

Heart Rate Variability Preparing Data for Analysis Using AcqKnowledge

SMARTING SMART, RELIABLE, SIMPLE

An Efficient Low Bit-Rate Video-Coding Algorithm Focusing on Moving Regions

Powerful Software Tools and Methods to Accelerate Test Program Development A Test Systems Strategies, Inc. (TSSI) White Paper.

2 MHz Lock-In Amplifier

UNIVERSAL SPATIAL UP-SCALER WITH NONLINEAR EDGE ENHANCEMENT

TERRESTRIAL broadcasting of digital television (DTV)

CAEN Tools for Discovery

Digital Strobe Tuner. w/ On stage Display

PRODUCT SHEET

Gated Driver Tree Based Power Optimized Multi-Bit Flip-Flops

Re: ENSC 370 Project Physiological Signal Data Logger Functional Specifications

Environmental Controls Laboratory

Real Time Bio-signal Acquisition System

18th European Signal Processing Conference (EUSIPCO-2010) Aalborg, Denmark, August 23-27, GIPSA-lab CNRS UMR 5216

THE NOISE PERFORMANCE OF EVALUATION BOARDS FOR A UNIVERSAL TRANSDUCER INTERFACE WITH USB CONNECTION

International Journal of Engineering Trends and Technology (IJETT) - Volume4 Issue8- August 2013

Efficient Architecture for Flexible Prescaler Using Multimodulo Prescaler

VivoSense. User Manual Galvanic Skin Response (GSR) Analysis Module. VivoSense, Inc. Newport Beach, CA, USA Tel. (858) , Fax.

System Quality Indicators

Error Resilience for Compressed Sensing with Multiple-Channel Transmission

Real-time EEG signal processing based on TI s TMS320C6713 DSK

INTERNATIONAL JOURNAL OF ELECTRONICS AND COMMUNICATION ENGINEERING & TECHNOLOGY (IJECET) APPLIANCE SWITCHING USING EYE MOVEMENT FOR PARALYZED PEOPLE

Reducing tilt errors in moiré linear encoders using phase-modulated grating

Design and Implementation of Partial Reconfigurable Fir Filter Using Distributed Arithmetic Architecture

Innovative Rotary Encoders Deliver Durability and Precision without Tradeoffs. By: Jeff Smoot, CUI Inc

Multiband Noise Reduction Component for PurePath Studio Portable Audio Devices

1ms Column Parallel Vision System and It's Application of High Speed Target Tracking

Lab 1 Introduction to the Software Development Environment and Signal Sampling

Why Use the Cypress PSoC?

The Ultimate Long-term EEG Monitoring System

Understanding PQR, DMOS, and PSNR Measurements

Analysis of Packet Loss for Compressed Video: Does Burst-Length Matter?

Benchtop Portability with ATE Performance

University of Bristol - Explore Bristol Research. Peer reviewed version. Link to published version (if available): /ISCAS.2005.

Skip Length and Inter-Starvation Distance as a Combined Metric to Assess the Quality of Transmitted Video

Overview of All Pixel Circuits for Active Matrix Organic Light Emitting Diode (AMOLED)

MindMouse. This project is written in C++ and uses the following Libraries: LibSvm, kissfft, BOOST File System, and Emotiv Research Edition SDK.

Vascular. Development of Trinias FPD-Equipped Angiography System. 1. Introduction. MEDICAL NOW No.73 (2013.2) Yoshiaki Miura

Operating Bio-Implantable Devices in Ultra-Low Power Error Correction Circuits: using optimized ACS Viterbi decoder

ALONG with the progressive device scaling, semiconductor

LUT Optimization for Memory Based Computation using Modified OMS Technique

Efficient Implementation of Multi Stage SQRT Carry Select Adder

VXI RF Measurement Analyzer

An FPGA Implementation of Shift Register Using Pulsed Latches

HEART ATTACK DETECTION BY HEARTBEAT SENSING USING INTERNET OF THINGS : IOT

Digital Correction for Multibit D/A Converters

LUT OPTIMIZATION USING COMBINED APC-OMS TECHNIQUE

Chapter 1. Introduction to Digital Signal Processing

Analog, Mixed-Signal, and Radio-Frequency (RF) Electronic Design Laboratory. Electrical and Computer Engineering Department UNC Charlotte

Summary Table Voluntary Product Accessibility Template. Supporting Features. Supports. Supports. Supports. Supports

DATA! NOW WHAT? Preparing your ERP data for analysis

THE LXI IVI PROGRAMMING MODEL FOR SYNCHRONIZATION AND TRIGGERING

Pre-Processing of ERP Data. Peter J. Molfese, Ph.D. Yale University

6.111 Project Proposal IMPLEMENTATION. Lyne Petse Szu-Po Wang Wenting Zheng

Interactive Virtual Laboratory for Distance Education in Nuclear Engineering. Abstract

Portable in vivo Recording System

UNDERSTANDING TINNITUS AND TINNITUS TREATMENTS

Group 1. C.J. Silver Geoff Jean Will Petty Cody Baxley

MEE 1000A. For more than 50 years, healthcare. Neuromaster MEE-1000A Intra-Operative Monitoring System

Figure.1 Clock signal II. SYSTEM ANALYSIS

IEEE Santa Clara ComSoc/CAS Weekend Workshop Event-based analog sensing

Simple motion control implementation

Development of 16-channels Compact EEG System Using Real-time High-speed Wireless Transmission

WINTER 15 EXAMINATION Model Answer

A generic real-time video processing unit for low vision

MEE 1000A. Neuromaster MEE-1000A. Intra-Operative Monitoring System

OBJECT-BASED IMAGE COMPRESSION WITH SIMULTANEOUS SPATIAL AND SNR SCALABILITY SUPPORT FOR MULTICASTING OVER HETEROGENEOUS NETWORKS

User Guide Slow Cortical Potentials (SCP)

Troubleshooting EMI in Embedded Designs White Paper

Smart Traffic Control System Using Image Processing

EXPLORING THE USE OF ENF FOR MULTIMEDIA SYNCHRONIZATION

How to Set Up Continuous EEG (CEEG)

Implementation of Memory Based Multiplication Using Micro wind Software

METHOD, COMPUTER PROGRAM AND APPARATUS FOR DETERMINING MOTION INFORMATION FIELD OF THE INVENTION

Multi-Parameter Monitoring Data Acquisition System for SpO 2 Signals

ECE 4220 Real Time Embedded Systems Final Project Spectrum Analyzer

(12) Patent Application Publication (10) Pub. No.: US 2008/ A1

Sensor Development for the imote2 Smart Sensor Platform

Introduction to Data Conversion and Processing

Voluntary Product Accessibility Template

National Park Service Photo. Utah 400 Series 1. Digital Routing Switcher.

ex 800 Series ematrix System

Performance of a Low-Complexity Turbo Decoder and its Implementation on a Low-Cost, 16-Bit Fixed-Point DSP

Sharif University of Technology. SoC: Introduction

BER MEASUREMENT IN THE NOISY CHANNEL

Transcription:

IEEE TRANSACTIONS ON BIOMEDICAL ENGINEERING, VOL. 00, NO. 00, 2017 1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 Performance Assessment of a Custom, Portable, and Low-Cost Brain Computer Interface Platform Colin M. McCrimmon, Student Member, IEEE, Jonathan Lee Fu, Ming Wang, Lucas Silva Lopes, Po T. Wang, Member, IEEE, Alireza Karimi-Bidhendi, Student Member, IEEE, Charles Y. Liu, Payam Heydari, Fellow, IEEE, Zoran Nenadic, Senior Member, IEEE, and An Hong Do Abstract Objective: Conventional brain-computer interfaces (BCIs) are often expensive, complex to operate, and lack portability, which confines their use to laboratory settings. Portable, inexpensive BCIs can mitigate these problems, but it remains unclear whether their low-cost design compromises their performance. Therefore, we developed a portable, low-cost BCI and compared its performance to that of a conventional BCI. Methods: The BCI was assembled by integrating a custom electroencephalogram (EEG) amplifier with an open-source microcontroller and a touchscreen. The function of the amplifier was first validated against a commercial bioamplifier, followed by a head-to-head comparison between the custom BCI (using four EEG channels) and a conventional 32-channel BCI. Specifically, five able-bodied subjects were cued to alternate between hand opening/closing and remaining motionless while the BCI decoded their movement state in real time and provided visual feedback through a light emitting diode. Subjects repeated the above task for a total of 10 trials, and were unaware of which system was being used. The performance in each trial was defined as the temporal correlation between the cues and the decoded states. Results: The EEG data simultaneously acquired with the custom and commercial amplifiers were visually similar and highly correlated (ρ = 0.79). The decoding performances of the custom and conventional BCIs averaged across trials and subjects were 0.70 ± 0.12 and 0.68 ± 0.10, respectively, and were not significantly different. Conclusion: The performance of our portable, lowcost BCI is comparable to that of the conventional BCIs. Manuscript received December 14, 2016; accepted February 5, 2017. Date of publication; date of current version. This work was supported in part by the American Academy of Neurology and in part by the National Science Foundation under Grant 1160200 and Grant 1446908. (Jonathan Lee Fu and Ming Wang contributed equally to this work.) Asterisk indicates corresponding author. * Z. Nenadic is with the Department of Biomedical Engineering and the Department of Electrical Engineering and Computer Science, University of California, Irvine, CA 92697 USA (e-mail: znenadic@uci.edu). C. M. McCrimmon and P. T. Wang are with the Department of Biomedical Engineering, University of California, Irvine. J. L. Fu and A. H. Do are with the Department of Neurology, University of California, Irvine. M. Wang, A. Karimi-Bidhendi, and P. Heydari are with the Department of Electrical Engineering and Computer Science, University of California, Irvine. L. Silva Lopes with the CAPES Foundation. C. Y. Liu with the Department of Neurosurgery, Rancho Los Amigos National Rehabilitation Center, and also with the Center for Neurorestoration and the Department of Neurosurgery, University of Southern California. Digital Object Identifier 10.1109/TBME.2017.2667579 Significance: Platforms, such as the one developed here, 36 are suitable for BCI applications outside of a laboratory. 37 Index Terms Biomedical amplifiers, brain-computer in- 38 terfaces, embedded software, microcontrollers, mobile 39 computing, neurofeedback. 40 I. INTRODUCTION 41 BRAIN-COMPUTER interface (BCI) systems have been 42 designed for diverse applications, such as smart living, 43 entertainment, and neuroprostheses. Recent studies have also 44 examined whether BCIs can facilitate neurorehabilitation af- 45 ter neurological injuries by improving residual motor function. 46 However, these studies often employ conventional BCIs that 47 rely on expensive commercial amplifier arrays and bulky com- 48 puters (e.g. [1] [5]). These factors inevitably drive up the cost, 49 complexity, and setup time of BCI systems, while reducing their 50 portability. Consequently, these BCI systems are not ideal for 51 at-home use by the community. 52 One way to decrease the setup time associated with conven- 53 tional BCIs is to reduce the number of EEG channels. Prior 54 studies have demonstrated that EEG-based motor BCIs could 55 be successfully operated with as few as 1 channel [6], although 56 some applications may require at least 8 channels [7]. Reducing 57 the number of channels in a cost-effective way requires the 58 replacement of commercial bioamplifiers (typically with 59 dozens of channels) with custom, low-channel-count amplifier 60 arrays. Similarly, further enhancement of portability and cost 61 reduction could be achieved by replacing full-size computers 62 in conventional BCIs with low-cost embedded systems. These 63 strategies have been employed in several studies, where custom 64 portable BCIs were developed for applications ranging from 65 drowsiness detection [8], [9], smart living environments [10], 66 and multimedia navigation [11], to prosthesis control [12] and 67 motor rehabilitation [13]. However, reducing a BCI s bulkiness, 68 cost, and complexity in this manner may consequently decrease 69 its decoding performance. Many of the above studies compared 70 their decoding performance to previous work, but, to date, no 71 head-to-head performance comparison between portable, cost 72 effective BCIs and conventional BCIs has been reported in 73 the literature. Maintaining a high decoding accuracy is critical 74 in applications such as drowsiness detection and prosthesis 75 control. 76 0018-9294 2017 IEEE. Personal use is permitted, but republication/redistribution requires IEEE permission. See http://www.ieee.org/publications standards/publications/rights/index.html for more information.

IEEE TRANSACTIONS ON BIOMEDICAL ENGINEERING, VOL. 00, NO. 00, 2017 IEE EP ro of 2 Fig. 1. Top Left: Exploded view of the individual components of the custom BCI system. Top right: The fully assembled custom BCI system connected to a handheld battery and EEG cap. Bottom: Graphical user interface navigation map for operating the custom BCI system. Note the simple and straightforward interface design. 77 78 79 80 81 82 83 84 85 In this study, we developed a portable, low-cost BCI system based on [13], and then performed a head-to-head comparison of its decoding capability against that of a conventional BCI system. Our findings demonstrate that there need not be a trade-off between decoding performance and portability, cost, and simplicity. This suggests that portable and lowcost custom systems, such as the one developed here, may be ideally suited for BCI applications outside of a laboratory setting. II. METHODS 86 A. Overview 87 A low-cost, embedded BCI system was developed by integrating a custom EEG amplifier and a commercial microcontroller unit (MCU) with a touchscreen (see Fig. 1). Custom software was developed and uploaded to the MCU to control all facets of the system s operation. The real-time decoding performance of the custom BCI was compared to that of a conventional BCI 88 89 90 91 92 93

MCCRIMMON et al.: PERFORMANCE ASSESSMENT OF A CUSTOM, PORTABLE, AND LOW-COST BRAIN COMPUTER INTERFACE PLATFORM 3 TABLE I COST BREAKDOWN OF THE CUSTOM AND CONVENTIONAL BCI SYSTEMS. Component Custom BCI Conventional BCI 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 Fig. 2. Circuit diagram for each channel of the custom amplifier array. The mid-level V C C /2 is connected to a bias electrode as well as to all the electrodes active shielding. system in able-bodied subjects. Both BCI systems were trained to recognize, from EEG, when a subject was opening/closing their right hand or remaining motionless. The subject received feedback in the form of a red light-emitting diode (LED) that was turned on when hand movement was decoded, and turned off when idling was decoded. The correlation between cues and decoded states for each trial was calculated and used to determine whether the custom BCI s performance was significantly inferior to that of the conventional BCI. B. Hardware The custom BCI system consisted of 3 main hardware components: an 8-channel EEG amplifier array (details below), an open-source Arduino Due MCU (Arduino, Ivrea, Italy), and an LED touchscreen with integrated micro SD card slot (Adafruit Industries, New York, NY). The entire system was 13 9 3 cm 3 in size, and consumed 1 W of power during normal operation. This enabled it to be powered by a rechargeable 5 V battery. Each channel of the EEG amplifier array (see Fig. 2) consisted of a cascade of one instrumentation amplifier (Texas Instrument INA128, Dallas, TX) followed by two operational amplifiers (Texas Instrument OPA 4241) to achieve a total of gain of >89 db with >80 db common mode rejection ratio (CMRR). Active low-pass and high-pass filters provided a banded response between 1.6-32.9 Hz. The amplifier array circuit was implemented on a printed circuit board that interfaced with the MCU and touchscreen as well as with the EEG electrodes. The MCU s ADC unit had a resolution of 12 bits. The amplifier array was empirically validated by comparing its output to that of a commercial amplifier system (EEG100C, BIOPAC Systems, Goleta, CA) with a 1 35 Hz banded response. Specifically, one EEG channel derived by referencing electrode Cz to AFz (nomenclature consistent with the international 10 10 EEG standard [14]) was simultaneously amplified by both the custom and commercial amplifiers. The output of each amplifier was acquired simultaneously at 250 Hz by a commercial data acquisition system (MP150, BIOPAC Systems, Goleta, CA) over the course of 1 min. The gain of EEG100C was 86 db with 110 db CMRR, and the MP150 s ADC resolution was EEG Amplifier $210 $22,500 ( $26.25/channel) ( $703.13/channel) Computer $65 $1,500 Display/Human Interface $35 $200 Total $310 $24,200 The Cost of the Custom BCI s 8-Channel EEG Amplifier Includes PCB Manufacturing, Assembly, and Components. The Cost of the Custom BCI s Computer Includes the Cost of the MCU, Battery, and MicroSD Card. The Cost of the Conventional BCI System Does not Include the Cost of the Separate Data Acquisition System for Aligning the EEG and Cues. 12 bits. Different software filters were applied to the data from 132 the custom and commercial amplifiers to account for their dif- 133 ferent hardware filter settings. Finally, the lag-optimized corre- 134 lation coefficient (Pearson) between the signals was calculated. 135 The conventional BCI system has been used extensively in 136 previous studies [15], [16], and consisted of a commercial 32-137 channel EEG amplifier (NeXus-32, Mind Media, Netherlands), 138 a desktop computer, and the MP150 data acquisition system 139 for aligning the EEG and cue signals. The gain of the NeXus- 140 32 amplifier was 26 db with >90 db CMRR, and its ADC 141 resolution was 22 bits. 142 A cost breakdown of both BCI systems (excluding the EEG 143 cap) is shown in Table I. The cost of the custom BCI was 144 <1/20th of the cost of an equivalent 8-channel version of the 145 conventional system (using per channel costs). The conventional 146 system s amplifier, however, has medical CE and FDA certifi- 147 cations, which may account for its high cost. 148 C. Software 149 Specialized software was written in C++ and uploaded to 150 the custom BCI s MCU to render the graphical user interface 151 (GUI) and perform the following BCI functions: 1. EEG train- 152 ing data acquisition, 2. generation of the BCI decoding model, 153 3. real-time decoding to control an output device. The simple 154 GUI is depicted in the bottom panel of Fig. 1. The effector out- 155 put can be manually controlled on the home screen. In training 156 mode, the screen alternates between displaying GO (during 157 movement epochs) and a blank screen (during idling epochs), 158 and then displays the accuracy of the generated BCI decoding 159 model. Lastly, before the end of training, a small number of 160 calibration cues ( GO /blank screen) are presented to the user. 161 Back at the home screen, the user can enter calibration mode 162 to manually select thresholds for the decoding model (based 163 on histograms from data collected during the calibration cues). 164 During real-time BCI decoding, the user is presented with the 165 same GO /blank screen cues as before and their decoded brain 166 state is used to control the effector output. The software devel- 167 oped to operate the BCI, including the GUI, is publicly available 168 at https://github.com/cbmspc/portablebci. 169

4 IEEE TRANSACTIONS ON BIOMEDICAL ENGINEERING, VOL. 00, NO. 00, 2017 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 Fig. 3. Experimental procedure for the head-to-head comparison of the custom and conventional BCI, depicting the order of each system s training, decoding model generation (Dec. Mod.), binary state machine calibration (Cal.), and real-time decoding trials. The entire procedure lasted around 1.5 h. Fig. 4. Electrode locations for the international 10 10 EEG system. The electrodes used by the conventional BCI are colored grey, while those used by the custom BCI are outlined in red. The conventional BCI system utilized custom Matlab scripts to perform the same functions as the custom BCI system. These were originally described in [15]. D. Subject Recruitment The use of human subjects was approved by the University of California, Irvine Institutional Review Board. Able-bodied individuals with no history of neurological disease were recruited for the study. E. Setup The general experimental procedure for each subject is depicted in Fig. 3. Subjects were first fitted with and EEG cap (Waveguard, ANT-Neuro, Enschede, Netherlands) with 64 actively-shielded electrodes. Only a subset of 33 electrodes was used (see Fig. 4), and their impedances were reduced to <10 kω using conductive gel. The conventional BCI utilized 32 channels (32 electrodes all referenced to AFz), while the custom BCI used only 4 channels (C1, C3, C5, and CP3, all referenced to AFz). Specifically, AFz was the V-electrode in Fig. 2 for every channel of the custom BCI. In addition, the custom BCI used a bias electrode (Fz) during testing. For subject S3, FC3 was used instead of C5 due to excessive noise in that channel. The 4 channels used by the custom BCI were chosen based on their proximity to the expected hand representation area of the primary motor cortex. Although the custom BCI could accom- 193 modate up to 8 channels, preliminary post-hoc analysis of foot 194 movement data from a previous BCI study [17] demonstrated no 195 significant loss of decoding accuracy when only 4 (albeit well 196 chosen) EEG channels were used instead of all 32. In addition, 197 our results from [13] suggested that high decoding performance 198 was attainable with only 4 EEG channels. Therefore, we used 199 only 4 of the 8 channels for this study. 200 F. BCI Training 201 In order to train the BCI systems to distinguish the pres- 202 ence/absence of hand movements, users followed verbal cues to 203 alternate between repetitively opening/closing their right hand 204 for 6 s ( move epochs) and remaining motionless for 6 s ( idle 205 epochs). EEG data from 4 (custom BCI) or 32 (conventional 206 BCI) channels were acquired at 240 Hz (custom BCI) or 256 Hz 207 (conventional BCI) per channel. The sampling rate for the cus- 208 tom BCI was chosen simply because it was close to 256 and 209 produced many software parameters that were divisible by 10, 210 and changing it to 256 Hz did not affect decoding performance. 211 Each channel s EEG data were digitally filtered either into the α 212 (8 13 Hz) and β (13 30 Hz) physiological bands by the custom 213 BCI or into 2 Hz bands covering the same 8 30 Hz range by 214 the conventional BCI. The custom BCI utilized the entire α and 215 β bands, instead of smaller frequency bands, due to its limited 216 memory space (96 kb) and to simplify the subsequent decoding 217 steps. The average power at each channel and frequency band 218 was calculated for every 6-s-long move and idle epoch. 219 To prevent movement state transitions from affecting the sub- 220 sequent decoding models, the custom and conventional BCIs 221 discarded the first 1-s of EEG data from each epoch. The con- 222 ventional BCI also discarded the last 1-s of EEG data from each 223 epoch. However, doing the same for the custom BCI had no 224 impact on its decoding performance, and therefore, it was not 225 implemented in this study. 226 For each subject, the custom BCI was trained first, followed 227 by the conventional BCI (see Fig. 3). To minimize the total 228 time that each subject spent training, the training sessions for 229 the custom BCI lasted only 5 min. However, the training ses- 230 sions for the conventional BCI lasted 10 min and could not be 231 reasonably reduced further because of the high dimensional- 232 ity of its data (32 EEG channels 11 frequency bands). The 233 custom BCI was trained for 5 min instead of 10 min because 234 it made no difference in its decoding capability during pre- 235 liminary tests. During training, subjects were positioned fac- 236 ing away from the experimenters/bci systems and were not 237 told of the training time discrepancy in order to blind them to 238 which BCI was being used. The BCI cues were relayed ver- 239

MCCRIMMON et al.: PERFORMANCE ASSESSMENT OF A CUSTOM, PORTABLE, AND LOW-COST BRAIN COMPUTER INTERFACE PLATFORM 5 240 241 242 243 bally to the subjects by the experimenters, who also performed mock typing and mouse clicking (to mimic the sounds of operating the conventional system) before the use of the custom system. 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 G. Decoding Model The custom BCI extracted hand movement features from its 8-dimensional EEG training data using linear discriminant analysis (LDA) [18], while the conventional BCI first reduced its training data s dimensionality (down from 352) using classwise principal component analysis (CPCA) [19] before extracting hand movement features with either LDA or approximate information discriminant analysis (AIDA) [20]. The conventional BCI s initial CPCA step was necessary to perform LDA/AIDA. Next, both BCI systems generated a Bayesian classifier to calculate the probability of the movement state (hand opening/closing) from extracted features (f), denoted as P(M f). Each system also performed leave-one-out crossvalidation to predict the accuracy of the decoding model. If the cross-validation accuracy was <85%, the subject repeated the training for that system. If the accuracy was 85%, the subject performed an additional 2-min calibration session of cued hand opening/closing and idling (in alternating 6-s epochs) with that BCI system to provide data for calibrating a binary state machine. H. State Machine Calibration For each BCI system, histograms of P(M f) from move and idle epochs of the 2-min calibration session were generated to calibrate a binary state machine that classified users underlying movement states ( move or idle ) from P(M f). Specifically, for each BCI, the values of two thresholds, T M and T I (where T M > T I ), were manually selected by the experimenters to be used by its state machine as follows. When P(M f) < T I, the state machine entered the idle state; when P(M f) > T M, the state machine entered the move state; when T I < P(M f) < T M, the state machine remained in its previous state. This binary state machine design reduces noisy state transitions and alleviates users mental workload, and has been successfully used before [15], [16]. If a BCI system s histograms from move and idle calibration epochs appeared highly similar, the training session for that BCI was repeated. I. Real-Time Decoding During real-time operation, both the custom and conventional BCI systems employed a 0.75 s sliding analysis window (0.25 s overlap) for determining P(M f) from the users EEG. To further prevent noisy state transitions, the posterior probabilities over the most recent 1.5 s of EEG data (6 values) were averaged to generate P(M f). P(M f) was used by the systems state machine to decode users underlying movement state every 0.25 s. This decoded state was used by each system to control an LED which turned on during decoded move states and turned off during decoded idle states. Subjects participated in five, 2-min-long trials for each BCI system (total of 10 trials). During each trial, subjects followed Fig. 5. 3-s example from the 1 min of human EEG data simultaneously acquired by the custom and commercial amplifiers. Note the high degree of similarity between the signals. alternating 6-s cues to open/close their right hand or remain 293 motionless. Subjects were positioned facing away from the ex- 294 perimenters/bci systems and towards the single LED light that 295 provided real-time visual feedback from both systems. Experi- 296 menters provided verbal cues for subjects to move and idle 297 based on the computerized cues displayed by each system. In 298 addition, the experimenters performed mock typing and mouse 299 clicking during use of the custom BCI. Subjects were told that 300 the order of the 10 trials was randomized, although the custom 301 and commercial systems were actually used in an alternating 302 fashion (starting with the custom system). The alternating uti- 303 lization of the BCI systems was intended to avoid subject learn- 304 ing or fatigue. For each trial, the performance of the system was 305 assessed as the lag-optimized correlation (Pearson) between the 306 cues and the decoded state. Then, for each subject, a left-sided 307 Mann-Whitney U test (α = 0.05) was performed between the 308 decoding correlations of the custom and conventional BCI. 309 III. RESULTS 310 A. Custom Amplifier Validation 311 EEG (Cz referenced to AFz) from one human subject was si- 312 multaneously passed to both the custom and commercial ampli- 313 fiers. The correlation between the 1-min-long signals acquired 314 from both amplifiers was 0.79. Moreover, both signals appeared 315 visually similar. See Fig. 5 for a representative 3-s example of 316 each amplifier s output. 317 B. Decoding Performance 318 Five able-bodied subjects (S1-5) gave their informed con- 319 sent to participate in this study. Three of the subjects had prior 320 BCI experience. Anecdotally, the setup time for the custom BCI 321 system required 10 minutes, as opposed to 30 40 minutes 322 for the conventional BCI system, due to its lower number of 323 channels. All subjects successfully operated both the custom 324 and conventional BCI systems. The overall cross-validation ac- 325 curacy across all subjects was 93.6 ± 4.3 and 96.2 ± 1.8 for 326 the custom and conventional BCI systems, respectively. In the 327 meantime, the custom BCI s processor was still able to gener- 328 ate the decoding model and perform cross-validation in a timely 329 manner (<1 min for each subject). For each subject, the conven- 330 tional BCI utilized features around C3 in the α and/or β bands, 331 so the 4 channels used by the custom BCI may have been an 332 appropriate choice in these subjects. For example, the average 333 of all S2 s β band features is shown in Fig. 6. 334

6 IEEE TRANSACTIONS ON BIOMEDICAL ENGINEERING, VOL. 00, NO. 00, 2017 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 Fig. 6. The average β band features used by the conventional BCI for decoding S2 s hand movements. Areas in red represent highly weighted features, while those in blue are less important. As expected, the region around C3 was important for decoding. TABLE II SUBJECT DEMOGRAPHICS AND CROSS-VALIDATION ACCURACY FOR EACH BCI SYSTEM Subject Age/ Prior BCI Custom BCI Conventional BCI Sex Experience Training Accuracy Training Accuracy S1 23/M N 90% 96% S2 46/M Y 96% 99% S3 21/M N 96% 96% S4 28/M Y 98% 97% S5 35/M Y 88% 95% The average lag-optimized correlation between cues and decoded states across all subjects and trials was 0.70 ± 0.12 (average lag of 2.22 ± 0.27 s) for the custom BCI and 0.68 ± 0.10 (average lag of 2.23 ± 0.37 s) for the conventional BCI. Training cross-validation accuracies and decoding correlations for both systems are provided for each subject in Table II and Fig. 7, respectively. No subject demonstrated a significantly lower BCI performance with the custom system compared to the conventional system. IV. DISCUSSION This study demonstrates that low-cost, embedded EEG-based BCI platforms, such as the one tested here, can achieve similar performance to a conventional BCI system with substantially more channels and computational resources. Low-cost, easyto-use, standalone systems make BCIs more accessible to researchers, clinicians, and patients, and increase the feasibility of large clinical trials involving BCI use. The small profile and minimal power requirements of embedded EEG systems make them highly portable, increasing the number of applications in which BCIs can be used. Some of these include smart environ- Fig. 7. The correlation between cues and the decoded state for each real-time decoding trial using the custom and conventional (conv.) BCI systems. For each subject, trials 1 5 are represented by a cross, circle, square, diamond, and plus sign, respectively. In addition, p-values from the Mann-Whitney U tests are provided. The performance of the custom BCI was not significantly inferior (p < 0.05) to the conventional system in any subject. ment control, gaming/entertainment, and mobile solutions to 355 neurological deficits, such as BCI-controlled neuroprostheses, 356 wheelchairs, and robotic exoskeletons. It may even be possible 357 in the future to develop fully implantable BCI systems with 358 onboard processing. 359 Although the custom EEG amplifier did not perform identi- 360 cally to a commercial system (0.79 correlation), the custom BCI 361 still achieved high decoding performance. In fact, the decoding 362 performance of both systems was generally higher than what 363 we have previously reported for motor execution tasks in able- 364 bodied [15], [21] and stroke subjects [17] using an equivalent 365 conventional BCI. We believe that the different hardware and 366 software filters used with the custom and commercial amplifiers 367 may have reduced the correlation between the output signals. 368 In particular, the custom amplifier s output was observed to 369 be contaminated with environmental noise, possibly because its 370 60 Hz notch filter was of lower order than that of the commercial 371 amplifier. 372 Our finding that a low-cost, embedded BCI using only 4 EEG 373 channels can achieve a high decoding performance and does not 374 perform significantly worse than a conventional system is en- 375 couraging, but not wholly unexpected. For example, high BCI 376 decoding performance with few channels has been observed pre- 377 viously [13] and is consistent with previous channel-dropping 378 studies [6], [7]. Although a moderately long decoding delay 379 ( 2 s) was observed for both BCIs in this study, a significant 380 fraction of this delay in both systems may have been caused 381 by the experimenters translation of visual computer cues into 382 verbal cues for the subjects. 383

MCCRIMMON et al.: PERFORMANCE ASSESSMENT OF A CUSTOM, PORTABLE, AND LOW-COST BRAIN COMPUTER INTERFACE PLATFORM 7 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 Custom, embedded BCI platforms, such as the one developed in this study, can be highly modifiable. Not only are the software libraries readily customizable, but even the system hardware can be adapted by community users for a variety of applications. For example, with this BCI platform, the bandwidth and gain of the custom amplifier array can be changed by adjusting its resistive and capacitive components. In addition, surface-mount components can replace the large dual-inline packages to further reduce the system s size. Based on the software execution time, the current Arduino Due MCU can tolerate an increase in channel number and sampling rate without causing delays during its operation. Therefore, this system is even practical for applications where higher frequencies (beyond the β band) are desired. Lastly, an expensive ( $2500) EEG cap was used in this study out of convenience, but this may not be appropriate for community users. Instead, dry electrodes, which offer shorter setup time, could be used. However, dry electrodes may still be inferior to wet electrodes [22], and in preliminary testing, we observed them to be highly sensitive to movement artifacts. A great alternative is high quality, individual EEG cup electrodes (wet) that are inexpensive ( $50 each). Many portable, reasonably low-cost BCI systems have already been developed academically ([23] [28]) and commercially (OpenBCI, Emotiv, and NeuroSky). However, these BCI systems do not perform onboard signal analysis and decoding. Yet, if these devices are modified (e.g. paired with a microcontroller for decoding), the results of this study suggest that they may be suitable for mobile BCI applications and could demonstrate similar decoding performance to conventional BCIs. Wang et al. [29] developed a portable, 4-channel BCI that transmitted EEG data to a smartphone for signal analysis and decoding. While the system was specifically designed to decode occipital steady-state visually evoked potentials (SSVEPs) and is unlikely to work for sensorimotor rhythm modulation, its performance may not be inferior to SSVEPbased conventional BCIs. Likewise, the BCIs that utilize embedded processing units for signal analysis in [8] [11] may perform similarly to expensive, full-size, conventional BCIs. However, these BCIs rely on commercial DSPs or FPGAs without userfriendly open-source development tools, so it may be hard for community users to modify them for other BCI applications. A. Limitations While many BCI systems are intended for use by individuals with neuromotor deficits, such as those resulting from stroke or spinal cord injury (SCI), only able-bodied subjects participated in this study. Thus it is unclear how low-cost, embedded BCI systems with few channels will fare against conventional BCIs in subjects with neurological disease. In the future, we intend to test the functionality of our custom BCI platform against a conventional system in stroke and SCI populations. We envision that systems like this one could be applied for BCI-based at-home physiotherapy or mobile neuroprosthetics. In addition, we did not explicitly assess the system s feasibility for use outside of a laboratory setting (e.g. at-home) and further studies are required. Lastly, the decoding performance in this study focused on a sim- ple motor paradigm, i.e. the presence or absence of hand move- 439 ments. However, it is unclear whether these results will gener- 440 alize to more elaborate movement tasks where a higher number 441 of EEG channels and/or complex decoding algorithms may be 442 necessary to maintain sufficiently high BCI performance. 443 V. CONCLUSION 444 Current BCI systems are not practical for use outside re- 445 search laboratories due to their complicated setup/operation, 446 prohibitive costs, and lack of portability. The custom BCI sys- 447 tem tested here utilized 4 EEG channels as well as a low-cost, 448 open-source MCU for decoding, but still performed similarly to 449 a conventional BCI system. The findings of this study indicate 450 that a high number of EEG channels and extensive computa- 451 tional resources are not always necessary for BCI systems to 452 operate with high accuracy, and many of the portable, inexpen- 453 sive academic or hobby-level commercial BCIs may perform 454 similarly to conventional systems. In addition, these platforms 455 are more practical and cost-effective than conventional BCIs for 456 large scale studies, as well as for motor rehabilitation or hobby 457 applications outside of a laboratory setting. 458 REFERENCES 459 [1] J. J. Daly et al., Feasibility of a new application of noninvasive brain 460 computer interface (BCI): A case study of training for recovery of voli- 461 tional motor control after stroke, J. Neurol. Phys. Therapy, vol. 33, no. 4, 462 pp. 203 211, 2009. 463 [2] A. Ramos-Murguialday et al., Brain-machine interface in chronic 464 stroke rehabilitation: A controlled study, Ann. Neurol., vol. 74, no. 1, 465 pp. 100 108, 2013. 466 [3] E. M. Holz et al., Brain-computer interface controlled gaming: Evaluation 467 of usability by severely motor restricted end-users, Artif. Intell. Med., 468 vol. 59, no. 2, pp. 111 120, 2013. 469 [4] B. M. Young et al., Case report: Post-stroke interventional BCI rehabili- 470 tation in an individual with preexisting sensorineural disability, Frontiers 471 Neuroeng., vol. 7, 2014, Art. no. 18. 472 [5] C. E. King et al., The feasibility of a brain-computer interface functional 473 electrical stimulation system for the restoration of overground walking 474 after paraplegia, J. Neuroeng. Rehabil., vol. 12, 2015, Art. no. 80. 475 [6] R. Leeb et al., Self-paced (asynchronous) BCI control of a wheelchair 476 in virtual environments: A case study with a tetraplegic, Comput. Intell. 477 Neurosci., vol. 2007, 2007, Art. no. 79642. 478 [7] W.-K. Tam et al., A minimal set of electrodes for motor imagery BCI 479 to control an assistive device in chronic stroke subjects: A multi-session 480 study, IEEE Trans. Neural Syst. Rehabil. Eng, vol. 19, no. 6, pp. 617 627, 481 Dec. 2011. 482 [8] C.-T. Lin et al., Development of wireless brain computer interface with 483 embedded multitask scheduling and its application on real-time driver s 484 drowsiness detection and warning, IEEE Trans. Biomed. Eng., vol. 55, 485 no. 5, pp. 1582 1591, May 2008. 486 [9] C.-T. Lin et al., A real-time wireless brain computer interface system for 487 drowsiness detection, IEEE Trans. Biomed. Circuits Syst., vol. 4, no. 4, 488 pp. 214 222, Aug. 2010. 489 [10] C.-T. Lin et al., Brain computer interface-based smart living environ- 490 mental auto-adjustment control system in upnp home networking, IEEE 491 Syst. J., vol. 8, no. 2, pp. 363 370, Jun. 2014. 492 [11] K.-K. Shyu et al., Development of a low-cost FPGA-based SSVEP BCI 493 multimedia control system, IEEE Trans. Biomed. Circuits Syst., vol. 4, 494 no. 2, pp. 125 132, Apr. 2010. 495 [12] O. Bai et al., A wireless, smart EEG system for volitional control of 496 lower-limb prosthesis, in Proc. TENCON 2015-2015 IEEE Region 10 497 Conf., 2015, pp. 1 6. 498 [13] C. M. McCrimmon et al., A small, portable, battery-powered brain- 499 computer interface system for motor rehabilitation, in Proc. IEEE 38th 500 Annu. Int. Conf. IEEE Eng. Med. Biol. Soc., 2016, pp. 2776 2779. 501

8 IEEE TRANSACTIONS ON BIOMEDICAL ENGINEERING, VOL. 00, NO. 00, 2017 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 [14] G. Chatrian, E. Lettich, and P. Nelson, Ten percent electrode system for topographic studies of spontaneous and evoked EEG activities, Amer. J. EEG Technol., vol. 25, no. 2, pp. 83 92, 1985. [15] A. H. Do et al., Brain-computer interface controlled functional electrical stimulation system for ankle movement, J. Neuroeng. Rehabil., vol. 8, 2011, Art. no. 49. [16] A. H. Do et al., Brain-computer interface controlled robotic gait orthosis, J. Neuroeng. Rehabil., vol. 10, 2013, Art. no. 111. [17] C. M. McCrimmon et al., Brain-controlled functional electrical stimulation therapy for gait rehabilitation after stroke: a safety study, J. Neuroeng. Rehabil., vol. 12, 2015, Art. no. 57. [18] R. A. Fisher, The use of multiple measurements in taxonomic problems, Ann. Eugenic, vol. 7, no. 2, pp. 179 188, 1936. [19] K. Das and Z. Nenadic, An efficient discriminant-based solution for small sample size problem, Pattern Recogn., vol. 42, no. 5, pp. 857 866, 2009. [20] K. Das and Z. Nenadic, Approximate information discriminant analysis: A computationally simple heteroscedastic feature extraction technique, Pattern Recogn., vol. 41, no. 5, pp. 1548 1557, 2008. [21] C. E. King et al., Performance assessment of a brain computer interface driven hand orthosis, Ann. Biomed. Eng., vol. 42, no. 10, pp. 2095 2105, 2014. [22] M. Lopez-Gordo, D. Morillo, and F. Valle, Dry EEG electrodes, Sensors, vol. 14, no. 7, pp. 12847 12870, 2014. [23] L.-D. Liao et al., Gaming control using a wearable and wireless EEGbased brain-computer interface device with novel dry foam-based sensors, J. NeuroEng. Rehabil., vol. 9, 2012, Art. no. 5. [24] S. Debener et al., How about taking a low-cost, small, and wireless EEG 528 for a walk? Psychophysiology, vol. 49, no. 11, pp. 1617 1621, 2012. 529 [25] R. Looned et al., Assisting drinking with an affordable BCI-controlled 530 wearable robot and electrical stimulation: A preliminary investigation, 531 J. Neuroeng. Rehabil., vol. 11, 2014, Art. no. 51. 532 [26] M. D. Vos et al., P300 speller BCI with a mobile EEG system: Compar- 533 ison to a traditional amplifier, J. Neural Eng., vol. 11, no. 3, 2014, Art. 534 no. 036008. 535 [27] C. Zich et al., Wireless EEG with individualized channel layout enables 536 efficient motor imagery training, Clin. Neurophysiol., vol. 126, no. 4, 537 pp. 698 710, 2015. 538 [28] S. Debener et al., Unobtrusive ambulatory EEG using a smartphone and 539 flexible printed electrodes around the ear, Sci. Rep., vol. 5, 2015, Art. no. 540 16743. 541 [29] Y.-T. Wang, Y. Wang, and T.-P. Jung, A cell-phone-based brain computer 542 interface for communication in daily life, J. Neural Eng., vol. 8, no. 2, 543 2011, Art. no. 025018. 544 Authors photographs and biographies not available at the time of 545 publication. 546 547