Presentation is loading. Please wait.

Presentation is loading. Please wait.

Our entry in the Functional Imaging Analysis contest Jonathan Taylor Stanford Keith Worsley McGill.

Similar presentations


Presentation on theme: "Our entry in the Functional Imaging Analysis contest Jonathan Taylor Stanford Keith Worsley McGill."— Presentation transcript:

1 Our entry in the Functional Imaging Analysis contest Jonathan Taylor Stanford Keith Worsley McGill

2 What is functional Magnetic Resonance Imaging (fMRI) data? Time series of ~200 “frames”, 3D images of brain “activity”, taken every ~2.5s (~8min) Meanwhile, subject receives stimulus or external task (e.g on/off every 10s) Several (~4) time series (“runs”) per session Several (~2) sessions per subject Several (~15) subjects Statistics problem: find the regions of the brain activated by the stimulus or task

3 Why a Functional Imaging Analysis Contest (FIAC)? Competing packages produce slightly different results, which is “correct”? Simulated data? Real data, compare analyses “Contest” session at 2005 Human Brain Map conference 9 entrants Results in a special issue of Human Brain Mapping in May, 2006

4 The main participants SPM (Statistical Parametric Mapping, 1993), University College, London, “SAS”, (MATLAB) AFNI (1995), NIH, more display and manipulation, not much stats (C) FSL (2000), Oxford, the “upstart” (C) …. FMRISTAT (2001), McGill, stats only (MATLAB) BRAINSTAT (2005), Stanford/McGill, Python version of FMRISTAT

5 050100150200250300350 0 1 2 Alternating hot and warm stimuli separated by rest (9 seconds each). hot warm hot warm 050 -0.2 0 0.2 0.4 Hemodynamic response function: difference of two gamma densities 050100150200250300350 0 1 2 Responses = stimuli * HRF, sampled every 3 seconds Time, seconds Effect of stimulus on brain response Stimulus is delayed and dispersed by ~6s Modeled by convolving the stimulus with the “hemodynamic response function”

6 fMRI data, pain experiment, one slice T = (hot – warm effect) / S.d. ~ t 110 if no effect

7

8 How fMRI differs from other repeated measures data Many reps (~200 time points) Few subjects (~15) Df within subjects is high, so not worth pooling sd across subjects Df between subjects low, so use spatial smoothing to boost df Data sets are huge ~4GB, not easy to use R directly

9 FMRISTAT / BRAINSTAT statistical analysis strategy Analyse each voxel separately Borrow strength from neighbours when needed Break up analysis into stages 1 st level: analyse each time series separately 2 nd level: combine 1 st level results over runs 3 rd level: combine 2 nd level results over subjects Cut corners: do a reasonable analysis in a reasonable time (or else no one will use it!) MATLAB / Python

10

11 1 st level: Linear model with AR(p) errors Data Y t = fMRI data at time t x t = (responses,1, t, t 2, t 3, … )’ to allow for drift Model Y t = x t ’β + ε t ε t = a 1 ε t-1 + … + a p ε t-p + σ F η t, η t ~ N(0,1) i.i.d. Fit in 2 stages: 1 st pass: fit by least squares, find residuals, estimate AR parameters a 1 … a p 2 nd pass: whiten data, re-fit by least squares

12 Higher levels: Mixed effects model Data E i = effect (contrast in β) from previous level S i = sd of effect from previous level z i = (1, treatment, group, gender, …)’ Model E i = z i ’γ + S i ε i F + σ R ε i R (S i high df, so assumed fixed) ε i F ~ N(0,1) i.i.d. fixed effects error ε i R ~ N(0,1) i.i.d. random effects error Fit by ReML Use EM for stability, 10 iterations

13 Where we use spatial information 1 st level: smooth AR parameters to lower variability and increase “df” Higher levels: smooth Random / Fixed effects sd ratio to lower variability and increase “df” Final level: use random field theory to correct for multiple comparisons

14 1 st level: Autocorrelation AR(1) model: ε t = a 1 ε t-1 + σ F η t Fit the linear model using least squares ε t = Y t – Y t â 1 = Correlation (ε t, ε t-1 ) Estimating error t ’s changes their correlation structure slightly, so â 1 is slightly biased: Raw autocorrelation Smoothed 12.4mm Bias corrected â 1 ~ -0.05 ~ 0

15 0102030 0 50 100 FWHM acor 0102030 0 50 100 FWHM acor How much smoothing? Hot stimulus Hot-warm stimulus Target = 100 df Residual df = 110 Target = 100 df Residual df = 110 FWHM = 10.3mmFWHM = 12.4mm df acor = df residual ( 2 + 1 ) 1 1 2 acor(contrast of data) 2 df eff df residual df acor FWHM acor 2 3/2 FWHM data 2 = + Variability in acor lowers df Df depends on contrast Smoothing acor brings df back up: Contrast of data, acor = 0.79 Contrast of data, acor = 0.61 FWHM data = 8.79 df eff

16 Higher order AR model? Try AR(3): … has little effect on the T statistics: AR(1) seems to be adequate a 1 a 2 -0.1 0 0.1 0.2 0.3 a 3 AR(1), df=100AR(2), df=99 -5 0 5 AR(3), df=98 No correlation biases T up ~12% → more false positives

