Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Direction finding: Bartlett, Capon, MUSIC and ESPRIT

ProblemEstimate the directions of several signals arriving at an array from its covariance matrix, beyond the resolution of the array’s beam when possible
Devised byM. S. Bartlett (1948), the averaged periodogram behind the conventional scan; Jack Capon (1969), minimum variance; Ralph Schmidt (1979), MUSIC; Richard Roy, Arogyaswami Paulraj and Thomas Kailath (1986), ESPRIT
AccuracyMUSIC and ESPRIT resolve sources a fraction of a beamwidth apart at moderate SNR; single-source errors fall as (table below)
CostSpectra: one -vector product per scanned direction after an inverse or eigendecomposition; ESPRIT: two small eigenproblems, no scan
Read firstArrays, scenes and beamformers, Parametric spectra: linear prediction, Burg and MUSIC
APIbartlett_spectrum, capon_spectrum, music_spectrum, spectrum_peaks, esprit_ula

Overview

Direction finding turns the beamforming question around: instead of passing a signal from a known direction, find the directions the signals come from. A spatial spectrum scans candidate directions and evaluates a function of the array covariance and the steering vector that peaks at the sources. The Bartlett spectrum steers a conventional beam, so its resolution is one beamwidth, about radians for elements apart. The Capon spectrum steers an adaptive MVDR beam, which nulls the other sources and sharpens the peaks. MUSIC splits the eigenvectors of into a signal subspace and a noise subspace and looks for steering vectors orthogonal to the noise subspace, which gives super-resolution when the number of sources is known. ESPRIT skips the scan: for a uniform line it reads the directions off the rotation between two shifted subarrays.

Where it is used

Direction finding answers the question “which way is the signal coming from?” better than the beam of the array itself.

  • Radar, sonar and passive surveillance. MUSIC and ESPRIT estimate the bearings of several aircraft, ships or emitters at once.
  • Wireless communications. Base stations estimate the angles of arrival of users for beam steering and localisation.
  • Search and rescue, spectrum monitoring. Direction-finding arrays locate beacons and interferers.
  • Acoustics. Microphone arrays localise talkers and gunshots by the same covariance-matrix methods.

History

Direction finding began with rotating loop antennas in the First World War. With arrays and digital processing it became spectral estimation in space. Bartlett’s averaged periodogram (1948) is the conventional beam scan, and Jack Capon’s minimum-variance estimator (1969) came from seismic arrays. Ralph Schmidt’s MUSIC (multiple signal classification), presented in 1979 and published in 1986, introduced the subspace methods. Richard Roy, Arogyaswami Paulraj and Thomas Kailath’s ESPRIT (estimation of signal parameters via rotational invariance techniques, 1986–89) needed no search. Petre Stoica and Arye Nehorai (1989) compared these estimators with the Cramér-Rao bound. They now locate emitters in electronic warfare, sources in radio astronomy, and users in cellular systems.

The idea

Beam-scanning spectra

The simplest way to find where signals come from is to steer a beam across all directions and plot the output power against the steering direction; sources appear as peaks. With for uncorrelated sources:

Bartlett’s is the power out of a conventional beam steered to , and Capon’s the power out of an MVDR beam, which suppresses everything not from .

MUSIC

MUSIC applies the subspace idea of spectral estimation to directions instead of frequencies; the array’s steering vectors play the role of the sampled complex exponentials there.

The largest eigenvalues of belong to the signal subspace, spanned by the steering vectors of the sources. The other eigenvectors span the noise subspace, which is orthogonal to every source’s steering vector. So

is infinite at the sources for the exact covariance, and sharply peaked for an estimated one. MUSIC needs the number of sources, and it fails for fully correlated sources (multipath), which collapse the signal subspace.

ESPRIT

For a uniform linear array, the first elements and the last form two identical subarrays displaced by . Their steering vectors differ by the phase , where is the direction cosine along the axis. The signal-subspace eigenvectors , restricted to the two subarrays, are related by . The least-squares solution has eigenvalues , so (sign per the time convention). No scan or peak search is needed.

Figure 20.7. DOA spectra.

Estimates (true 85° and 93°): Bartlett 89.7° and 114.5°; Capon 90.2° and 125.8°; MUSIC 85.3° and 92.6°; ESPRIT 85.41° and 92.79°. The Bartlett spectrum shows a single merged peak.

For a single source, all three estimators are nearly unbiased, and their errors shrink with SNR:

Table 20.3. Direction-finding error of Capon, MUSIC and ESPRIT against SNR.

