Brain Mapping Unit The General Linear Model A Basic Introduction Roger Tait
Brain Mapping Unit Overview What is imaging data What is imaging data How is data pre-processed How is data pre-processed Hypothesis testing Hypothesis testing GLM: simple linear regression GLM: simple linear regression Analysis software Analysis software How to process results How to process results
Brain Mapping Unit What is imaging data?
Brain Mapping Unit DataStructuralfMRI A stack of numbers Functional
Brain Mapping Unit Multiple Data subjIDvoxel1voxel2voxel 3voxel 4……..voxel n
Brain Mapping Unit Reorientation Native MNI152 Reoriented
Basic pre-processing (fmri) omprage.nii obrain.nii worest.nii omrest.nii nomrest.nii wnomrest.nii
Brain Mapping Unit Basic pre-processing (structural) omprage.nii gmomprage.nii wgmomprage.nii
Brain Mapping Unit How does standard space data help?
Brain Mapping Unit Hypothesis testing Statistical inference is commonly done with a test statistic (t, F, …) which has a distribution under H 0 mathematically derived. For example NB: this assumes that the errors are independent and normally distributed. 5% Parametric Null Distribution t t = – SE( – ) ^^ ^^
Brain Mapping Unit Introducing The GLM Y = X + DATA = MODEL + ERROR DATA = KNOWN * UNKNOWN + ERROR Encapsulates: t-test (paired, un-paired), F-test, ANOVA (one-way, two-way, main effects, factorial) MANOVA, ANCOVA, MANCOVA, simple regression, linear regression, multiple regression, multivariate regression…… Encapsulates: t-test (paired, un-paired), F-test, ANOVA (one-way, two-way, main effects, factorial) MANOVA, ANCOVA, MANCOVA, simple regression, linear regression, multiple regression, multivariate regression……
Brain Mapping Unit GLM definition Y = X + Where Y is a matrix with a series of observed measurements Where Y is a matrix with a series of observed measurements Where X is a matrix that might be a design matrix Where X is a matrix that might be a design matrix Where is a matrix containing parameters to be estimated Where is a matrix containing parameters to be estimated And is a matrix containing error or noise And is a matrix containing error or noise
Brain Mapping Unit GLM: Simple Linear Regression Y = X 1 + Y X : is the Y axis intercept : is the gradient of slope Y: the black circles : diff between predicted Y and observed Y
Brain Mapping Unit GLM: Simple Linear Regression This is done by choosing and so that the sum of the squares of the estimated errors i 2 is as small as possible. This is done by choosing and so that the sum of the squares of the estimated errors i 2 is as small as possible. This is called the Method of Least Squares. This is called the Method of Least Squares. i 2 is called the Residual Sum of Squares (RSS) i 2 is called the Residual Sum of Squares (RSS) Y = X 1 + ^ ^
Brain Mapping Unit GLM example = mean reaction time + GENDER + AGE Y = X 1 X 2 X 3 X 4 + DATA = KNOWN * UNKNOWN + ERROR
Brain Mapping Unit Dummy Variables Continuous variables Continuous variables measurements on a continuous scale (age, mRT) measurements on a continuous scale (age, mRT) (-4.01, -0.47, 6.35, -7.06, -7.69, ) Dummy Variables Dummy Variables Code for group membership (disease, gender) Code for group membership (disease, gender) controls = 0, patients = 1 females = 1, males = -1
Brain Mapping Unit Usage Hypothesis tests with GLM can be multivariate or several independent univariate tests Hypothesis tests with GLM can be multivariate or several independent univariate tests In multivariate tests the columns of Y are tested together In multivariate tests the columns of Y are tested together In univariate tests the columns of Y are tested independently (multiple univariate tests with the same design matrix) In univariate tests the columns of Y are tested independently (multiple univariate tests with the same design matrix)
Brain Mapping Unit fMRI model specification silent naming task The model BOLD signal
Brain Mapping Unit Actual retrieved data
Brain Mapping Unit fmri analysis with FSL
Brain Mapping Unit Structural analysis with CamBA group sex weight
Brain Mapping Unit Structural analysis output
Brain Mapping Unit Where are my clusters? here is a big cluster
Brain Mapping Unit Where is the cluster I am interested in? position mouse cursor here cluster location information shown here
Brain Mapping Unit How do my clusters help me?
Brain Mapping Unit Statistical Testing Convert cluster into a binary mask Convert cluster into a binary mask Overlay mask on subject data Overlay mask on subject data Extract voxel intensities Extract voxel intensities Do some statistical analysis to get more information from your data Do some statistical analysis to get more information from your data
Brain Mapping Unit Correlation with behaviour p>0.05 close but cluster Pos_001 does not significantly correlate with behaviour HIT1 for cluster Pos_002
Brain Mapping Unit Other Analyses two-sample t-test one-sample t-test simple regression Difference between means different from 0 Linear relationship between 2 variables
Brain Mapping Unit What else can I do to find out more about my data?
Brain Mapping Unit Other types of analyses Factorial designs Factorial designs Permits analysis of multiple time data Permits analysis of multiple time data Shows Shows Main effects of Factor 1 (time) Main effects of Factor 1 (time) Main effects of Factor 2 (group) Main effects of Factor 2 (group) Interaction between Factor 1 and Factor 2 Interaction between Factor 1 and Factor 2
Brain Mapping Unit Useful software package CamBA – Cambridge CamBA – Cambridge FSL Randomise – Oxford FSL Randomise – Oxford SPM8 – UCL SPM8 – UCL
Brain Mapping Unit In summary The GLM allows us to summarize a wide variety of research outcomes by specifying the exact equation that best summarizes the data for a study. If the model is wrongly specified, the estimates of the coefficients (the beta values) are likely to be biased (i.e. wrong) and the resulting equation will not describe the data accurately. The GLM allows us to summarize a wide variety of research outcomes by specifying the exact equation that best summarizes the data for a study. If the model is wrongly specified, the estimates of the coefficients (the beta values) are likely to be biased (i.e. wrong) and the resulting equation will not describe the data accurately. In complex situations (e.g. cognitive fMRI paradigms), this model specification problem can be a serious and difficult one In complex situations (e.g. cognitive fMRI paradigms), this model specification problem can be a serious and difficult one
Brain Mapping Unit Any questions?