Mixed effects and Group Modeling for fmri data

Similar documents
Group analysis. Jean Daunizeau Wellcome Trust Centre for Neuroimaging University College London. SPM Course Edinburgh, April 2010

Group Analysis. Lexicon. Hierarchical models Mixed effect models Random effect (RFX) models Components of variance

Overview of SPM. Overview. Making the group inferences we want. Non-sphericity Beyond Ordinary Least Squares. Model estimation A word on power

Contents. Data. Introduction & recap Variance components Hierarchical model RFX and summary statistics Variance/covariance matrix «Take home» message

The General Linear Model. Guillaume Flandin Wellcome Trust Centre for Neuroimaging University College London

Jean-Baptiste Poline

Statistical Inference

The General Linear Model (GLM)

Modelling temporal structure (in noise and signal)

Statistical Inference

Contents. Introduction The General Linear Model. General Linear Linear Model Model. The General Linear Model, Part I. «Take home» message

Analysis of longitudinal imaging data. & Sandwich Estimator standard errors

Statistical Analysis Aspects of Resting State Functional Connectivity

Signal Processing for Functional Brain Imaging: General Linear Model (2)

Multilevel linear modelling for FMRI group analysis using Bayesian inference

Analysis of longitudinal neuroimaging data with OLS & Sandwich Estimator of variance

Data Analysis I: Single Subject

The General Linear Model (GLM)

Bayesian inference J. Daunizeau

Mixed-effects and fmri studies

Extracting fmri features

Wellcome Trust Centre for Neuroimaging, UCL, UK.

What is NIRS? First-Level Statistical Models 5/18/18

Bayesian Analysis. Bayesian Analysis: Bayesian methods concern one s belief about θ. [Current Belief (Posterior)] (Prior Belief) x (Data) Outline

MIXED EFFECTS MODELS FOR TIME SERIES

Event-related fmri. Christian Ruff. Laboratory for Social and Neural Systems Research Department of Economics University of Zurich

Neuroimaging for Machine Learners Validation and inference

Hierarchical Models. W.D. Penny and K.J. Friston. Wellcome Department of Imaging Neuroscience, University College London.

Detecting fmri activation allowing for unknown latency of the hemodynamic response

Experimental Design and Data Analysis for Biologists

Reproducibility and Power

Bayesian inference J. Daunizeau

An Introduction to Multilevel Models. PSYC 943 (930): Fundamentals of Multivariate Modeling Lecture 25: December 7, 2012

Introduction to Within-Person Analysis and RM ANOVA

DESIGNING EXPERIMENTS AND ANALYZING DATA A Model Comparison Perspective

FIL. Event-related. fmri. Rik Henson. With thanks to: Karl Friston, Oliver Josephs

心智科學大型研究設備共同使用服務計畫身體 心靈與文化整合影像研究中心. fmri 教育講習課程 I. Hands-on (2 nd level) Group Analysis to Factorial Design

Statistical inference for MEG

Chap The McGraw-Hill Companies, Inc. All rights reserved.

ROI analysis of pharmafmri data: an adaptive approach for global testing

Analysis of Variance

An introduction to Bayesian inference and model comparison J. Daunizeau

Bayesian Inference. Chris Mathys Wellcome Trust Centre for Neuroimaging UCL. London SPM Course

Optimization of Designs for fmri

M/EEG source analysis

Contents. design. Experimental design Introduction & recap Experimental design «Take home» message. N εˆ. DISCOS SPM course, CRC, Liège, 2009

Bayesian linear regression

22s:152 Applied Linear Regression. Take random samples from each of m populations.

One-way ANOVA. Experimental Design. One-way ANOVA

Experimental design of fmri studies

8/04/2011. last lecture: correlation and regression next lecture: standard MR & hierarchical MR (MR = multiple regression)

22s:152 Applied Linear Regression. There are a couple commonly used models for a one-way ANOVA with m groups. Chapter 8: ANOVA

Experimental design of fmri studies & Resting-State fmri

STAT5044: Regression and Anova

Algebra of Random Variables: Optimal Average and Optimal Scaling Minimising

