One Formula, Four Instruments

Matched filter, regularized inverse, beamformer, fusion

Four tasks

Four instruments, one idea

  • Radar. Is a known pulse buried in this noisy echo, and from which direction?
  • Spectrometer. Which substances, in what amounts, make up this spectrum?
  • Microphone array. Listen to one talker and suppress the one next to them.
  • Navigation. Fuse a satellite fix with an inertial sensor.

One answer A known signature, noise of known covariance, and one form for every answer: \[\mathbf R^{-1}\times\text{the known signature}.\]

In the notes The Matched Filter · Inverse Problems · Multichannel Estimation and Beamforming · Sensor Fusion

The matched filter

Is the template there?

Detecting a known template \[H_0:\ \mathbf X=\mathbf N\qquad\text{vs.}\qquad H_1:\ \mathbf X=\mathbf u+\mathbf N,\] with \(\mathbf u\) a known template and \(\mathbf N\) zero-mean noise of covariance \(\mathbf R_{\mathbf{NN}}\).

A face template and four noisy observations of equal energy: noise only, the same photo, another photo of the same person, and another person.

Week 0 asked: which of these contain the face?

Is the template there?

Detection as a signal flow: the template known, the noise random, and the question mark on the arrow.

Two roads to a detector: assume a distribution and ask for the optimal test, or assume nothing and ask for the best linear score.

Road 1: the Gaussian likelihood ratio

Gaussian noise, same covariance, different means: \[\begin{aligned}f(\mathbf x\mid H_0)&=c\,e^{-\frac12\mathbf x\herm\mathbf R_{\mathbf{NN}}^{-1}\mathbf x},\\ f(\mathbf x\mid H_1)&=c\,e^{-\frac12(\mathbf x-\mathbf u)\herm\mathbf R_{\mathbf{NN}}^{-1}(\mathbf x-\mathbf u)} .\end{aligned}\]

Gaussian log-likelihood ratio \[\begin{aligned}\ln\Lambda(\mathbf x)&=\ln f(\mathbf x\mid H_1)-\ln f(\mathbf x\mid H_0)\\ &=-\tfrac12(\mathbf x-\mathbf u)\herm\mathbf R_{\mathbf{NN}}^{-1}(\mathbf x-\mathbf u)+\tfrac12\mathbf x\herm\mathbf R_{\mathbf{NN}}^{-1}\mathbf x\\ &=\re\set{\mathbf u\herm\mathbf R_{\mathbf{NN}}^{-1}\mathbf x}-\tfrac12\,\mathbf u\herm\mathbf R_{\mathbf{NN}}^{-1}\mathbf u .\end{aligned}\]

Equal-density ellipses of the noise-only and the template-plus-noise Gaussians in two dimensions, with correlated noise; the template u joins the two centers, a distance d = sqrt(u^H R^-1 u) apart in the Mahalanobis metric.

Road 1: the Neyman–Pearson test

Threshold \(\ln\Lambda\); the constant \(\tfrac12\mathbf u\herm\mathbf R_{\mathbf{NN}}^{-1}\mathbf u\) moves into \(\gamma\):

Neyman–Pearson test \[\begin{aligned}&\text{decide } H_1 \text{ when}\quad T(\mathbf x)=\re\set{\mathbf w\herm\mathbf x}>\gamma,\\ &\mathbf w=\mathbf R_{\mathbf{NN}}^{-1}\mathbf u,\end{aligned}\] with \(\gamma\) set by the false-alarm rate. Optimal among all tests, and linear in the data.

The same two Gaussians with the weight vector w = R^-1 u, which points away from u, and the threshold line w^H x = gamma perpendicular to w.

Optimal and linear. Correlated noise turns \(\mathbf w\) away from \(\mathbf u\).

Road 2: the best linear score

No distribution assumed. Score with \(T=\mathbf w\herm\mathbf X\): \[\E{T\mid H_0}=0,\qquad\E{T\mid H_1}=\mathbf w\herm\mathbf u,\qquad\Var{T}=\mathbf w\herm\mathbf R_{\mathbf{NN}}\mathbf w\ \text{ under both}.\] The separation in noise units is the deflection: \[d^2(\mathbf w)=\frac{\abs{\E{T\mid H_1}-\E{T\mid H_0}}^2}{\Var{T\mid H_0}} =\frac{\abs{\mathbf w\herm\mathbf u}^2}{\mathbf w\herm\mathbf R_{\mathbf{NN}}\mathbf w}.\]

Whiten, then Cauchy–Schwarz. With \(\mathbf a=\mathbf R_{\mathbf{NN}}^{1/2}\mathbf w\) and \(\mathbf b=\mathbf R_{\mathbf{NN}}^{-1/2}\mathbf u\), \[d^2=\frac{\abs{\mathbf a\herm\mathbf b}^2}{\norm{\mathbf a}^2}\le\norm{\mathbf b}^2,\qquad\text{with equality when }\mathbf a\parallel\mathbf b .\]

Matched filter \[\mathbf w\opt\propto\mathbf R_{\mathbf{NN}}^{-1}\mathbf u,\qquad d^2_{\max}=\mathbf u\herm\mathbf R_{\mathbf{NN}}^{-1}\mathbf u .\]

Where the two roads meet, and where they part

Two roads

  • Gaussian noise: they agree. The log-likelihood ratio was already linear, so the best linear score is the best test.
  • Otherwise: they separate. The matched filter still maximizes deflection, but the optimal detector is some nonlinear function of the data.

