–1– S AFNI & SUMA Concepts, Principles, Demos

Slides:



Advertisements
Similar presentations
Concepts of SPM data analysis Marieke Schölvinck.
Advertisements

Resting State Analysis
Gordon Wright & Marie de Guzman 15 December 2010 Co-registration & Spatial Normalisation.
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 
-1- Group Analysis Individual Subject Analysis Pre-Processing Post-Processing FMRI Analysis Experiment Design Scanning.
Statistical Signal Processing for fMRI
Introduction to Functional and Anatomical Brain MRI Research Dr. Henk Cremers Dr. Sarah Keedy 1.
Basics of fMRI Preprocessing Douglas N. Greve
OverviewOverview Motion correction Smoothing kernel Spatial normalisation Standard template fMRI time-series Statistical Parametric Map General Linear.
SPM5 Tutorial, Part 1 fMRI preprocessing Tiffany Elliott May
Introduction to Functional and Anatomical Brain MRI Research Dr. Henk Cremers Dr. Sarah Keedy 1.
Opportunity to Participate EEG studies of vision/hearing/decision making – takes about 2 hours Sign up at – Keep checking.
AFNI & FMRI Introduction, Concepts, Principles
Realigning and Unwarping MfD
fMRI data analysis at CCBI
Structural and Functional Imaging This is a Functional MRI Image !?
AFNI Introduction, Concepts, Principles
Preprocessing II: Between Subjects John Ashburner Wellcome Trust Centre for Neuroimaging, 12 Queen Square, London, UK.
Introduction to SPM SPM fMRI Course London, May 2012 Guillaume Flandin Wellcome Trust Centre for Neuroimaging University College London.
–1– AFNI AFNI Introduction, Concepts, Principles
Robert W Cox Novel Tools for (Functional) Magnetic Resonance Image Analysis Development and Implementation in the Scientific and Statistical Computing.
Co-registration and Spatial Normalisation
Methods for Dummies Second level analysis
From Localization to Connectivity and... Lei Sheu 1/11/2011.
Statistical Parametric Mapping Lecture 9 - Chapter 11 Overview of fMRI analysis Textbook: Functional MRI an introduction to methods, Peter Jezzard, Paul.
How To Do Multivariate Pattern Analysis
Preprocessing of FMRI Data fMRI Graduate Course October 23, 2002.
Overview for Dummies Outline Getting started with an experiment Getting started with an experiment Things you need to know for scanning Things you need.
Research course on functional magnetic resonance imaging Lecture 2
DTIAtlasBuilder Adrien Kaiser Neuro Image Research and Analysis Laboratories University of North Carolina at Chapel Hill A tool to create an atlas from.
Basics of Functional Magnetic Resonance Imaging. How MRI Works Put a person inside a big magnetic field Transmit radio waves into the person –These "energize"
Brain Mapping Unit The General Linear Model A Basic Introduction Roger Tait
Analysis of fMRI data with linear models Typical fMRI processing steps Image reconstruction Slice time correction Motion correction Temporal filtering.
AFNI Robert W Cox, PhD Biophysics Research Institute Medical College of Wisconsin Milwaukee WI.
SPM5 Tutorial Part 2 Tiffany Elliott May 10, 2007.
1 Hands-On Data Analysis Kate Pirog Revill and Chris Rorden Data from safety training –9 subjects –Finger-tapping task (12s tapping, 12s rest) –188 scans.
National Institute of Mental Health
Coregistration and Spatial Normalisation
FMRI Methods Lecture7 – Review: analyses & statistics.
FMRI Group Natasha Matthews, Ashley Parks, Destiny Miller, Ziad Safadi, Dana Tudorascu, Julia Sacher. Adviser: Mark Wheeler.
FMRI Data Analysis: Principles & Practice Robert W Cox, PhD SSCC / NIMH / NIH / DHHS / USA / EARTH Kiel – 25 May 2007
Multimodal Neuroimaging Training Program
NIMH MEG Core Facility Magnetoencephalography Imaging Resource, IRP, NIMH / NINDS Comparison of temporal and spatial resolution for various neuroimaging.
-1- Group Analysis with AFNI - Hands On The following sample group analysis comes from “How-to #5 -- Group Analysis: AFNI 3dANOVA2”, described in full.
Statistical Parametric Mapping Lecture 11 - Chapter 13 Head motion and correction Textbook: Functional MRI an introduction to methods, Peter Jezzard, Paul.
National Alliance for Medical Image Computing Core What We Need from Cores 1 & 2 NA-MIC National Alliance for Medical Image Computing.
FEAT (fMRI Expert Analysis Tool)
SPM Pre-Processing Oli Gearing + Jack Kelly Methods for Dummies
NA-MIC National Alliance for Medical Image Computing fMRI in NAMIC Facilitator: Polina Golland Presenters: Jim Fallon and Andy Saykin.
Methods for Dummies Second level Analysis (for fMRI) Chris Hardy, Alex Fellows Expert: Guillaume Flandin.
Statistical Analysis An Introduction to MRI Physics and Analysis Michael Jay Schillaci, PhD Monday, April 7 th, 2007.
FMRI Modelling & Statistical Inference Guillaume Flandin Wellcome Trust Centre for Neuroimaging University College London SPM Course Chicago, Oct.
–1– What we have learned so far  Use data viewer ‘afni’ interactively  Model HRF with a shape-prefixed basis function  Assume the brain responds with.
The general linear model and Statistical Parametric Mapping I: Introduction to the GLM Alexa Morcom and Stefan Kiebel, Rik Henson, Andrew Holmes & J-B.
Analysis of FMRI Data: Principles and Practice Robert W Cox, PhD Scientific and Statistical Computing Core National Institute of Mental Health Bethesda,
–1– What we have learned so far  Use data viewer ‘afni’ interactively  Model HRF with a fixed-shape basis function  Assume the brain responds with the.
SPM and (e)fMRI Christopher Benjamin. SPM Today: basics from eFMRI perspective. 1.Pre-processing 2.Modeling: Specification & general linear model 3.Inference:
The general linear model and Statistical Parametric Mapping II: GLM for fMRI Alexa Morcom and Stefan Kiebel, Rik Henson, Andrew Holmes & J-B Poline.
MfD Co-registration and Normalisation in SPM
functional magnetic resonance imaging (fMRI)
Group Averaging of fMRI Data
The general linear model and Statistical Parametric Mapping
Intro to FreeSurfer Jargon
Surface-based Analysis: Intersubject Registration and Smoothing
Surface-based Analysis: Intersubject Registration and Smoothing
Intro to FreeSurfer Jargon
and Stefan Kiebel, Rik Henson, Andrew Holmes & J-B Poline
Intro to FreeSurfer Jargon
Intro to FreeSurfer Jargon
The general linear model and Statistical Parametric Mapping
Presentation transcript:

