Skip to main content
Blog / Radar

Zero padding does not buy resolution

Padding an FFT samples the same spectrum on a finer grid; only bandwidth, observation time or an explicit signal model can split two close targets.

By Nir Regev ·

Two cars are 0.5 m apart. The radar sweeps 150 MHz, so the textbook range resolution is c/(2B)=1c/(2B) = 1 m, and the range FFT shows one fat peak. The tempting fix is to pad the FFT by 8 and look again. The plot gets smoother. The peak does not split.

That is not a tuning problem. Zero padding cannot split the peak, and I want to show exactly why, then look at what can, including a recent method that seems to get something for nothing.

The numbers

Take one FMCW chirp of T=400T = 400 µs sweeping B=150B = 150 MHz, so the slope is S=B/T=3.75×1011S = B/T = 3.75 \times 10^{11} Hz/s. A target at range RR produces a beat tone at

fb=2SRc.f_b = \frac{2 S R}{c}.

Two targets 0.5 m apart differ in beat frequency by 2S⋅0.5/c=12502 S \cdot 0.5 / c = 1250 Hz. The frequency resolution of a TT second observation is about 1/T=25001/T = 2500 Hz. The two tones are half a resolution cell apart, which is the same statement as 0.50.5 m against c/(2B)=1c/(2B) = 1 m.

With complex sampling at 2.5 MHz the chirp gives N=1000N = 1000 samples. A 2048-point FFT puts a bin every 0.49 m and an 8192-point FFT every 0.12 m. Neither shows two peaks. In the run behind Fig. 1 both find one maximum, at 20.02 m and 20.26 m, between the true ranges of 20.0 and 20.5 m. Four times as many real samples, from a chirp four times longer, resolve the pair cleanly at 20.05 and 20.45 m.

Fig. 1: Two equal targets at 20 m and 20.5 m (red dashed lines) with 150 MHz of bandwidth. Padding 1000 samples to 2048 or 8192 points traces the same single lobe. A chirp four times longer separates them. Fig. 1: Two equal targets at 20 m and 20.5 m (red dashed lines) with 150 MHz of bandwidth. Padding 1000 samples to 2048 or 8192 points traces the same single lobe. A chirp four times longer separates them.

What padding actually does

The spectrum of NN samples is the DTFT

X(ω)=∑n=0N−1x[n] e−jωn.X(\omega) = \sum_{n=0}^{N-1} x[n]\, e^{-j\omega n}.

Append zeros to length MM and take an MM-point FFT. The appended samples are zero, so they add nothing to the sum, and the FFT returns X(2πk/M)X(2\pi k / M): the same function, sampled on a finer grid. For a single tone the magnitude is

∣X(ω)∣=∣sin⁡(Nω/2)sin⁡(ω/2)∣,|X(\omega)| = \left| \frac{\sin(N\omega/2)}{\sin(\omega/2)} \right|,

with a main lobe 4π/N4\pi/N wide between nulls. There is no MM in that expression. Padding draws the same curve with more dots. It is useful for reading off a peak location between bins, and for making plots honest about the shape of the lobe. It does not make the lobe narrower, and two lobes that overlap into one stay one.

Here is the whole argument in a few lines of numpy:

import numpy as np
import matplotlib.pyplot as plt

c, B, T, fs, N = 3e8, 150e6, 400e-6, 2.5e6, 1000
S = B / T
n = np.arange(N)
y = sum(np.exp(1j * (2 * np.pi * 2 * S * R / c * n / fs + p))
        for R, p in [(20.0, 0.0), (20.5, 2.8)])

for nfft in (2048, 8192, 65536):
    Y = np.abs(np.fft.fft(y, nfft))
    r = np.arange(nfft) * fs / nfft * c / (2 * S)
    plt.plot(r, Y / Y.max(), label=f"{nfft} points")
plt.xlim(17, 23.5)
plt.xlabel("Range (m)")
plt.ylabel("Normalized |FFT|")
plt.legend()
plt.show()

Every curve lies on top of the others. Only NN sets the width.

The three honest sources of resolution

There are three ways to separate two close targets, and each one is something you pay for.

Bandwidth. ΔR=c/(2B)\Delta R = c/(2B). Sweep 600 MHz instead of 150 MHz and the cell shrinks to 25 cm. This costs RF hardware, regulatory room and sampling rate.

Observation time. Frequency resolution is 1/T1/T. In FMCW at a fixed slope, a chirp four times longer also sweeps four times the bandwidth, so for range the first two knobs are the same knob. For Doppler and angle the knob is separate: more chirps, more antennas.

A model. If you know the signal is a sum of KK complex tones in white noise, you can estimate their frequencies far more finely than 1/T1/T. This costs SNR, and it costs correctness: the answer is only as good as the assumption that the model is right.

Everything else is one of these three in disguise, or it is interpolation.

A mirror that looks like free data

A recent IEEE TAES method proposes extending the beat signal by reflecting it about the minimum of its envelope, then taking a longer FFT. It is clever, and for its stated case it is exact, so it is worth understanding why it works and why it still adds no information.