Reading the weights. Independent noise, \(\mathbf R_{\mathbf{NN}}=\diag(\sigma_k^2)\): \(w_k=u_k/\sigma_k^2\), the template with each entry scaled down by its noise power.

Gaussianity collapses “best linear” into “best”, in detection exactly as in estimation.

In white noise: just correlate

With \(\mathbf R_{\mathbf{NN}}=R_0\mathbf I\) the weights are the template: \[T=\frac{1}{R_0}\ip{\mathbf X,\mathbf u},\qquad d^2_{\max}=\frac{E_u}{R_0},\qquad E_u=\norm{\mathbf u}^2 .\]

A known Barker-11 template and two noisy observations of it, one with the template and one without.

Processing gain

In white noise with per-entry signal-to-noise ratio \(\text{SNR}_1=\abs{u_k}^2/R_0\) over \(N\) entries, \[d^2_{\max}=\frac{E_u}{R_0}=N\cdot\text{SNR}_1 .\]

A template of \(N=1000\) entries at \(-20\) dB per entry reaches \(d^2=10\), that is \(+10\) dB: invisible in every entry, obvious in the score.

A 1000-entry template at -20 dB per-entry SNR, hidden in noise, and the matched-filter score over 2000 trials with and without it.

Energy, not shape

Two templates of identical energy and different shape, and the score under each hypothesis in white noise.

In white noise only the template’s energy matters. That is why radar can spread a pulse over a long quiet chirp, and why spread-spectrum signals can hide below the noise floor in every single entry.

In colored noise, shape matters again

Deflection d² = uᴴR⁻¹u for templates of unit energy pointing along each eigenvector of a colored noise covariance.

For fixed energy the best template points along the weakest noise eigenvector: put the signal where the noise is not. The same noise that swamps a template in its strong directions is harmless in its weak ones.

Back to the faces: the template is any vector

Detecting one face. Top: the template and four observations of equal energy. Bottom: the score, displaced by the correlation coefficient times the deflection; the ROCs; the template scored against all 400 portraits.

A direction is a vector

A plane wave field from direction theta_0 crossing a line array of M sensors X_1 to X_M; wavelength lambda marked.

A narrowband source at \(\theta_0\) reaches sensor \(m\) delayed by \(\tau_m(\theta_0)\); at one frequency \(\Omega\) a delay is a phase. One snapshot: \[\mathbf X=\mathbf a(\theta_0)\,S+\mathbf N .\]

\(S\): the source’s complex amplitude, one complex random variable per snapshot. It carries no direction; that lives in the steering vector \([\mathbf a(\theta)]_m=e^{-j\Omega\tau_m(\theta)}\), the pattern of phases a source at \(\theta\) imprints across the array.

A matched filter for a direction

With the direction known, \(\mathbf a(\theta_0)\) is a known template in noise: \(\mathbf w\propto\mathbf R_{\mathbf{NN}}^{-1}\mathbf a(\theta_0)\), \(Y=\mathbf w\herm\mathbf X\).

Left: a plane wave from theta_0 reaches the sensors at different phases. Right: delaying sensor m by tau_m(theta_0) moves it along the arrival direction onto one wavefront, so all sensors are in phase.

In white noise \(\mathbf w=\mathbf a(\theta_0)/M\): undo each sensor’s phase, then average. This is the delay-and-sum beamformer.

Delay-and-sum is the matched filter for a direction in white noise.

Aperture sets the beam width

Delay-and-sum beampatterns of half-wavelength arrays with 4, 8 and 16 sensors, steered to 0°.

The delay-and-sum main lobe narrows like \(1/M\): two sources closer than about one beam width look like one. Resolution is bought with aperture, or with a better covariance model.

Where is the source? A bank of matched filters

The array as a signal flow with the question mark inside the steering vector: the direction is sought.

Direction unknown: every candidate \(\theta\) offers its own template \(\mathbf a(\theta)\). For \(\mathbf X=\mathbf a(\theta)\,S+\mathbf N\) in Gaussian noise, fit \(S\) at each candidate angle and compare the likelihoods.

Maximum-likelihood direction \[P(\theta)=\frac{\abs{\mathbf a(\theta)\herm\mathbf R_{\mathbf{NN}}^{-1}\mathbf X}^2}{\mathbf a(\theta)\herm\mathbf R_{\mathbf{NN}}^{-1}\mathbf a(\theta)},\qquad \widehat\theta=\argmax_\theta P(\theta).\]

Whiten, correlate with each steering vector, normalize. In white noise: the Bartlett scan \(\abs{\mathbf a(\theta)\herm\mathbf X}^2\), on average \(\mathbf a(\theta)\herm\mathbf R_{\mathbf{XX}}\mathbf a(\theta)\).

Detection thresholds one matched filter. Parameter estimation runs a family of matched filters and returns the argmax.

Steering vectors of a real scene

The phase of \([\mathbf a(\theta)]_m\) is the extra path of sensor \(\mathbf p_m\) along the arrival direction, in wavelengths.

Twelve sensors at random positions and three plane waves; the phase of each steering vector entry against the extra path; the three steering vectors on the unit circle; and the scan a(theta)^H R_XX a(theta).

The inverse problem

Backwards through a known model

A cause \(\mathbf X\) produces an effect through a known forward operator: \[\mathbf Y=\mathbf A\mathbf X+\mathbf N\qquad(\text{a blur, a mixture, a channel, a projection}).\]