SNR per element (dB)Capon RMS error (°)MUSIC RMS error (°)ESPRIT RMS error (°)
-100.9771.0381.996
-50.3890.4090.548
00.2240.2250.299
100.0560.0540.081
200.0200.0180.023

The errors are for 100 snapshots on 8 elements, from 40 trials each. Capon and MUSIC are nearly identical for one source. Least-squares ESPRIT uses only the shift invariance, and is somewhat noisier.

Algorithm

All the estimators start from the same matrix.

  1. Covariance. Estimate from snapshots, with sample_covariance.

Scanning estimators (Bartlett, Capon, MUSIC).

  1. Prepare what the formula needs: nothing for Bartlett; a factorisation of for Capon; for MUSIC, the eigendecomposition and the eigenvectors of the smallest eigenvalues.
  2. For each direction of a grid, compute the array’s steering vector (for its actual geometry, element patterns and polarisation) and evaluate the formula.
  3. Find the highest peaks of the resulting spectrum with spectrum_peaks.

The accuracy is limited by the spacing of the grid unless the peaks are refined.

ESPRIT, for a uniform linear array.

  1. Compute the eigendecomposition of and take the eigenvectors of the largest eigenvalues as the columns of .
  2. Let be without its last row and without its first row.
  3. Solve for the matrix by least squares.
  4. Compute the eigenvalues of ; the direction cosines are .

Implementation

    let (_, vectors) = hermitian_eigen(covariance)?;
    let noise = vectors.slice(s![.., sources..]).to_owned();
    let projector = noise.dot(&hermitian_transpose(&noise));
    directions.iter().map(|&d| { let a = steering(array, d, polarization)?; Ok(norm_squared(&a) / hermitian_product(&a, &projector).max(1e-300)) }).collect()
    let signal = vectors.slice(s![.., ..sources]).to_owned();
    let (first, second) = (signal.slice(s![..n - 1, ..]).to_owned(), signal.slice(s![1.., ..]).to_owned());
    // Least squares Ψ = (E₁ᴴE₁)⁻¹ E₁ᴴ E₂; its eigenvalues are e^{±jkd u}.
    let e1h = hermitian_transpose(&first);
    let psi = e1h.dot(&first).inv().map_err(|_| ErrorsJSL::RuntimeError("Degenerate signal subspace."))?.dot(&e1h.dot(&second));
    let (eigenvalues, _) = psi.eig().map_err(|_| ErrorsJSL::RuntimeError("Eigendecomposition failed."))?;
    let mut u: Vec<f64> = eigenvalues.iter().map(|l| (l.arg() / (convention.sign() * wavenumber * spacing)).clamp(-1.0, 1.0)).collect();
  • The spectra take any SensorArray and polarisation; ESPRIT assumes a uniform linear array of identical elements.
  • spectrum_peaks returns local maxima of a 1D scan, strongest first.

In practice

//! Direction-of-arrival estimation: Bartlett, Capon and MUSIC spectra and ESPRIT on a uniform
//! linear array.
//!
//! Run with `cargo run --release -p lib_jsl_electromagnetics --example direction_finding`.

use lib_jsl_core::constants::em::C0;
use lib_jsl_electromagnetics::algorithms::{bartlett_spectrum, capon_spectrum, esprit_ula, music_spectrum, spectrum_peaks};
use lib_jsl_electromagnetics::antenna_models::HertzianDipole;
use lib_jsl_electromagnetics::arrays::SensorArray;
use lib_jsl_electromagnetics::conventions::{C64, TimeConvention};
use lib_jsl_electromagnetics::coordinates::RigidTransform;
use lib_jsl_electromagnetics::signal_models::{sample_covariance, synthesize_snapshots};
use ndarray::Array2;
use std::f64::consts::{FRAC_PI_2, TAU};
use std::sync::Arc;

