nilearn
play

Nilearn: Machine learning for brain imaging in Python Ga el - PowerPoint PPT Presentation

Nilearn: Machine learning for brain imaging in Python Ga el Varoquaux INRIA/Parietal 1 Magnetic Resonance Imaging of the brain 2 Machine learning and brain imaging 3 NiLearn G Varoquaux 2 1 Magnetic Resonance Imaging of the brain G


  1. Nilearn: Machine learning for brain imaging in Python Ga¨ el Varoquaux INRIA/Parietal

  2. 1 Magnetic Resonance Imaging of the brain 2 Machine learning and brain imaging 3 NiLearn G Varoquaux 2

  3. 1 Magnetic Resonance Imaging of the brain G Varoquaux 3

  4. 1 anatomical MRI Lesions? Bleeding? Shape, cortical thickness G Varoquaux 4

  5. 1 functional MRI (fMRI) t Time-resolved recordings of brain activity G Varoquaux 5

  6. 1 Mapping cognitive processes with fMRI Stimulus Activation maps G Varoquaux 6

  7. 2 Machine learning and brain imaging G Varoquaux 7

  8. Medical applications G Varoquaux 8

  9. 2 Some prediction problem Diagnosis Finding the nature or cause of a disease condition Pronosis Predicting the future evolution of the condition ⇒ Therapeutic indications Early biomarkers Measures enabling the detection of disease before standard symptoms ⇒ Population screening Quantitative biomarkers Metric to follow disease progression ⇒ Drug development G Varoquaux 9

  10. 2 More than prediction accuracy Cannot replace the physician: Patient history Therapeutic strategies subject to logistics ... ⇒ No black-box Segmentation, denoising task as much as prediction G Varoquaux 10

  11. 2 More than prediction accuracy Cannot replace the physician: Patient history Therapeutic strategies subject to logistics ... ⇒ No black-box Segmentation, denoising task as much as prediction G Varoquaux 10

  12. Understanding brain function Cognitive neuroimaging: from neural activity to thoughts G Varoquaux 11

  13. 2 Machine learning for cognitive neuroImaging [Varoquaux & Thirion, 2014] Learn a bilateral link between brain activity and cognitive function G Varoquaux 12

  14. 2 Machine learning for cognitive neuroImaging [Varoquaux & Thirion, 2014] Predicting neural response : encoding models G Varoquaux 12

  15. 2 Machine learning for cognitive neuroImaging [Varoquaux & Thirion, 2014] “Brain reading” : decoding G Varoquaux 12

  16. 3 NiLearn Machine learning for Neuro-Imaging in Python ni http://nilearn.github.io G Varoquaux 13

  17. 3 Going beyond the IEEE publication How to we reach our target audience (neuroscientists)? For neuroscience research How do we disseminate our ideas? For applied-math research How do we facilitate new ideas? For our own lab G Varoquaux 14

  18. 3 Going beyond the IEEE publication How to we reach our target audience (neuroscientists)? For neuroscience research How do we disseminate our ideas? For applied-math research How do we facilitate new ideas? For our own lab G Varoquaux 14

  19. 3 6 years ago Visual image reconstruction from human brain activity [Miyawaki, et al. (2008)] “brain reading” G Varoquaux 15

  20. 3 6 years ago ... back to the future Visual image reconstruction from human brain activity [Miyawaki, et al. (2008)] “if it’s not open and verifiable by others , it’s not science, or engineering...” Stodden, 2010 G Varoquaux 15

  21. 3 6 years ago ... back to the future Visual image reconstruction from human brain activity [Miyawaki, et al. (2008)] Make it work, make it right, make it boring

  22. 3 6 years ago ... back to the future Visual image reconstruction from human brain activity [Miyawaki, et al. (2008)] Make it work, make it right, make it boring http://nilearn.github.io/auto examples/ plot miyawaki reconstruction.html Code, data, ... just works TM ni http://nilearn.github.io G Varoquaux 15

  23. 3 Nilearn: making learning for neuroimaging routine Project scope CDS-funded Machine learning for neuroimaging: make using scikit-learn on neuroimaging easy The target user base is small Examples in the docs Run out of the box, downloading open data Produce a clear figure Data from Miyawaki 2008 Routine, simple, reproduction of papers ni G Varoquaux 16

  24. 3 Challenges we have to solve Getting the data Struggle for open data Massaging the data for machine-learning Very simple signal processing Documentation Users do not know what they need Output + visualization of results Putting it in application terms G Varoquaux 17

  25. 3 Nilearn in practice Getting the data f i l e s d a t a s e t s . f e t c h h a x b y () = Caching of the downloads Resume of partial downloads G Varoquaux 18

  26. 3 Nilearn in practice Getting the data f i l e s d a t a s e t s . f e t c h h a x b y () = Massaging the data for machine-learning masker N i f t i M a s k e r ( mask img =’mask.nii’, = s t a n d a r d i z e = True ) data masker . f i t t r a n s f o r m (’fmri.nii’) = Filenames to data matrix (memory-efficient I/O) Common preprocessing steps included G Varoquaux 18

  27. 3 Nilearn in practice Getting the data f i l e s d a t a s e t s . f e t c h h a x b y () = Massaging the data for machine-learning masker N i f t i M a s k e r ( mask img =’mask.nii’, = s t a n d a r d i z e = True ) data masker . f i t t r a n s f o r m (’fmri.nii’) = Learning with scikit-learn e s t i m a t o r . f i t ( data , l a b e l s ) That’s easy! G Varoquaux 18

  28. 3 Nilearn in practice Getting the data f i l e s d a t a s e t s . f e t c h h a x b y () = Massaging the data for machine-learning masker N i f t i M a s k e r ( mask img =’mask.nii’, = s t a n d a r d i z e = True ) data masker . f i t t r a n s f o r m (’fmri.nii’) = Learning with scikit-learn e s t i m a t o r . f i t ( data , l a b e l s ) Output p l o t s t a t m a p ( masker . i n v e r s e t r a n s f o r m ( e s t i m a t o r . w e i g h t s )) G Varoquaux 18

  29. 3 Nilearn in practice Getting the data f i l e s d a t a s e t s . f e t c h h a x b y () = Massaging the data for machine-learning masker N i f t i M a s k e r ( mask img =’mask.nii’, = s t a n d a r d i z e = True ) data masker . f i t t r a n s f o r m (’fmri.nii’) = Learning with scikit-learn Demo e s t i m a t o r . f i t ( data , l a b e l s ) Brain reading @ home Output p l o t s t a t m a p ( masker . i n v e r s e t r a n s f o r m ( e s t i m a t o r . w e i g h t s )) G Varoquaux 18

  30. 3 There is more Domain-specific brain-reading algorithm Image-penalties on linear models Unsupervised dictionary-learning Brain regions from uncontrolled mental activity Graph learning “Connectome”: who talks to who G Varoquaux 19

  31. 3 NeuroSynth + Neurovault: web brain reading G Varoquaux 20

  32. Nilearn: Machine learning for brain imaging Medical and cognitive science applications Learning problems, but not only about prediction error Reaching domain scientists First challenge: get the user to do simple tasks Useful for methods research lowers the bar to test methods on new data @ GaelVaroquaux ni

Recommend


More recommend