Write the two-tone beat signal as

y[n]=a1ej(ω1n+ψ1)+a2ej(ω2n+ψ2).y[n] = a_1 e^{j(\omega_1 n + \psi_1)} + a_2 e^{j(\omega_2 n + \psi_2)}.

The envelope ∣y[n]∣|y[n]| is smallest where the two phasors point in opposite directions, at the ncn_c where (ω2−ω1)nc+ψ2−ψ1=π(\omega_2 - \omega_1) n_c + \psi_2 - \psi_1 = \pi. Reflect about that point and the phase difference runs backward, so

y[2nc−n]=ejφ y∗[n],φ=2ω1nc+2ψ1.y[2n_c - n] = e^{j\varphi}\, y^*[n], \qquad \varphi = 2\omega_1 n_c + 2\psi_1.

That identity holds for any two amplitudes. I checked it numerically with a 6 dB gap and the error was at the level of floating point roundoff. So for exactly two tones, the mirrored samples are the samples a longer chirp would have produced. In the panel (a) case of Fig. 2, with the minimum at sample 200, the mirrored signal is 1.6 times the original length and its peaks match the truly longer chirp, at 19.78 and 20.63 m.

Notice what made that possible. To mirror, you must already know that there are exactly two tones. Under that assumption the four numbers ω1,ω2\omega_1, \omega_2 and the two complex amplitudes describe the whole signal, and the extension is a deterministic function of the data you have. It cannot contain information that the original samples did not. The mirror is a model, applied implicitly.

What breaks it

The implicit model fails in the same places any two-tone model fails, and because the assumption is hidden, it fails quietly. I ran the mirror on 400 random phase draws per case, with targets at 20 and 20.5 m:

CaseMirror declinedExtended and resolvedExtended, not resolved
Two equal tones, no noise0.570.150.27
SNR 10 dB0.630.070.30
SNR 0 dB0.690.010.30
Second target 6 dB weaker0.640.000.36
Third reflector, 10 dB weaker0.540.040.41
DC leakage, 10 dB above each target0.480.000.52

“Declined” means the method found no single clear envelope minimum inside the chirp and fell back to the plain FFT. Even in the noise-free two-tone case it activates in a little over 40% of chirps, and when it does the extension averages 1.42 times the original length, often short of what 0.5 m needs. For reference, a plain FFT of the same scene resolved 2% of the time in my runs and a real chirp twice as long resolved 60%.

Noise moves the envelope minimum and corrupts the phase φ\varphi. A weaker second target keeps the symmetry exact but the extension is too short to split an unequal pair. A third reflector breaks the symmetry itself: in panel (b) of Fig. 2 the mirrored spectrum puts its peaks at 19.78 and 20.51 m while the truly longer chirp, which sees the third tone, puts them at 19.90 and 20.63 m. DC leakage is a strong tone at zero frequency, which is a third tone too.

Fig. 2: Spectra of the observed chirp, its mirror extension and a truly longer chirp. (a) With exactly two tones the mirror reproduces the longer chirp. (b) A third reflector at 22 m, 10 dB down, breaks the symmetry and the mirrored peaks move. Fig. 2: Spectra of the observed chirp, its mirror extension and a truly longer chirp. (a) With exactly two tones the mirror reproduces the longer chirp. (b) A third reflector at 22 m, 10 dB down, breaks the symmetry and the mirrored peaks move.

The most dangerous row is the last column. In more than a quarter of chirps in every case the mirror extends the data, returns an answer and the answer is wrong, with nothing in the output to say so.

Assume out loud

None of this means sub-cell resolution is off the table. It means the resolution comes from the model, so the model should be in plain sight. If you believe there are two tones, fit two tones: a matrix pencil or an ML fit with K=2K = 2, a residual you can test, and a Cramér-Rao bound that tells you how much SNR the separation will cost. If there might be three, say K=3K = 3 and see whether the fit agrees. That is the subject of the next post.

Takeaways

  • Zero padding samples the same DTFT more densely. The main lobe width 4π/N4\pi/N does not depend on the FFT length.
  • Range resolution comes from bandwidth, observation time or a signal model. In FMCW at fixed slope the first two are one knob.
  • Envelope mirroring is exact for two tones because it is a two-tone model in disguise. It adds no information, and it fails quietly with noise, a third reflector or DC leakage.
  • If you are going to assume, assume out loud and fit the model directly.

References

  1. M. A. Richards, Fundamentals of Radar Signal Processing, 2nd ed., McGraw-Hill, 2014.
  2. S. M. Kay, Fundamentals of Statistical Signal Processing, Volume I: Estimation Theory, Prentice Hall, 1993.
Next post Asynchronous reset timing closure: hell or heaven? (Part II)

Start a conversation

Have a sensing, AI or chip problem worth solving?

Tell us about the product, where it runs and what has to work. We will come back with the next practical step.

AlephZero updates

Get new demos, papers and posts by email

We write when we publish something new in edge AI, radar and signal processing. Unsubscribe anytime.