The forward model as a signal flow: operator known, noise random, effect observed, and the cause at the tail of the arrow sought.

Inverse-problem letters: here the data are \(\mathbf Y\) and the cause \(\mathbf X\) is sought; the marks on the flow say which is which.

One model, many problems

Denoising, deblurring, super-resolution, demosaicing, inpainting, tomography: one \(\mathbf A\) each. Its shape counts the measurements; its pattern says what each one sees.

The regularized inverse

Give the cause a prior: \(\mathbf X\) is random with mean \(\mathbf m_0\) and covariance \(\mathbf P_0\). The noise \(\mathbf N\) has zero mean and covariance \(\mathbf R_{\mathbf{NN}}\), and is independent of \(\mathbf X\). The data are \(\mathbf Y=\mathbf A\mathbf X+\mathbf N\).

Regularized inverse The affine estimator \(\widehat{\mathbf X}=\mathbf K\mathbf Y+\mathbf b\) with \(\mathbf K,\mathbf b\) minimizing \(\E{\norm{\mathbf X-\widehat{\mathbf X}}^2}\): \[\begin{aligned}\widehat{\mathbf X}&=\mathbf m_0+\mathbf C_{\mathbf{XY}}\mathbf C_{\mathbf{YY}}^{-1}\paren{\mathbf Y-\E{\mathbf Y}}\\ &=\mathbf m_0+\mathbf P_0\mathbf A\herm\paren{\mathbf A\mathbf P_0\mathbf A\herm+\mathbf R_{\mathbf{NN}}}^{-1}(\mathbf Y-\mathbf A\mathbf m_0),\end{aligned}\] with error covariance \(\mathbf C_{\mathbf{EE}}=\mathbf P_0-\mathbf C_{\mathbf{XY}}\mathbf C_{\mathbf{YY}}^{-1}\mathbf C_{\mathbf{XY}}\herm\).

Proof. Only the moments enter. \(\mathbf N\) has zero mean and is independent of \(\mathbf X\), so \[\E{\mathbf Y}=\mathbf A\mathbf m_0,\qquad \mathbf C_{\mathbf{XY}}=\E{(\mathbf X-\mathbf m_0)(\mathbf Y-\mathbf A\mathbf m_0)\herm}=\mathbf P_0\mathbf A\herm,\qquad \mathbf C_{\mathbf{YY}}=\mathbf A\mathbf P_0\mathbf A\herm+\mathbf R_{\mathbf{NN}} .\]

Information form: precisions add

The same estimator has a second form, which inverts a matrix the size of the unknown, not of the data:

Information form \[\mathbf P^{-1}=\mathbf P_0^{-1}+\mathbf A\herm \mathbf R_{\mathbf{NN}}^{-1}\mathbf A,\qquad \widehat{\mathbf X}=\mathbf P\paren{\mathbf P_0^{-1}\mathbf m_0+\mathbf A\herm \mathbf R_{\mathbf{NN}}^{-1}\mathbf Y},\] and \(\mathbf P=\mathbf C_{\mathbf{EE}}\) is the error covariance.

Prior precision plus data precision. The data enter weighted by \(\mathbf R_{\mathbf{NN}}^{-1}\) because that is their precision; the prior counts as one more measurement.

Flat prior: weighted least squares

Let \(\mathbf P_0^{-1}\to\mathbf 0\): \(\mathbf m_0\) drops out, and \[\widehat{\mathbf X}=(\mathbf A\herm \mathbf R_{\mathbf{NN}}^{-1}\mathbf A)^{-1}\mathbf A\herm \mathbf R_{\mathbf{NN}}^{-1}\mathbf Y,\qquad \mathbf C_{\mathbf{EE}}=(\mathbf A\herm \mathbf R_{\mathbf{NN}}^{-1}\mathbf A)^{-1}.\] Isotropic noise, \(\mathbf R_{\mathbf{NN}}=\sigma^2\mathbf I\): \(\widehat{\mathbf X}=(\mathbf A\herm\mathbf A)^{-1}\mathbf A\herm\mathbf Y=\mathbf A^{+}\mathbf Y\), the pseudo-inverse.

Information form: proof

The key statement: the gain \(\mathbf C_{\mathbf{XY}}\mathbf C_{\mathbf{YY}}^{-1}\) has two forms, \[\mathbf P_0\mathbf A\herm\paren{\mathbf A\mathbf P_0\mathbf A\herm+\mathbf R_{\mathbf{NN}}}^{-1} =\paren{\mathbf P_0^{-1}+\mathbf A\herm \mathbf R_{\mathbf{NN}}^{-1}\mathbf A}^{-1}\mathbf A\herm \mathbf R_{\mathbf{NN}}^{-1}=\mathbf P\mathbf A\herm \mathbf R_{\mathbf{NN}}^{-1}.\]

Push-through. Multiply out, then multiply by \(\mathbf P\) on the left and by \(\mathbf C_{\mathbf{YY}}^{-1}\) on the right: \[\paren{\mathbf P_0^{-1}+\mathbf A\herm \mathbf R_{\mathbf{NN}}^{-1}\mathbf A}\mathbf P_0\mathbf A\herm=\mathbf A\herm+\mathbf A\herm \mathbf R_{\mathbf{NN}}^{-1}\mathbf A\mathbf P_0\mathbf A\herm =\mathbf A\herm \mathbf R_{\mathbf{NN}}^{-1}\paren{\mathbf A\mathbf P_0\mathbf A\herm+\mathbf R_{\mathbf{NN}}}.\]

