# Independent component analysis

Template:Multiple issues In signal processing, independent component analysis (ICA) is a computational method for separating a multivariate signal into additive subcomponents. This is done by assuming that the subcomponents are non-Gaussian signals and that they are statistically independent from each other. ICA is a special case of blind source separation. A common example application is the "cocktail party problem" of listening in on one person's speech in a noisy room.

## Introduction

Independent Component Analysis attempts to decompose a multivariate signal into independent non-gaussian signals. As an example, sound is usually a signal that is composed of the numerical addition, at each time t, of signals from several sources. The question then is whether it is possible to separate these contributing sources from the observed total signal. When the statistical independence assumption is correct, blind ICA separation of a mixed signal gives very good results.{{ safesubst:#invoke:Unsubst||date=__DATE__ |$B= {{#invoke:Category handler|main}}{{#invoke:Category handler|main}}[citation needed] }} It is also used for signals that are not supposed to be generated by a mixing for analysis purposes. A simple application of ICA is the "cocktail party problem", where the underlying speech signals are separated from a sample data consisting of people talking simultaneously in a room. Usually the problem is simplified by assuming no time delays or echoes. An important note to consider is that if N sources are present, at least N observations (e.g. microphones) are needed to recover the original signals. This constitutes the square case (J = D, where D is the input dimension of the data and J is the dimension of the model). Other cases of underdetermined (J > D) and overdetermined (J < D) have been investigated. That the ICA separation of mixed signals gives very good results are based on two assumptions and three effects of mixing source signals. Two assumptions: 1. The source signals are independent of each other. 2. The values in each source signal have non-gaussian distributions. Three effects of mixing source signals: 1. Independence: As per assumption 1, the source signals are independent; however, their signal mixtures are not. This is because the signal mixtures share the same source signals. 2. Normality: According to the Central Limit Theorem, the distribution of a sum of independent random variables with finite variance tends towards a gaussian distribution. Loosely speaking, a sum of two independent random variables usually has a distribution that is closer to gaussian than any of the two original variables. Here we consider the value of each signal as the random variable. 3. Complexity: The temporal complexity of any signal mixture is greater than that of its simplest constituent source signal. Those principles contribute to the basic establishment of ICA. If the signals we happen to extract from a set of mixtures are independent like sources signals, or have non-gaussian histograms like source signals, or have low complexity like source signals, then they must be source signals. ## Defining component independence ICA finds the independent components (also called factors, latent variables or sources) by maximizing the statistical independence of the estimated components. We may choose one of many ways to define independence, and this choice governs the form of the ICA algorithm. The two broadest definitions of independence for ICA are 1. Minimization of mutual information 2. Maximization of non-Gaussianity The Minimization-of-Mutual information (MMI) family of ICA algorithms uses measures like Kullback-Leibler Divergence and maximum entropy. The non-Gaussianity family of ICA algorithms, motivated by the central limit theorem, uses kurtosis and negentropy. Typical algorithms for ICA use centering (subtract the mean to create a zero mean signal), whitening (usually with the eigenvalue decomposition), and dimensionality reduction as preprocessing steps in order to simplify and reduce the complexity of the problem for the actual iterative algorithm. Whitening and dimension reduction can be achieved with principal component analysis or singular value decomposition. Whitening ensures that all dimensions are treated equally a priori before the algorithm is run. Well-known algorithms for ICA include infomax, FastICA, and JADE, but there are many others. In general, ICA cannot identify the actual number of source signals, a uniquely correct ordering of the source signals, nor the proper scaling (including sign) of the source signals. ICA is important to blind signal separation and has many practical applications. It is closely related to (or even a special case of) the search for a factorial code of the data, i.e., a new vector-valued representation of each data vector such that it gets uniquely encoded by the resulting code vector (loss-free coding), but the code components are statistically independent. ## Mathematical definitions Linear independent component analysis can be divided into noiseless and noisy cases, where noiseless ICA is a special case of noisy ICA. Nonlinear ICA should be considered as a separate case. ### General definition ### Generative model #### Linear noiseless ICA Given the model and realizations (samples) $x_{1},\ldots ,x_{N}$ of the random vector $x$ , the task is to estimate both the mixing matrix $A$ and the sources $s$ . This is done by adaptively calculating the $w$ vectors and setting up a cost function which either maximizes the nongaussianity of the calculated $s_{k}=(w^{T}*x)$ or minimizes the mutual information. In some cases, a priori knowledge of the probability distributions of the sources can be used in the cost function. The original sources $s$ can be recovered by multiplying the observed signals $x$ with the inverse of the mixing matrix $W=A^{-1}$ , also known as the unmixing matrix. Here it is assumed that the mixing matrix is square ($n=m$ ). If the number of basis vectors is greater than the dimensionality of the observed vectors, $n>m$ , the task is overcomplete but is still solvable with the pseudo inverse. #### Linear noisy ICA With the added assumption of zero-mean and uncorrelated Gaussian noise $n\sim N(0,\operatorname {diag} (\Sigma ))$ , the ICA model takes the form $x=As+n$ . #### Nonlinear ICA ### Identifiability The independent components are identifiable up to a permutation and scaling of the sources. This identifiability requires that: ## Binary independent component analysis A special variant of ICA is Binary ICA in which both signal sources and monitors are in binary form and observations from monitors are disjunctive mixtures of binary independent sources. The problem was shown to have applications in many domains including medical diagnosis, multi-cluster assignment, network tomography and internet resource management. $x_{i}=\bigvee _{j=1}^{n}(g_{ij}\wedge y_{j}),i=1,2,\ldots ,m,$ where $\wedge$ is Boolean AND and $\vee$ is Boolean OR. Note that noise is not explicitly modeled, rather, can be treated as independent sources. The above problem can be heuristically solved  by assuming variables are continuous and running FastICA on binary observation data to get the mixing matrix $G$ (real values), then apply round number techniques on $G$ to obtain the binary values. This approach has been shown to produce a highly inaccurate result.{{ safesubst:#invoke:Unsubst||date=__DATE__ |$B= {{#invoke:Category handler|main}}{{#invoke:Category handler|main}}[citation needed] }}

Another method is to use dynamic programming: recursively breaking the observation matrix $X$ into its sub-matrices and run the inference algorithm on these sub-matrices. The key observation which leads to this algorithm is the sub-matrix $X^{0}$ of $X$ where $x_{ij}=0,\forall j$ corresponds to the unbiased observation matrix of hidden components that do not have connection to the $i$ -th monitor. Experimental results from  show that this approach is accurate under moderate noise levels.

The Generalized Binary ICA framework  introduces a broader problem formulation which does not necessitate any knowledge on the generative model. In other words, this method attempts to decompose a source into its independent components (as much as possible, and without losing any information) with no prior assumption on the way it was generated. Although this problem appears quite complex, it can be accurately solved with a branch and bound search tree algorithm or tightly upper bounded with a single multiplication of a matrix with a vector.

## Methods for Blind Source Separation 

### Projection Pursuit 

Signal mixtures tend to have Gaussian probability density functions, and source signals tend to have non-Gaussian probability density functions. Each source signal can be extracted from a set of signal mixtures by taking the inner product of a weight vector and those signal mixtures where this inner product provides an orthogonal projection of the signal mixtures. The remaining challenge is finding such a weight vector. One type of method for doing so is projection pursuit.

Projection pursuit seek one projection at a time such that the extracted signal is as non-Gaussian as possible. This contrasts with ICA, which typically extracts M signals simultaneously from M signal mixtures, which requires estimating a M × M unmixing matrix. One practical advantage of projection pursuit over ICA is that fewer than M signals can be extracted if required, where each source signal is extracted from M signal mixtures using an M-element weight vector.

We can use kurtosis to recover the multiple source signal by finding the correct weight vectors with the use of projection pursuit.

The kurtosis of the probability density function of a signal, for a finite sample, is computed as

$K={\frac {\operatorname {E} [(\mathbf {y} -\mathbf {\overline {y}} )^{4}]}{(\operatorname {E} [(\mathbf {y} -\mathbf {\overline {y}} )^{2}])^{2}}}-3$ where $\mathbf {\overline {y}}$ is the sample mean of $\mathbf {y}$ , the extracted signals. The constant 3 ensures that Gaussian signals have zero kurtosis, Super-Gaussian signals have positive kurtosis, and Sub-Gaussian signals have negative kurtosis. The denominator is the variance of $\mathbf {y}$ , and ensures that the measured kurtosis takes account of signal variance. The goal of projection pursuit is to maximize the kurtosis, and make the extracted signal as non-normality as possible.

Using kurtosis as a measure of non-normality, we can now examine how the kurtosis of a signal $\mathbf {y} =\mathbf {w} ^{T}\mathbf {x}$ extracted from a set of M mixtures $\mathbf {x} =(x_{1},x_{2},\ldots ,x_{M})^{T}$ varies as the weight vector $\mathbf {w}$ is rotated around the origin. Given our assumption that each source signal $\mathbf {s}$ is super-gaussian we would expect:

For multiple source mixture signals, we can use kurtosis and Gram-Schmidt Orthogonalizaton (GSO) to recover the signals. Given M signal mixtures in an M-dimensional space, GSO project these data points onto an (M-1)-dimensional space by using the weight vector. We can guarantee the independence of the extracted signals with the use of GSO.

$\mathbf {x} =\mathbf {U} \mathbf {D} \mathbf {V} ^{T}$ $K={\frac {\operatorname {E} [\mathbf {y} ^{4}]}{(\operatorname {E} [\mathbf {y} ^{2}])^{2}}}-3=\operatorname {E} [(\mathbf {w} ^{T}\mathbf {z} )^{4}]-3.$ $\mathbf {w} _{new}=\mathbf {w} _{old}-\eta \operatorname {E} [\mathbf {z} (\mathbf {w} _{old}^{T}\mathbf {z} )^{3}].$ Another approach is using Negentropy instead of kurtosis. Negentropy is a robust method for kurtosis, as kurtosis is very sensitive to outliers. The negentropy method are based on an important property of gaussian distribution : a gaussian variable has the largest entropy among all random variables of equal variance. This is also the reason why we want to find the most nongaussian variables. A simple proof can be found in wiki page Differential entropy.

$J(x)=S(y)-S(x)\,$ y is a Gaussian random variable of the same covariance matrix as x

$S(x)=-\int p_{x}(u)\log p_{x}(u)du$ An approximation for negentropy is

$J(x)={\frac {1}{12}}(E(x^{3}))^{2}+{\frac {1}{48}}(kurt(x))^{2}$ A proof can be found on page 131 in the book Independent Component Analysis written by Aapo Hyvärinen, Juha Karhunen, and Erkki Oja (They contribute great works to ICA) This approximation also suffers the same problem as kurtosis (sensitive to outliers). Other approaches were developed.

$J(y)=k_{1}(E(G_{1}(y)))^{2}+k_{2}(E(G_{2}(y))-E(G_{2}(v))^{2}$ $G_{1}={\frac {1}{a_{1}}}\log(\cosh(a_{1}u))$ and $G_{2}=-\exp(-{\frac {u^{2}}{2}})$ ### Independent Component Analysis based on Infomax 

ICA is essentially a multivariate, parallel version of projection pursuit. Whereas projection pursuit extracts a series of signals one at a time from a set of M signal mixtures, ICA extracts M signals in parallel. This tends to make ICA more robust than projection pursuit.

The projection pursuit method use Gram-Schmidt Orthogonalizaton to ensure the independence of the extracted signal, while ICA use infomax and maximum likelihood estimate to ensure the independence of the extracted signal. The Non-Normality of the extracted signal is achieved by assigning an appropriate model, or prior, for the signal.

$H(\mathbf {Y} )=-{\frac {1}{N}}\sum _{t=1}^{N}\ln p_{\mathbf {Y} }(\mathbf {Y} ^{t})$ The joint pdf $p_{\mathbf {Y} }$ can be shown to be related to the joint pdf $p_{\mathbf {y} }$ of the extracted signals by the multivariate form:

$p_{\mathbf {Y} }(Y)={\frac {p_{\mathbf {y} }(\mathbf {y} )}{|{\frac {\partial \mathbf {Y} }{\partial \mathbf {y} }}|}}$ $p_{\mathbf {Y} }(Y)={\frac {p_{\mathbf {y} }(\mathbf {y} )}{|{\frac {\partial \mathbf {Y} }{\partial \mathbf {y} }}|}}={\frac {p_{\mathbf {y} }(\mathbf {y} )}{p_{\mathbf {s} }(\mathbf {y} )}}$ therefore,

$H(\mathbf {Y} )=-{\frac {1}{N}}\sum _{t=1}^{N}\ln {\frac {p_{\mathbf {y} }(\mathbf {y} )}{p_{\mathbf {s} }(\mathbf {y} )}}$ $p_{\mathbf {y} }(\mathbf {y} )={\frac {p_{\mathbf {x} }(\mathbf {x} )}{|{\frac {\partial \mathbf {y} }{\partial \mathbf {x} }}|}}={\frac {p_{\mathbf {x} }(\mathbf {x} )}{|\mathbf {W} |}}$ $H(\mathbf {Y} )=-{\frac {1}{N}}\sum _{t=1}^{N}\ln {\frac {p_{\mathbf {x} }(\mathbf {x} ^{t})}{|\mathbf {W} |p_{\mathbf {s} }(\mathbf {y} ^{t})}}$ so,

$H(\mathbf {Y} )={\frac {1}{N}}\sum _{t=1}^{N}\ln p_{\mathbf {s} }(\mathbf {y} ^{t})+\ln |\mathbf {W} |+H(\mathbf {x} )$ $h(\mathbf {Y} )={\frac {1}{N}}\sum _{t=1}^{N}\ln p_{\mathbf {s} }(\mathbf {y} ^{t})+\ln |\mathbf {W} |$ to achieve the independence of extracted signal.

If there are M marginal pdfs of the model joint pdf $p_{\mathbf {s} }$ are independent and use the commonly super-gaussian model pdf for the source signals $p_{\mathbf {s} }=(1-\tanh(\mathbf {s} )^{2})$ , then we have

$h(\mathbf {Y} )={\frac {1}{N}}\sum _{i=1}^{M}\sum _{t=1}^{N}\ln(1-\tanh(\mathbf {w_{i}^{T}x^{t}} )^{2})+\ln |\mathbf {W} |$ In the sum, given an observed signal mixture $\mathbf {x}$ , the corresponding set of extracted signals $\mathbf {y}$ and source signal model $p_{\mathbf {s} }=g'$ , we can find the optimal unmixing matrix $\mathbf {W}$ , and make the extracted signals independent and non-gaussian. Like the projection pursuit situation, we can use gradient descent method to find the optimal solution of the unmixing matrix.

### Independent Component Analysis based on Maximum Likelihood Estimation 

Maximum likelihood estimation (MLE) is a standard statistical tool for finding parameter values (e.g. the unmixing matrix $\mathbf {W}$ ) that provide the best fit of some data (e.g., the extracted signals $y$ ) to a given a model (e.g., the assumed joint probability density function (pdf) $p_{s}$ of source signals).

The ML “model” includes a specification of a pdf, which in this case is the pdf $p_{s}$ of the unknown source signals $s$ . Using ML ICA, the objective is to find an unmixing matrix that yields extracted signals $y=\mathbf {W} x$ with a joint pdf as similar as possible to the joint pdf $p_{s}$ of the unknown source signals $s$ .

MLE is thus based on the assumption that if the model pdf $p_{s}$ and the model parameters $\mathbf {A}$ are correct then a high probability should be obtained for the data $x$ that were actually observed. Conversely, if $\mathbf {A}$ is far from the correct parameter values then a low probability of the observed data would be expected.

Using MLE, we call the probability of the observed data for a given set of model parameter values (e.g., a pdf $p_{s}$ and a matrix $\mathbf {A}$ ) the likelihood of the model parameter values given the observed data.

Thus, if we wish to find a $\mathbf {W}$ that is most likely to have generated the observed mixtures $x$ from the unknown source signals $s$ with pdf $p_{s}$ then we need only find that $\mathbf {W}$ which maximizes the likelihood $\mathbf {L(W)}$ . The unmixing matrix that maximizes equation is known as the MLE of the optimal unmixing matrix.

It is common practice to use the log likelihood, because this is easier to evaluate. As the logarithm is a monotonic function, the $\mathbf {W}$ that maximizes the function $\mathbf {L(W)}$ also maximizes its logarithm $\ln \mathbf {L(W)}$ . This allows us to take the logarithm of equation above, which yields the log likelihood function

If we substitute a commonly used high-Kurtosis model pdf for the source signals $p_{s}=(1-\tanh(s)^{2})$ then we have

This matrix $\mathbf {W}$ that maximizes this function is the maximum likelihood estimation.

## History and background

The general framework for independent component analysis was introduced by Jeanny Herault and Christian Jutten in 1986 and was most clearly stated by Pierre Comon in 1994. In 1995, Tony Bell and Terry Sejnowski introduced a fast and efficient ICA algorithm based on infomax, a principle introduced by Ralph Linsker in 1987.

There are many algorithms available in the literature which do ICA. A largely used one, including in industrial applications, is the FastICA algorithm, developed by Aapo Hyvärinen and Erkki Oja, which uses the kurtosis as cost function. Other examples are rather related to blind source separation where a more general approach is used. For example, one can drop the independence assumption and separate mutually correlated signals, thus, statistically "dependent" signals. Sepp Hochreiter and Jürgen Schmidhuber showed how to obtain non-linear ICA or source separation as a by-product of regularization (1999). Their method does not require a priori knowledge about the number of independent sources..

## Applications

ICA can be extended to analyze non-physical signals. For instance, ICA has been applied to discover discussion topics on a bag of news list archives..... -->

Some ICA applications are listed below:

• Optical Imaging of neurons
• Neuronal spike sorting
• Face recognition
• Modeling receptive fields of primary visual neurons
• Predicting stock market prices
• mobile phone communications 
• color based detection of the ripeness of tomatoes
• ICA is used to remove artifacts, such as eye blinks, from EEG data.