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

Pulse compression, Barker codes and pulse tracking

ProblemTransmit a long pulse for energy yet resolve targets as if it were short; find a known pulse in noise to a fraction of a sample; follow it from frame to frame
Devised byDwight North (1943), the matched filter; Robert Dicke (1945) and Sidney Darlington (1947), chirp pulse compression; Ronald Barker (1953), binary codes; Thomas Benedict and G. W. Bordner (1962), α-β tracking
AccuracyA linear-FM chirp compresses to a −13.3 dB sidelobe sinc, lowered to −42 dB by Hamming weighting; the tracker follows a pulse at 0 dB SNR per sample to a quarter of a sample (below)
CostOne FFT convolution per received frame; the tracker evaluates the correlation only inside a gate
Read firstConvolution and correlation
APIlinear_chirp, matched_filter, pulse_compress, peak_sidelobe_level_db, barker_code, barker_autocorrelation, locate_pulse, PulseCorrelationTracker

Overview

A radar’s ability to detect a target depends on the pulse’s energy, and its ability to separate two targets on the pulse’s bandwidth. A short pulse has the bandwidth but little energy; a long pulse at limited peak power has the energy but no resolution. Pulse compression escapes the trade-off: transmit a long pulse with a wide bandwidth, such as a frequency sweep (chirp) or a phase code, and correlate the echo with the transmitted pulse. The matched filter compresses it into a narrow peak whose width is the reciprocal of the bandwidth, with the full pulse’s energy. Barker codes are binary phase codes whose compressed sidelobes are as small as possible. Once found, a pulse can be tracked from frame to frame by searching only near its predicted position.

Where it is used

Radar and sonar need long pulses to see far and short pulses to separate targets; pulse compression gives both.

  • Air traffic and weather radar. Chirps and phase-coded pulses (Barker codes) are used to see distant aircraft and rain with modest transmitter power.
  • Automotive radar. Collision-avoidance and adaptive cruise control sensors use frequency-modulated chirps and matched filtering to measure range and speed of the car ahead.
  • Sonar, ultrasound and GPS. The same matched filter detects a known pattern in noise: echoes of a sonar ping, the reflections in medical ultrasound, and the spreading code in a GPS signal.

History

Dwight North (1943), at RCA, showed that the filter maximising the signal-to-noise ratio for a known pulse in white noise is the pulse itself, reversed and conjugated: the matched filter. Robert Dicke (1945) and Sidney Darlington (1947) patented chirp pulse compression, which John Klauder and colleagues at Bell Labs analysed in full in 1960. Ronald Barker (1953) found binary sequences whose autocorrelation sidelobes never exceed one; the longest known has 13 elements. α-β tracking filters, the steady-state Kalman filter of a constant-velocity target, were analysed by Thomas Benedict and G. W. Bordner (1962).

The idea

The matched filter

A radar transmits a known pulse of samples and listens for its echo, which returns weak and buried in noise. The receiver’s task is to decide whether the pulse is present and exactly when it arrived. The best linear filter for the purpose is the one that maximises the ratio of the signal peak to the noise at its output.

The answer has a simple explanation. A filter forms a weighted sum of the last received samples. To make the pulse’s contribution as large as possible relative to the noise, each sample should be weighted by how much signal it is expected to contain: heavily where the pulse is strong, lightly where it is weak, and with the conjugate phase so that all the contributions add in step. That is a filter whose taps are the pulse itself, conjugated and reversed in time,

the matched filter. (The reversal is needed because a filter’s first tap multiplies the most recent sample.) Its output is the cross-correlation of the received signal with , which peaks at the moment the whole pulse has arrived.

A remarkable property follows: the peak signal-to-noise ratio is , the pulse energy divided by the noise density, regardless of the pulse’s shape. A long weak pulse is detected as well as a short strong one of the same energy. The shape determines only the width and sidelobes of the correlation peak, its ambiguity, and that is the freedom the next sections exploit: a long pulse can be designed so that its matched-filter output is a short, sharp peak.

Chirps

A radar wants two things that conflict for a simple pulse: high energy, which needs a long pulse (peak power is limited), and fine range resolution, which needs a short one. Pulse compression gets both, by transmitting a long pulse whose frequency changes during the pulse.

