introduction to freesurfer surfer.nmr.mgh.harvard

74
Introduction to FreeSurfer http://surfer.nmr.mgh.harvard.edu Allison Stevens uce Fischl, Doug Greve, Nick Schmansky, Jenni Pache [email protected]

Upload: maylin

Post on 14-Jan-2016

80 views

Category:

Documents


3 download

DESCRIPTION

Introduction to FreeSurfer http://surfer.nmr.mgh.harvard.edu. Allison Stevens Bruce Fischl, Doug Greve, Nick Schmansky, Jenni Pacheco [email protected]. Cortical Surface Reconstruction. FreeSurfer creates computerized models of the brain from MRI data. Input: - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Introduction to FreeSurfer surfer.nmr.mgh.harvard

Introduction to FreeSurferhttp://surfer.nmr.mgh.harvard.edu

Allison StevensBruce Fischl, Doug Greve, Nick Schmansky, Jenni Pacheco

[email protected]

Page 2: Introduction to FreeSurfer surfer.nmr.mgh.harvard

Cortical Surface Reconstruction

FreeSurfer creates computerized models of the brain from MRI data.

Input:

• T1-weighted (MPRAGE,SPGR)

• 1mm3 resolution

Page 3: Introduction to FreeSurfer surfer.nmr.mgh.harvard

Cortical Surface Reconstruction

• Finds white/gray boundary – wm surface

• Finds pial/CSF boundary – pial surface

• To “Find” uses:– Intensity information, spatial location, geometric

structure

– Tessellation, neighbors, talairach coordinates

• Subcortical Segmentation

Page 4: Introduction to FreeSurfer surfer.nmr.mgh.harvard

Surface Model

• Mesh (“Finite Element”)

• Vertex = point of 6 triangles

• XYZ at each vertex

• Triangles/Faces ~ 150,000

• Area, Distance

• Curvature, Thickness

Page 5: Introduction to FreeSurfer surfer.nmr.mgh.harvard

Cortical Reconstruction Goals

• Geometrically Accurate surfaces– Accurately follow the boundaries seen on the

scan for each of your individual subjects

• Topologically Correct surfaces– Each surface is a 2-D continuous, non self-

intersecting sheet and can be inflated into a perfect sphere

• Surfaces are only as good as your scan.

Page 6: Introduction to FreeSurfer surfer.nmr.mgh.harvard

MR Anatomy Caveats• Dependent on data quality

– Contrast to noise– Signal to noise– Voxel resolution

• MR Artifacts– MR susceptibility– MR distortions

• Variations in MR tissue parameters across regions of the brain are altered in different populations

Page 7: Introduction to FreeSurfer surfer.nmr.mgh.harvard

FreeSurfer Output

• Volumes

• Surfaces

• Surface Overlays

• ROI Summaries

Page 8: Introduction to FreeSurfer surfer.nmr.mgh.harvard

Volumes

orig.mgz

• $SUBJECTS_DIR/bert/mri• All “Conformed” 256^3, 1mm

aseg.mgz

T1.mgz brainmask.mgz wm.mgz filled.mgzSubcortical Mass

aparc+aseg.mgzVolume Viewer:tkmedit

Page 9: Introduction to FreeSurfer surfer.nmr.mgh.harvard

Surfaces

orig white pial

inflated sphere,sphere.reg flat• $SUBJECTS_DIR/bert/surf•Number/Identity of vertices stays the same (except flat)•XYZ Location Changes•Flattening not done as part of standard reconstruction

Surface Viewer:tksurfer

Page 10: Introduction to FreeSurfer surfer.nmr.mgh.harvard

Surface Overlays

• Value for each vertex• Color indicates value• Color: gray,red/green, heat, color table• Rendered on any surface• fMRI/Stat Maps too

lh.sulc on inflated lh.curv on inflated lh.thickness on inflated

lh.sulc on pial

lh.aparc.annot on inflated

lh.curv on inflated fMRI on flat

Page 11: Introduction to FreeSurfer surfer.nmr.mgh.harvard

ROI Summariesaseg.stats

• volumes of subcortical structures (mm3)

aparc.stats

• thickness of cortical parcellation structures (mm)

• total white matter volume (mm3)

• number of vertices in cortex

• surface area of cortex (mm2)

Page 12: Introduction to FreeSurfer surfer.nmr.mgh.harvard

ROI Summaries: Make Your Own