–1– S AFNI & SUMA Concepts, Principles, Demos

Some Goals of FMRI Analyses Task-based experiments – Per subject: estimate amplitude of BOLD response to each different type of stimulus – Find + model inter-regional correlations between fluctuations in BOLD responses Resting-state experiments – Measure spatial patterns in coherent fluctuations in spontaneous BOLD Group level – Combine and contrast per subject results

Conceptual Basis - 1 Time shifting = pretend get 3D snapshot Despiking = remove large blips Image Registration (AKA alignment) – intra-EPI time series, and EPI-Structural Blurring in space = lower resolution :-( & less noise :-) & more group overlap :-) Masking = ignore non-brain voxels Scaling = normalizing data amplitude – Makes inter-subject comparisons more valid pre-processing

Conceptual Basis - 2 Time series regression × – model of the BOLD response in the data = H emodynamic R esponse F unction × stimulus timing – plus baseline (null hypothesis) model – plus physiological noise – plus allowing for serial correlation Talairach-ing = Spatial Normalization – Talairach, MNI-152, … – affine and nonlinear spatial transformations  

Conceptual Basis - 3 Group Analyses = Putting it all together – ANOVA, LME, Meta-Analyses, … Blobs = Spatial models of activation – Assigning statistical significance to blobs Connectivity = Inter-regional analyses – SEM, PPI, SVAR, DCM, Granger, … – Resting state FMRI (Connectome ! ) Dimensional factorization – Components, such as PCA, ICA, …   

Conceptual Basis - 4 Data Formats = NIfTI-1.x is your friend Software for FMRI analyses : AFNI *** – AFNI *, BrainVoyager, FSL *, SPM *, … – Whichever you use, don't blindly assume the software works perfectly all the time Most important thing I will say today ! Understand and check the steps applied to your data! 2 nd most important: Is no "best" way to analyze data, just "reasonable" ways * * open-source

Linear Regression = Fitting

Fit = Linear Polynomial

Fit = Quadratic Polynomial

Fit = Cubic Polynomial

Fit = Cubic + Motion Params

Fit in a Different Voxel

Fit Now Includes Signal Model

–16– AFNIAFNI AFNI = A nalysis of F unctional N euro I mages Developed to provide an environment for FMRI data analyses  And a platform for development of new software tools AFNI refers to both the program of that name and the entire package of external programs and plugins (more than 200) The Prime Directive in the development of AFNI :  Allow users to stay close to their data and view/analyze it in many different ways SSCC = Scientific Computing and Statistical Core  Our mission is help NIH (and beyond) investigators carry out the analyses of their (F)MRI data  Development of data analysis methods and putting them into usable and (reasonably) reliable software  Consulting and question answering and hand-holding

–17– Basic unit of data in AFNI is the dataset  A collection of 1 or more 3D arrays of numbers o Each entry in the array is in a particular spatial location in a 3D grid (a voxel = 3D pixel) o Image datasets: each array holds a collection of slices from the scanner  Each number is the signal intensity for that particular voxel o Derived datasets: each number is computed from other dataset(s)  e.g., each voxel value is a t-statistic reporting “activation” significance from an FMRI time series dataset, for that voxel  Each 3D array in a dataset is called a sub-brick o There is one number in each voxel in each sub-brick Fundamental AFNI Concept 3x3x3 Dataset With 4 Sub-bricks