Estimate. Into the regularized inverse: \[\begin{aligned}\widehat{\mathbf X}&=\mathbf m_0+\mathbf P\mathbf A\herm \mathbf R_{\mathbf{NN}}^{-1}(\mathbf Y-\mathbf A\mathbf m_0) =\mathbf P\paren{\paren{\mathbf P^{-1}-\mathbf A\herm \mathbf R_{\mathbf{NN}}^{-1}\mathbf A}\mathbf m_0+\mathbf A\herm \mathbf R_{\mathbf{NN}}^{-1}\mathbf Y}\\ &=\mathbf P\paren{\mathbf P_0^{-1}\mathbf m_0+\mathbf A\herm \mathbf R_{\mathbf{NN}}^{-1}\mathbf Y}.\end{aligned}\]

Error covariance. Likewise: \[\mathbf C_{\mathbf{EE}}=\mathbf P_0-\mathbf P\mathbf A\herm \mathbf R_{\mathbf{NN}}^{-1}\mathbf A\mathbf P_0 =\mathbf P\paren{\mathbf P^{-1}-\mathbf A\herm \mathbf R_{\mathbf{NN}}^{-1}\mathbf A}\mathbf P_0=\mathbf P .\]

Only means and covariances entered: no Gaussian needed.

Penalized weighted least squares

The same answer without probability: fit the data in the noise metric, stay near \(\mathbf m_0\) in the prior metric, \[J(\mathbf x)=(\mathbf Y-\mathbf A\mathbf x)\herm \mathbf R_{\mathbf{NN}}^{-1}(\mathbf Y-\mathbf A\mathbf x)+(\mathbf x-\mathbf m_0)\herm\mathbf P_0^{-1}(\mathbf x-\mathbf m_0).\]

Gradient. Treat \(\mathbf x\) and \(\mathbf x\conj\) as independent (Wirtinger) and differentiate both terms: \[\begin{aligned}\frac{\partial J}{\partial\mathbf x\conj}&=-\mathbf A\herm \mathbf R_{\mathbf{NN}}^{-1}(\mathbf Y-\mathbf A\mathbf x)+\mathbf P_0^{-1}(\mathbf x-\mathbf m_0)=\mathbf 0\\ \Longleftrightarrow\quad\paren{\mathbf P_0^{-1}+\mathbf A\herm \mathbf R_{\mathbf{NN}}^{-1}\mathbf A}\widehat{\mathbf X}&=\mathbf P_0^{-1}\mathbf m_0+\mathbf A\herm \mathbf R_{\mathbf{NN}}^{-1}\mathbf Y,\qquad\text{the information form.}\end{aligned}\]

Without the penalty, \(J\) is plain least squares after whitening, \(\norm{\widetilde{\mathbf Y}-\widetilde{\mathbf A}\mathbf x}^2\) with \(\widetilde{\mathbf Y}=\mathbf R_{\mathbf{NN}}^{-1/2}\mathbf Y\) and \(\widetilde{\mathbf A}=\mathbf R_{\mathbf{NN}}^{-1/2}\mathbf A\). Its residual is orthogonal to the columns of \(\widetilde{\mathbf A}\): \[\widetilde{\mathbf A}\herm\paren{\widetilde{\mathbf Y}-\widetilde{\mathbf A}\widehat{\mathbf X}}=\mathbf 0 \quad\Longleftrightarrow\quad \mathbf A\herm \mathbf R_{\mathbf{NN}}^{-1}\mathbf A\,\widehat{\mathbf X}=\mathbf A\herm \mathbf R_{\mathbf{NN}}^{-1}\mathbf Y ,\qquad\text{weighted least squares.}\]

Without the penalty it needs \(\mathbf A\herm \mathbf R_{\mathbf{NN}}^{-1}\mathbf A\) invertible, \(\mathbf A\) tall and full rank: the problem is well posed.

One formula, three claims

Three readings of the regularized inverse \[\begin{aligned}\widehat{\mathbf X}&=\underbrace{\arg\min_{\mathbf x}J(\mathbf x)}_{\text{penalized least squares}}=\underbrace{\mathbf m_0+\mathbf C_{\mathbf{XY}}\mathbf C_{\mathbf{YY}}^{-1}(\mathbf Y-\mathbf A\mathbf m_0)}_{\text{best affine estimator}}\\ &\overset{\text{Gaussian}}{=}\underbrace{\arg\max_{\mathbf x}f_{\mathbf X\mid\mathbf Y}(\mathbf x\mid\mathbf Y)}_{\text{MAP}}=\underbrace{\E{\mathbf X\mid\mathbf Y}}_{\text{MMSE}}\end{aligned}\]

  • Penalized least squares: no probability at all; \(\mathbf R_{\mathbf{NN}}^{-1}\) and \(\mathbf P_0^{-1}\) are weighting metrics.
  • Best affine estimator: needs only means and covariances; optimal among affine \(\mathbf K\mathbf Y+\mathbf b\) only.
  • MAP and MMSE: need a Gaussian prior and Gaussian noise. Then \(-2\ln f_{\mathbf X\mid\mathbf Y}(\mathbf x\mid\mathbf Y)=J(\mathbf x)+\text{const}\), and the posterior is Gaussian, so its mode is its mean.

Under joint Gaussianity the formula is optimal among all estimators. Away from it, it is still the best affine one.