yourROI.label• Draw your own surface label • use mris_anatomical_stats to get data

mris_volume

• Total volume within a surface you specify

mris_wm_volume• Total volume within white surface ignoring non-

wm voxels in aseg.mgz

Page 13: Introduction to FreeSurfer surfer.nmr.mgh.harvard

Reconstruction Environment

• Installation directory: $FREESURFER_HOME

• Set-up Environmental Variables• Unix command-line (Linux, MacOSX)• Directory structure, naming conventions• File Formats

Page 14: Introduction to FreeSurfer surfer.nmr.mgh.harvard

Set-up Environmental Variables

bert

$SUBJECTS_DIR

fred sara margaret …

Subject ID

Before running FreeSurfer, must set $FREESURFER_HOME and

$SUBJECTS_DIR

Page 15: Introduction to FreeSurfer surfer.nmr.mgh.harvard

FreeSurfer Directory Tree

Subject ID

Each data set has its own unique SubjectId (eg, bert)

bert

bem stats src mri scripts surf tmp label trash

Page 16: Introduction to FreeSurfer surfer.nmr.mgh.harvard

FreeSurfer Directory Tree

Subject ID

Directories used often are in green.

bert

bem stats src mri scripts surf tmp label trash

aseg.stats lh.aparc.stats rh.aparc.stats wmparc.stats

Page 17: Introduction to FreeSurfer surfer.nmr.mgh.harvard

MGZ File Format

001.mgz

• mgz = compressed MGH file• Can store 4D (like NIFTI)• cols, rows, slices, frames• Generic: volumes and surfaces

• Eg, Typical Anatomical volume: 256 x 256 x 128 x 1

lh.thickness.sm10.mgz

• FreeSurfer can read/write: NIFTI, Analyze, MINC Careful with NIFTI! (32k limit)

• FreeSurfer can read: DICOM, Siemens

IMA, AFNI

Page 18: Introduction to FreeSurfer surfer.nmr.mgh.harvard

Other FreeSurfer File Formats

Unique to FreeSurfer

•Surface: lh.white, lh.pial, lh.orig

• Curv: lh.curv, lh.sulc, lh.thickness

• Annotation: lh.aparc.annot

• Label: lh.pericalcarine.label

Page 19: Introduction to FreeSurfer surfer.nmr.mgh.harvard

Starting the Reconstruction Process

recon-all -i /path/to/your/raw/data1 -i /path/to/your/raw/data2 -all -s subject_id

• This will create the subject directory ‘subject_id’ in your $SUBJECTS_DIR and convert your 2 raw acquisitions to mgz and use them as input for the ‘-all’ command.

Before running FreeSurfer, must set $FREESURFER_HOME and $SUBJECTS_DIR

Page 20: Introduction to FreeSurfer surfer.nmr.mgh.harvard

Alternative: Add Your Data

• cd $SUBJECTS_DIR• mkdir –p bert/mri/orig• mri_convert yourdicom.dcm bert/mri/orig/001.mgz• mri_convert yourdicom.dcm bert/mri/orig/002.mgz• recon-all –all –s bert

bert

bem label src mri scripts surf tmp label

orig

001.mgz 002.mgz

Page 21: Introduction to FreeSurfer surfer.nmr.mgh.harvard

Individual StepsVolumetric Processing Stages (subjid/mri):1. Motion Cor, Avg, Conform (orig.mgz)2. Non-uniform inorm (nu.mgz)3. Talairach transform computation

(talairach/talairach.xfm)4. Intensity Normalization 1 (T1.mgz)5. Skull Strip (brainmask.mgz)

6. EM Register (linear volumetric registration) 7. CA Intensity Normalization (norm.mgz) 8. CA Non-linear Volumetric Registration 9. CA Label (Volumetric Labeling) (aseg.mgz)

10. Intensity Normalization 2 (T1.mgz)11. White matter segmentation (wm.mgz)12. Edit WM With ASeg13. Fill and cut (filled.mgz)

Surface Processing Stages (subjid/surf):14. Tessellate (?h.orig.nofix)15. Smooth1 16. Inflate117. QSphere (?h.qsqhere)18. Automatic Topology Fixer (?h.orig)19. Final Surfs (?h.white ?h.pial ?.thickness)20. Smooth2 (?h.smoothwm)21. Inflate2 (?h.inflated)22. Aseg Statistics (stats/aseg.stats)23. Cortical Ribbon Mask (?h.ribbon.mgz)

