Extracting functional brain networks: ICA and related#
Page summary
This page demonstrates the use of multi-subject decompositions models to extract brain-networks from fMRI data in a data-driven way. Specifically, we will apply Independent Component Analysis (ICA), which implements a multivariate random effects model across subjects. We will then compare ICA to a newer technique, based on dictionary learning.
Multi-subject ICA: CanICA#
References
G. Varoquaux et al. “A group model for stable multi-subject ICA on fMRI datasets”, NeuroImage Vol 51 (2010), p. 288-299
Objective#
ICA is a useful approach for finding independent sources from fMRI images. ICA and similar techniques can be therefore used to define regions or networks that share similar BOLD signal across time. The CanICA incorporates information both within-subjects and across subjects to arrive at consensus components.
Nilearn data for examples
Nilearn provides easy-to-analyze data to explore functional connectivity and resting: the brain development dataset, which has been preprocessed using FMRIPrep and Nilearn We use nilearn functions to fetch data from Internet and get the filenames (more on data loading).
Fitting CanICA model with nilearn#
CanICA
is a ready-to-use object that can be applied to
multi-subject Nifti data, for instance presented as filenames, and will
perform a multi-subject ICA decomposition following the CanICA model.
As with every object in nilearn, we give its parameters at construction,
and then fit it on the data. For examples of this process, see
here: Deriving spatial maps from group fMRI data using ICA and Dictionary Learning
Once an ICA object has been fit to an fMRI dataset, the individual
components can be accessed as a 4D Nifti object using the
components_img_
attribute.
Visualizing results#
We can visualize each component outlined over the brain:
We can also plot the map for different components separately:
See also
The full code can be found as an example: Deriving spatial maps from group fMRI data using ICA and Dictionary Learning
Note
Note that as the ICA components are not ordered, the two components displayed on your computer might not match those of the documentation. For a fair representation, you should display all components and investigate which one resemble those displayed above.
Interpreting such components#
ICA, and related algorithms, extract patterns that coactivate in the signal. As a result, it finds functional networks, but also patterns of non neural activity, ie confounding signals. Both are visible in the plots of the components.
An alternative to ICA: Dictionary learning#
Recent work has shown that Dictionary learning based techniques outperform ICA in term of stability and constitutes a better first step in a statistical analysis pipeline. Dictionary learning in neuro-imaging seeks to extract a few representative temporal elements along with their sparse spatial loadings, which constitute good extracted maps.
References
Arthur Mensch et al. Compressed online dictionary learning for fast resting-state fMRI decomposition, ISBI 2016, Lecture Notes in Computer Science
DictLearning
is a ready-to-use class with the same interface as
CanICA
. Sparsity of output map is controlled by a parameter alpha: using
a larger alpha yields sparser maps.
We can fit both estimators to compare them. 4D plotting (using
nilearn.plotting.plot_prob_atlas
) offers an efficient way to
compare both resulting outputs.
Maps obtained with Dictionary learning are often easier to exploit as they are more contrasted than ICA maps, with blobs usually better defined. Typically, smoothing can be lower than when doing ICA.
While Dictionary learning computation time is comparable to CanICA, obtained atlases have been shown to outperform ICA in a variety of classification tasks.
See also
The full code can be found as an example: Deriving spatial maps from group fMRI data using ICA and Dictionary Learning
See also
Learn how to extract fMRI data from regions created with Dictionary learning with this example: Regions extraction using dictionary learning and functional connectomes