–18– Interactive visualization and analysis — AFNI and SUMA  For looking at data and results  AFNI is based on 3D volumes = data as gathered by MRI  SUMA is based on 2D surfaces = models of cortical surfaces  A few kinds of analysis can be done by pointing+clicking Batch mode programs and scripts  Are run by typing commands directly to computer, or by putting commands into a text file (script) and later executing them  Most AFNI complex analyses are done in batch programs Plugins and Plugouts  Separate programs that attach themselves to AFNI and/or SUMA to provide extra capabilities Parts of AFNI

–19– AFNI Batch Programs Many many important capabilities in AFNI are only available in batch programs  A few examples (of more than 100) Über-scripts: afni_proc.py and align_epi_anat.py  FMRI time series pre-processing and analysis  Driver for 3D image registration tools 3dDeconvolve + 3dREMLfit = multiple linear regression on 3D+time datasets; fits each voxel’s time series to activation model, tests these fits for significance (3dNLfim = nonlinear fitting) 3dvolreg = 3D+time dataset registration, to correct for small subject head movements, and for inter-day head positioning 3dANOVA + 3dLME + 3dMEMA = ANOVA/t-test group analyses: combining & contrasting datasets in Talairach space 3dsvm = SVM multi-voxel pattern analysis program 3dDWItoDT = compute diffusion tensor from DWI (nonlinearly)

–20– Analysis by Super-Script – by hand Script to analyze one imaging run (5 min) of data from one subject [ cd AFNI_data6/afni ; tcsh quick.s1.afni_proc ] afni_proc.py -dsets epi_r1+orig -copy_anat anat+orig \ -tcat_remove_first_trs 2 \ -do_block align \ -regress_stim_times quick.r1_times.txt \ -regress_basis 'BLOCK(20,1)' \ -execute Stimulus timing in file quick.r1_times.txt  20 s of stimulus per block, starting at the given times FMRI data in file epi_r1+orig  Anatomical volume in file anat+orig Actions: Align slices in time; align Anat to EPI; motion correct EPI; blur in space; activation analysis (thru time) in each voxel

–21– Analysis by Super-Script – by GUI

–22– FMRI experiment design  Event-related, block, hybrid event-block?  How many types of stimuli? How many of each type? Timing (intra- & inter-stim)?  Will experiment show what you are looking for? (Hint: bench tests)  How many subjects do you need? (Hint: the answer does not have 1 digit) Time series data analysis (individual subjects)  Assembly of images into AFNI datasets; Visual & automated checks for bad data  Registration of time series images (AKA motion correction and EPI-anat alignment)  Smoothing & masking of images; Baseline normalization; Censoring bad data  Catenation of multiple imaging runs into one big dataset  Fit statistical model of stimulus timing+hemodynamic response to time series data o Fixed-shape or variable-shape response models [pattern matching in time]  Segregation into differentially activated blobs (i.e., what got turned on – or off?) o Threshold on statistic + clustering and/or Anatomically-defined ROI analysis  Visual examination of maps and fitted time series for validity and meaning Group analysis (inter-subject)  Spatial normalization to Talairach-Tournoux atlas (or something like it; e.g., MNI)  Smoothing of fitted parameters o Automatic global smoothing + voxel-wise analysis or ROI averaging +  ANOVA+ to combine and contrast activation magnitudes from the various subjects  Visual examination of results (usually followed by confusion)  Write paper, argue w/ mentor, submit paper, argue w/ referees, publish paper, … FMRI Experiment Design and Analysis All on one unreadable slide! afni_proc.py & uber_subject.py

–23– AFNI runs on Unix systems: Linux, Sun, Mac OS X  Can run under Windows with Cygwin Unix emulator o This option is really just for trying it out — not for regular use! If you are at the NIH: SSCC can install AFNI and update it on your system(s)  You must give us an account with ssh access You can download precompiled binaries from our Website   Also: documentation, message board, humor, data, … You can download source code and compile it AFNI is updated fairly frequently, so it is important to update occasionally  We can’t help you with old versions! Getting and Installing AFNI

–24– AFNI at the NIH Scanners AFNI can take 2D (or 3D) images in “realtime” from an external program and assemble them into 3D+time datasets slice-by-slice at each TR – then update the images+graphs Jerzy Bodurka (ex-FMRIF) and Vinai Roopchansingh have set up the GE FMRI scanners (3 Ts, 1.5 T, and 7 T) to start AFNI automagically when scanning, and send reconstructed images over to the AFNI box as soon as they are available:  For immediate display (images and graphs of time series) Plus  Plus: graphs of estimated subject head movement  Also possible: feedback to subject in realtime Goal is to let you see image data as they are acquired, so that if there are any big problems, you can fix them right away  Sample problem: someone typed in the imaging field-of- view (FOV) size wrong (240 cm instead of 24 cm), and so got garbage data, but only realized this too late (after scanning 8 subjects this way) — D’oh!

–25– & S AFNI & SUMA Interlude

–26– That’s All, Folks