Reading
Stories Mode

Filter Banks and Polyphase Structures

~14 min read Lesson 4 of Module 11

Splitting and Recombining Signals

Up to this point in Module 11, we have treated upsampling and downsampling as tools for changing a single signal's sample rate. Filter banks extend this idea by splitting a wideband signal into multiple narrowband subbands, processing each subband independently, and then recombining them into a reconstructed output. This architecture appears in virtually every modern audio codec (MP3, AAC, Opus), in OFDM wireless systems, and in wavelet-based image compression.

A filter bank has two parts: the analysis bank decomposes the input into subbands, and the synthesis bank reassembles the subbands into the output. When properly designed, the synthesis bank can perfectly undo the analysis bank, recovering the original signal without distortion — a property called perfect reconstruction.

Core Idea

An M-channel filter bank applies M bandpass filters to the input, downsamples each output by M, independently processes (e.g., quantizes or compresses) each subband, then upsamples by M and filters again to reconstruct the original signal.

x[n] → Analysis Bank → M subbands → Synthesis Bank → x̂[n]

The Analysis Filter Bank

An M-channel analysis filter bank consists of M bandpass filters H0, H1, …, HM−1, each covering a different frequency band. In the simplest case — a uniform DFT filter bank — the filters are modulated versions of a single prototype lowpass filter H0:

DFT Modulated Filter Bank
H_k(z) = H_0\!\left(z\, e^{-j2\pi k/M}\right), \quad k = 0, 1, \ldots, M-1
Each analysis filter Hk is the prototype H0 frequency-shifted by k/M of the sampling frequency. All M filters share the same bandwidth π/M, collectively covering [0, π].

After filtering, each branch is downsampled by M (critical sampling). This keeps the total data rate equal to the input rate — the sum of M subband signals, each at rate fs/M, equals the original rate fs. The analysis bank output is M sequences vk[n], each representing the signal's content near frequency kπ/M.

M
Number of subbands
π/M
Bandwidth per subband
1:1
Input-to-output data rate ratio

The Synthesis Filter Bank

The synthesis bank reverses the analysis process. Each subband signal vk[n] is upsampled by M (inserting M−1 zeros between samples) and then filtered by a synthesis filter Gk. The M filtered branches are summed to produce the reconstructed output x̂[n].

Synthesis Reconstruction
\hat{x}[n] = \sum_{k=0}^{M-1} \bigl(v_k[n] \uparrow M\bigr) * g_k[n]
The synthesis filters Gk must be designed jointly with the analysis filters Hk to achieve perfect reconstruction. In the simplest case, Gk(z) = Hk(z−1), the time-reversed analysis filter.

The reconstruction quality depends on how well the filter bank satisfies the perfect reconstruction (PR) conditions: no aliasing from the decimation/interpolation stages, flat overall frequency response, and linear phase. Meeting all three simultaneously requires careful joint design of Hk and Gk.

Polyphase Decomposition: The Efficiency Engine

Naïvely implementing a filter bank requires running M long FIR filters at the full input rate fs before downsampling. This is computationally wasteful: most of the filter outputs are immediately discarded by the downsampler. The polyphase decomposition reorganizes the computation so that all filtering occurs at the lower subband rate fs/M.

Any FIR filter H(z) of length N can be written as M shorter filters — called polyphase components Ek(z) — of length ⌈N/M⌉:

Polyphase Decomposition
H(z) = \sum_{k=0}^{M-1} z^{-k}\, E_k(z^M), \quad E_k(z) = \sum_{n} h[nM+k]\, z^{-n}
H(z) is decomposed into M polyphase branches, each containing every M-th coefficient of H. Each branch Ek(z) operates at the downsampled rate, reducing total computation by a factor of M compared to the naïve direct-form implementation.

In the polyphase implementation of the analysis bank, the input is first passed through a commutator (a serial-to-parallel converter that distributes successive input samples to the M branches), then each branch is filtered by its polyphase component, and finally the M outputs are transformed by an M-point DFT to produce the M subband signals. The result: all arithmetic happens at rate fs/M, and the DFT can itself be computed efficiently using the FFT.

Quadrature Mirror Filters