17 Run 1Run 2Run 3Run 4 Effect, E i Sd, S i T stat, E i / S i 0 1 2 nd level 0 0.1 0.2 -5 0 5 2 nd level: 4 runs, 3 df for random effects sd … and T>15.96 for P<0.05 (corrected): … very noisy sd: … so no response is detected …

18 Basic idea: increase df by spatial smoothing (local pooling) of the sd. Can’t smooth the random effects sd directly, - too much anatomical structure. Instead, random effects sd fixed effects sd which removes the anatomical structure before smoothing. Solution: Spatial smoothing of the sd ratio sd = smooth  fixed effects sd  )

19 Random effects sd, 3 dfFixed effects sd, 440 df 0 0.05 0.1 0.15 0.2 Mixed effects sd, ~100 df Random sd / fixed sd 0.5 1 1.5 Smoothed sd ratio random effect, sd ratio ~1.3 dividemultiply  ^ Average S i

20 df ratio = df random ( 2 + 1 ) 1 1 1 df eff df ratio df fixed How much smoothing? FWHM ratio 2 3/2 FWHM data 2 = + df random = 3, df fixed = 4  110 = 440, FWHM data = 8mm: 02040Infinity 0 100 200 300 400 FWHM ratio df eff random effects analysis, df eff = 3 fixed effects analysis, df eff = 440 Target = 100 df FWHM = 19mm

21 Run 1Run 2Run 3Run 4 Effect, E i Sd, S i T stat, E i / S i 0 1 2 nd level 0 0.1 0.2 -5 0 5 Final result: 19mm smoothing, 100 df … less noisy sd: … and T>4.93 for P<0.05 (corrected): … and now we can detect a response!

22 In between: use Discrete Local Maxima (DLM) 012345678910 3.7 3.8 3.9 4 4.1 4.2 4.3 4.4 4.5 4.6 4.7 Gaussian T, 20 df T, 10 df Gaussianized threshold FWHM of smoothing kernel (voxels) True Bonferroni Random Field Theory Discrete Local Maxima (DLM) High FWHM: use Random Field Theory Low FWHM: use Bonferroni Final level: Multiple comparisons correction

23 012345678910 0 0.02 0.04 0.06 0.08 0.1 0.12 GaussianT, 20 dfT, 10 df P-value FWHM of smoothing kernel (voxels) True Bonferroni Random Field Theory Discrete Local Maxima DLM can ½ P-value when FWHM ~3 voxels In between: use Discrete Local Maxima (DLM) High FWHM: use Random Field Theory Low FWHM: use Bonferroni

24 FIAC paradigm 16 subjects 4 runs per subject 2 runs: event design 2 runs: block design 4 conditions per run Same sentence, same speaker Same sentence, different speaker Different sentence, same speaker Different sentence, different speaker 3T, 191 frames, TR=2.5s

25 Events Blocks Response Beginning of block/run

26 Design matrix for block expt B1, B2 are basis functions for magnitude and delay:

27 Motion and slice time correction (using FSL) 5 conditions Smoothing of temporal autocorrelation to control the effective df 1 st level analysis 3 contrasts Beginning of block/run Same sent, same speak Same sent, diff speak Diff sent, same speak Diff sent, diff speak Sentence0-0.5 0.5 Speaker0-0.50.5-0.50.5 Interaction01 1

28 Sd of contrasts (lower is better) for a single run, assuming additivity of responses For the magnitudes, event and block have similar efficiency For the delays, event is much better. Efficiency

29 2 nd level analysis Analyse events and blocks separately Register contrasts to Talairach (using FSL) Bad registration on 2 subjects - dropped Combine 2 runs using fixed FX Combine remaining 14 subjects using random FX 3 contrasts × event/block × magnitude/delay = 12 Threshold using best of Bonferroni, random field theory, and discrete local maxima (new!) 3 rd level analysis

30 Part of slice z = -2 mm

31

32

33

34

35 Magnitude EventBlock Delay

36 Events: 0.14±0.04s; Blocks: 1.19±0.23s Both significant, P<0.05 (corrected) (!?!) Answer: take a look at blocks: Events vs blocks for delays in different – same sentence Different sentence (sustained interest) Same sentence (lose interest) Best fitting block Greater magnitude Greater delay

37 SPM BRAINSTAT

38 Magnitude increase for  Sentence, Event  Sentence, Block  Sentence, Combined  Speaker, Combined at (-54,-14,-2)

39 Magnitude decrease for  Sentence, Block  Sentence, Combined at (-54,-54,40)

40 Delay increase for  Sentence, Event at (58,-18,2) inside the region where all conditions are activated

41 Conclusions Greater %BOLD response for different – same sentences (1.08±0.16%) different – same speaker (0.47±0.0.8%) Greater latency for different – same sentences (0.148±0.035 secs)

