Foundations to Frontier
Tests
D. Classical Machine Learning › D9 Dimensionality Reduction and Manifold Learning

Independent Component Analysis (FastICA)

Independent component analysis recovers source signals that were linearly mixed, assuming only that the sources are statistically independent and non-Gaussian: the cocktail-party problem. PCA can only decorrelate, which leaves an unknown rotation. ICA resolves that rotation by maximising non-Gaussianity, since by the central limit theorem mixtures are more Gaussian than their sources. FastICA (Hyvärinen, 1999) whitens the data and then runs a fast fixed-point iteration on a contrast such as log-cosh, with symmetric orthogonalisation to extract all components at once. Sources are recovered up to order, sign and scale, and Gaussian sources cannot be separated. This page covers the model, identifiability, whitening, contrast functions and negentropy, the fixed-point update, the Amari index, equivariance, and applications from EEG to vibration analysis. In the exercises you implement FastICA and unmix signals; then you map how separation depends on the sources' distance from Gaussianity and the choice of contrast.

Level 0: Foundation

★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.

Unmixing voices at a party

Two people talk at once and two microphones each record a different blend of both voices. Can you get the voices back? ICA says yes, if the voices are independent and not bell-curve shaped. A blend of independent signals is always “more bell-shaped” than the signals themselves (the central limit theorem at work), so ICA searches for the unmixing that makes each output as un-bell-shaped as possible. PCA can’t do this. It only makes outputs uncorrelated, which still leaves them rotated.

ICA: unmixing independent signals
separation error (Amari index, 0 = perfect) 0.027
Dashed grey: the true mixing directions. Blue: PCA axes, always at right angles and aligned with variance, so they miss skewed mixtures. Orange: ICA's estimated mixing directions, along the edges of the parallelogram for uniform sources, matching the dashed lines. With Laplace (heavy-tailed) sources the cloud has spiky arms that ICA also finds. The error barely depends on the mixing angle: ICA is equivariant, so any invertible mixing is equally easy to undo. With Gaussian sources the mixed cloud is a featureless ellipse. ICA still returns some directions, but they are arbitrary: press new sample and they swing around, whereas for uniform or Laplace sources they stay put.
Why engineers care

Sensors usually record mixtures: vibration from several machine parts at each accelerometer, brain activity plus eye blinks in EEG, overlapping radio emitters at an antenna array. ICA separates the underlying sources blindly, without knowing the mixing. It is used for fault diagnosis, artifact removal and blind source separation in communications.

📝 Quick check (Level 0)
0/3 answered
  1. 1. ICA assumes the sources are…
  2. 2. Mixtures of independent sources are…
  3. 3. PCA alone leaves the sources…

Level 1: Beginner

★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.

Measuring non-Gaussianity by hand

Excess kurtosis E[z⁴] − 3 for standardised z:

  • Gaussian: 0;
  • Laplace: 3 (heavy tails, super-Gaussian);
  • uniform: −1.2 (flat, sub-Gaussian);
  • a fair ±1 coin: −2, the most sub-Gaussian possible.

ICA looks for directions where this (or a more robust measure) is far from zero.

Whitening. Transform the data so that its covariance is the identity: z = E D^(−½) Eᵀ(x − μ). After whitening, the remaining unmixing is an orthogonal rotation. ICA only has to find that rotation, roughly d(d − 1)/2 angles: 1 for 2 sources, 3 for 3.

What can’t be recovered. The sources’ order, sign and scale. If W unmixes, so does any permutation and scaling of its rows. Quality is measured by how close W A is to a scaled permutation. The Amari index is 0 for a perfect scaled permutation, and 1 for the all-ones 2 × 2 matrix (total mixing).

The steps in plain English (FastICA):

  1. Centre and whiten the data.
  2. Start with a random orthogonal W.
  3. For each row: w ← E[z g(wᵀz)] − E[g′(wᵀz)] w, with g = tanh (log-cosh contrast).
  4. Re-orthogonalise all rows symmetrically, W ← (WWᵀ)^(−½)W. Repeat until W stops changing. Sources = W × (whitened data).
📝 Quick check (Level 1)
0/3 answered
  1. 1. Excess kurtosis of a Gaussian?
  2. 2. After whitening 3 mixtures, ICA must find a rotation with how many angles?
  3. 3. Which of these does ICA recover?

Level 2: Intermediate

★★★☆☆ Intermediate⏱ 30 minUndergraduate students and practising engineers.

Contrasts, the fixed point, and limits

Non-Gaussianity as negentropy. Among all distributions with a given variance, the Gaussian has maximum entropy. Negentropy J(y) = H(gauss) − H(y) ≥ 0, and it is zero only for Gaussians. FastICA maximises approximations J(y) ∝ [E G(y) − E G(ν)]², with ν standard normal and G one of:

  • log cosh (general purpose);
  • −exp(−y²/2) (robust for heavy tails);
  • y⁴/4 (kurtosis: simple, but outlier-sensitive).

The fixed-point update is an approximate Newton step on that objective, with cubic convergence for the kurtosis contrast and quadratic convergence for others. FastICA typically needs only tens of iterations. Exercise 1 unmixed a sine, a square wave and a sawtooth from three mixtures in 5 iterations: every recovered source correlated at least 0.998 with a true one, with Amari index 0.031.

Identifiability (Comon, 1994). Independent sources with at most one Gaussian are identifiable up to order and scale. With two or more Gaussian sources, any rotation of them is still independent, so they cannot be separated. In exercise 1, two mixed Gaussians gave Amari index 0.62, an arbitrary answer.

Equivariance. FastICA’s result, W A, does not depend on the mixing matrix A at all (whitening absorbs it), so ill-conditioned mixtures are no harder in principle (Cardoso and Laheld). The demo shows the error staying flat as the mixing angle changes.

