CS229 Project: Classification of Motor Tasks Based on Functional Neuroimaging

Similar documents
Decoding the Human Motor Cortex

Target-included model and hybrid decoding of stereotyped hand movement in the motor cortex

Determination of the Arm Orientation for Brain-Machine Interface Prosthetics

Introduction to Neuroimaging Janaina Mourao-Miranda

CS 229 Final Project Report Learning to Decode Cognitive States of Rat using Functional Magnetic Resonance Imaging Time Series

Multivariate Pattern Classification. Thomas Wolbers Space and Aging Laboratory Centre for Cognitive and Neural Systems

Multivariate pattern classification

Multi-voxel pattern analysis: Decoding Mental States from fmri Activity Patterns

Feature Selection for fmri Classification

INDEPENDENT COMPONENT ANALYSIS APPLIED TO fmri DATA: A GENERATIVE MODEL FOR VALIDATING RESULTS

CS/NEUR125 Brains, Minds, and Machines. Due: Wednesday, April 5

EEG Imaginary Body Kinematics Regression. Justin Kilmarx, David Saffo, and Lucien Ng

A Spatio-temporal Denoising Approach based on Total Variation Regularization for Arterial Spin Labeling

A TEMPORAL FREQUENCY DESCRIPTION OF THE SPATIAL CORRELATION BETWEEN VOXELS IN FMRI DUE TO SPATIAL PROCESSING. Mary C. Kociuba

Facial Expression Classification with Random Filters Feature Extraction

Classification of Subject Motion for Improved Reconstruction of Dynamic Magnetic Resonance Imaging

Ascertaining the Importance of Neurons to Develop Better Brain-Machine Interfaces

Administrivia. Enrollment Lottery Paper Reviews (Adobe) Data passwords My office hours

DETECTION OF SMOOTH TEXTURE IN FACIAL IMAGES FOR THE EVALUATION OF UNNATURAL CONTRAST ENHANCEMENT

Analysis of Functional MRI Timeseries Data Using Signal Processing Techniques

Voxel selection algorithms for fmri

Multivariate analyses & decoding

Pattern Recognition for Neuroimaging Data

Brain-Machine Interface Based on EEG Mapping to Control an Assistive Robotic Arm

Sparse Control for High-DOF Assistive Robots

Version. Getting Started: An fmri-cpca Tutorial

Bayesian Spatiotemporal Modeling with Hierarchical Spatial Priors for fmri

Naïve Bayes, Gaussian Distributions, Practical Applications

Basic fmri Design and Analysis. Preprocessing

Statistical Analysis of Neuroimaging Data. Phebe Kemmer BIOS 516 Sept 24, 2015

Computational Motor Control: Kinematics

Research on Applications of Data Mining in Electronic Commerce. Xiuping YANG 1, a

Reconstructing visual experiences from brain activity evoked by natural movies

Cognitive States Detection in fmri Data Analysis using incremental PCA

Lane Changing Prediction Modeling on Highway Ramps: Approaches and Analysis

The organization of the human cerebral cortex estimated by intrinsic functional connectivity

Functional MRI in Clinical Research and Practice Preprocessing

SPM8 for Basic and Clinical Investigators. Preprocessing. fmri Preprocessing

SPM8 for Basic and Clinical Investigators. Preprocessing

Session scaling; global mean scaling; block effect; mean intensity scaling

BRAIN-MACHINE INTERFACES (BMIs) interpret and

CS 179 Lecture 16. Logistic Regression & Parallel SGD

ARE you? CS229 Final Project. Jim Hefner & Roddy Lindsay

Supplementary Figure 1

Pixels to Voxels: Modeling Visual Representation in the Human Brain

Segmenting Lesions in Multiple Sclerosis Patients James Chen, Jason Su

Learning from High Dimensional fmri Data using Random Projections

Lecture #11: The Perceptron

MULTIVARIATE ANALYSES WITH fmri DATA

Applying Supervised Learning

Mapping of Hierarchical Activation in the Visual Cortex Suman Chakravartula, Denise Jones, Guillaume Leseur CS229 Final Project Report. Autumn 2008.

Classification of Whole Brain fmri Activation Patterns. Serdar Kemal Balcı

EPI Data Are Acquired Serially. EPI Data Are Acquired Serially 10/23/2011. Functional Connectivity Preprocessing. fmri Preprocessing

C. Poultney S. Cho pra (NYU Courant Institute) Y. LeCun

Learning Tensor-Based Features for Whole-Brain fmri Classification

AN INTERACTION K-MEANS CLUSTERING WITH RANKING FOR MINING INTERACTION PATTERNS AMONG THE BRAIN REGIONS