Wavelet-Based Nonparametric Modeling of Hierarchical Functions in Colon Carcinogenesis

Experimental design of fmri studies

Algebra of Random Variables: Optimal Average and Optimal Scaling Minimising

Review of Statistics 101

Advanced Experimental Design

Overview of Spatial Statistics with Applications to fmri

DESAIN EKSPERIMEN Analysis of Variances (ANOVA) Semester Genap 2017/2018 Jurusan Teknik Industri Universitas Brawijaya

EM Waves in Media. What happens when an EM wave travels through our model material?

One-Way Analysis of Variance. With regression, we related two quantitative, typically continuous variables.

Beyond Univariate Analyses: Multivariate Modeling of Functional Neuroimaging Data

Model-free Functional Data Analysis

First Technical Course, European Centre for Soft Computing, Mieres, Spain. 4th July 2011

Linear Regression Models

psyc3010 lecture 2 factorial between-ps ANOVA I: omnibus tests

Dynamic Causal Modelling for fmri

CE3502. Environmental Measurements, Monitoring & Data Analysis. ANOVA: Analysis of. T-tests: Excel options

Experimental design of fmri studies

Statistical Analysis of Functional ASL Images

Checking model assumptions with regression diagnostics

STATS 200: Introduction to Statistical Inference. Lecture 29: Course review

The General Linear Model Ivo Dinov

Strategies for Discovering Mechanisms of Mind using fmri: 6 NUMBERS. Joseph Ramsey, Ruben Sanchez Romero and Clark Glymour

This Appendix proposes a set of terms and definitions for use in analyses of 1D biomechanical

Selected Topics in Statistics for fmri Data Analysis

New Statistical Methods That Improve on MLE and GLM Including for Reserve Modeling GARY G VENTER

20.1. Balanced One-Way Classification Cell means parametrization: ε 1. ε I. + ˆɛ 2 ij =

Open book and notes. 120 minutes. Covers Chapters 8 through 14 of Montgomery and Runger (fourth edition).

Topic 20: Single Factor Analysis of Variance

y ˆ i = ˆ " T u i ( i th fitted value or i th fit)

My data doesn t look like that..

Multilevel Models in Matrix Form. Lecture 7 July 27, 2011 Advanced Multivariate Statistical Methods ICPSR Summer Session #2

A (Brief) Introduction to Crossed Random Effects Models for Repeated Measures Data

Example: Four levels of herbicide strength in an experiment on dry weight of treated plants.

Statistical Analysis of fmrl Data

Experimental Design. Rik Henson. With thanks to: Karl Friston, Andrew Holmes

The general linear model and Statistical Parametric Mapping I: Introduction to the GLM

Bayesian Methods for Machine Learning

Searchlight-based multi-voxel pattern analysis of fmri by cross-validated MANOVA

General multilevel linear modeling for group analysis in FMRI

ANALYSIS OF VARIANCE OF BALANCED DAIRY SCIENCE DATA USING SAS

ANCOVA. Lecture 9 Andrew Ainsworth

General linear model: basic

Making rating curves - the Bayesian approach

Analyses of Variance. Block 2b

Empirical Bayes for DCM: A Group Inversion Scheme

Transcription:

Mixed effects and Group Modeling for fmri data Thomas Nichols, Ph.D. Department of Statistics Warwick Manufacturing Group University of Warwick Warwick fmri Reading Group May 19, 2010 1

Outline Mixed effects motivation Evaluating mixed effects methods Two methods Summary statistic approach (HF) (SPM96,99,2,5,8) SPM8 Nonsphericity Modelling Data exploration Conclusions 2

Overview Mixed effects motivation Evaluating mixed effects methods Two methods Summary statistic approach (HF) (SPM96,99,2) SPM8 Nonsphericity Modelling Data exploration Conclusions 3

Lexicon Hierarchical Models Mixed Effects Models Random Effects (RFX) Models Components of Variance... all the same... all alluding to multiple sources of variation (in contrast to fixed effects) 4