24. Spherical Morph25. Spherical Registration (?h.sphere.reg)26. Map average curvature to subject27. Cortical Parcellation (Labeling) 28. Cortical Parcellation Statistics29. Cortical Parcellation mapped to Aseg30. White Matter Parcellation (wmparc.mgz)

recon-all -help Note: ?h.orig means lh.orig or rh.orig

Blue = Manual Intervention

Page 22: Introduction to FreeSurfer surfer.nmr.mgh.harvard

Reconstrution Stages

recon-all is broken into three stages– autorecon1

– autorecon2

– autorecon3

Page 23: Introduction to FreeSurfer surfer.nmr.mgh.harvard

-autorecon1Volumetric Processing Stages (subjid/mri):1. Motion Cor, Avg, Conform (orig.mgz)2. Non-uniform inorm (nu.mgz)3. Talairach transform computation

(talairach/talairach.xfm)4. Intensity Normalization 1 (T1.mgz)5. Skull Strip (brainmask.mgz)

6. EM Register (linear volumetric registration) 7. CA Intensity Normalization (norm.mgz) 8. CA Non-linear Volumetric Registration 9. CA Label (Volumetric Labeling) (aseg.mgz)

10. Intensity Normalization 2 (T1.mgz)11. White matter segmentation (wm.mgz)12. Edit WM With ASeg13. Fill and cut (filled.mgz)

Surface Processing Stages (subjid/surf):14. Tessellate (?h.orig.nofix)15. Smooth1 16. Inflate117. QSphere (?h.qsqhere)18. Automatic Topology Fixer (?h.orig)19. Final Surfs (?h.white ?h.pial ?.thickness)20. Smooth2 (?h.smoothwm)21. Inflate2 (?h.inflated)22. Aseg Statistics (stats/aseg.stats)23. Cortical Ribbon Mask (?h.ribbon.mgz)

24. Spherical Morph25. Spherical Registration (?h.sphere.reg)26. Map average curvature to subject27. Cortical Parcellation (Labeling) 28. Cortical Parcellation Statistics29. Cortical Parcellation mapped to Aseg30. White Matter Parcellation (wmparc.mgz)

recon-all -help

Page 24: Introduction to FreeSurfer surfer.nmr.mgh.harvard

Motion Correction and Averaging

001.mgz

002.mgz

+ rawavg.mgz

orig

001.mgz 002.mgz

mri

rawavg.mgzDoes not change native resolution.

-autorecon1-motioncor

mri_motion_correct.fsl

Page 25: Introduction to FreeSurfer surfer.nmr.mgh.harvard

Conform

Changes to 256^3, 1mm^3All volumes will be conformed.

rawavg.mgz orig.mgz

orig Volume

-autorecon1-motioncor

mri_convert -conform

Page 26: Introduction to FreeSurfer surfer.nmr.mgh.harvard

Non-Uniform Intensity Correction

• Uses MNI tool

• Removes B1 bias field

-nuintensitycor -autorecon1

nu Volumemri_nu_correct.mni

Page 27: Introduction to FreeSurfer surfer.nmr.mgh.harvard

Talairach Transform

• Computes 12 DOF transform matrix

• Does NOT resample

• MNI305 template

• Used to help find structures (eg, CC)

• Can also be used to localize functional activation

• mri/transforms/talairach.xfm

mri

transforms

talairach.xfm

-autorecon1-talairach

talairach_avi

Page 28: Introduction to FreeSurfer surfer.nmr.mgh.harvard

Intensity Normalization

• Presegmentation (T1.mgz)– All WM = 110 intensity– Pre- and Post-Skull

Strip

T1 Volume

-autorecon1-normalization

mri_normalize

Page 29: Introduction to FreeSurfer surfer.nmr.mgh.harvard

Skull Strip

• Removes all non-brain– Skull, Eyes, Neck, Dura

• brainmask.mgz

Orig Volume Brainmask Volume

-autorecon1-skullstrip

mri_watershed

Page 30: Introduction to FreeSurfer surfer.nmr.mgh.harvard

FreeSurfer Directory Tree

Subject ID

Each data set has its own unique SubjectId (eg, bert)

bert

bem stats src mri scripts surf tmp label trash

orig T1 brainmask wm aseg aparc+aseg wmparc

Page 31: Introduction to FreeSurfer surfer.nmr.mgh.harvard