Noise-based Feature Perturbation as a Selection Method for Microarray Data

Evaluation Metrics. (Classifiers) CS229 Section Anand Avati

This exercise uses one anatomical data set (ANAT1) and two functional data sets (FUNC1 and FUNC2).

Accelerometer Gesture Recognition

Bayesian Inference in fmri Will Penny

Dimensionality Reduction of fmri Data using PCA

Quality Checking an fmri Group Result (art_groupcheck)

Correction of Partial Volume Effects in Arterial Spin Labeling MRI

CAMCOS Report Day. December 9 th, 2015 San Jose State University Project Theme: Classification

MultiVariate Bayesian (MVB) decoding of brain images

Enhao Gong, PhD Candidate, Electrical Engineering, Stanford University Dr. John Pauly, Professor in Electrical Engineering, Stanford University Dr.

SPATIO-TEMPORAL DATA ANALYSIS WITH NON-LINEAR FILTERS: BRAIN MAPPING WITH fmri DATA

Large Scale Chinese News Categorization. Peng Wang. Joint work with H. Zhang, B. Xu, H.W. Hao

Temporal Feature Selection for fmri Analysis

Combining SVMs with Various Feature Selection Strategies

Section 9. Human Anatomy and Physiology

Correction for multiple comparisons. Cyril Pernet, PhD SBIRC/SINAPSE University of Edinburgh

HST.583 Functional Magnetic Resonance Imaging: Data Acquisition and Analysis Fall 2008

Fmri Spatial Processing

Louis Fourrier Fabien Gaie Thomas Rolf

Temporal and Cross-Subject Probabilistic Models for fmri Prediction Tasks

3D RECONSTRUCTION OF BRAIN TISSUE

IEEE TRANSACTIONS ON SIGNAL AND INFORMATION PROCESSING OVER NETWORKS, VOL. 3, NO. 4, DECEMBER

K-Space Trajectories and Spiral Scan

An independent component analysis based tool for exploring functional connections in the brain

Supplementary Figure 1. Decoding results broken down for different ROIs

Equation to LaTeX. Abhinav Rastogi, Sevy Harris. I. Introduction. Segmentation.

Performance Evaluation of Various Classification Algorithms

A Novel Information Theoretic and Bayesian Approach for fmri data Analysis

Learning to Recognize Faces in Realistic Conditions

Acceleration of Probabilistic Tractography Using Multi-GPU Parallel Processing. Jungsoo Lee, Sun Mi Park, Dae-Shik Kim