Denoising: the simplest forward model

\(\mathbf A=\mathbf I\): observe the signal itself in white noise, \(\mathbf Y=\mathbf X+\mathbf N\). Then \(\widehat{\mathbf X}=\mathbf C_{\mathbf{XX}}\paren{\mathbf C_{\mathbf{XX}}+\sigma_N^2\mathbf I}^{-1}\mathbf Y\), and in the KLT coordinates of \(\mathbf C_{\mathbf{XX}}\) it applies independent gains \[g_k=\frac{\lambda_k}{\lambda_k+\sigma_N^2}\in(0,1).\]

Left: the denoising gain against each component's SNR. Right: the noise floor as a lift of every eigenvalue.

Undoing a decay

The sensor attenuates: \(Y[k]=a_kX[k]+N[k]\) with \(a_k=e^{-k/\tau}\), so \(\mathbf A=\operatorname{diag}(a_0,\dots,a_{K-1})\): square, invertible. Signal \(X[k]=\sin(\Omega_0k)\), white noise \(\sigma_N=0.02\). The plain inverse multiplies by the growth \(e^{k/\tau}\): \[\paren{\mathbf A^{-1}\mathbf Y}[k]=X[k]+e^{k/\tau}N[k],\qquad\text{noise standard deviation }\sigma_Ne^{k/\tau}.\]

A sinusoid through an exponentially decaying sensor with a little noise; dividing by the decay recovers the start and blows the noise up towards the end.

Undoing a decay with a prior

Prior \(\mathbf m_0=\mathbf 0\), \(\mathbf P_0=\sigma_X^2\mathbf I\) (\(\sigma_X^2=\tfrac12\), the sinusoid’s power). \(\mathbf A\) is diagonal: one scalar problem per sample, \[\widehat X[k]=\frac{a_k\sigma_X^2}{a_k^2\sigma_X^2+\sigma_N^2}\,Y[k]=g_k\,\frac{Y[k]}{a_k},\qquad g_k=\frac{\mathrm{SNR}_k}{\mathrm{SNR}_k+1},\quad\mathrm{SNR}_k=\frac{a_k^2\sigma_X^2}{\sigma_N^2}.\]

Left: the per-sample gain falls from one to zero where the decayed signal sinks below the noise. Right: the regularized estimate follows the sinusoid and then shrinks to zero instead of exploding.

The plain inverse, damped by the denoising gain at each sample’s SNR: where the signal is buried, \(\widehat X[k]\) falls back to the prior mean \(0\).

Deblurring a signal

An ill-posed \(\mathbf A\): a Gaussian blur (width 6 samples), 1% noise, undone with and without a prior.

A signal seen through a blur with 1% noise. Naive inversion is worse than doing nothing; the same inversion with a prior recovers the signal.

Without a prior the inverse amplifies what the blur left in its weak directions: noise. The prior’s \(\mathbf P_0^{-1}\) in \(\mathbf P^{-1}\) lifts exactly those directions; choosing it well is the hard part.

How much regularization?

With \(\mathbf m_0=\mathbf 0\), \(\mathbf P_0=\delta^{-1}\mathbf I\), \(\mathbf R_{\mathbf{NN}}=\mathbf I\) the regularized inverse is ridge regression, \((\mathbf A\herm\mathbf A+\delta\mathbf I)^{-1}\mathbf A\herm\mathbf Y\); \(\delta\) sets how strongly the prior pulls.

Reconstruction error of the blurred signal against the ridge parameter δ, averaged over 50 noise draws.

Too little: the noise explodes. Too much: the signal is flattened. The best \(\delta\) is the noise-to-signal ratio of the prior, \(\sigma_N^2/\sigma_X^2\) per component, which the probabilistic reading hands you and the purely deterministic one does not.

Unmixing: a hyperspectral pixel

One pixel, \(412\) channels (\(0.4\)–\(2.5\,\mu\)m), three materials: \(\mathbf Y=\mathbf a_1X_1+\mathbf a_2X_2+\mathbf a_3X_3+\mathbf N=\mathbf A\mathbf X+\mathbf N\), with \(\mathbf a_k\) laboratory reflectance spectra, \(X_k\) area fractions, \(\sigma_N=0.1\) per channel. Prior for the regularized inverse: \(\mathbf m_0=\tfrac13\mathbf 1\), \(\mathbf P_0=0.1^2\,\mathbf I\).

Left: sunlight reflected by one ground pixel of grass, kaolinite and hematite to a satellite. Middle: the three spectra scaled by their fractions and the noisy pixel. Right: true fractions and the estimates without and with a prior, with one-standard-deviation error bars.

The spectra are \(32\) to \(43^\circ\) apart: \(\mathbf A\tran\mathbf A\) is well conditioned, least squares alone gets the fractions, and the prior barely changes them. Error bars: \(\pm\) one standard deviation, from \(\mathbf C_{\mathbf{EE}}\).

When is the problem hard? When the signatures look alike

Replace hematite by a second clay, montmorillonite, \(4^\circ\) from kaolinite. Least squares is unbiased with \(\mathbf C_{\mathbf{EE}}=\sigma_N^2(\mathbf A\tran\mathbf A)^{-1}\): its error is largest along the eigenvector of the smallest eigenvalue \(\lambda_{\min}\) of \(\mathbf A\tran\mathbf A\), with variance \(\sigma_N^2/\lambda_{\min}\).