A linear-FM chirp sweeps a bandwidth in a time . The width of a matched filter’s output peak is set by the pulse’s bandwidth, not its duration: the chirp’s autocorrelation is close to a sinc of width . The pulse of length is therefore compressed to a peak of length , and the compression ratio is the time-bandwidth product . A 10 µs, 20 MHz chirp compresses 200 to 1:

Figure 16.11. Pulse compression.

The unweighted matched filter’s first sidelobes are at −13.3 dB, the sinc’s, and would hide the second target 20 dB down if it were closer. Weighting the filter by a window trades a little peak SNR (about 1.3 dB for Hamming) and width for much lower sidelobes:

Table 16.3. Peak sidelobe level and mainlobe width of pulse-compression waveforms.

waveform and weightingpeak sidelobe level (dB)−3 dB width (samples)
matched (none)-13.45
Hamming-42.37
Taylor n̄ = 5, −35 dB-34.95
Barker 7 (phase code)-16.91 chip
Barker 11 (phase code)-20.81 chip
Barker 13 (phase code)-22.31 chip

Barker codes

A Barker code of length is a binary sequence whose aperiodic autocorrelation sidelobes are at most 1 in magnitude, against a peak of . They exist for and 13 only. Barker 13 gives the −22.3 dB peak sidelobe in the table, the best a binary code of that length can do; Barker 11 spreads the 1 and 2 Mbit/s rates of 802.11b Wi-Fi.

Finding and tracking a pulse

locate_pulse finds the correlation peak in a frame and refines it to a fraction of a sample by fitting a parabola through the peak and its neighbours. The PulseCorrelationTracker then predicts the next position from its delay and rate estimates, searches a gate around the prediction, and updates both with an α-β filter:

where is the measured delay. If the normalised correlation in the gate falls below a threshold, it coasts on the prediction, and after too many misses it drops the track:

Figure 16.12. Pulse tracking.

Algorithm

Pulse compression of a received frame.

  1. Form the matched filter: the pulse, conjugated and reversed in time, and multiplied by the weighting window if side lobes are to be reduced.
  2. Convolve the frame with it, by FFT convolution.
  3. Align the output so that index holds the response to an echo that starts at sample .

Locating a pulse (locate_pulse).

  1. Find the index of the largest magnitude of the compressed output.
  2. Fit a parabola through that magnitude and its two neighbours, and take the position of the parabola’s vertex as the delay, to a fraction of a sample.
  3. Report also the normalised correlation at the peak, a number between 0 and 1 that measures how well the frame matches the pulse there.

Tracking (PulseCorrelationTracker), for each new frame:

  1. predict the delay from the previous estimates: ;
  2. search only the gate, a window of delays around the prediction, for the correlation peak;
  3. test: if the normalised correlation at the peak is above the threshold, the pulse was found. Update the delay by the fraction of the difference between the measurement and the prediction, and the rate by the fraction of it;
  4. otherwise coast: keep the prediction as the estimate, and count a miss. After too many consecutive misses, drop the track.

Implementation

    let filter = matched_filter(pulse, weights)?;
    let full = fft_convolve(received, &filter, ConvolveMode::Full)?;
    let offset = pulse.len() - 1;
    Ok((0..received.len()).map(|k| full[k + offset]).collect())
            let measured = best as f64 + offset;
            let innovation = measured - predicted;
            self.delay = predicted + self.alpha * innovation;
            self.rate += self.beta * innovation;
            self.misses = 0;
  • peak_sidelobe_level_db measures the largest response outside the main lobe, bounded by the first minima on either side of the peak.
  • The gate half-width, α and β are set by new; the detection threshold (normalised correlation 0.4) and the miss limit (10 frames) by with_detection_threshold and with_max_misses.
  • Inside the gate the tracker correlates directly, for a gate of delays and a pulse of samples, against the full frame’s FFT correlation on acquisition.

In practice

//! Pulse compression with a linear-FM chirp, Barker codes, and pulse tracking.

use lib_jsl_dsp::discrete::digital_communications::barker_codes::{barker_autocorrelation, barker_code};
use lib_jsl_dsp::discrete::digital_communications::pulse_correlation_tracker::locate_pulse;
use lib_jsl_dsp::discrete::radar::pulse_compression::{linear_chirp, peak_sidelobe_level_db, pulse_compress};
use num_complex::Complex;