Contrast choice matters at the margins. In exercise 2, heavy-tailed sources were separated best by log-cosh and exp. The kurtosis contrast was about twice as bad for p ≤ 1, where outliers dominate fourth moments. Near-Gaussian sources (p = 1.5) were hardest.

from sklearn.decomposition import FastICA
ica = FastICA(n_components=3, fun="logcosh", whiten="unit-variance", random_state=0)
S_est = ica.fit_transform(X)        # estimated sources
A_est = ica.mixing_                 # estimated mixing matrix
🐍 Exercise 1: FastICA
Implement whitening, symmetric decorrelation, symmetric FastICA with log-cosh/exp/cube contrasts, and the Amari index; unmix three periodic signals and see Gaussian sources fail.
📝 Quick check (Level 2)
0/3 answered
  1. 1. Negentropy is zero exactly for…
  2. 2. ICA's separation accuracy depends on the mixing matrix…
  3. 3. The kurtosis contrast struggles with…

Level 3: Advanced

★★★★☆ Advanced⏱ 25 minGraduate level, with full derivations and proofs.

Theory

Why non-Gaussianity identifies sources. For whitened data, any unmixing row w gives y = wᵀz = qᵀs, with ‖q‖ = 1 (q = Aᵀw in whitened coordinates). By a central-limit-type argument, y is “most Gaussian” when q spreads over many sources, and least Gaussian when q picks a single source. Local maxima of non-Gaussianity therefore occur at q = ±eᵢ: the individual sources (Delfosse and Loubaton; Hyvärinen and Oja).

Infomax and maximum likelihood. Bell and Sejnowski’s infomax ICA is equivalent to maximum-likelihood estimation with an assumed source density. FastICA’s contrasts correspond to different density assumptions. log cosh matches super-Gaussian sources well and still works for sub-Gaussian ones.

Limits.

  • Linear, instantaneous mixing. Convolutive mixtures need frequency-domain or convolutive ICA.
  • Square or over-determined mixing (at least as many sensors as sources).
  • Stationarity.
  • Independence. Dependent sources need independent subspace analysis or other methods.

Interview questions.

  • PCA or ICA? PCA for compression and decorrelation, with ordered variance. ICA for separating independent physical sources, where order, scale and Gaussian components are unrecoverable.
  • How do you validate an ICA result? Check that the estimated components are mutually independent (low mutual information or cross-cumulants), that the result is stable across restarts and bootstrap samples (ICASSO), and that they are physically interpretable.
📝 Quick check (Level 3)
0/3 answered
  1. 1. Infomax ICA is equivalent to…
  2. 2. Mixtures with time delays and echoes need…
  3. 3. How many Gaussian sources at most can be present for identifiability?

Level 4: Expert

★★★★★ Expert⏱ 25 minResearchers: original papers and open problems.

How non-Gaussian must sources be?

History.

  • J. Hérault and C. Jutten (1980s) pioneered blind source separation.
  • P. Comon (1994) formalised ICA and its identifiability.
  • A. Bell and T. Sejnowski (1995) introduced infomax.
  • A. Hyvärinen and E. Oja (1997–1999) developed FastICA and negentropy approximations.
  • J.-F. Cardoso and B. Laheld (1996) analysed equivariant adaptive separation.

Exercise 2. 4 generalised-Gaussian sources with shape p (p = 2 Gaussian, p = 1 Laplace, p = 8 nearly uniform), n = 2000, random mixing, symmetric FastICA, 4 runs. Values are the mean Amari index (0 = perfect).

shape p log cosh exp cube (kurtosis)
0.5 (very heavy tails) 0.013 0.012 0.027
1 (Laplace) 0.020 0.019 0.030
1.5 0.044 0.042 0.067
2 (Gaussian) 0.435† 0.426† 0.425†
3 0.028 0.029 0.033
8 (near uniform) 0.017 0.017 0.015
  • Gaussian sources could not be separated by any contrast: an error of about 0.4, an arbitrary rotation. That is Comon’s theorem in action. † These values are essentially random, so they vary between platforms: the in-browser Python gave 0.407, 0.452 and 0.474.
  • Separation got harder as sources approached Gaussian from either side. It was best for very heavy tails or flat distributions.
  • The kurtosis contrast was the weakest for heavy-tailed sources, about twice the error at p ≤ 1, because outliers dominate fourth moments. It was marginally best for near-uniform sources.
🐍 Exercise 2 (research): non-Gaussianity and contrast functions
For 4 generalised-Gaussian sources with shapes from 0.5 to 8 (2 = Gaussian), run FastICA with log-cosh, exp and cube contrasts on random mixtures and record the Amari index.

ICA in AI, robotics and aerospace

  • Machine-vibration diagnosis: separating gear, bearing and shaft signatures from mixed accelerometer signals.
  • EEG/ECG artifact removal for pilot-monitoring and human-factors studies.
  • Blind source separation of overlapping emitters at antenna arrays, and of mixed telemetry signals.

References

  1. A. Hyvärinen, E. Oja (2000). “Independent component analysis: algorithms and applications.” Neural Networks 13(4–5).
  2. A. Hyvärinen (1999). “Fast and robust fixed-point algorithms for independent component analysis.” IEEE Transactions on Neural Networks 10(3).
  3. P. Comon (1994). “Independent component analysis, a new concept?” Signal Processing 36(3).
  4. A. J. Bell, T. J. Sejnowski (1995). “An information-maximization approach to blind separation and blind deconvolution.” Neural Computation 7(6).
  5. J.-F. Cardoso, B. H. Laheld (1996). “Equivariant adaptive source separation.” IEEE Transactions on Signal Processing 44(12).