-autorecon2Volumetric Processing Stages (subjid/mri):1. Motion Cor, Avg, Conform (orig.mgz)2. Non-uniform inorm (nu.mgz)3. Talairach transform computation

(talairach/talairach.xfm)4. Intensity Normalization 1 (T1.mgz)5. Skull Strip (brainmask.mgz)

6. EM Register (linear volumetric registration) 7. CA Intensity Normalization (norm.mgz) 8. CA Non-linear Volumetric Registration 9. CA Label (Volumetric Labeling) (aseg.mgz)

10. Intensity Normalization 2 (T1.mgz)11. White matter segmentation (wm.mgz)12. Edit WM With ASeg13. Fill and cut (filled.mgz)

Surface Processing Stages (subjid/surf):14. Tessellate (?h.orig.nofix)15. Smooth1 16. Inflate117. QSphere (?h.qsqhere)18. Automatic Topology Fixer (?h.orig)19. Final Surfs (?h.white ?h.pial ?.thickness)20. Smooth2 (?h.smoothwm)21. Inflate2 (?h.inflated)22. Aseg Statistics (stats/aseg.stats)23. Cortical Ribbon Mask (?h.ribbon.mgz)

24. Spherical Morph25. Spherical Registration (?h.sphere.reg)26. Map average curvature to subject27. Cortical Parcellation (Labeling) 28. Cortical Parcellation Statistics29. Cortical Parcellation mapped to Aseg30. White Matter Parcellation (wmparc.mgz)

recon-all -help Note: lh processed completely first, then rh.

Page 32: Introduction to FreeSurfer surfer.nmr.mgh.harvard

Automatic Volume Labeling

• Used to determine volumes of subcortical structures•Used to fill in subcortical structures for creating subcortical mass•aseg.mgz

ASeg Volume

Atlas: RB_all_2007-08-08

-autorecon2-subcortseg

steps 6-9, 22

Page 33: Introduction to FreeSurfer surfer.nmr.mgh.harvard

Volume-based Labeling

0 20 40 60 80 100 1200

2

4

6

8

10

intensity

% v

oxe

ls i

n l

abel

WMGMlVThCaPuPaHpAm

Labeling is determined by location and intensity.

-autorecon2-subcortseg

Page 34: Introduction to FreeSurfer surfer.nmr.mgh.harvard

Validation of Volume Labeling *

*Thanks to Drs Larry Seidman and Jill Goldstein for providing this data.

Manual labeling done by Center for Morphometric Analysis (CMA)

Page 35: Introduction to FreeSurfer surfer.nmr.mgh.harvard

Find “Subcortical Mass”

• All White Matter

• All Subcortical Structures

• Ventricles

• Excludes brain stem and cerebellum

• Hemispheres separated

• Completely connected (no islands)

• Many Stages … More Later …

Page 36: Introduction to FreeSurfer surfer.nmr.mgh.harvard

White Matter Segmentation• Separates white matter from everything else

• “Fills in” subcortical structures

• Cerebellum removed, brain stem still there

wm Volume

-autorecon2-segmentation

mri_segment

mri_edit_wm_with_aseg

mri_pretess

Page 37: Introduction to FreeSurfer surfer.nmr.mgh.harvard

Fill and Cut (Subcortical Mass)• Fills in any voids• Removes any islands• Removes brain stem• Separates hemispheres (each hemi has different value) • filled.mgz = “Subcortical Mass”

WM Volume Filled Volume

-autorecon2-fill

mri_fill

Page 38: Introduction to FreeSurfer surfer.nmr.mgh.harvard

FreeSurfer Directory Tree

Subject ID

Each data set has its own unique SubjectId (eg, bert)

bert

bem stats src mri scripts surf tmp label trash

orig T1 brainmask wm aseg aparc+aseg wmparc

Page 39: Introduction to FreeSurfer surfer.nmr.mgh.harvard

Tessellation

• Mosaic of triangles (“tessellation”)

• Errors: Donut holes, handles

- Subsequently fixed by the automatic topology fixer

orig surface surf/lh.orig surf/rh.orig

-autorecon2-tessellation

Page 40: Introduction to FreeSurfer surfer.nmr.mgh.harvard

Inflation: Visualization

Dale and Sereno, 1993; Dale et al., Dale et al., 1999; Fischl et al., 1999; Fischl et al., 2000; Fischl et al., 2001

Gyri

Sulci

-autorecon2-inflate

