Introduction of Principles¶
Conceptual Path¶
Principal Components Analysis (PCA)¶
Before we talk about ICA, let’s discuss PCA (principal components analysis) first. Although preprocessing can sometimes reduce the impact of noise, in many cases, we encounter challenges such as noise originating from complex backgrounds or containing multiple components, especially when we lack knowledge about the properties of the noise—or even worse, the properties of the signal. In such situations, PCA helps reduce data complexity (lower dimensionality) by identifying the component that accounts for the largest variance in the dataset. After extracting this component, PCA proceeds iteratively: it removes the effect of the extracted component, identifies the next component with the largest remaining variance, and continues until either the desired number of components is extracted or the cumulative explained variance is sufficient to describe the data.
Therefore, each component is orthogonal to the others (statistically independent of each other and does not share explained variance) but is logically related to the previous components (since each principal component is calculated based on the residual variance after removing the effect of earlier components). Each component explains a portion of the variance, quantified by its eigenvalue, where a larger eigenvalue indicates that the component explains more variance. The selection of meaningful components can be guided by methods such as the Kaiser criterion (eigenvalues greater than 1) or by observing a scree plot to identify where the curve flattens out.

When applied to fMRI data, PCA can extract a set of components representing activation patterns across voxels. These components may reflect underlying functional activities, allowing researchers to explore distributed functional systems that are not easily accessible through hypothesis-driven methods.
Independent Component Analysis (ICA)¶
However, as ideal as PCA might seem, fMRI data often contains a greater proportion of noise than signal, meaning PCA could sometimes extract noise instead of meaningful signals. Therefore, we need to use ICA. ICA divides the data into separate components, each of which contributes differently to the activation pattern at different points in time. These independent components may spatially overlap because the brain is complex, and a single brain region cannot fully explain the activation. PCA, on the other hand, focuses on ensuring that the components do not share variance, meaning it enforces orthogonality between components. However, this method ignores potential nonlinear relationships. In contrast, ICA focuses on statistical (probabilistic) independence, meaning that the components are statistically independent, and the extraction of each component does not depend on the previous one as it does in PCA.

Uncorrelated does not necessarily mean independent, as there may be a nonlinear relationship between the variables. However, independence implies uncorrelation.
There are two forms of ICA: Spatial ICA, which reduces spatial overlap between components to enhance their independence, and Temporal ICA, which reduces temporal overlap or similarity between components, ensuring that each component’s activation pattern behaves as a distinct temporal trajectory. The choice between spatial ICA and temporal ICA typically depends on the characteristics of the data and the design of the experiment. Unlike other statistical methods we are familiar with, ICA does not have preconceived assumptions and is therefore based on a data-driven approach. However, ICA also faces challenges, such as how to match the extracted components to noise or signal activities, and how to integrate components from different subjects when each subject has a unique pattern of components.

Ashby, F. G. (2011). Statistical analysis of fMRI data. MIT Press.
In terms of purpose, PCA aims to maximize the variance that can explain the results. However, because the task-related signal might be small, this signal may be lost if it is overshadowed by other variances in the data (often noise). On the other hand, ICA attempts to isolate each variable or component independently, allowing each independent component to explain the results without being influenced by others.
Quantitative Path¶
Fundamental Principle¶
In ICA, the goal is to find the unmixing matrix W and then project the whitened data onto that matrix for extracting independent signals (Tharwat, 2022).
Suppose we have the original signal data X matrix that varies with time t. To find the true signal matrix S, we can use the constant matrix A multiplied by the S matrix to obtain the matrix X (assuming that X is a linear mixture of S):
Find the inverse or the unmixing matrix W:


Tharwat, A. (2021), “Independent component analysis: An introduction”, Applied Computing and Informatics, Vol. 17 No. 2, pp. 222-249. Tharwat (2020)
However, since we have two unknowns, A and S, this is an under-constrained problem because the number of unknowns exceeds the number of observations (Shlens, 2014). By focusing on solving A, we will use singular value decomposition (SVD) to divide A into several simpler pieces. Then we examine the covariance of the data x in order to calculate U and Σ, and further return to the assumption of independence of s to solve for V (Shlens, 2014).
Any matrix is decomposed into three “simpler” linear operations: a rotation V, a stretch along the axes Σ, and a second rotation U. Each matrix in the SVD is “simpler” because each matrix contains fewer parameters to infer and each matrix is trivial to invert: U and V are rotation matrices (or orthogonal matrices) and Σ is a diagonal matrix with real, non-negative values (Shlens, 2014).

Assumption¶
Independence: every source is independent.
Gaussianity: non-Gaussian distribution (not bell-shaped or normal).
Central Limit Theorem:
Independent and non-Gaussian sources with a sufficient number of samples, the distribution of sample means will eventually converge to a normal distribution.
The mixture of normal distributions remains normal and centrosymmetric, so it is impossible to find the original signal.
Complexity: mixed signals are more complex than source signals.
Preprocessing Phase¶
Whitening + non-Gaussianity = independence
Centering data: removing mean, and placing data to the center of the axes.
Whitening process: sphere data
Decorrelation: remove all linear dependencies in a data set and normalize the variance along all dimensions. Colloquially, this operation is termed sphereing the data as intuitively, whitening maps the data into a spherically symmetric distribution (Shlens, 2014).
Scale variables: make sure each vector in U has a unit length (variance =1) by rescaling (multiplying ).
Optimization algorithm to maximize non-Gaussianity of each source.