Detecting Thoracic Diseases from Chest X-Ray Images Binit Topiwala, Mariam Alawadi, Hari Prasad { topbinit, malawadi, hprasad

Introduction to fmri. Pre-processing

fmri Image Preprocessing

Adversarial Attacks on Image Recognition*

Machine Learning for Pre-emptive Identification of Performance Problems in UNIX Servers Helen Cunningham

DynaConn Users Guide. Dynamic Function Connectivity Graphical User Interface. Last saved by John Esquivel Last update: 3/27/14 4:26 PM

CHAPTER 3 TUMOR DETECTION BASED ON NEURO-FUZZY TECHNIQUE

On Classification: An Empirical Study of Existing Algorithms Based on Two Kaggle Competitions

Tap Position Inference on Smart Phones

Neurally Constrained Subspace Learning of Reach and Grasp

Locating ego-centers in depth for hippocampal place cells

Nonparametric sparse hierarchical models describe V1 fmri responses to natural images

Quick Manual for Sparse Logistic Regression ToolBox ver1.2.1

Transcription:

CS229 Project: Classification of Motor Tasks Based on Functional Neuroimaging Gerald Brantner Mechanical Engineering, Stanford University, Stanford, CA 9435, USA. geraldb@stanford.edu Georg Schorpp Management Science and Engineering, Stanford University, Stanford, CA 9435, USA. gschorpp@stanford.edu Brain-machine interfaces (BMIs) aim to establish a new way of communication between humans and computers. Especially paralyzed individuals could greatly benefit from BMIs. Currently, most successful systems rely on the implantation of electrodes on the motor cortex, but due to its invasive nature, this technique prohibits extensive research on human subjects. For this reason, a new approach is needed. As functional magnetic resonance imaging (fmri) is human-safe, research using this method can be performed at a higher scale. Because brain structure and activity varies among individuals, machine learning is an essential tool to calibrate and train these interfaces. In this project we developed binary and multi-class classifiers, labeling a set of performed motor tasks based on recorded fmri brain signals. Our binary classifier achieved an average accuracy of 93% across all pairwise tasks and our multi-class classifier yielded an accuracy of 68%. We demonstrated that combining fmri and machine learning is a viable path for research on BMIs. Key words : Machine Learning, Functional Magnetic Resonance Imaging (fmri), Brain-Machine Interface 1. Introduction Brain signals of human and non-human primates have previously been translated to control mouse cursors [1, 2, 3], keyboard inputs [4], and to guide a robotic hand [5, 6]. Most successful systems rely on electrodes that are implanted in the brain. Electrodes, however, are invasive, which prevents the use on human subjects. Functional magnetic resonance imaging (fmri) is a very promising alternative [7] because it is (1) non-invasive, (2) does not rely on ionizing radiation, and (3) has high spatial and temporal resolution, which makes it a safe method for research using human subjects. In this research we connect motor tasks with neural activity, in order to classify a subject s motor states based on observed brain signals using fmri. 2. Data Collection and Preprocessing We used data from a study conducted at the Stanford Center for Cognitive and Neurobiological Imaging (CNI) by GB (author), SM, and CA (Acknowledgements). The experiment required the test subject to perform a set of ten different tasks (Table 1). The subject repeated each task 12 1

2 CS229 Project: Classification of Motor Tasks Based on Functional Neuroimaging Task # Description Task # Description 1 Wrist - Up Down 6 Wrist - Up Down Weighted 2 Wrist - Rotate 7 Wrist - Rotate Weighted 3 Elbow - Up Down 8 Elbow - Up Down Weighted 4 Shoulder - Up Down 9 Shoulder - Up Down Weighted 5 Shoulder - Rotate Shoulder - Rotate Weighted Table 1 Set of Tasks activation, normalized 25 5 BOLD fmri time series for voxel 1 task1 task2 task3 task4 task5 task6 task7 task8 task9 task activation, normalized 5 BOLD fmri time series for voxel 9 task1 task2 task3 task4 task5 task6 task7 task8 task9 task 5 5 2 25 3 time [s] 5 5 2 25 3 time [s] Figure 1 Sample fmri BOLD signal for 2 voxels and varying tasks times and the tasks were randomly ordered. The fmri scanner partitions the brain into 12, voxels (cubes of volume 2.5mm 3 ). For each of these voxels we simultaneously recorded the fmri BOLD [8] signal, which measures oxygen consumption due to activation at a temporal resolution of one second (Figure 1). The raw signals were preprocessed using a standard pipeline. 3. Support Vector Machines In this section we describe the implementation of our classifier based on Support Vector Machines. We employed MATLAB s integrated svmtrain and svmclassify functions. By default, the training function normalizes the data so that it is centered at its mean and has unit standard deviation. We found that a linear kernel performs very well for this problem and we chose Sequential Minimal Optimization (SMO) as an optimization method. 3.1 Initial Feature Selection We faced two problems while classifying motor states with fmri data: First, the feature size is very large, due to the large number of voxels, and second, the number of samples is much lower than the number of features. The low number of samples is a result of the time constraints and operational cost associated with the MR scanner. We performed preliminary tests and found that the most successful features are the concatenated time series of a subset of the recorded voxels (Figure 2). We used a two-stage selection process:

CS229 Project: Classification of Motor Tasks Based on Functional Neuroimaging 3 1. Filter by region of interest (ROI): For the scans, we only selected voxels that are part of the brain s motor cortex. 2. The voxels were ranked by an FIR model s reliability at capturing variance in BOLD signal responses to tasks. The top 5 voxels were selected. 3.2 Binary SVM We first used a binary SVM to pair-wise classify all combinations of tasks. For each pair we use 24 data points, 12 for each task. The parameters for the algorithm are the number of voxels considered as well as the length of the input signal. The algorithm uses leave-one-out cross validation for every pair and computes the overall mean accuracy, which reaches 93%. Figure (3) shows the individual classification accuracy across all pairs. We can see that the accuracy is decreased for similar tasks, especially for a task and its weighted counterpart, (green ellipsoids). This is expected and further validates this approach. 3.3 Multi Class SVM - One vs One Next we developed a multi-class SVM algorithm that classifies across all tasks at the same time. We found that one-vs-one yields the best results compared to other methods, such as one-vsall (Section 4.2). For each test point, this algorithm applies binary classification over all possible 3 voxel 1 voxel 2 voxel 3 voxel 4 2 4 6 8 12 Feature no Figure 2 Illustration of a data point Figure 3 Confusion Matrix for 66 / 1 voxels and 13 sec duration

Brantner, Schorpp: CS229 Project: Classification of Motor Tasks Based on Functional Neuroimaging 4 combinations and assigns a point to the winning class. Eventually the test point is classified to the class scoring the most points. This method in its standard implementation, however, does not account for ties. Our enhanced method instead applies another (binary / multi class) classification between the tied task types to make the final decision. 3.4 Heuristic Feature Selection Enhancement After implementing both the binary and multi class SVM we found that using all available data, i.e. 5 voxels over a 3 sec time window, does not lead to the best predictions. Instead, considering only the 6-12 most significant voxels over the first - seconds of the task execution leads to much better and more robust results (Figures 4 and 5). The graphs illustrate that the SVMs are more sensitive to choosing the right time window than to choosing the number of voxels. Mean accuracy binary SVM vs voxel and time; low resolution Mean accuracy binary SVM vs voxel and time; medium resolution 3 4.9 35.93 28.92 26.85 24 3.91 22 25.75.8.9 18.7.89 16.65.88 14 5.6 12.87 5 Figure 4 2 25 7 8 9 11 12 13 14 Grid search for binary svm: mean accuracy vs #voxels and t Accuracy multi class SVM vs voxel and time; low resolution Accuracy multi class SVM vs voxel and time, medium resolution 5 25.68.65 45.66.6 4.64.55 35.62.5.45 25.4 3.6.58.56.35.3.54.52.25 5.5.2 5 Figure 5 2 25 5 7 8 9 11 12 13 Grid search for multi-class svm: accuracy vs #voxels and t 14

CS229 Project: Classification of Motor Tasks Based on Functional Neuroimaging 5 4. Comparison to other Approaches As discussed earlier, binary SVM and one-vs-one multi-class SVM turned out to be the best choice compared to other approaches tested, which we describe in this section. 4.1 Binary Logistic Regression Classifier We also implemented a binary logistic regression classifier, similar to the method described in Section 3.2 and found it to perform % less accurate. 4.2 Multi Class SVM - One vs All As an alternative to the one-vs-one multi-class classifier (Section 3.3), we tested one-vs-all. Onevs-one achieves an accuracy of up to 68%, whereas one-vs-all only performs slightly better than random classification. 5. Conclusion In this study we developed binary and multi-class classifiers to label performed motor tasks based on recorded neural activity using fmri. On average, we achieved 93% accuracy for the binary case and 68% for the multi-class case using optimal parameters. Compared to the other approaches tested, SVM proofed to be the superior method. Based on these results developing a brain-machine interface using fmri is feasible. Acknowledgments We thank Samir Menon for contributing with data collection, preprocessing, and for providing valuable advice throughout the project. We thank Chris Aholt for volunteering as a subject during the fmri scans. References [1] P.R. Kennedy, R.A.E. Bakay, M.M. Moore, K. Adams, and J. Goldwaithe. Direct control of a computer from the human central nervous system. Rehabilitation Engineering, IEEE Transactions on, 8(2):198 22,. [2] M.D. Serruya, N.G. Hatsopoulos, L. Paninski, M.R. Fellows, and J.P. Donoghue. Brain-machine interface: Instant neural control of a movement signal. Nature, 416(6877):141 142, 2. [3] E.C. Leuthardt, G. Schalk, J.R. Wolpaw, J.G. Ojemann, and D.W. Moran. A brain computer interface using electrocorticographic signals in humans. Journal of neural engineering, 1(2):63, 4. [4] G. Santhanam, S.I. Ryu, M.Y. Byron, A. Afshar, and K.V. Shenoy. A high-performance brain computer interface. nature, 442(799):195 198, 6. [5] L.R. Hochberg, M.D. Serruya, G.M. Friehs, J.A. Mukand, M. Saleh, A.H. Caplan, A. Branner, D. Chen, R.D. Penn, and J.P. Donoghue. Neuronal ensemble control of prosthetic devices by a human with tetraplegia. Nature, 442(799):164 171, 6. [6] J.M. Carmena, M.A. Lebedev, R.E. Crist, J.E. O Doherty, D.M. Santucci, D.F. Dimitrov, P.G. Patil, C.S. Henriquez, and M.A.L. Nicolelis. Learning to control a brain machine interface for reaching and grasping by primates. PLoS biology, 1(2):e42, 3. [7] J.H. Lee, J. Ryu, F.A. Jolesz, Z.H. Cho, and S.S. Yoo. Brain machine interface via real-time fmri: preliminary study on thought-controlled robotic arm. Neuroscience letters, 45(1):1 6, 9. [8] S. Ogawa, TM Lee, AR Kay, and DW Tank. Brain magnetic resonance imaging with contrast dependent on blood oxygenation. Proceedings of the National Academy of Sciences, 87(24):9868 9872, 199.