Page 41: Introduction to FreeSurfer surfer.nmr.mgh.harvard

Automatic Topology Fixer

Fornix

Pallidum and Putamen

hippocampus

Ventricles and Caudate

Cortical Defects

• Holes• Handles• Automatically Fixed

optic nerve

-autorecon2-fix

Page 42: Introduction to FreeSurfer surfer.nmr.mgh.harvard

White Matter Surface• Nudge orig surface

• Follow T1 intensity gradients

• Smoothness constraint

• Vertex Identity stays constant

-autorecon2-finalsurfs

Page 43: Introduction to FreeSurfer surfer.nmr.mgh.harvard

Pial Surface

• Nudge white surface

• Follow T1 intensity gradients

• Vertex Identity Stays

-autorecon2-finalsurfs

Page 44: Introduction to FreeSurfer surfer.nmr.mgh.harvard

Optimal Surface Placement

Gray-White Boundary

Outer Cortical Surface

-autorecon2-finalsurfs

Page 45: Introduction to FreeSurfer surfer.nmr.mgh.harvard

Gray-White Boundary

Outer Cortical Surface

Dale and Sereno, 1993; Dale et al., Dale et al., 1999; Fischl et al., 1999; Fischl et al., 2000; Fischl et al., 2001

Gray/CSF Deformation-autorecon2

Page 46: Introduction to FreeSurfer surfer.nmr.mgh.harvard

Cortical Thickness-autorecon2-finalsurfs

Page 47: Introduction to FreeSurfer surfer.nmr.mgh.harvard

Thickness Maps• Red regions are thinner• Yellow regions are thicker

Page 48: Introduction to FreeSurfer surfer.nmr.mgh.harvard

Histological Validation

0

0.5

1

1.5

2

2.5

3

3.5

2.6

2.52 2.57

2.53

2.36 2.

48

2.42

2.44

2.41

2.62

3.04

3.22

3.17 3.27

Cun IP PrC SM IF MFPST

Cor

tical

Thi

ckne

ss (

mm

)

Brain Region

0

0.5

1

1.5

2

2.5

3

3.5

4

2.39 2.44

2.23

2.14

3.37 3.45

3.16

3.16

2.73

3.03

33.

14

3.61 3.66

Cun Fus ST IP IF PC MF

Cor

tical

Thi

ckne

ss (

mm

)

Brain Region

Courtesy of Diana Rosas, MGH (Rosas, et al., 2002, Neurology)

Brain Region (HD)

4.0

0

Cor

tica

l Thi

ckne

ss (

mm

)

Brain Region (Normal)

3.5

0

Cor

tica

l Thi

ckne

ss (

mm

)

Page 49: Introduction to FreeSurfer surfer.nmr.mgh.harvard

FreeSurfer Directory Tree

Subject ID

Each data set has its own unique SubjectId (eg, bert)

bert

bem stats src mri scripts surf tmp label

lh.white lh.curv lh.thickness lh.pial

Page 50: Introduction to FreeSurfer surfer.nmr.mgh.harvard

-autorecon3Volumetric Processing Stages (subjid/mri):1. Motion Cor, Avg, Conform (orig.mgz)2. Non-uniform inorm (nu.mgz)3. Talairach transform computation

(talairach/talairach.xfm)4. Intensity Normalization 1 (T1.mgz)5. Skull Strip (brainmask.mgz)

6. EM Register (linear volumetric registration) 7. CA Intensity Normalization (norm.mgz) 8. CA Non-linear Volumetric Registration 9. CA Label (Volumetric Labeling) (aseg.mgz)

10. Intensity Normalization 2 (T1.mgz)11. White matter segmentation (wm.mgz)12. Edit WM With ASeg13. Fill and cut (filled.mgz)

Surface Processing Stages (subjid/surf):14. Tessellate (?h.orig.nofix)15. Smooth1 16. Inflate117. QSphere (?h.qsqhere)18. Automatic Topology Fixer (?h.orig)19. Final Surfs (?h.white ?h.pial ?.thickness)20. Smooth2 (?h.smoothwm)21. Inflate2 (?h.inflated)22. Aseg Statistics (stats/aseg.stats)23. Cortical Ribbon Mask (?h.ribbon.mgz)

24. Spherical Morph25. Spherical Registration (?h.sphere.reg)26. Map average curvature to subject27. Cortical Parcellation (Labeling) 28. Cortical Parcellation Statistics29. Cortical Parcellation mapped to Aseg30. White Matter Parcellation (wmparc.mgz)