Random Effects 3 Ss, 5 replicated RT s Illustration Standard linear model assumes only one source of iid random variation Consider this RT data Here, two sources Within subject var. Between subject var. Causes dependence in ε Residuals 5

Fixed vs. Random Effects in fmri Distribution of each subject s estimated effect Subj. 1 σ 2 FFX Fixed Effects Intra-subject variation suggests all these subjects different from zero Random Effects Intersubject variation suggests population not very different from zero Subj. 2 Subj. 3 Subj. 4 Subj. 5 Subj. 6 Distribution of population effect 0 σ 2 RFX 6

Fixed Effects Only variation (over sessions) is measurement error True Response magnitude is fixed 7

Random/Mixed Effects Two sources of variation Measurement error Response magnitude Response magnitude is random Each subject/session has random magnitude 8

Random/Mixed Effects Two sources of variation Measurement error Response magnitude Response magnitude is random Each subject/session has random magnitude But note, population mean magnitude is fixed 9

Fixed vs. Random Fixed isn t wrong, just usually isn t of interest Fixed Effects Inference I can see this effect in this cohort Random Effects Inference If I were to sample a new cohort from the population I would get the same result 10

Two Different Fixed Effects Approaches Grand GLM approach Model all subjects at once Good: Mondo DF Good: Can simplify modeling Bad: Assumes common variance over subjects at each voxel Bad: Huge amount of data 11

Two Different Fixed Effects Approaches Meta Analysis approach Model each subject individually Combine set of T statistics mean(t) n ~ N(0,1) sum(-logp) ~ χ 2 n Good: Doesn t assume common variance Bad: Not implemented in software Hard to interrogate statistic maps 12

Overview Mixed effects motivation Evaluating mixed effects methods Two methods Summary statistic approach (HF) (SPM96,99,2) SPM8 Nonsphericity Modelling Data exploration Conclusions 13

Assessing RFX Models Issues to Consider Assumptions & Limitations What must I assume? Independence? Nonsphericity? (aka independence + homogeneous var.) When can I use it Efficiency & Power How sensitive is it? Validity & Robustness Can I trust the P-values? Are the standard errors correct? If assumptions off, things still OK? 14

Issues: Assumptions Distributional Assumptions Gaussian? Nonparametric? Homogeneous Variance Over subjects? Over conditions? Independence Across subjects? Across conditions/repeated measures Note: Nonsphericity = (Heterogeneous Var) or (Dependence) 15

Issues: Soft Assumptions Regularization Regularization Weakened homogeneity assumption Usually variance/autocorrelation regularized over space Examples fmristat - local pooling (smoothing) of (σ 2 RFX )/(σ2 FFX ) SnPM - local pooling (smoothing) of σ 2 RFX FSL - Bayesian (noninformative) prior on σ 2 RFX SPM global pooling (averaging) of σ MFX i,j 16

Issues: Efficiency & Power Efficiency: 1/(Estmator Variance) Goes up with n Power: Chance of detecting effect Goes up with n Also goes up with degrees of freedom (DF) DF accounts for uncertainty in estimate of σ 2 RFX Usually DF and n yoked, e.g. DF = n-p 17

Issues: Validity Are P-values accurate? I reject my null when P < 0.05 Is my risk of false positives controlled at 5%? Exact control FPR = α Valid control (possibly conservative) FPR α Problems when Standard Errors inaccurate Degrees of freedom inaccurate 18

Overview Mixed effects motivation Evaluating mixed effects methods Two methods Summary statistic approach (HF) (SPM96,99,2,5,8) SPM8 Nonsphericity Modelling Data exploration Conclusions 19

Overview Mixed effects motivation Evaluating mixed effects methods Two methods Summary statistic approach (HF) (SPM96,99,2,5,8) SPM8 Nonsphericity Modelling Data exploration Conclusions 20

Holmes & Friston Unweighted summary statistic approach 1- or 2-sample t test on contrast images Intrasubject variance images not used (c.f. FSL) Proceedure Fit GLM for each subject i Compute cb i, contrast estimate Analyze {cb i } i 21