fn main() {
    let pulse = linear_chirp(5e6, 20e-6, 20e6).unwrap();
    println!("chirp: {} samples, time-bandwidth product {}", pulse.len(), 5e6 * 20e-6);
    let mut rx = vec![Complex::new(0.0, 0.0); 2000];
    for (k, p) in pulse.iter().enumerate() {
        rx[700 + k] += p;
    }
    let c = pulse_compress(&rx, &pulse, None).unwrap();
    let peak = (0..c.len()).max_by(|&i, &j| c[i].norm().total_cmp(&c[j].norm())).unwrap();
    println!("compressed peak at sample {peak}, gain {:.0} (pulse energy), sidelobes {:.1} dB", c[peak].norm(), peak_sidelobe_level_db(&c));
    let code = barker_code(13).unwrap();
    println!("Barker 13 {code:?}");
    println!("autocorrelation {:?}", barker_autocorrelation(&code));
    let frame: Vec<Complex<f64>> = (0..1000).map(|n| if n >= 300 && n < 300 + pulse.len() { pulse[n - 300] } else { Complex::new(0.0, 0.0) }).collect();
    let found = locate_pulse(&frame, &pulse).unwrap();
    println!("locate_pulse: delay {:.2}, normalised correlation {:.3}", found.delay, found.normalized);
}
chirp: 400 samples, time-bandwidth product 100.00000000000001
compressed peak at sample 700, gain 400 (pulse energy), sidelobes -13.5 dB
Barker 13 [1, 1, 1, 1, 1, -1, -1, 1, 1, -1, 1, -1, 1]
autocorrelation [1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 13, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1]
locate_pulse: delay 300.00, normalised correlation 1.000

Strengths

  • The matched filter is SNR-optimal for any pulse; chirps give large compression ratios and tolerate Doppler.
  • Sub-sample delay estimates and a cheap gated tracker.

Weaknesses

  • Range sidelobes (reduced by weighting at a cost in SNR and resolution); chirps couple range and Doppler.
  • The α-β tracker assumes constant rate between frames and needs tuning of α, β and the gate.

Exercises

  1. Show by the Cauchy-Schwarz inequality that the matched filter maximises the output SNR, and that the maximum is .
  2. Show that the autocorrelation of a linear-FM chirp with large is approximately .
  3. Verify that Barker 13’s aperiodic autocorrelation sidelobes are 0 or 1.
  4. Compute the SNR loss of Hamming weighting, , for a long pulse.
  5. Derive the α-β filter as the steady-state Kalman filter for a constant-velocity target with white acceleration noise, and relate and .
Hints and answers
  1. Output SNR is ; by Cauchy-Schwarz it is at most , with equality for . The maximum is in the entry’s noise convention (with the other common convention for the noise density it is ).
  2. The chirp has an autocorrelation that is the Fourier transform of its (nearly flat, width ) spectrum magnitude squared, so it is approximately .
  3. Barker 13 is . The aperiodic autocorrelation at shift is the sum of products; for this sequence each equals or (the sequence is chosen for that), peak 13.
  4. For Hamming, and , so the loss is , i.e. dB.
  5. The constant-velocity model with white acceleration noise has a steady-state Kalman gain that depends on ( the acceleration noise, the measurement noise); the gains satisfy , the Kalata relation.

Further reading

  • M. A. Richards, Fundamentals of Radar Signal Processing, 2nd ed., McGraw-Hill, 2014, chapters 4 and 9.
  • D. O. North, “An analysis of the factors which determine signal/noise discrimination in pulsed carrier systems”, RCA report PTR-6C, 1943; reprinted in Proceedings of the IEEE 51 (1963) 1016–1027.
  • J. R. Klauder, A. C. Price, S. Darlington and W. J. Albersheim, “The theory and design of chirp radars”, Bell System Technical Journal 39 (1960) 745–808.
  • R. H. Barker, “Group synchronizing of binary digital systems”, in Communication Theory, Butterworths, 1953, 273–287.
  • T. R. Benedict and G. W. Bordner, “Synthesis of an optimal set of radar track-while-scan smoothing equations”, IRE Transactions on Automatic Control 7 (1962) 27–32.