Data is projected on the principal components, . Each axis is then scaled that every direction has unit variance, . The red arrow indicates the transformation of the eigenvector with the largest variance (Shlens, 2014).

Tharwat, A. (2021), “Independent component analysis: An introduction”, Applied Computing and Informatics, Vol. 17 No. 2, pp. 222-249. Tharwat (2020)
Find the Unmixing Matrix W¶
Measure non-Gaussian (Kurtosis, negentropy):
Kurtosis = 0 Gaussian, Kurtosis > 0 Super-Gaussian, Kurtosis < 0 Sub-Gaussian.
However, it is sensitive to outliers.
Minimization of mutual information
Maximum Likelihood (ML)
Application of ICA in MRI Studies¶
Reduce Noise
Resting state analysis
Functional connectivity
functional MRI - temporal ICA
Group Analysis¶
Since ICA is data-driven, we do not have explicit regressors of interest compared to GLM, and it is difficult to assume that all subjects in the same group have the same regressors or time course, so we need to take a different approach to group inference. However, we assume that every participant performs the same task sequence. As a result, the time courses of the individual source images that correspond to the task performance should be comparable. Secondly, a larger sample with N independent sources is easily obtained by combining two samples from N different sources, even if the two samples come from different sources (Svensén et al., 2002).
Quantitative Path¶
Here, we first introduce the principle of GIFT processing group ICA. GIFT incorporates temporal concatenation and back-reconstruction by first merging every subject’s time-series matrix as a new group matrix, and then using PCA dimensionality reduction to reduce the computational effort of ICA (Calhoun et al. 2009).
is a matrix, in which K is the time series and V is the number of voxels. is a matrix that has undergone PCA dimensionality reduction. L is the size of the time dimension following reduction. The reduced, concatenated matrix for the M subjects is:
Here, is the reduced data and is the matrix that helps to reduce the LM dimension to the N dimension.
Thus:
In order to compute the component maps for each subject, we next compute the mixing matrix A, which has partitions specific to each subject. We then project the data from the single subject onto the inverse of the partition of the mixing matrix corresponding to that subject, and this is the back-reconstruction step (Calhoun et al. 2009).
We calculate the matrix containing the single subject maps for subject i, and compute which provides the ICA decomposition of the data from subject i:
Note, indicates estimation of , and indicates estimation value of matrix because we don’t know the real value of S and A.

Calhoun, V. D., Liu, J., & Adalı, T. (2009). A review of group ICA for fMRI data and ICA for joint inference of imaging, genetic, and ERP data. NeuroImage, 45(1), S163-S172. Calhoun et al. (2009)
Erhardt, E. B., Rachakonda, S., Bedrick, E. J., Allen, E. A., Adali, T., & Calhoun, V. D. (2011). Comparison of multi-subject ICA methods for analysis of fMRI data. Human Brain Mapping, 32(12), 2075–2095. Erhardt et al. (2010)
Resource and Reference¶
https://
https://
https://
https://
https://
https://
Tharwat, A. (2021), “Independent component analysis: An introduction”, Applied Computing and Informatics, Vol. 17 No. 2, pp. 222-249. Tharwat (2020)
Huettel, Scott A, et al. Functional Magnetic Resonance Imaging. Sunderland, Mass., Sinauer Associates, Publishers, 2004.
Shlens, J. (2014). A Tutorial on Independent Component Analysis. ArXiv. https://
Calhoun, V. D., Liu, J., & Adalı, T. (2009). A review of group ICA for fMRI data and ICA for joint inference of imaging, genetic, and ERP data. NeuroImage, 45(1), S163-S172. Calhoun et al. (2009)
Svensén, M., Kruggel, F., & Benali, H. (2002). ICA of fMRI Group Study Data. NeuroImage, 16(3), 551–563. Svensén et al. (2002)
Erhardt, E. B., Rachakonda, S., Bedrick, E. J., Allen, E. A., Adali, T., & Calhoun, V. D. (2011). Comparison of multi-subject ICA methods for analysis of fMRI data. Human Brain Mapping, 32(12), 2075–2095. Erhardt et al. (2010)
- Tharwat, A. (2020). Independent component analysis: An introduction. Applied Computing and Informatics, 17(2), 222–249. 10.1016/j.aci.2018.08.006
- Calhoun, V. D., Liu, J., & Adalı, T. (2009). A review of group ICA for fMRI data and ICA for joint inference of imaging, genetic, and ERP data. NeuroImage, 45(1), S163–S172. 10.1016/j.neuroimage.2008.10.057
- Erhardt, E. B., Rachakonda, S., Bedrick, E. J., Allen, E. A., Adali, T., & Calhoun, V. D. (2010). Comparison of multi‐subject ICA methods for analysis of fMRI data. Human Brain Mapping, 32(12), 2075–2095. 10.1002/hbm.21170
- Svensén, M., Kruggel, F., & Benali, H. (2002). ICA of fMRI Group Study Data. NeuroImage, 16(3), 551–563. 10.1006/nimg.2002.1122