Holmes & Friston motivation... Fixed effects... estimated mean activation image ^ α 1 ^ σ 2 ε ^ α 2 ^ σ 2 ε ^ α 3 ^ σ 2 ε ^ α 4 ^ σ 2 ε ^ α 5 ^ σ 2 ε ^ α 6 ^ σ 2 ε α ^ c.f. σ 2 ε / nw c.f. n subjects w error DF...powerful but wrong inference p < 0.001 (uncorrected) SPM{t} p < 0.05 (corrected) SPM{t} 22

Holmes & Friston level-one (within-subject) ^ α 1 ^ σ 2 ε ^ α 2 ^ σ 2 ε ^ α 3 ^ σ 2 ε ^ α 4 ^ σ 2 ε ^ α 5 ^ σ 2 ε Random Effects level-two (between-subject) variance ^ σ 2 α ^ c.f. σ 2 /n = σ 2 α /n + σ2 ε / nw c.f. an estimate of the mixed-effects model variance σ 2 α + σ2 ε / w (no voxels significant at p < 0.05 (corrected)) p < 0.001 (uncorrected) ^ α 6 ^ σ 2 ε timecourses at [ 03, -78, 00 ] contrast images SPM{t} 23

Distribution Holmes & Friston Assumptions Normality Independent subjects Homogeneous Variance Intrasubject variance homogeneous σ 2 FFX same for all subjects Balanced designs 24

Holmes & Friston Limitations Limitations Only single image per subject If 2 or more conditions, Must run separate model for each contrast Limitation a strength! No sphericity assumption made on different conditions when each is fit with separate model 25

Holmes & Friston Efficiency If assumptions true Optimal, fully efficient If σ 2 FFX differs between subjects Reduced efficiency Here, optimal requires down-weighting the 3 highly variable subjects 0 26

Holmes & Friston Validity If assumptions true Exact P-values If σ 2 FFX differs btw subj. Standard errors not OK Est. of σ 2 RFX biased DF not OK may be Here, 3 Ss dominate DF < 5 = 6-1 0 σ 2 RFX 27

Holmes & Friston In practice, Validity & Efficiency are excellent For one sample case, HF almost impossible to break False Positive Rate Robustness Power Relative to Optimal (outlier severity) (outlier severity) Mumford & Nichols. Simple group fmri modeling and inference. Neuroimage, 47(4):1469--1475, 2009. 2-sample & correlation might give trouble Dramatic imbalance or heteroscedasticity 28

Overview Mixed effects motivation Evaluating mixed effects methods Two methods Summary statistic approach (HF) (SPM96,99,2,5,8) SPM8 Nonsphericity Modelling Data exploration Conclusions 29

SPM8 Nonsphericity 1 effect per subject Modelling Uses Holmes & Friston approach >1 effect per subject Can t use HF; must use SPM8 Nonsphericity Modelling Variance basis function approach used... 30

SPM8 Notation: iid case y = X θ + ε N 1 N p p 1 N 1 X 12 subjects, 4 conditions Use F-test to find differences btw conditions Standard Assumptions Identical distn Independence Sphericity... but here not realistic! Cor(ε) = λ I N Error covariance N 31

Multiple Variance Components y = X θ + ε N 1 N p p 1 N 1 12 subjects, 4 conditions Measurements btw subjects uncorrelated Measurements w/in subjects correlated Errors can now have different variances and there can be correlations N Cor(ε) =Σ k λ k Q k Error covariance N Allows for nonsphericity 32

Non-Sphericity Modeling Errors are independent but not identical Eg. Two Sample T Two basis elements Q k s: Error Covariance 33

Non-Sphericity Modeling Errors are not independent and not identical Error Covariance Q k s: 34

SPM8 Nonsphericity Modelling Assumptions & Limitations Cor(ε) =Σ k λ k Q k assumed to globally homogeneous λ k s only estimated from voxels with large F Most realistically, Cor(ε) spatially heterogeneous Intrasubject variance assumed homogeneous 35

SPM8 Nonsphericity Efficiency & Power Modelling If assumptions true, fully efficient Validity & Robustness P-values could be wrong (over or under) if local Cor(ε) very different from globally assumed Stronger assumptions than Holmes & Friston 36