fn main() {
    let f = 1e9;
    let lambda = C0 / f;
    // Ten short vertical dipoles along x, half a wavelength apart; sources in the horizontal plane.
    let positions = SensorArray::linear_positions(10, lambda / 2.0, [1.0, 0.0, 0.0]);
    let array = SensorArray::from_antenna(&positions, Arc::new(HertzianDipole::new(0.01)), &RigidTransform::identity(), f, TimeConvention::PlusJ, 1.0).unwrap();
    let pol = [C64::new(1.0, 0.0), C64::new(0.0, 0.0)];
    // Two uncorrelated sources at azimuths 70° and 78°, each at 5 dB SNR per element.
    let mut r = Array2::<C64>::eye(10) * C64::new(10f64.powf(-0.5), 0.0);
    for az in [70.0f64, 78.0] {
        let a = array.steering_vector(FRAC_PI_2, az.to_radians(), pol).unwrap();
        let scale = a.iter().map(|v| v.norm_sqr()).sum::<f64>() / 10.0;
        for i in 0..10 {
            for j in 0..10 {
                r[[i, j]] += a[i] * a[j].conj() / scale;
            }
        }
    }
    // Estimate the covariance from 300 snapshots, as a receiver would.
    let r_hat = sample_covariance(&synthesize_snapshots(&r, 300, 1).unwrap()).unwrap();
    let grid: Vec<f64> = (0..=1200).map(|i| 30.0 + 120.0 * i as f64 / 1200.0).collect();
    let dirs: Vec<(f64, f64)> = grid.iter().map(|&a| (FRAC_PI_2, a.to_radians())).collect();
    for (name, s) in [
        ("Bartlett", bartlett_spectrum(&array, &r_hat, &dirs, pol).unwrap()),
        ("Capon", capon_spectrum(&array, &r_hat, &dirs, pol).unwrap()),
        ("MUSIC", music_spectrum(&array, &r_hat, 2, &dirs, pol).unwrap()),
    ] {
        let mut peaks: Vec<f64> = spectrum_peaks(&s, 2).iter().map(|&i| grid[i]).collect();
        peaks.sort_by(f64::total_cmp);
        println!("{name:>8}: peaks at {:.1}° and {:.1}°", peaks[0], peaks[1]);
    }
    // ESPRIT returns direction cosines u = cos φ along the array axis.
    let u = esprit_ula(&r_hat, 2, lambda / 2.0, TAU / lambda, TimeConvention::PlusJ).unwrap();
    let mut phi: Vec<f64> = u.iter().map(|v| v.acos().to_degrees()).collect();
    phi.sort_by(f64::total_cmp);
    println!("  ESPRIT: {:.2}° and {:.2}°", phi[0], phi[1]);
}
Bartlett: peaks at 74.2° and 95.3°
   Capon: peaks at 70.3° and 77.7°
   MUSIC: peaks at 70.0° and 77.9°
  ESPRIT: 70.04° and 77.93°

With ten elements and sources 8° apart at 5 dB SNR, the conventional beam merges the two into one peak between them. Its second “peak” is a sidelobe. The other three methods resolve both sources.

Strengths

  • Works on any array geometry with real element patterns; super-resolution with MUSIC and ESPRIT.
  • ESPRIT gives directions in closed form, without a grid.

Weaknesses

  • MUSIC and ESPRIT need the number of sources and uncorrelated signals (spatial smoothing helps for coherent ones).
  • All degrade at low SNR or few snapshots, where the subspaces swap (the threshold effect).

Exercises

  1. Show that for one source and white noise, all three spectra peak exactly at the source.
  2. Show that the noise eigenvectors of are orthogonal to the columns of .
  3. Derive ESPRIT’s relation from the shift structure of a uniform line.
  4. Simulate two fully correlated sources and show that MUSIC fails; restore it with forward spatial smoothing.
  5. Compute the Cramér-Rao bound for one source on a uniform line, and compare it with the table above.
Hints and answers
  1. For one source with white noise, . The Bartlett power is maximised at the true steering vector (Cauchy-Schwarz); Capon’s and MUSIC’s also peak there.
  2. ; for the signal subspace span of the columns of , , so these are the noise eigenvectors and .
  3. Two subarrays offset by one element satisfy with ; as the signal subspace is , , i.e. with .
  4. With fully correlated sources the signal covariance is rank 1, so the signal subspace has dimension 1 and MUSIC sees one source; forward spatial smoothing averages the covariances of overlapping subarrays and restores the rank.
  5. The CRB for one source on an -element uniform line is for half-wavelength spacing, in radians for snapshots.

Further reading

  • H. Krim and M. Viberg, “Two decades of array signal processing research”, IEEE Signal Processing Magazine 13:4 (1996) 67–94.
  • R. O. Schmidt, “Multiple emitter location and signal parameter estimation”, IEEE Transactions on Antennas and Propagation 34 (1986) 276–280.
  • R. Roy and T. Kailath, “ESPRIT—estimation of signal parameters via rotational invariance techniques”, IEEE Transactions on Acoustics, Speech, and Signal Processing 37 (1989) 984–995.
  • P. Stoica and A. Nehorai, “MUSIC, maximum likelihood, and Cramér-Rao bound”, IEEE Transactions on Acoustics, Speech, and Signal Processing 37 (1989) 720–741.