- Introduced by
- D. O. North
- Year
- 1943
- Type
- Optimal filter for signal detection
- Family
- Signal detection
What does it do?
The matched filter is a linear detector that maximizes the output signal-to-noise ratio (SNR) for a known signal in additive white Gaussian noise.
Its origin is usually attributed to D. O. North's wartime radar work (1943), and it underlies much of classical detection theory and digital communications receivers. Its optimality holds only under the stated assumptions of a fully known waveform and white Gaussian noise.
The intuition behind the method
For a known signal in noise, the matched filter has an impulse response equal to the time-reversed conjugate of the signal. When the received data are convolved with this filter, the output peaks at the instant the signal pattern aligns with the template. The filter therefore acts as a template matcher: it weights each sample by the expected signal shape, so that signal energy adds coherently while uncorrelated noise adds only incoherently. It does not reduce noise in general; its advantage is limited to the known-signal, white-noise case.
History
The matched filter is usually attributed to D. O. North, who analysed signal/noise discrimination in pulsed carrier systems in a 1943 RCA Laboratories technical report, in the context of World War II radar development. This report is an internal technical document and is difficult to locate in bibliographic databases. The discrete-time treatment of correlation, convolution and linear filtering needed to implement the method is covered in standard texts such as Oppenheim, Schafer and Buck (1999).
When to use it
Use a matched filter when the waveform you want to detect is known in advance, as with a radar pulse, a sonar ping, or a transmitted symbol, and when the background noise is approximately white and Gaussian. Its optimality rests on those two assumptions, so the choice is weakest when either fails. If the signal has unknown delay, Doppler shift or other parameters, a bank of matched filters over the parameter grid, or a generalized likelihood ratio test, is needed instead of a single template. If the noise is strongly coloured or impulsive, a whitening prefilter or a nonlinear detector should be considered before relying on this method.
Limitations and considerations
- The method requires a precise copy of the expected waveform; the output SNR loss grows with the mismatch between the actual signal and the template
- Its optimality is tied to white Gaussian noise; in coloured noise the output is no longer optimal unless the data are first whitened by a prefilter
- A single template tests only one signal hypothesis, so unknown parameters require many parallel filters and an increased number of false alarm opportunities
- Because the filter is linear, impulsive noise or receiver saturation can produce outputs that the Gaussian-noise threshold analysis does not describe
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- For a known signal in white Gaussian noise, the matched filter maximizes output SNR, and the output SNR depends on the signal energy rather than on the detailed waveform shape
- Implemented as a correlation or convolution, so long templates can be processed efficiently with FFT-based methods
- The time index of the output peak gives a direct estimate of signal arrival time, so detection and timing come from the same operation
- Filter banks over shifted or scaled templates extend the same principle to signals whose delay or Doppler is unknown
Applications
- Radar and sonar systems for target detection, ranging, and Doppler velocity estimation
- Digital communications receivers for detecting modulated symbols in presence of noise and fading
- Seismic signal processing for earthquake detection and subsurface imaging
- Biomedical signal detection for QRS complex detection in ECG and spike detection in neural recordings
- Image and video processing for template matching, edge detection, and feature localization
How it works
How it works
Obtain the reference signal template that you want to detect in noisy data.
Normalize the reference signal and choose the detection threshold according to the acceptable false alarm probability or the required detection sensitivity. Under white Gaussian noise, the filter output noise is Gaussian, so the threshold is a multiple of the output noise standard deviation. For a single look, P_FA = Q(T/sigma_out). If many lags or filter outputs are examined, the effective number of false alarm opportunities grows, so the per-look threshold must be raised accordingly.
Compute the matched filter impulse response as the time-reversed conjugate of the reference signal, h(n) = s*(N-1-n), where N is the template length.
Convolve the received signal with the matched filter, y(n) = x(n) * h(n). Because of the time reversal, this output equals the cross-correlation of x(n) with the template s(n).
Compare the filter output with the threshold. Peaks above the threshold indicate detections, and the time index of each peak gives the estimated arrival time of the signal. Because many output samples are scanned, the threshold should reflect the total number of looks, not a single sample.
Common pitfalls
- Applying a single matched filter to a signal whose delay, Doppler shift or other parameters are unknown, when a filter bank or a generalized likelihood ratio test is required
- Assuming white Gaussian noise without checking the noise spectrum, which leads to a filter that is no longer matched to the noise
- Setting the detection threshold without estimating the false alarm rate that results from the number of samples and filter outputs examined
- Using a template whose length or energy does not match the actual finite-duration signal, which changes both the output SNR and the timing of the peak
- Ignoring receiver nonlinearities or saturation, which violate the additive noise assumption on which the SNR result depends
Frequently asked questions
What is the impulse response of a matched filter?
The impulse response is the time-reversed conjugate of the signal you want to detect: h(n) = s*(N-1-n), where s is the signal, N is its length, and * denotes complex conjugate. The filter is called matched because its impulse response mirrors the expected signal pattern. The time reversal means that the output peaks when the signal is aligned with the end of the filter window.
How does matched filter relate to correlation and convolution?
Convolving the received signal with the time-reversed conjugate template gives the same output as cross-correlating the received signal with the template. Correlation therefore peaks where the signal best matches the template. Because the two operations are equivalent under this time reversal, most implementations use FFT-based convolution for efficiency.
What is the SNR gain of a matched filter?
For a known signal in white Gaussian noise, the output SNR equals 2E/N₀, where E is the signal energy. This expression assumes N₀ is the one-sided noise power spectral density, so that the two-sided density is N₀/2; with other conventions the expression changes by a factor of two. The output SNR depends on the signal energy and not on the detailed waveform shape, so longer signals with more energy achieve higher SNR, all else equal.
What if the actual signal differs from the expected template?
When the actual signal differs from the template, the output SNR is reduced by a mismatch loss factor. This factor is the squared normalized correlation coefficient, |<s, s_template>|² / (E_s · E_template). It equals 1 for a perfect match and falls toward 0 as the waveforms diverge. Even modest mismatches can noticeably reduce detection performance, so the template must closely reflect the expected signal in practice.
Related methods
Sources
North, D. O. (1943). An Analysis of the Factors Which Determine Signal/Noise Discrimination in Pulsed Carrier Systems. RCA Laboratories, Technical Report PTM-946.
Open publication referenceOppenheim, A. V., Schafer, R. W., & Buck, J. R. (1999). Discrete-Time Signal Processing (2nd ed.). Prentice Hall.
Open publication reference