520 likes | 716 Views
High Transfer Rate, Real-time Brain-Computer Interface. Machine-based learning techniques towards a practical spelling device for the completely paralyzed. Agenda. Brain Computer Interfaces – brief intro. Our system Overview, technical details Machine learning – Support Vector Machines
E N D
High Transfer Rate, Real-time Brain-Computer Interface Machine-based learning techniques towards a practical spelling device for the completely paralyzed
Agenda • Brain Computer Interfaces – brief intro. • Our system • Overview, technical details • Machine learning – Support Vector Machines • Additional Bandwidth – Word Prediction • Results • Future Improvements, Q&A • Demonstration at Psychology Lab ThinQ Innovation
BCIs – the Need • ‘Locked-in’ patients Example: J.D. Bauby, “The Diving Bell and the Butterfly” • Persistence of life –“butterfly” • Extreme physical disability – “diving bell” ThinQ Innovation
BCIs – the Need • Amyotrophic Lateral Sclerosis (ALS), aka Lou Gherig’s • Degeneration of motor neurons, paralysis of voluntary muscles • 120,000 diagnosed each year worldwide • 2000 Canadians live with ALS right now • Can leave patients ‘locked-in’ • Cognitive and sensory functions remain intact ThinQ Innovation
BCI(1): Slow Cortical Potentials (SCPs) • Extensive training ~ 3 months using biofeedback mechanism • Tested on ALS patients, learned to control SCPs Ref: N. Birbaumer et al., “The thought translation device (TTD) for completely paralyzed patients,” IEEE Trans. Rehab. Eng., Vol. 8, pp. 190-193,June 2000. ThinQ Innovation
BCI(1): SCPs cont. • Most successful subject – artificially fed and respirated for 4 years • After 3 months of training, wrote letter below • Took 16 hours to write ~ 2 letters/minute • Expresses thanks, wants to have a party ThinQ Innovation
BCI(2): Implants - Cyberkinetics Inc. • BrainGate Neural Interface System: Mkt. cap ~$45mil. • Control of cursor on PC using implant in motor cortex • Undergoing limited clinical trials • Limb movement possibilities ThinQ Innovation
8-40 uV avg. deflection 300ms P300 Spelling Device – the P300 Event Related Potential • Known as ‘oddball’ or ‘surprise’ paradigm • Inherent ThinQ Innovation
P300 Spelling Device – the System • Non-invasive • Inherent Response ThinQ Innovation
P300 Speller Terminology • Epoch = One flash of any row or column • Trial = 1 complete set of epochs - all rows and columns • Symbol = Alphanumeric characters or pictures ThinQ Innovation
BCI Competition 2003 • Provided pre-collected data for competition • P300 Spelling Paradigm: • Winners included Kaper et al. • Used Support Vector Machines • Achieved high transfer rate with real-time implementation possibilities ThinQ Innovation
System Operation • Steps • Training (approximate 1hr) • Provide visual stimuli (flashing of rows/columns) • Record data with known classification label • Run data through pattern recognition algorithm (SVM) • Create customized models for each individual • Spelling • Load customized model for individual • Provide visual stimuli (flashing of rows/columns) • Record data with unknown classification label • Run data through SVM classifier • Sum up decision values • Feedback most probable letter ThinQ Innovation
Display • Flexible matrix size • Flexible matrix contents • Alphanumeric Characters • Words • Symbols ThinQ Innovation
Display cont… • Random and exhaustive flashing of all of the rows and columns on display • Flashing cycle: 300ms • 100ms intensification period • 200ms de-intensification period • 10 second rest period at the end of each symbol ThinQ Innovation
Data Collection • Collect data from DAQ sampled at 240Hz • 600ms after intensification • Buffer overlap • Flexible data collection delay • Flexible data recording time ThinQ Innovation
Data Collection – cont. • 10 channels collected simultaneously • Data from each channel concatenated together • Data stored into program memory • Collected until end of a symbol • Converted to array • Memory cleared for next symbol • System is timing critical ThinQ Innovation
Timing Issue • Purpose • Process within 300ms window • Bottleneck • Online SVM processing • Old design = 340ms/Epoch • New design = 17.67ms/Epoch • Requirement • Pentium4 or equivalent is sufficient ThinQ Innovation
Matlab Interface • Why we use Matlab? • VB–Matlab interface using APIs • Common functions • Pass matrix array to Matlab workspace • Get matrix array from Matlab workspace • Execute command line or script ThinQ Innovation
Support Vector Machines • Pattern recognition Algorithm • SVM used for: • Creating models for different individuals (train) • Getting discriminant scores (spelling) • Detailed information covered later ThinQ Innovation
Score Matrix ThinQ Innovation
Word Prediction • Idea: predict intended words based on previous spelling. Similar to cellular phone ‘smart text’ • Extract top ranked words • SQL for fast searching • Dynamic database • Selection updated on the bottom of the display • Words chosen same way ThinQ Innovation
System Design • Modular Design Approach ThinQ Innovation
What is SVM? • Developed by Vapnik in 1992 at Bell Labs • Broad applications • Based on concept of ‘learn from examples’ • Key concepts: • Linear Decision Boundary with Margin • Nonlinear feature transformation ThinQ Innovation
Basic Concept • {x1, ..., xn} be our training data set • yiÎ {1,-1} be the class label of xi then, • Find a decision boundary • Make a decision on disjoint test data ThinQ Innovation
Decision Boundary (linear) • Infinite possibility Class 1 Class -1 ThinQ Innovation
Bad Decision Boundary Class 1 Class 1 Class -1 Class -1 ThinQ Innovation
Class 1 m Class -1 Good Decision Boundary • Want to maximize m • Boundary found using constrained optimization problem ThinQ Innovation
Optimization Problem • Optimization Problem ThinQ Innovation
After Training • xi’s on the decision boundary are calledSUPPORT VECTORS • Support vectors and b defines the decision boundary ThinQ Innovation
Class 1 a10=0 a8=0.6 a7=0 a2=0 a5=0 a1=0.8 a4=0 a6=1.4 a9=0 a3=0 Class -1 Geometrical Interpretation ThinQ Innovation
Non-separable Samples • Use of Soft Margin Separation • Kernel Transformation ThinQ Innovation
Class 1 Class -1 Soft Margin Separation ThinQ Innovation
Soft Margin Separation • Idea: simultaneous maximization of margin and minimization of training error ThinQ Innovation
Nonlinear Samples • Some Samples are inherently nonlinear in input space • No linear boundary is sufficiently accurate ThinQ Innovation
Solution? ThinQ Innovation
Kernel Transformation • Idea: map input space into feature space such that samples become linearly separable ThinQ Innovation
Gaussian Kernel ThinQ Innovation
SVM Implementation • Matlab interface to libsvm • Kernel: RBF with = 6.6799e-4 • C parameter: 20.007 ThinQ Innovation
SVM Implementation • Average Method (61.538%) • Multi-Model Method (65.22%) • Concatenation Method (82.418%) • Weighted Concatenation Method (max. 86.264%) ThinQ Innovation
Possible Improvements • Weighted concatenation method • Customized Kernel Parameters ThinQ Innovation
Measure of Performance • Bit Rate • N: number of available symbols • p: prediction accuracy • t: number of seconds taken to choose one symbol • Letters per minute ThinQ Innovation
Cont… • Resulting Transfer Rates • Without using dictionary • With using dictionary ThinQ Innovation
More Accurate Measure • Resulting Transfer Rates • Without using dictionary • With using dictionary ThinQ Innovation
Cont… • Mechanism • Receives a chosen letter from control module • Appends the letter to current letters in the word • Searches SQL database • Return list of most probable target words based on ranking ThinQ Innovation
Result Analysis • Accuracy across subjects • Accuracy over time, same subject • Accuracy over number of trials • Accuracy versus model size ThinQ Innovation
Accuracy Across Subjects ThinQ Innovation
Accuracy Across Subjects ThinQ Innovation
Accuracy Over Time, Same Subject • Subject: Jack ThinQ Innovation
Accuracy Over Number of Trials • Subject: Jyh-Liang ThinQ Innovation
Accuracy Versus Model Size • Subject: Jyh-Liang ThinQ Innovation