The simplest and most widely-used filter bank is the two-channel QMF bank (M = 2). It splits the signal into a lowpass subband (below π/2) and a highpass subband (above π/2). The lowpass analysis filter H0(z) and the highpass filter H1(z) are related by:

QMF Relationship
H_1(z) = H_0(-z) \;\Longleftrightarrow\; h_1[n] = (-1)^n h_0[n]
The highpass filter H1 is a frequency-shifted version of the lowpass H0, with alternating sign coefficients. This "quadrature mirror" relationship guarantees that the aliasing components introduced by the two downsamplers cancel each other in the synthesis stage.

The QMF design challenge is to make H0 a good lowpass filter (sharp cutoff near π/2, high stopband attenuation) while simultaneously satisfying the PR conditions. Johnston filters — optimized FIR windows — are a practical solution. Alternatively, conjugate quadrature filters (CQF), also called paraunitary filter banks, achieve exact PR with linear-phase characteristics ideal for audio and image coding.

Perfect Reconstruction Conditions (2-channel)

For perfect reconstruction in a two-channel QMF bank: (1) the aliasing term must cancel: H0(z)G0(z) + H1(z)G1(z) = 0; (2) the distortion term must be a pure delay: H0(−z)G0(z) + H1(−z)G1(z) = 2z−k. Together they ensure x̂[n] = x[n−k] — a perfect, delayed reconstruction.

Applications of Filter Banks

Audio compression (MP3, AAC, Opus): The MPEG psychoacoustic model works in the frequency domain. MP3 uses a 32-channel polyphase filter bank to split audio into 32 subbands, then applies modified discrete cosine transform (MDCT) within each subband. AAC improves on this with a pure MDCT-based filter bank that achieves better frequency resolution. In all cases, the filter bank allows the encoder to allocate more bits to subbands with perceptually important content and fewer bits to masked or less audible bands.

Image compression (JPEG 2000, wavelet coding): The discrete wavelet transform (DWT) is a recursive two-channel QMF bank applied iteratively. The lowpass subband is repeatedly split into lower subbands, creating a multi-resolution representation. JPEG 2000 uses the 9/7 biorthogonal wavelet for lossy coding and the 5/3 LeGall wavelet for lossless coding — both are specific choices of QMF filter pairs.

OFDM communications: An OFDM transmitter can be viewed as a synthesis filter bank where each subcarrier is a separate channel. The IFFT operation is exactly the polyphase synthesis structure: it combines M independent data streams (one per subcarrier) into a wideband time-domain signal. The receiver's FFT is the polyphase analysis bank. This interpretation reveals why guard intervals (cyclic prefix) are needed: they prevent inter-subband aliasing.

Hearing aids and speech processing: Filter banks allow independent processing of different frequency regions, mimicking the cochlea's own frequency decomposition. A hearing aid can apply different amounts of amplification to low, mid, and high frequencies based on the patient's audiogram, all within a single polyphase filter bank implemented on a low-power DSP chip.

This concludes Module 11. The next module covers real-world DSP: embedded systems constraints, audio effects pipelines, and how filter banks connect to machine learning.

Key Takeaways
  • A filter bank splits a signal into M subbands (analysis bank) and reassembles them (synthesis bank); perfect reconstruction recovers the original signal without distortion.
  • Uniform DFT filter banks use modulated copies of a single prototype lowpass filter; all M filters share the same bandwidth π/M and cover the full spectrum collectively.
  • Polyphase decomposition reduces filter bank computation by a factor of M: each polyphase branch operates at the downsampled rate fs/M, and the branches are combined via a fast FFT/IFFT.
  • The two-channel QMF bank uses a lowpass and highpass pair designed so that aliasing cancels in the synthesis stage, enabling perfect or near-perfect reconstruction.
  • Filter banks are the foundation of MP3/AAC audio codecs, JPEG 2000 image compression, OFDM wireless systems, and modern hearing aids.
  • The discrete wavelet transform is a recursive QMF bank: the lowpass subband is repeatedly split, building a multi-resolution signal representation used in image and video compression.
Previous Sample Rate Conversion Module Overview Next Module DSP on Embedded Systems