Left: reflectance spectra of grass, kaolinite and montmorillonite; the two clays are nearly alike. Right: true fractions and the estimates without and with a prior; without a prior the two clay fractions have wide error bars, their sum a narrow one.

The sum \(X_2+X_3\) stays sharp, the split does not. The prior cuts the spread about threefold and pays with a bias towards \(\tfrac13\). How hard the problem is can be read off \(\mathbf A\) before any data arrive.

Inpainting: half a face

\(\mathbf A\) keeps the left half: 2048 rows of the identity, so \(\mathbf Y=\mathbf A\mathbf X+\mathbf N\) holds 2048 measurements of 4096 unknowns, with a little noise (\(\sigma_N=0.02\)). Prior: mean \(\mathbf m_0\) and covariance \(\mathbf P_0\) of 320 training faces, plus a white floor \(\bar\lambda\mathbf I\).

A held-out face, the data with its right half unobserved (the pseudo-inverse leaves it at zero), the regularized inverse with a face prior, and the error.

\(\mathbf A\herm\mathbf A\) is singular: the data say nothing about the right half, and \(\mathbf A^{+}\mathbf Y\) leaves it at zero. The prior fills it: \(\mathbf P_0\mathbf A\herm\) carries what the left half says across the mirror line. Week 5’s conditional mean, read as an inverse problem.

Deblurring a face

\(\mathbf A\) blurs rows and columns with a Gaussian of width 2 pixels, \(\mathbf A=\mathbf B\otimes\mathbf B\): square, \(4096\times4096\), invertible. Noise \(\sigma_N=0.01\). Same face prior as before.

A held-out face, blurred with 1% noise; the plain inverse is amplified noise, ridge regularization recovers a grainy face, and the face prior recovers it sharply.

Square and invertible, and still ill posed: \(\mathbf A^{-1}\mathbf Y\) is the noise divided by the blur’s smallest singular values. Any prior tames it; a prior that knows faces puts back what the blur took.

The beamformer

What was sent? The inverse problem with one column

The array as a signal flow with the direction known and the source waveform sought.

Now the direction is known and the waveform is sought. Give \(S\) zero mean and power \(\sigma_S^2\); \(\mathbf N\) holds noise and interference. The information form with \(\mathbf A=\mathbf a(\theta_0)\) and \(\mathbf P_0=\sigma_S^2\) inverts a scalar:

Regularized inverse, one column \[\widehat S=\frac{\mathbf a\herm\mathbf R_{\mathbf{NN}}^{-1}\mathbf X}{\sigma_S^{-2}+\mathbf a\herm\mathbf R_{\mathbf{NN}}^{-1}\mathbf a},\qquad C_{EE}=\frac{1}{\sigma_S^{-2}+\mathbf a\herm\mathbf R_{\mathbf{NN}}^{-1}\mathbf a} .\]

White noise, \(\mathbf R_{\mathbf{NN}}=\sigma^2\mathbf I\): \(\widehat S=\dfrac{\mathbf a\herm\mathbf X}{M+\sigma^2/\sigma_S^2}\), delay-and-sum \(\mathbf a\herm\mathbf X/M\) shrunk toward zero. Flat prior, \(\sigma_S^2\to\infty\): delay-and-sum itself.

Minimum variance, distortionless

A different starting point: no model of the data, only a specification. Pass the look direction with gain one, let through as little power as possible: \[\min_{\mathbf w}\ \mathbf w\herm\mathbf R_{\mathbf{XX}}\mathbf w\quad\text{subject to}\quad\mathbf w\herm\mathbf a(\theta_0)=1 .\]

Whiten, then Cauchy–Schwarz: \(\mathbf v=\mathbf R_{\mathbf{XX}}^{1/2}\mathbf w\), \(\mathbf b=\mathbf R_{\mathbf{XX}}^{-1/2}\mathbf a(\theta_0)\), constraint \(\mathbf v\herm\mathbf b=1\), \[1=\abs{\mathbf v\herm\mathbf b}^2\le\norm{\mathbf v}^2\norm{\mathbf b}^2\ \Rightarrow\ \norm{\mathbf v}^2\ge1/\norm{\mathbf b}^2,\quad\text{equality iff }\mathbf v\parallel\mathbf b .\]

MVDR beamformer \[\mathbf w_{\text{MVDR}}=\frac{\mathbf R_{\mathbf{XX}}^{-1}\mathbf a(\theta_0)}{\mathbf a(\theta_0)\herm\mathbf R_{\mathbf{XX}}^{-1}\mathbf a(\theta_0)},\qquad P_{\min}(\theta_0)=\frac{1}{\mathbf a(\theta_0)\herm\mathbf R_{\mathbf{XX}}^{-1}\mathbf a(\theta_0)} .\]

\(\mathbf R_{\mathbf{XX}}\) is measured, interference included, and no noise model is needed. An interferer inflates \(\mathbf R_{\mathbf{XX}}\) along its own steering vector, and \(\mathbf R_{\mathbf{XX}}^{-1}\) suppresses exactly there.

MVDR on the scene

MVDR on the three-source scene, the middle source as target. Top: its response pattern against delay-and-sum. Bottom left: the Capon spectrum against the matched-filter scan. Bottom right: the target's envelope and what each beamformer delivers.

→ Demo: delay-and-sum against MVDR, and what a short record does

If the model holds: MVDR is the inverse problem