Overview Mixed effects motivation Evaluating mixed effects methods Two Three methods Summary statistic approach (HF) (SPM96,99,2,5,8) SPM8 Nonsphericity Modelling FSL Data exploration Conclusions 37

FSL3: Full Mixed Effects Model First-level, combines sessions Second-level, combines subjects Third-level, combines/compares groups 38

FSL3: Summary Statistics 39

Summary Stats Equivalence Crucially, summary stats here are not just estimated effects. Summary Stats needed for equivalence: Beckman et al., 2003

Case Study: FSL3 s FLAME Uses summary-stats model equivalent to full Mixed Effects model Doesn t assume intrasubject variance is homogeneous Designs can be unbalanced Subjects measurement error can vary 41

Case Study: FSL3 s FLAME Bayesian Estimation Priors, priors, priors Uses reference prior Final inference on posterior of β β y has Multivariate T dist n (MVT) but with unknown dof 42

Approximating MVTs FAST Gaussian Estimate dof? MVT Model MCMC BIDET Samples SLOW BIDET = Bayesian Inference with Distribution Estimation using T

Overview Mixed effects motivation Evaluating mixed effects methods Two methods Summary statistic approach (HF) (SPM96,99,2,5,8) SPM8 Nonsphericity Modelling Data exploration Conclusions 44

Data: FIAC Data Acquisition 3 TE Bruker Magnet For each subject: 2 (block design) sessions, 195 EPI images each TR=2.5s, TE=35ms, 64 64 30 volumes, 3 3 4mm vx. Experiment (Block Design only) Passive sentence listening 2 2 Factorial Design Sentence Effect: Same sentence repeated vs different Speaker Effect: Same speaker vs. different Analysis Slice time correction, motion correction, sptl. norm. 5 5 5 mm FWHM Gaussian smoothing Box-car convolved w/ canonical HRF Drift fit with DCT, 1/128Hz

Look at the Data! With small n, really can do it! Start with anatomical Alignment OK? Yup Any horrible anatomical anomalies? Nope

Look at the Data! Mean & Standard Deviation also useful Variance lowest in white matter Highest around ventricles

Look at the Data! Then the functionals Set same intensity window for all [-10 10] Last 6 subjects good Some variability in occipital cortex

Feel the Void! Compare functional with anatomical to assess extent of signal voids

Overview Mixed effects motivation Evaluating mixed effects methods Two methods Summary statistic approach (HF) (SPM96,99,2,5,8) SPM8 Nonsphericity Modelling FSL3 Conclusions 50

Conclusions Random Effects crucial for pop. inference When question reduces to one contrast HF summary statistic approach When question requires multiple contrasts Repeated measures modelling Look at the data! 51

52

References for four RFX Approaches in fmri Holmes & Friston (HF) Summary Statistic approach (contrasts only) Holmes & Friston (HBM 1998). Generalisability, Random Effects & Population Inference. NI, 7(4 (2/3)):S754, 1999. Holmes et al. (SnPM) Permutation inference on summary statistics Nichols & Holmes (2001). Nonparametric Permutation Tests for Functional Neuroimaging: A Primer with Examples. HBM, 15;1-25. Holmes, Blair, Watson & Ford (1996). Nonparametric Analysis of Statistic Images from Functional Mapping Experiments. JCBFM, 16:7-22. Friston et al. (SPM8 Nonsphericity Modelling) Empirical Bayesian approach Friston et al. Classical and Bayesian inference in neuroimaging: theory. NI 16(2):465-483, 2002 Friston et al. Classical and Bayesian inference in neuroimaging: variance component estimation in fmri. NI: 16(2):484-512, 2002. Beckmann et al. & Woolrich et al. (FSL3) Summary Statistics (contrast estimates and variance) Beckmann, Jenkinson & Smith. General Multilevel linear modeling for group analysis in fmri. NI 20 (2):1052-1063 (2003) Woolrich, Behrens et al. Multilevel linear modeling for fmri group analysis using Bayesian inference. NI 21:1732-1747 (2004) 53