recon-all -help Note: lh processed completely first, then rh.

Page 51: Introduction to FreeSurfer surfer.nmr.mgh.harvard

Surface-Based Spherical Coord System

Page 52: Introduction to FreeSurfer surfer.nmr.mgh.harvard

“Spherical” Registration

Sulcal MapSpherical Inflation

High-DimensionalRegistration toSpherical Template

Template: average.curvature.filled.buckner.40.tiff

Page 53: Introduction to FreeSurfer surfer.nmr.mgh.harvard

Spherical Inflation

Transformed Surface

Inflated Surface

-autorecon3-sphere

Page 54: Introduction to FreeSurfer surfer.nmr.mgh.harvard

Atlas (Target)

Individual Subject

Spherical Registration to Atlas-autorecon3-surfreg

Page 55: Introduction to FreeSurfer surfer.nmr.mgh.harvard

Cortical Parcellation

Fine-tune based onindividual anatomy

Spherical Template based on Manual Parcellation

Map to IndividualThru Spherical Reg

Atlases: curvature.buckner40filled.desikan_killiany, atlas_2005_simple

-autorecon3-cortparc

Page 56: Introduction to FreeSurfer surfer.nmr.mgh.harvard

Cortical Parcellation: 2

AutomaticManual

Atlases: curvature.buckner40filled.desikan_killiany, atlas_2005_simple

Thanks to Christophe Destrieux for this slide.

-cortparc2 -autorecon3

Page 57: Introduction to FreeSurfer surfer.nmr.mgh.harvard

FreeSurfer Directory Tree

Subject ID

Each data set has its own unique SubjectId (eg, bert)

bert

bem stats src mri scripts surf tmp label

lh.aparc.annot rh.aparc.annot

Page 58: Introduction to FreeSurfer surfer.nmr.mgh.harvard

FreeSurfer Directory Tree

Subject ID

Each data set has its own unique SubjectId (eg, bert)

bert

bem stats src mri scripts surf tmp label

orig T1 brainmask wm aseg aparc+aseg wmparc

Page 59: Introduction to FreeSurfer surfer.nmr.mgh.harvard

Actual Workflow: version 1

1. recon-all –all (Stages 1-20) ~30 hours2. Check talairach transform, skull strip, normalization 3. Check surfaces

1. Add control points: recon-all –autorecon2-cp –autorecon3 (Stages 10-29)

2. Edit wm.mgz: recon-all –autorecon2-wm –autorecon3 (Stages 13-29)

3. Edit brain.mgz: recon-all –autorecon2-pial (Stage 19-22)Note: all stages can be run individually

Page 60: Introduction to FreeSurfer surfer.nmr.mgh.harvard

Actual Workflow: version 2

1. recon-all –autorecon1 (Stages 1-5) ~45 min2. Check talairach transform, skull strip, normalization 3. recon-all –autorecon2 (Stages 6-22) ~20 hours4. Check surfaces

1. Add control points: recon-all –autorecon2-cp (Stages 10-22)

2. Edit wm.mgz: recon-all –autorecon2-wm (Stages 13-22)3. Edit brain.mgz: recon-all –autorecon2-pial (Stage 19-22)

5. recon-all –autorecon3 (Stages 23-29) ~6 hours

Note: all stages can be run individually

Page 61: Introduction to FreeSurfer surfer.nmr.mgh.harvard

Tutorialshttps://surfer.nmr.mgh.harvard.edu/fswiki/FsTutorial

On Linux Machines:

• setenv FREESURFER_HOME /usr/pubsw/freesurfer

• source $FREESURFER_HOME/SetUpFreeSurfer.csh

• setenv SUBJECTS_DIR /ircuser/FSWorkshop/buckner_data/tutorial_subjs

On Macs:

• setenv FREESURFER_HOME /Applications/freesurfer

• source $FREESURFER_HOME/SetUpFreeSurfer.csh

• setenv SUBJECTS_DIR /FSWorkshop/buckner_data/tutorial_subjs

• Use the volume and surface viewing tools to look at correct output from all steps.

Page 62: Introduction to FreeSurfer surfer.nmr.mgh.harvard

Troubleshooting

• Skull Strip Errors• Intensity Normalization• Segmentation Errors• Pial Surface• Talairach Errors

Page 63: Introduction to FreeSurfer surfer.nmr.mgh.harvard