Suppose the data do follow \(\mathbf X=\mathbf a S+\mathbf N\), the source exactly along \(\mathbf a=\mathbf a(\theta_0)\) and uncorrelated with \(\mathbf N\). Then \(\mathbf R_{\mathbf{XX}}=\sigma_S^2\mathbf a\mathbf a\herm+\mathbf R_{\mathbf{NN}}\), and on the constraint \(\mathbf w\herm\mathbf a=1\) \[\mathbf w\herm\mathbf R_{\mathbf{XX}}\mathbf w=\sigma_S^2\abs{\mathbf w\herm\mathbf a}^2+\mathbf w\herm\mathbf R_{\mathbf{NN}}\mathbf w=\sigma_S^2+\mathbf w\herm\mathbf R_{\mathbf{NN}}\mathbf w .\] The costs differ by a constant: the same minimizer, and the flat-prior estimate of the first slide, \[\widehat S_{\text{MVDR}}=\frac{\mathbf a\herm\mathbf R_{\mathbf{NN}}^{-1}\mathbf X}{\mathbf a\herm\mathbf R_{\mathbf{NN}}^{-1}\mathbf a}\qquad\text{(weighted least squares).}\]

With the prior: the regularized inverse is MVDR, then a scalar shrinkage, \[\widehat S=\frac{\text{SNR}}{1+\text{SNR}}\,\widehat S_{\text{MVDR}},\qquad\text{SNR}=\sigma_S^2\,\mathbf a\herm\mathbf R_{\mathbf{NN}}^{-1}\mathbf a,\] the output SNR of MVDR: source power over the output noise power \(1/\mathbf a\herm\mathbf R_{\mathbf{NN}}^{-1}\mathbf a\).

When the model is wrong, the two part. A look direction \(2^\circ\) off: MVDR keeps gain one along \(\mathbf a(\theta_0)\) and suppresses the real source.

Several constraints: pass one direction, null another

LCMV beamformer Minimize \(\mathbf w\herm\mathbf R_{\mathbf{XX}}\mathbf w\) subject to \(\mathbf C\herm\mathbf w=\mathbf g\): \[\mathbf w_{\text{LCMV}}=\mathbf R_{\mathbf{XX}}^{-1}\mathbf C\paren{\mathbf C\herm\mathbf R_{\mathbf{XX}}^{-1}\mathbf C}^{-1}\mathbf g .\]

Proof. Whiten, \(\mathbf v=\mathbf R_{\mathbf{XX}}^{1/2}\mathbf w\), \(\mathbf B=\mathbf R_{\mathbf{XX}}^{-1/2}\mathbf C\): \(\quad\min_{\mathbf v}\norm{\mathbf v}^2\) subject to \(\mathbf B\herm\mathbf v=\mathbf g\).

1. Project. Split \(\mathbf v=\mathbf B\mathbf c+\mathbf v_\perp\): its projection onto the columns of \(\mathbf B\), plus a rest with \(\mathbf B\herm\mathbf v_\perp=\mathbf 0\). The constraint does not see \(\mathbf v_\perp\), and in the norm the cross term \(\mathbf c\herm\mathbf B\herm\mathbf v_\perp\) vanishes: \[\mathbf B\herm\mathbf v=\mathbf B\herm\mathbf B\,\mathbf c=\mathbf g,\qquad \norm{\mathbf v}^2=\norm{\mathbf B\mathbf c}^2+\norm{\mathbf v_\perp}^2 .\]

2. Solve and unwhiten. \(\mathbf v_\perp\) only costs power, so the minimum has \(\mathbf v=\mathbf B\mathbf c\): \[\mathbf c=\paren{\mathbf B\herm\mathbf B}^{-1}\mathbf g=\paren{\mathbf C\herm\mathbf R_{\mathbf{XX}}^{-1}\mathbf C}^{-1}\mathbf g,\qquad \mathbf w=\mathbf R_{\mathbf{XX}}^{-1/2}\mathbf B\,\mathbf c=\mathbf R_{\mathbf{XX}}^{-1}\mathbf C\,\mathbf c .\]

With \(\mathbf C=\mathbf a(\theta_0)\), \(\mathbf g=1\): MVDR again. Each constraint costs one of the \(M\) degrees of freedom, and is a specification, not a model: nulls, gain patterns, a widened main beam.

Sensor fusion

Several sensors, partial views

Estimation letters, as in the beamformer: \(\mathbf X_i\) the readings, \(\mathbf Y\) the unknown. \[\mathbf X_i=\mathbf H_i\mathbf Y+\mathbf N_i,\qquad i=1,\dots,M,\] independent noises \(\mathbf R_i\), and a prior \((\mathbf m_0,\mathbf P_0)\).

One sought cause, several known views of it, each with its own noise.

A direction no \(\mathbf H_i\) looks along gets certainty from no sensor.

Precisions add

Stack the sensors, \(\mathbf X=\mathbf H\mathbf Y+\mathbf N\) with \(\mathbf H=[\mathbf H_1;\dots;\mathbf H_M]\) and \(\mathbf R=\diag(\mathbf R_1,\dots,\mathbf R_M)\): one tall inverse problem. In its information form the block-diagonal \(\mathbf R\) splits \(\mathbf H\herm\mathbf R^{-1}\mathbf H\) into a sum over sensors:

Fused estimate \[\mathbf P^{-1}=\mathbf P_0^{-1}+\sum_i\mathbf H_i\herm\mathbf R_i^{-1}\mathbf H_i ,\qquad \widehat{\mathbf Y}=\mathbf P\paren{\mathbf P_0^{-1}\mathbf m_0+\sum_i\mathbf H_i\herm\mathbf R_i^{-1}\mathbf X_i}.\]

