Independent vector analysisΒΆ

Tags: sdf, coupled decompositions

In independent vector analysis (IVA), the goal is mixture identification or signal separation for a collection of disjoint but coupled data sets. Within the same data set, the source signals are assumed to be statistically independent, while between data sets, source signals may be correlated. IVA can thus be seen as a multi-set generalization of independent component analysis (ICA). More information can for instance be found in [4].

A Matlab implementation of this demo is given in the demo_iva.m file, which can be found in the demo folder of Tensorlab or downloaded here.

We consider two data sets \(A\) and \(B\), which we take of the same size for convenience. In each data set, the measured signals \(\vec{x}(t) \in \R^{K}\) can be written as an instantaneous mixture of \(R\) independent components \(\vec{s}(t) \in \R^{R}\):

\[\begin{split}\vec{x}_A(t) = \mat{M}_A \cdot \vec{s}_A(t) + \vec{n}_A(t),\\ \vec{x}_B(t) = \mat{M}_B \cdot \vec{s}_B(t) + \vec{n}_B(t),\end{split}\]

in which \(\mat{M}_A\) and \(\mat{M}_B \in \R^{K \times R}\) are the mixing matrices, \(\vec{n}_A(t)\) and \(\vec{n}_B(t) \in \R^{K}\) represent additive Gaussian noise, and the subscripts denote the data set.

We use the sinusoidal sources depicted in Figure 72, which are constructed as

L = 2;                              % number of data sets
frequencies = (1:R)*2*pi;
phases = (1:L)*pi/L/2;

S = cell(R,L);
for l = 1:L
    for r = 1:R
        S{r,l} = cos(frequencies(r)*t+phases(l));
    end
end

The empirical cross-correlation within each data set is set to zero by using sinusoids with the same phase but with frequencies that are integer multiples of each other. Over the different data sets, only the phase is different, which implies that sources having the same frequency will be empirically correlated.

sources

Figure 72: The sources in the two data sets.

The measured signals \(\vec{x}_A(t)\) and \(\vec{x}_B(t)\) can then be constructed as

SNR = 10;       % Signal to noise ratio (in dB)

for l = 1:L
    M{l} = randn(K,R);
    X{l} = M{l}*cell2mat(S(:,l));   % create mixture
    X{l} = noisy(X{l},SNR);         % add noise
end

If the source signals are temporally coherent, one can compute lagged covariances of the measured signals, both in and between the data sets, and stack them in tensors. For instance, the lagged covariance matrices of the signals from data set \(A\) can be stacked into a third-order tensor

\[\begin{split}(\ten{C}_{\vec{x}}^A)_{:,:,i} &= \mat{C}^A_{\vec{x}}(\tau_i)\\ &= E\left\lbrace\vec{x}_A(t)\vec{x}_A(t+\tau_i)^{\T}\right\rbrace\\ &= \mat{M}_A \cdot \mat{C}^A_{\vec{s}}(\tau_i) \cdot \mat{M}^{\T}_A.\end{split}\]

Because the source signals within each data set are statistically independent, the matrices \(\mat{C}^A_{\vec{s}}(\tau_i)\) are diagonal, as illustrated in Figure 73. The figure actually shows the canonical polyadic decomposition (CPD) of \(\ten{C}_{\vec{x}}^A\). For the second data set, a tensor \(\ten{C}_{\vec{x}}^B\) is obtained, which displays a similar low-rank CPD structure.

IVASOBI

Figure 73: Tensorizing the data by stacking lagged covariance matrices.

We also compute lagged covariances across data sets:

\[\begin{split}(\ten{C}_{\vec{x}}^{AB})_{:,:,i} &= \mat{C}^{AB}_{\vec{x}}(\tau_i)\\ &= E\left\lbrace\vec{x}_A(t)\vec{x}_B(t+\tau_i)^{\T}\right\rbrace\\ &= \mat{M}_A \cdot \mat{C}^{AB}_{\vec{s}}(\tau_i) \cdot \mat{M}_B^{\T}.\end{split}\]

Since there are only pair-wise correlations between the sources of data sets \(A\) and \(B\), the matrix \(\mat{C}^{AB}_{\vec{s}}(\tau_i)\) is diagonal as well. This implies that the tensor \(\ten{C}_{\vec{x}}^{AB}\) has a low-rank CPD structure with factor matrices that also appear in the decompositions of the tensors \(\ten{C}_{\vec{x}}^A\) and \(\ten{C}_{\vec{x}}^B\).

The three tensors \(\ten{C}_{\vec{x}}^A\), \(\ten{C}_{\vec{x}}^B\) and \(\ten{C}_{\vec{x}}^{AB}\) can now be jointly decomposed. Note that the number of tensors can be higher if more data sets are combined, but the principle remains the same. In the structured data fusion-framework of Tensorlab, the coupled decomposition can be computed as follows. First, the variables are initialized by

model = struct;
model.variables.M_A = randn(K,R);              % Mixing matrix data set A
model.variables.M_B = randn(K,R);              % Mixing matrix data set B
model.variables.D_AA = randn(numel(shifts),R); % Factor in third mode for xcovA
model.variables.D_AB = randn(numel(shifts),R); % Factor in third mode for xcovAB
model.variables.D_BB = randn(numel(shifts),R); % Factor in third mode for xcovB

Next, the variables are mapped to the factors that appear in the decompositions. No specific transformation is needed in this example.

model.factors.M_A = 'M_A';
model.factors.M_B = 'M_B';
model.factors.D_AA = 'D_AA';
model.factors.D_AB = 'D_AB';
model.factors.D_BB = 'D_BB';

Then the different data tensors are specified and the type of decomposition is chosen. At this stage, the coupling between the decompositions is implemented by specifying the same factor matrix in several decompositions:

model.factorizations.T11.data = xcovA;
model.factorizations.T11.cpd = {'M_A','M_A','D_AA'};
model.factorizations.T12.data = xcovAB;
model.factorizations.T12.cpd = {'M_A','M_B','D_AB'};
model.factorizations.T22.data = xcovB;
model.factorizations.T22.cpd = {'M_B','M_B','D_BB'};

The user can verify the syntax and the consistency of the model by using sdf_check, possibly with the print option:

sdf_check(model,'print')

Finally, the decompositions are computed using numerical optimization, for which we choose a nonlinear least squares method:

sol = sdf_nls(model,'Display',100,'MaxIter',200);

To verify the result, we can use the cpderr function, which takes care of the scaling and permutation ambiguities of the CPD:

disp('Error on first mixing matrix:')
cpderr(M{1},sol.factors.M_A)
disp('Error on second mixing matrix:')
cpderr(M{2},sol.factors.M_B)

This leads to relative errors of 0.0315 and 0.0576 on the first and second mixing matrix, respectively.