Jump to content

FastICA

From Wikipedia, the free encyclopedia

Template:Short description Template:One source FastICA is an efficient and popular algorithm for independent component analysis invented by Aapo Hyvärinen at Helsinki University of Technology.[1][2] Like most ICA algorithms, FastICA seeks an orthogonal rotation of prewhitened data, through a fixed-point iteration scheme, that maximizes a measure of non-Gaussianity of the rotated components. Non-gaussianity serves as a proxy for statistical independence, which is a very strong condition and requires infinite data to verify. FastICA can also be alternatively derived as an approximative Newton iteration.

Algorithm

Prewhitening the data

Let the <math>\mathbf{X} := (x_{ij}) \in \mathbb{R}^{N \times M}</math> denote the input data matrix, <math>M</math> the number of columns corresponding with the number of samples of mixed signals and <math>N</math> the number of rows corresponding with the number of independent source signals. The input data matrix <math>\mathbf{X}</math> must be prewhitened, or centered and whitened, before applying the FastICA algorithm to it.

  • Centering the data entails demeaning each component of the input data <math>\mathbf{X}</math>, that is,
<math> x_{ij} \leftarrow x_{ij} - \frac{1}{M} \sum_{j^{\prime}} x_{ij^{\prime}}</math>
for each <math>i =1,\ldots,N</math> and <math>j = 1, \ldots, M </math>. After centering, each row of <math>\mathbf{X}</math> has an expected value of <math>0</math>.
  • Whitening the data requires a linear transformation <math>\mathbf{L}: \mathbb{R}^{N \times M} \to \mathbb{R}^{N \times M}</math> of the centered data so that the components of <math>\mathbf{L}(\mathbf{X})</math> are uncorrelated and have variance one. More precisely, if <math>\mathbf{X}</math> is a centered data matrix, the covariance of <math>\mathbf{L}_{\mathbf{x}} := \mathbf{L}(\mathbf{X})</math> is the <math>(N \times N)</math>-dimensional identity matrix, that is,
<math> \mathrm{E}\left \{ \mathbf{L}_{\mathbf{x}} \mathbf{L}_{\mathbf{x}}^{T} \right \} = \mathbf{I}_N</math>
A common method for whitening is by performing an eigenvalue decomposition on the covariance matrix of the centered data <math>\mathbf{X}</math>, <math> E\left \{ \mathbf{X} \mathbf{X}^{T} \right \} = \mathbf{E}\mathbf{D}\mathbf{E}^T</math>, where <math>\mathbf{E}</math> is the matrix of eigenvectors and <math>\mathbf{D}</math> is the diagonal matrix of eigenvalues. The whitened data matrix is defined thus by
<math> \mathbf{X} \leftarrow \mathbf{D}^{-1/2}\mathbf{E}^T\mathbf{X}. </math>

Single component extraction

The iterative algorithm finds the direction for the weight vector <math>\mathbf{w} \in \mathbb{R}^N</math> that maximizes a measure of non-Gaussianity of the projection <math>\mathbf{w}^T \mathbf{X}</math>, with <math>\mathbf{X} \in \mathbb{R}^{N \times M}</math> denoting a prewhitened data matrix as described above. Note that <math>\mathbf{w}</math> is a column vector. To measure non-Gaussianity, FastICA relies on a nonquadratic nonlinear function <math>f(u)</math>, its first derivative <math>g(u)</math>, and its second derivative <math>g^{\prime}(u)</math>. Hyvärinen states that the functions

<math>

f(u) = \log \cosh (u), \quad g(u) = \tanh (u), \quad \text{and} \quad {g}'(u) = 1-\tanh^2(u),

</math>

are useful for general purposes, while

<math>

f(u) = -e^{-u^2/2}, \quad g(u) = u e^{-u^2/2}, \quad \text{and} \quad {g}'(u) = (1-u^2) e^{-u^2/2}

</math>

may be highly robust.[1] The steps for extracting the weight vector <math>\mathbf{w}</math> for single component in FastICA are the following:

  1. Randomize the initial weight vector <math>\mathbf{w}</math>
  2. Let <math>
  \mathbf{w}^+ \leftarrow E\left\{\mathbf{X} g(\mathbf{w}^T \mathbf{X})^T\right\} - 
                 E\left\{g'(\mathbf{w}^T \mathbf{X})\right\}\mathbf{w} 
     </math>, where <math>E\left\{...\right\}</math> means averaging over all column-vectors of matrix <math>\mathbf{X}</math>
  1. Let <math> \mathbf{w} \leftarrow \mathbf{w}^+ / \|\mathbf{w}^+\| </math>
  2. If not converged, go back to 2

Multiple component extraction

The single unit iterative algorithm estimates only one weight vector which extracts a single component. Estimating additional components that are mutually "independent" requires repeating the algorithm to obtain linearly independent projection vectors - note that the notion of independence here refers to maximizing non-Gaussianity in the estimated components. Hyvärinen provides several ways of extracting multiple components with the simplest being the following. Here, <math>\mathbf{1_{M}}</math> is a column vector of 1's of dimension <math>M</math>.

Algorithm FastICA

Input: <math> C </math> Number of desired components
Input: <math> \mathbf{X} \in \mathbb{R}^{N \times M} </math> Prewhitened matrix, where each column represents an <math>N</math>-dimensional sample, where <math> C <= N </math>
Output: <math> \mathbf{W} \in \mathbb{R}^{N \times C} </math> Un-mixing matrix where each column projects <math> \mathbf{X} </math> onto independent component.
Output: <math> \mathbf{S} \in \mathbb{R}^{C \times M} </math> Independent components matrix, with <math>M</math> columns representing a sample with <math> C </math> dimensions.
 for p in 1 to C:
    <math>\mathbf{w_p} \leftarrow</math> Random vector of length N
    while <math>\mathbf{w_p}</math> changes
        <math>\mathbf{w_p} \leftarrow \frac{1}{M}\mathbf{X} g(\mathbf{w_p}^T \mathbf{X})^T - \frac{1}{M}g'(\mathbf{w_p}^T\mathbf{X})\mathbf{1_{M}} \mathbf{w_p}</math>
        <math>\mathbf{w_p} \leftarrow \mathbf{w_p} - \sum_{j = 1}^{p-1} (\mathbf{w_p}^T\mathbf{w_j})\mathbf{w_j}</math>
        <math>\mathbf{w_p} \leftarrow \frac{\mathbf{w_p}}{\|\mathbf{w_p}\|}</math>
output <math> \mathbf{W} \leftarrow \begin{bmatrix} \mathbf{w_1}, \dots, \mathbf{w_C} \end{bmatrix} </math>
output <math> \mathbf{S} \leftarrow \mathbf{W^T}\mathbf{X}</math>

See also

References

Template:Reflist