1 / 31

FreeSurfer: Troubleshooting surfer.nmr.mgh.harvard

FreeSurfer: Troubleshooting surfer.nmr.mgh.harvard.edu. MR Anatomy Caveats. Surfaces are only as good as your scan. Dependent on data quality Contrast to noise Signal to noise Voxel resolution MR Artifacts MR susceptibility MR distortions

ahousel
Download Presentation

FreeSurfer: Troubleshooting surfer.nmr.mgh.harvard

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. FreeSurfer: Troubleshootingsurfer.nmr.mgh.harvard.edu

  2. MR Anatomy Caveats Surfaces are only as good as your scan. • 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

  3. Suggested Morphometry Sequences http://www.nmr.mgh.harvard.edu/~andre/

  4. Processing Errors recon-all fails • check recon-all.log • try to rerun step that failed • look at volume from last successful step • examine data quality to see what might cause error • search FreeSurfer mailing list for other instances of this problem: http://www.mail-archive.com/freesurfer@nmr.mgh.harvard.edu/ • if it fails again, attempt to run modified version of command if possible • email the mailing list if still need help

  5. FreeSurfer DirectoryTree Each data set has its own unique SubjectId (eg, bert) Subject ID bert bemstats src mriscriptssurf tmp label recon-all.log recon-all-status.log

  6. Report Errors • Report version currently using • see top of recon-all.log • more $FREESURFER_HOME/build-stamp.txt • command line tried to run • attach recon-all.log • Output in terminal window if appropriate • Operating System

  7. Check Your Recon for Accuracy • Do your surfaces follow gm/wm borders? • Does the subcortical segmentation follow intensity boundaries?

  8. Output of Cortical Surface Reconstruction

  9. Typical Errors • Pial Surface misplacement • Skull Strip Errors • WM Segmentation Errors • Intensity Normalization Errors • Topological Defect

  10. Pial Surface Misplacement Dura or Blood Vessel White/Gray OK, but Pial Inaccurate Dura and GM have extremely similar intensity characteristics on most T1-weighted sequences (but different T2*!). Typical fix: edit the brainmask.mgz to erase dura/blood vessels, and run: recon-all -s <subject> -autorecon-pial

  11. New Morphometry Protocol: Identifying Dura with Multi-echo MP-RAGE *joint work with Andre van der Kouwe

  12. Skull Strip Error orig.mgz brainmask.mgz Use “clone” tool to manually correct, or adjust watershed parameters and run (default wsthresh is 25, higher means strip less): recon-all -skullstrip -wsthresh 35 -clean-bm -no-wsgcaatlas -s <subj> recon-all -autorecon2 -autorecon3 -s <subj>

  13. Troubleshooting: Skull Strip orig.mgz brainmask.mgz Or try gcut (be sure to check didn’t take too much!!): recon-all -skullstrip -clean-bm -gcut -s <subj> recon-all -autorecon2 -autorecon3 -s <subj>

  14. WM Segmentation Error “Hypo-Intensities” White Matter Lesions Misclassified as gray matter Fill in wm.mgz then run: recon-all -s <subject> -autorecon2-wm -autorecon3

  15. WM Segmentation Error Eye Socket classified as WM due to Skull Strip Failure. Erase in wm.mgz then run: recon-all -s <subject> -autorecon2-wm -autorecon3

  16. Intensity Normalization Error Intensity Normalization Failure. Most WM in T1 volume (T1.mgz) should be close to 110. Can fix by adding “Control Points”to interior of wm. Beware partial voluming! recon-all -s <subject> -autorecon2-cp -autorecon3

  17. Topology Fixer Error Fornix hippocampus Ventricles and Caudate Cortical Defects Pallidum and Putamen • Holes • Handles • Automatically Fixed

  18. Topology Fixer Error White Matter “disconnects” orig.nofix will be accurate Add in wm.mgz then run: recon-all -s <subject> -autorecon2-wm -autorecon3

  19. What are the Common Interventions? • Manually edit the wm.mgz to change incorrectly labeled voxels (only for small errors). • Manually edit the brainmask.mgz to erase dura/vasculature. • Adjust watershed parameters or use –gcut to fix large-scale skull-strip errors. • Manually erase/clone regions of remaining skull on brainmask.mgz • Control Points – add locations that are in the interior of the white matter and <110 to bring regional wm intensity up. Use norm.mgz as guide. • Use tkregister2 to fix incorrect talairach.xfm

  20. How Know What to Edit? • If pial surface includes too much: • edit brainmask.mgz • If it affects thewhite surface (too much/little) or If pial surface includes too little: • edit the wm.mgz (if segmentation error) • add control points (if normalization error)

  21. Must rerun to fix errors recon-all -autorecon2 -autorecon3 (Stages 6+) Skull strip error (after fixed watershed/cloned) recon-all -autorecon2-cp -autorecon3 (Stages 10+) Added control points recon-all -autorecon2-wm -autorecon3(Stages 13+) Edited wm.mgz recon-all -autorecon-pial (Stage 19+) Edited brainmask.mgz

  22. Processing Stream Order http://surfer.nmr.mgh.harvard.edu/fswiki/ReconAllDevTable

  23. Or Make Life Easier recon-all -make all -s subjid

  24. Troubleshooting – Advice CONTEXT AMBIGUITY CONSISTENCY SPEED

  25. Troubleshooting – Advice CONTEXT • Always look at the data in multiple views and scroll back and forth a few slices – 3D structure is difficult to discern! AMBIGUITY CONSISTENCY SPEED

  26. Troubleshooting – Advice CONTEXT • Always look at the data in multiple views and scroll back and forth a few slices – 3D structure is difficult to discern! AMBIGUITY • Don’t edit too much! This will reduce reliability while only moderately increasing accuracy and is almost never needed. If unsure, leave it. • Even one or two missing voxels can cause large-scale defects, so very minor editing (e.g. filling in white matter voxels that are holes, or erasing handles) may fix the problem. CONSISTENCY SPEED

  27. Troubleshooting – Advice CONTEXT • Always look at the data in multiple views and scroll back and forth a few slices – 3D structure is difficult to discern! AMBIGUITY • Don’t edit too much! This will reduce reliability and is almost never needed. If unsure, leave it. • Even one or two missing voxels can cause large-scale defects, so very minor editing (e.g. filling in white matter voxels that are holes, or erasing handles) may fix the problem. CONSISTENCY • Edit consistently within and across subjects. SPEED

  28. Troubleshooting – Advice CONTEXT • Always look at the data in multiple views and scroll back and forth a few slices – 3D structure is difficult to discern! AMBIGUITY • Don’t edit too much! This will reduce reliability and is almost never needed. If unsure, leave it. • Even one or two missing voxels can cause large-scale defects, so very minor editing (e.g. filling in white matter voxels that are holes, or erasing handles) may fix the problem. CONSISTENCY • Edit consistently within and across subjects. SPEED • You will get faster with time; certain sections go faster.

  29. Start Over recon-all -all -clean -s subjid

  30. Tutorial Tips • DO NOT open tkmedit & tksurfer from the same terminal window. (Use two terminal windows) • You CANNOT type commands in a terminal window if you are running tkmedit or tksurfer from it. (Open a new terminal window to do this.)

  31. See Edits Made recon-all –show-edits -s subjid

More Related