FreeSurfer Directory Tree

Subject ID

Each data set has its own unique SubjectId (eg, bert)

bert

bem stats src mri scripts surf tmp label

recon-all.log recon-all-status.log

Page 64: Introduction to FreeSurfer surfer.nmr.mgh.harvard

Actual Workflow

1. recon-all –autorecon1 (Stages 1-5)2. Check talairach transform, skull strip, normalization 3. recon-all –autorecon2 (Stages 6-22)4. Check surfaces

1. Add control points: recon-all –autorecon2-cp (Stages 10-22)

2. Edit wm.mgz: recon-all –autorecon2-wm (Stages 13-22)3. Edit brain.mgz: recon-all –autorecon2-pial (Stage 19-22)

5. recon-all –autorecon3 (Stages 23-29)

Note: all stages can be run individually

Page 65: Introduction to FreeSurfer surfer.nmr.mgh.harvard

Troubleshooting: Skull Strip

brainmask.mgz

Page 66: Introduction to FreeSurfer surfer.nmr.mgh.harvard

Intensity Normalization Failure. All WM in T1 volume (T1.mgz) should be 110.Can fix by adding “Control Points”. Beware partial voluming!

Troubleshooting: Intensity Normalization

Page 67: Introduction to FreeSurfer surfer.nmr.mgh.harvard

Actual Workflow

1. recon-all –autorecon1 (Stages 1-5)2. Check talairach transform, skull strip, normalization 3. recon-all –autorecon2 (Stages 6-22)4. Check surfaces

1. Add control points: recon-all –autorecon2-cp (Stages 10-22)

2. Edit wm.mgz: recon-all –autorecon2-wm (Stages 13-22)3. Edit brain.mgz: recon-all –autorecon2-pial (Stage 19-22)

5. recon-all –autorecon3 (Stages 23-29)

Note: all stages can be run individually

Page 68: Introduction to FreeSurfer surfer.nmr.mgh.harvard

Actual Workflow

1. recon-all –autorecon1 (Stages 1-5)2. Check talairach transform, skull strip, normalization 3. recon-all –autorecon2 (Stages 6-22)4. Check surfaces

1. Add control points: recon-all –autorecon2-cp (Stages 10-22)

2. Edit wm.mgz: recon-all –autorecon2-wm (Stages 13-22)3. Edit brain.mgz: recon-all –autorecon2-pial (Stage 19-22)

5. recon-all –autorecon3 (Stages 23-29)

Note: all stages can be run individually

Page 69: Introduction to FreeSurfer surfer.nmr.mgh.harvard

Eye Socket classified as WM.Skull Strip Failure.

Troubleshooting: Segmentation Error

Page 70: Introduction to FreeSurfer surfer.nmr.mgh.harvard

“Hypo-Intensities”White Matter Lesions

Troubleshooting: Segmentation Error

Page 71: Introduction to FreeSurfer surfer.nmr.mgh.harvard

Actual Workflow

1. recon-all –autorecon1 (Stages 1-5)2. Check talairach transform, skull strip, normalization 3. recon-all –autorecon2 (Stages 6-22)4. Check surfaces

1. Add control points: recon-all –autorecon2-cp (Stages 10-22)

2. Edit wm.mgz: recon-all –autorecon2-wm (Stages 13-22)3. Edit brain.mgz: recon-all –autorecon2-pial (Stage 19-22)

5. recon-all –autorecon3 (Stages 23-29)

Note: all stages can be run individually

Page 72: Introduction to FreeSurfer surfer.nmr.mgh.harvard

White/Gray OK, butPial Inaccurate

Troubleshooting: Pial Surface Error

Page 73: Introduction to FreeSurfer surfer.nmr.mgh.harvard

Actual Workflow

1. recon-all –autorecon1 (Stages 1-5)2. Check talairach transform, skull strip, normalization 3. recon-all –autorecon2 (Stages 6-22)4. Check surfaces

1. Add control points: recon-all –autorecon2-cp (Stages 10-22)

2. Edit wm.mgz: recon-all –autorecon2-wm (Stages 13-22)3. Edit brain.mgz: recon-all –autorecon2-pial (Stage 19-22)

5. recon-all –autorecon3 (Stages 23-29)

Note: all stages can be run individually

Page 74: Introduction to FreeSurfer surfer.nmr.mgh.harvard

The End!

Feedback: [email protected]