The scalar fusion of the Bayesian week (two sensors, precisions \(1/\sigma_i^2\)), promoted to matrices: precisions add, the prior is one more measurement, and each sensor is weighted by \(\mathbf R_i^{-1}\) times its signature \(\mathbf H_i\).

Fusing three views of a face

One held-out face \(\mathbf Y\). \(\mathbf H_1\) blurs (Gaussian, width 3 px, \(\sigma_1=0.05\)), \(\mathbf H_2\) keeps the top 40% (\(\sigma_2=0.02\)), \(\mathbf H_3\) differences neighbouring pixels from left to right, a high-pass (\(\sigma_3=0.01\)). Prior: the mean face, \(\mathbf P_0=\bar\lambda\mathbf I\), so every detail must come from the sensors.

Top: a face seen blurred, cropped to its top part, and as horizontal differences (edges), and the estimate fusing all three. Bottom: the estimate from each sensor alone, and the true face.

The Fisher information of the sensors

Treat the unknown as a fixed parameter \(\mathbf y\). The score of the scalar week becomes a gradient, and the Fisher information a matrix: \[\mathbf s=\nabla_{\mathbf y}\ln f(\mathbf X;\mathbf y),\qquad\mathbf I=\E{\mathbf s\mathbf s\herm} .\]

With Gaussian noise, \(\ln f=c-\tfrac12\sum_i(\mathbf X_i-\mathbf H_i\mathbf y)\herm\mathbf R_i^{-1}(\mathbf X_i-\mathbf H_i\mathbf y)\); the noises are independent, so no cross terms survive: \[\mathbf s=\sum_i\mathbf H_i\herm\mathbf R_i^{-1}(\mathbf X_i-\mathbf H_i\mathbf y)=\sum_i\mathbf H_i\herm\mathbf R_i^{-1}\mathbf N_i ,\] \[\mathbf I=\sum_i\mathbf H_i\herm\mathbf R_i^{-1}\E{\mathbf N_i\mathbf N_i\herm}\mathbf R_i^{-1}\mathbf H_i=\sum_i\mathbf H_i\herm\mathbf R_i^{-1}\mathbf H_i .\]

Precision adds information

\(\mathbf P^{-1}=\mathbf P_0^{-1}+\mathbf I\): posterior precision is prior precision plus Fisher information. Without a prior the fused covariance is the Cramér–Rao bound, attained.

Complementary sensors

Two sensors, each measuring one direction well and the other hardly at all (2σ ellipses), and their fusion.

Each \(\mathbf H_i\herm\mathbf R_i^{-1}\mathbf H_i\) is rank one: certainty only along the direction that sensor sees. Neither alone pins the unknown down; together they do.

→ Demo: two directional sensors, precisions that add, and sequential fusion

Satellite and inertial navigation

Fusing complementary sensors Unknown \(\mathbf Y=[P,V]\tran\). Satellite fix: position only, \(\mathbf H_1=[1\ 0]\). Inertial unit: velocity only, \(\mathbf H_2=[0\ 1]\). No prior: \[\begin{aligned}\mathbf P^{-1}&=\begin{bmatrix}\sigma_g^{-2}&0\\0&0\end{bmatrix}+\begin{bmatrix}0&0\\0&\sigma_a^{-2}\end{bmatrix}\\ &=\diag\paren{\sigma_g^{-2},\sigma_a^{-2}} .\end{aligned}\]

Position error against velocity error: the satellite pins position only (a vertical band), the inertial unit velocity only (a horizontal band), and the fused estimate is the small ellipse where they cross.

Each summand is singular; the sum is not. When instruments fail in different directions, the information form weighs each by what it sees: never “average them”.

The one formula

instrument known signature answer
matched filter template \(\mathbf u\) \(\mathbf R_{\mathbf{NN}}^{-1}\mathbf u\)
regularized inverse forward model \(\mathbf A\) \(\mathbf P_0\mathbf A\herm(\mathbf A\mathbf P_0\mathbf A\herm+\mathbf R_{\mathbf{NN}})^{-1}\)
MVDR beamformer steering vector \(\mathbf a(\theta_0)\) \(\mathbf R_{\mathbf{XX}}^{-1}\mathbf a\,/\,\mathbf a\herm\mathbf R_{\mathbf{XX}}^{-1}\mathbf a\)
fusion measurement maps \(\mathbf H_i\) \(\mathbf P\,\mathbf H_i\herm\mathbf R_i^{-1}\)

Whiten with the inverse covariance, then correlate with what you know. Every row is the projection of estimation-as-projection, or its Cauchy–Schwarz twin.

Recap

This week

  1. The matched filter whitens, then correlates: \(\mathbf R_{\mathbf{NN}}^{-1}\mathbf u\), the optimal test for Gaussian noise and the best linear score otherwise. In white noise only energy matters; in colored noise, put the signal where the noise is weak. A bank of them, one per direction, finds sources.
  1. An inverse problem needs a prior, and with one the regularized inverse is simply the best linear estimate; noise itself regularizes.
  1. A beamformer is the inverse problem with one column, or a design. MVDR passes one direction with the least output power, nulls interference it was never told about, and is weighted least squares when the model holds. Fusion adds precisions. Each instrument is the inverse covariance applied to a known signature.