How To Do Multivariate Pattern Analysis

Slides:



Advertisements
Similar presentations
FMRI Methods Lecture 10 – Using natural stimuli. Reductionism Reducing complex things into simpler components Explaining the whole as a sum of its parts.
Advertisements

Florida International University COP 4770 Introduction of Weka.
Integrated Instance- and Class- based Generative Modeling for Text Classification Antti PuurulaUniversity of Waikato Sung-Hyon MyaengKAIST 5/12/2013 Australasian.
Image classification Given the bag-of-features representations of images from different classes, how do we learn a model for distinguishing them?
SPM 2002 C1C2C3 X =  C1 C2 Xb L C1 L C2  C1 C2 Xb L C1  L C2 Y Xb e Space of X C1 C2 Xb Space X C1 C2 C1  C3 P C1C2  Xb Xb Space of X C1 C2 C1 
SVM—Support Vector Machines
Search Engines Information Retrieval in Practice All slides ©Addison Wesley, 2008.
Machine learning continued Image source:
A (very) brief introduction to multivoxel analysis “stuff” Jo Etzel, Social Brain Lab
Discriminative and generative methods for bags of features
Image classification Given the bag-of-features representations of images from different classes, how do we learn a model for distinguishing them?
Multi-voxel Pattern Analysis (MVPA) and “Mind Reading” By: James Melrose.
What is Learning All about ?  Get knowledge of by study, experience, or being taught  Become aware by information or from observation  Commit to memory.
Modeling fMRI data generated by overlapping cognitive processes with unknown onsets using Hidden Process Models Rebecca A. Hutchinson (1) Tom M. Mitchell.
Review Rong Jin. Comparison of Different Classification Models  The goal of all classifiers Predicating class label y for an input x Estimate p(y|x)
Learning to Identify Overlapping and Hidden Cognitive Processes from fMRI Data Rebecca Hutchinson, Tom Mitchell, Indra Rustandi Carnegie Mellon University.
London, UK 21 May 2012 Janaina Mourao-Miranda, Machine Learning and Neuroimaging Lab, University College London, UK Pattern Recognition for Neuroimaging.
An Introduction to Support Vector Machines Martin Law.
An Exercise in Machine Learning
Retinotopic mapping workshop COSMO Starting materials In the folder ‘COSMO’ you will find raw data and toolboxes – as if you had just finished an.
ROOT: A Data Mining Tool from CERN Arun Tripathi and Ravi Kumar 2008 CAS Ratemaking Seminar on Ratemaking 17 March 2008 Cambridge, Massachusetts.
Comparison of Boosting and Partial Least Squares Techniques for Real-time Pattern Recognition of Brain Activation in Functional Magnetic Resonance Imaging.
Matlab Toolbox for Inter-Subject Correlation Analysis Overview.
8/25/05 Cognitive Computations Software Tutorial Page 1 SNoW: Sparse Network of Winnows Presented by Nick Rizzolo.
1 SUPPORT VECTOR MACHINES İsmail GÜNEŞ. 2 What is SVM? A new generation learning system. A new generation learning system. Based on recent advances in.
MVPA Tutorial Last Update: January 18, 2012 Last Course: Psychology 9223, W2010, University of Western Ontario Last Update:
FMRI Methods Lecture7 – Review: analyses & statistics.
Kernel Methods A B M Shawkat Ali 1 2 Data Mining ¤ DM or KDD (Knowledge Discovery in Databases) Extracting previously unknown, valid, and actionable.
Current work at UCL & KCL. Project aim: find the network of regions associated with pleasant and unpleasant stimuli and use this information to classify.
2004 All Hands Meeting Analysis of a Multi-Site fMRI Study Using Parametric Response Surface Models Seyoung Kim Padhraic Smyth Hal Stern (University of.
Classifiers Given a feature representation for images, how do we learn a model for distinguishing features from different classes? Zebra Non-zebra Decision.
An Introduction to Support Vector Machines (M. Law)
So you want to run an MVPA experiment… Lindsay Morgan April 9, 2012.
Distributed Representative Reading Group. Research Highlights 1Support vector machines can robustly decode semantic information from EEG and MEG 2Multivariate.
Powerpoint Templates Page 1 Powerpoint Templates Scalable Text Classification with Sparse Generative Modeling Antti PuurulaWaikato University.
Sparse Bayesian Learning for Efficient Visual Tracking O. Williams, A. Blake & R. Cipolloa PAMI, Aug Presented by Yuting Qi Machine Learning Reading.
MVPD – Multivariate pattern decoding Christian Kaul MATLAB for Cognitive Neuroscience.
Neural Text Categorizer for Exclusive Text Categorization Journal of Information Processing Systems, Vol.4, No.2, June 2008 Taeho Jo* 報告者 : 林昱志.
USE RECIPE INGREDIENTS TO PREDICT THE CATEGORY OF CUISINE Group 7 – MEI, Yan & HUANG, Chenyu.
Classification (slides adapted from Rob Schapire) Eran Segal Weizmann Institute.
C O R P O R A T E T E C H N O L O G Y Information & Communications Neural Computation Machine Learning Methods on functional MRI Data Siemens AG Corporate.
CZ5225: Modeling and Simulation in Biology Lecture 7, Microarray Class Classification by Machine learning Methods Prof. Chen Yu Zong Tel:
Text Categorization With Support Vector Machines: Learning With Many Relevant Features By Thornsten Joachims Presented By Meghneel Gore.
An Exercise in Machine Learning
Event-related fMRI SPM course May 2015 Helen Barron Wellcome Trust Centre for Neuroimaging 12 Queen Square.
***Classification Model*** Hosam Al-Samarraie, PhD. CITM-USM.
Notes on HW 1 grading I gave full credit as long as you gave a description, confusion matrix, and working code Many people’s descriptions were quite short.
Classification using Co-Training
Lecture 5: Statistical Methods for Classification CAP 5415: Computer Vision Fall 2006.
Idiot's guide to... General Linear Model & fMRI Elliot Freeman, ICN. fMRI model, Linear Time Series, Design Matrices, Parameter estimation,
FMRI and Behavioral Studies of Human Face Perception Ronnie Bryan Vision Lab
1 Bernard Ng 1, Arash Vahdat 2, Ghassan Hamarneh 3, Rafeef Abugharbieh 1 Contact 1 Biomedical Signal and Image Computing Lab,
Next, this study employed SVM to classify the emotion label for each EEG segment. The basic idea is to project input data onto a higher dimensional feature.
In part from: Yizhou Sun 2008 An Introduction to WEKA Explorer.
1 An introduction to machine learning for fMRI Francisco Pereira Botvinick Lab Princeton Neuroscience Institute Princeton University.
Multivariate Pattern Analysis of fMRI data. Goal of this lecture Introduction of basic concepts & a few commonly used approaches to multivariate pattern.
Group Analyses Guillaume Flandin SPM Course London, October 2016
2nd Level Analysis Methods for Dummies 2010/11 - 2nd Feb 2011
Multi-Voxel Pattern Analyses MVPA
Classification of fMRI activation patterns in affective neuroscience
Waikato Environment for Knowledge Analysis
Prepared by Kimberly Sayre and Jinbo Bi
The General Linear Model (GLM): the marriage between linear systems and stats FFA.
Machine Learning Week 1.
Bayesian Methods in Brain Imaging
Deciphering Cortical Number Coding from Human Brain Activity Patterns
Adaptive multi-voxel representation of stimuli, rules and responses
Other Classification Models: Support Vector Machine (SVM)
Multivariate Methods Berlin Chen
Multivariate Methods Berlin Chen, 2005 References:
Presentation transcript:

How To Do Multivariate Pattern Analysis

What is MVPA? Animations from Meyer & Kaplan (in press), Journal of Visualized Experiments

Univariate vs. multivariate analysis of Not significant Average Average V1 V2 V3 V4 V5 V6 Univariate vs. multivariate analysis of fMRI data Individually not significant… but significant when considered in conjunction! — V1 V2 V3 V4 V5 V6

Multivariate pattern analysis: Fusiform face area Significant? Univariate analysis: Multivariate pattern analysis: Reverse inference The direction in which the correlation between the perceptual stimuli and brain activity is mapped does not matter from a statistical point of view. Primary visual cortex V1 V2 V3 V4 V5 V6 Multivariate pattern analysis: Predictable?

Training trials Classifier Testing trials ? Testing trials Stimulus v V1 activity pattern Stimulus v v v v v v v v v v v v Classifier Performance: 75% V1 activity pattern Testing trials Classifier guess ? V1 activity pattern v Stimulus Testing trials

Cross-validation paradigm: Runs 1 2 3 4 5 6 7 8 Cross-validation steps 1 Performance 1 Overall performance 2 Performance 2 3 Performance 3 4 Performance 4 5 Performance 5 6 Performance 6 7 Performance 7 8 Performance 8 Training run Testing run

What do I need to do MVPA? An fMRI experiment with an appropriate design Almost any modern computer PyMVPA software

Experiment design As many trials as possible to train the classifier

Experiment design As many trials as possible to train the classifier Clear BOLD pattern resulting from each trial TR TR TR TR TR TR TR TR TR TR TR TR TR TR TR TR TR TR TR TR TR

Sparse temporal sampling Video clip TR

What is the input to the classifier? TR TR TR TR TR TR TR TR TR TR TR TR TASK A TASK B Raw fMRI data

What is the input to the classifier? TR TR TR TR TR TR TR TR TR TR TR TR TASK A TASK B Raw fMRI data Averaged fMRI data AVG AVG

What is the input to the classifier? TR TR TR TR TR TR TR TR TR TR TR TR TASK A TASK B Raw fMRI data Averaged fMRI data beta values from a GLM analysis

Data pre-processing Motion-correction Smoothing (?) FSL Motion-correction Smoothing (?) Trend removal / high pass filter Z-scoring PyMVPA

Gathering Your Tools

Why PyMVPA Alternative toolbox: Princeton MVPA toolbox http://code.google.com/p/princeton-mvpa-toolbox/ PyMVPA is free and open-source, does not require Matlab Well-maintained and flexible Python is great once you get used to it I know how to use it

Python An interpreted, modern programming language Produces very clear, easy to read code Object-oriented Extensive scientific computing modules available for python (scipy, nipy, etc.)

Brief python demo Python command line Python scripting iPython

Gathering Your Tools Install PyMVPA: http://www.pymvpa.org Version .4x versus .6x Linux: Very easy, just type one command Windows: Mac: Instructions on website will only install .4x. To install .6x follow my guide: http://www.jonaskaplan.com/lab/pymvpainstallation.php

Gather Your Ingredients

Ingredients 1 4-dimensional functional data file, motion-corrected This should be all of your data from one subject. If you did multiple scans, concatenate them into one single 4D file, all motion corrected to the same volume

Sample preprocessing script

Ingredients 1 4-dimensional functional data file, motion-corrected This should be all of your data from one subject. If you did multiple scans, concatenate them into one single 4D file, all motion corrected to the same volume 1 text file which contains “attributes”: Column 1 labels each volume with a “target” category Column 2 labels each volume with a “chunk”, e.g. scan 1 Mask file in the functional space

Terminology VOLUMES dog violin cow vase VOXELS

Terminology SAMPLES TARGETS dog violin cow vase FEATURES CHUNK

Sample attributes file Sparse design Block design

Getting started with pymvpa Start python or ipython Import the pymvpa module and explore it

Sample dataset Subject saw nine different 5-second video clips: dog, cow, rooster, violin, piano, bass, vase, chainsaw, coins One single volume acquired 7 seconds after the start of the clip Eight scans, each stimulus seen 3 times in each scan (24 times across the experiment)

Getting started with pymvpa Read in your attributes Create a dataset

Mappers Mappers transform data samples Dataset automatically maps data from 4D to 2D Many mappings are reversible

Data pre-processing steps Detrending Z-scoring

Partitioners Used to split the data into training set and testing set HalfPartitioner() OddEvenPartitioner() NFoldPartitioner()

Choosing a classifier algorithm Nearest neighbor  Support Vector Machine (SVM)  Linear Discriminant Analysis (LDA)  Gaussian Naive Bayes (GNB)  Sparse Multinomial Linear Regression (SMLR) ...

Choosing a classifier algorithm

Support Vector Machine Draws a hyperplane to separate the categories, maximizing the margin between classes

Support Vector Machine

Support Vector Machine Draws a hyperplane to separate the categories, maximizing the margin between classes Works quickly with on large feature sets (lots of voxels) Common in fMRI pattern learning literature Binary classifier Linear version chosen (very little advantage to nonlinear SVM with lots of features and few stimuli)

Misaki et al, 2010, NeuroImage

Choosing a classifier algorithm

Setting up cross-validation

Go!

Results Show confusion matrix: Plot confusion matrix:

Significance testing Binomial test Permutation testing Voxel sensitivity maps

Significance testing Binomial test

Significance testing Binomial test

Significance testing Permutation testing • Generate a null distribution by randomly permuting pattern labels http://www.pymvpa.org/examples/permutation_test.html

Searchlight analysis

Searchlight analysis

To study on your own Temporal exploration: averaging, temporal searchlights Sensitivity maps Permutation testing