42 z=-12z=2z=5 3 1,4 2 1 3 3 3 1 3 The main effects of sentence repetition (in red) and of speaker repetition (in blue). 1: Meriaux et al, Madic; 2: Goebel et al, Brain voyager; 3: Beckman et al, FSL; 4: Dehaene-Lambertz et al, SPM2. Brainstat: combined block and event, threshold at T>5.67, P<0.05.

43 -50510152025 -0.4 -0.2 0 0.2 0.4 0.6 t (seconds) Estimating the delay of the response Delay or latency to the peak of the HRF is approximated by a linear combination of two optimally chosen basis functions: HRF(t + shift) ~ basis 1 (t) w 1 (shift) + basis 2 (t) w 2 (shift) Convolve bases with the stimulus, then add to the linear model basis 1 basis 2 HRF shift delay

44 -505 -3 -2 0 1 2 3 shift (seconds) Fit linear model, estimate w 1 and w 2 Equate w 2 / w 1 to estimates, then solve for shift (Hensen et al., 2002) To reduce bias when the magnitude is small, use shift / (1 + 1/T 2 ) where T = w 1 / Sd(w 1 ) is the T statistic for the magnitude Shrinks shift to 0 where there is little evidence for a response. w1w1 w2w2 w 2 / w 1

45 -2 0 2 4 6 0 0.5 1 1.5 2 -5 0 5 0 200 1 3 4 6 7 100 8 200 9 10 200 11 200 12 200 13 200 14 200 15 200100 Subject id, event experiment Mixed effects Ef Sd T df Magnitude (%BOLD), stimulus average Contour is: average anatomy > 2000 Random /fixed effects sd smoothed 10.836mm FWHM (mm) P=0.05 threshold for peaks is +/- 5.1687 0.5 1 1.5 0 5 10 15 20 y (mm) x (mm) 120140160180 50 100 150 200 250 0 5 10 15 20

46 0 2 4 0 0.5 1 -5 0 5 10 15 20 0 209 1 3 214 4 210 6 211 7 210 8 9 207 10 212 11 214 12 214 13 210 14 210 15 21699 Subject id, block experiment Mixed effects Ef Sd T df Magnitude (%BOLD), stimulus average Contour is: average anatomy > 2000 Random /fixed effects sd smoothed 6.7765mm FWHM (mm) P=0.05 threshold for peaks is +/- 5.9873 2 4 6 0 5 10 15 20 y (mm) x (mm) -60-40-200 -50 0 50 0 5 10 15 20

47 -2 0 1 2 0 0.5 1 1.5 2 -5 0 5 0 273 1 271 3 276 4 281 6 274 7 136 8 265 9 293 10 264 11 268 12 265 13 264 14 296 15 270100 Subject id, event experiment Mixed effects Ef Sd T df Magnitude (%BOLD), diff - same speaker Contour is: average anatomy > 2000 Random /fixed effects sd smoothed 11.7848mm FWHM (mm) P=0.05 threshold for peaks is +/- 5.1469 0.5 1 1.5 0 5 10 15 20 y (mm) x (mm) -60-40-200 -50 0 50 0 5 10 15 20

48 -2 0 1 2 0 0.5 1 -5 0 5 0 201 1 202 3 200 4 206 6 201 7 8 200 9 10 204 11 204 12 206 13 201 14 205 15 204100 Subject id, block experiment Mixed effects Ef Sd T df Magnitude (%BOLD), diff - same speaker Contour is: average anatomy > 2000 Random /fixed effects sd smoothed 11.9735mm FWHM (mm) P=0.05 threshold for peaks is +/- 5.1666 0.5 1 1.5 0 5 10 15 20 y (mm) x (mm) -60-40-200 -50 0 50 0 5 10 15 20

49 -2 0 1 2 0 0.5 1 1.5 2 -5 0 5 0 278 1 3 279 4 280 6 264 7 126 8 277 9 287 10 264 11 272 12 260 13 277 14 264 15 264100 Subject id, event experiment Mixed effects Ef Sd T df Magnitude (%BOLD), interaction Contour is: average anatomy > 2000 Random /fixed effects sd smoothed 11.4737mm FWHM (mm) P=0.05 threshold for peaks is +/- 5.4124 0.5 1 1.5 0 5 10 15 20 y (mm) x (mm) -60-40-200 -50 0 50 0 5 10 15 20

50 -2 0 1 2 0 0.5 1 -5 0 5 0 204 1 200 3 207 4 200 6 204 7 205 8 202 9 203 10 202 11 204 12 206 13 201 14 201 15 200100 Subject id, block experiment Mixed effects Ef Sd T df Magnitude (%BOLD), interaction Contour is: average anatomy > 2000 Random /fixed effects sd smoothed 12.1993mm FWHM (mm) P=0.05 threshold for peaks is +/- 5.1467 0.5 1 1.5 0 5 10 15 20 y (mm) x (mm) -60-40-200 -50 0 50 0 5 10 15 20

51

52

53

54

55

56

57

58 STAT_SUMMARY example: single run, hot-warm Detected by DLM, but not by BON or RFT Detected by BON and DLM but not by RFT


Download ppt "Our entry in the Functional Imaging Analysis contest Jonathan Taylor Stanford Keith Worsley McGill."

Similar presentations


Ads by Google