Algorithm Search⌘K

Techniqueadvanced

Filter bank multicarrier

Also called FBMC, OFDM/OQAM.

Multicarrier transmission with a well-localized prototype filter on each subcarrier in place of a rectangular pulse. Offset QAM keeps the full rate with no cyclic prefix and very low sidelobes.

Filter bank multicarrier (FBMC) is a family of multicarrier schemes in which every subcarrier carries a pulse shaped by a prototype filter gg that is well localized in both time and frequency, instead of the rectangular pulse of OFDM. The rectangular pulse gives each OFDM subcarrier a sinc spectrum with sidelobes that fall slowly, so OFDM needs guard bands and tight synchronization between users. A good prototype gives sidelobes that are orders of magnitude lower. The common form is OFDM/OQAM (offset QAM): each complex QAM symbol is split into its real and imaginary parts, which are sent half a symbol period apart, and the pulses carry the phases jk+mj^{k+m}. The pulses are then orthogonal in the real sense, which is enough for real symbols, and the scheme reaches the full symbol rate without a cyclic prefix. Saltzberg (1967) introduced the staggered form for parallel data transmission. The page uses jj for the imaginary unit, MM subcarriers and a real prototype of unit energy.

In plain words

OFDM cuts every tone off sharply at the end of each symbol, and these sharp edges spread the energy of each tone far into its neighbors' frequencies. FBMC shapes each tone with a smooth window that starts and ends gently, so its energy stays close to its own frequency. The smooth windows are longer and overlap in time, and with ordinary complex symbols they would disturb each other. The trick is to send the real half and the imaginary half of each symbol at different times, half a symbol apart. The disturbance from the neighbors then always lands on the half the receiver does not read at that time. The receiver keeps only the half it wants and recovers every symbol.

When it applies

  • The spectrum must be well contained: narrow guard bands, coexistence with other systems, or uplink users that are not perfectly synchronized in time and frequency.
  • The channel is nearly flat over one subcarrier and nearly constant over one prototype length, so a one-tap equalizer per subcarrier still works without a cyclic prefix.
  • Transmission is in long bursts or continuous, so that the filter tails of KM−1KM - 1 samples at the start and end of a burst cost little.
  • The system does not use schemes that need complex orthogonality between the pulses, such as Alamouti space-time coding applied directly on each subcarrier.

The template

  1. FBMC-OQAM(c[0..S-1][0..M-1], g[0..D], M)
  2. 1for each i, k: a[2i][k] ← Re c[i][k]; a[2i+1][k] ← Im c[i][k] ▷ OQAM staggering
  3. 2s[n] ← Σ_m Σ_k a[m][k] · g[n - mM/2] · e^{j2πk(n - D/2)/M} · j^(k+m)
  4. 3â[m][k] ← Re Σ_n s[n] · conj( g[n - mM/2] · e^{j2πk(n - D/2)/M} · j^(k+m) )
  5. 4ĉ[i][k] ← â[2i][k] + j · â[2i+1][k]

Real orthogonality. Write gk,m[n]=g[n−mM/2] ej2πk(n−D/2)/M jk+mg_{k,m}[n] = g[n - mM/2]\, e^{j 2\pi k (n - D/2)/M}\, j^{k+m}. The prototype is chosen so that

Re ⟨gk,m,gk′,m′⟩=δkk′ δmm′.\mathrm{Re}\,\langle g_{k,m}, g_{k',m'} \rangle = \delta_{kk'}\, \delta_{mm'}.

Then line L3 returns a^[m][k]=∑m′,k′a[m′][k′] Re⟨gk′,m′,gk,m⟩=a[m][k]\hat a[m][k] = \sum_{m', k'} a[m'][k']\, \mathrm{Re}\langle g_{k',m'}, g_{k,m}\rangle = a[m][k] on a noiseless channel. The imaginary parts ⟨gk′,m′,gk,m⟩\langle g_{k',m'}, g_{k,m} \rangle are not zero. They form the intrinsic interference, which line L3 discards by taking the real part.

Density. There are MM real symbols every M/2M/2 samples, so 2M2M real values, or MM complex values, per MM samples: the rate of OFDM without the prefix. A complex-orthogonal system at this density with a pulse well localized in time and frequency is impossible, by the Balian-Low theorem of time-frequency analysis, and the offset structure is the way around it.

Prototypes. With overlap factor KK the prototype has about KMKM taps. The half-sine g[n]=2/M sin⁡(π(n+1/2)/M)g[n] = \sqrt{2/M}\,\sin(\pi(n + 1/2)/M), n=0,…,M−1n = 0, \ldots, M - 1, has K=1K = 1 and is exactly real-orthogonal. The PHYDYAS prototype has K=4K = 4 and is defined by its frequency samples H0=1H_0 = 1, H1=0.97195983H_1 = 0.97195983, H2=2/2H_2 = \sqrt 2/2, H3=0.23514695H_3 = 0.23514695, with H12+H32=1H_1^2 + H_3^2 = 1:

g[n]∝H0+2∑i=13(−1)iHicos⁡(2πi(n+1)4M),n=0,…,4M−2.g[n] \propto H_0 + 2 \sum_{i=1}^{3} (-1)^i H_i \cos\Big(\frac{2\pi i (n + 1)}{4M}\Big), \qquad n = 0, \ldots, 4M - 2.

It is nearly real-orthogonal.

Cost. Lines L2 and L3 are written directly above. A real modem computes them with one MM-point FFT and a polyphase network of KK taps per branch every M/2M/2 samples, O(Mlog⁡M+KM)O(M \log M + KM) per half period. The FFT runs twice per symbol period, so the work is at least twice that of OFDM.

Classic examples

Exact reconstruction with the half-sine. With M=8M = 8 and 6 real symbol slots, the real parts of all pulse inner products match the identity to within 6⋅10−156 \cdot 10^{-15}, while the largest imaginary part is 0.5. Five blocks of random 16-QAM symbols pass through lines L1 to L4 and come back to within rounding error.

PHYDYAS. With M=8M = 8 and 10 slots, the real parts of the inner products differ from the identity by at most 2.0⋅10−42.0 \cdot 10^{-4}, and the largest intrinsic interference term is 0.564. Random 16-QAM symbols come back with a mean squared error 70 dB below the symbol energy, which is far below the noise in practice.

Spectral containment. For M=16M = 16, the fraction of the energy of one subcarrier pulse that lies more than ee subcarrier spacings from its center:

pulse e=1e = 1 e=2e = 2 e=4e = 4
rectangular (OFDM) 9.6⋅10−29.6 \cdot 10^{-2} 4.7⋅10−24.7 \cdot 10^{-2} 2.0⋅10−22.0 \cdot 10^{-2}
half-sine, K=1K = 1 2.9⋅10−22.9 \cdot 10^{-2} 2.1⋅10−32.1 \cdot 10^{-3} 1.4⋅10−41.4 \cdot 10^{-4}
PHYDYAS, K=4K = 4 2.7⋅10−52.7 \cdot 10^{-5} 8.6⋅10−88.6 \cdot 10^{-8} 1.3⋅10−91.3 \cdot 10^{-9}

The PHYDYAS pulse keeps all but 3⋅10−53 \cdot 10^{-5} of its energy within one spacing of its center, while the OFDM pulse still has 2 percent beyond four spacings.

Variations

  • Filtered multitone. Use subcarriers that do not overlap in frequency, with complex QAM and no offset. It needs no real-orthogonality but loses rate to the gaps between subcarriers.
  • Cosine-modulated multitone. A real-valued baseband version with PAM, proposed for wired systems.
  • FBMC-QAM. Send complex QAM directly, for example with different prototypes on even and odd subcarriers, and accept a small loss of orthogonality in return for simpler MIMO schemes.
  • Frequency-spreading receiver. Replace the polyphase network by a KMKM-point FFT followed by a short filter across adjacent bins.
  • Other prototypes. Prototypes designed by optimization, or derived from the isotropic orthogonal transform algorithm or from a root-raised-cosine response, trade time and frequency localization.

Pitfalls

  • Expecting complex orthogonality. Taking the full complex inner product in line L3 instead of its real part adds the intrinsic interference, about 0.5 of a neighbor's amplitude. Keep the real part in line L3.
  • Pilots without care. A pilot alone sees the intrinsic interference from its data neighbors as an imaginary term, so a plain channel estimate is wrong. Surround pilots with guard symbols, or choose a neighbor so that the interference at the pilot cancels.
  • Wrong phase pattern. The phases jk+mj^{k+m} in lines L2 and L3 must match; other valid patterns exist, but the transmitter and receiver must use the same one.
  • Short bursts. Each burst has filter tails of about KMKM samples. For short packets this overhead is larger than the cyclic prefix it replaces.
  • Long delay spread. Without a prefix, a channel whose delay spread is a large fraction of MM breaks the one-tap model. Use a multi-tap equalizer per subcarrier or a larger MM.

Code

Each implementation follows the pseudocode above. A comment @line links a line of code to a line of the pseudocode. Point at a line of the pseudocode to see the matching code. The build runs the native tests of each language.

filter_bank_multicarrier.pyI0RawGitHub
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/filter-bank-multicarrier/. The authors are listed in prov/E8S9AK.jsonl.

"""FBMC with offset QAM (OFDM/OQAM), written as a direct synthesis and analysis.

Each complex QAM symbol c[i][k] becomes two real symbols, a[2i][k] = Re c and
a[2i+1][k] = Im c, sent half a symbol period apart. The real symbol a[m][k]
rides on the pulse

    g_{k,m}[n] = g[n - m M/2] e^(j 2 pi k (n - D/2) / M) j^(k+m),

where g is a real symmetric prototype filter of length D + 1 and unit energy.
The pulses are orthogonal in the real sense: Re <g_{k,m}, g_{k',m'}> = 1 if
(k, m) = (k', m') and 0 otherwise, exactly for the half-sine prototype with
length M and nearly for the PHYDYAS prototype with overlap K = 4. The
receiver takes the real part of the correlation with each pulse. The code
is a direct O(M^2 S) form for checking; real systems use an FFT and a
polyphase network.
"""

import cmath
import math
from typing import Sequence

PHYDYAS_K4 = [1.0, 0.97195983, math.sqrt(2) / 2, 0.23514695]


def half_sine(m: int) -> list[float]:
    """The half-sine prototype of length M with unit energy (overlap factor 1)."""
    return [math.sqrt(2.0 / m) * math.sin(math.pi * (n + 0.5) / m) for n in range(m)]


def phydyas(m: int) -> list[float]:
    """The PHYDYAS prototype with overlap K = 4, length 4M - 1, scaled to unit energy."""
    k = 4
    h = PHYDYAS_K4
    g = [h[0] + 2 * sum((-1) ** i * h[i] * math.cos(2 * math.pi * i * (n + 1) / (k * m)) for i in range(1, k)) for n in range(k * m - 1)]
    e = math.sqrt(sum(v * v for v in g))
    return [v / e for v in g]


def pulse(k: int, m: int, g: Sequence[float], M: int, length: int) -> list[complex]:
    """The pulse g_{k,m} as a vector of the given length."""
    d = len(g) - 1
    out = [0j] * length
    ph = 1j ** ((k + m) % 4)
    for i, v in enumerate(g):
        n = i + m * M // 2
        out[n] = v * cmath.exp(2j * math.pi * k * (n - d / 2) / M) * ph
    return out


def signal_length(slots: int, g: Sequence[float], M: int) -> int:
    """The number of samples for the given number of real symbol slots."""
    return (slots - 1) * (M // 2) + len(g)


def oqam_stagger(c: Sequence[Sequence[complex]]) -> list[list[float]]:
    """QAM symbols c[i][k] to real symbols a[2i][k] = Re c[i][k] and a[2i+1][k] = Im c[i][k]."""
    a = []
    for row in c:  # @line L1
        a.append([v.real for v in row])
        a.append([v.imag for v in row])
    return a


def oqam_destagger(a: Sequence[Sequence[float]]) -> list[list[complex]]:
    """The inverse of oqam_stagger."""
    return [[complex(u, v) for u, v in zip(a[2 * i], a[2 * i + 1])] for i in range(len(a) // 2)]  # @line L4


def synthesize(a: Sequence[Sequence[float]], g: Sequence[float], M: int) -> list[complex]:
    """The transmitted samples: the sum of a[m][k] times g_{k,m}."""
    length = signal_length(len(a), g, M)
    s = [0j] * length
    for m, row in enumerate(a):
        for k, v in enumerate(row):
            if v:
                p = pulse(k, m, g, M, length)
                for n in range(m * M // 2, m * M // 2 + len(g)):
                    s[n] += v * p[n]  # @line L2
    return s


def analyze(s: Sequence[complex], slots: int, g: Sequence[float], M: int) -> list[list[float]]:
    """The real symbols Re <s, g_{k,m}> for every slot m and subcarrier k."""
    a = []
    for m in range(slots):
        row = []
        for k in range(M):
            p = pulse(k, m, g, M, len(s))
            row.append(sum(s[n] * p[n].conjugate() for n in range(m * M // 2, m * M // 2 + len(g))).real)  # @line L3
        a.append(row)
    return a
test_filter_bank_multicarrier.py 94 lines
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/filter-bank-multicarrier/. The authors are listed in prov/E8S9AK.jsonl.

import cmath
import math
import random

from filter_bank_multicarrier import (
    PHYDYAS_K4,
    analyze,
    half_sine,
    oqam_destagger,
    oqam_stagger,
    phydyas,
    pulse,
    signal_length,
    synthesize,
)

QAM16 = [complex(a, b) / math.sqrt(10) for a in (-3, -1, 1, 3) for b in (-3, -1, 1, 3)]


def gram(g, M, slots):
    length = signal_length(slots, g, M)
    P = {(k, m): pulse(k, m, g, M, length) for m in range(slots) for k in range(M)}
    out = {}
    keys = list(P)
    for i, u in enumerate(keys):
        for v in keys[i:]:
            out[(u, v)] = sum(x * y.conjugate() for x, y in zip(P[u], P[v]))
    return out


def test_prototypes():
    for g in (half_sine(8), phydyas(8)):
        assert abs(sum(v * v for v in g) - 1) < 1e-12
        assert max(abs(g[n] - g[len(g) - 1 - n]) for n in range(len(g))) < 1e-12
    assert abs(PHYDYAS_K4[1] ** 2 + PHYDYAS_K4[3] ** 2 - 1) < 1e-7
    assert len(phydyas(8)) == 31


def test_half_sine_is_exactly_real_orthogonal():
    G = gram(half_sine(8), 8, 6)
    for (u, v), ip in G.items():
        want = 1.0 if u == v else 0.0
        assert abs(ip.real - want) < 1e-12
    # the imaginary parts do not vanish: the pulses are not complex orthogonal
    assert max(abs(ip.imag) for ip in G.values()) > 0.4


def test_phydyas_is_nearly_real_orthogonal():
    G = gram(phydyas(8), 8, 10)
    err = max(abs(ip.real - (1.0 if u == v else 0.0)) for (u, v), ip in G.items())
    assert err < 3e-4
    assert max(abs(ip.imag) for ip in G.values()) > 0.5


def test_round_trip_half_sine():
    rng = random.Random(1)
    M, S = 8, 5
    c = [[rng.choice(QAM16) for _ in range(M)] for _ in range(S)]
    a = oqam_stagger(c)
    s = synthesize(a, half_sine(M), M)
    ah = analyze(s, 2 * S, half_sine(M), M)
    ch = oqam_destagger(ah)
    assert max(abs(x - y) for r1, r2 in zip(c, ch) for x, y in zip(r1, r2)) < 1e-9


def test_round_trip_phydyas_is_close():
    rng = random.Random(2)
    M, S = 8, 4
    g = phydyas(M)
    c = [[rng.choice(QAM16) for _ in range(M)] for _ in range(S)]
    ch = oqam_destagger(analyze(synthesize(oqam_stagger(c), g, M), 2 * S, g, M))
    err = max(abs(x - y) for r1, r2 in zip(c, ch) for x, y in zip(r1, r2))
    assert err < 5e-3


def out_of_band(g, M, edge, points=512):
    tot = out = 0.0
    for i in range(points):
        f = (i - points / 2) / points
        p = abs(sum(v * cmath.exp(-2j * math.pi * f * n) for n, v in enumerate(g))) ** 2
        tot += p
        if abs(f) * M > edge:
            out += p
    return out / tot


def test_spectral_containment():
    M = 16
    rect = [1 / math.sqrt(M)] * M
    assert out_of_band(rect, M, 2) > 1e-2
    assert out_of_band(phydyas(M), M, 2) < 1e-6

Exercises

  1. Show that the half-sine prototype of length MM has unit energy and is symmetric.
  2. Show that if Re⟨gk,m,gk′,m′⟩=δkk′δmm′\mathrm{Re}\langle g_{k,m}, g_{k',m'}\rangle = \delta_{kk'}\delta_{mm'}, then line L3 recovers every real symbol exactly on a noiseless channel.
  3. Count the real symbols per sample in OFDM/OQAM and in OFDM with a prefix of length M/8M/8, and compare.
  4. For the PHYDYAS coefficients, check that H12+H32=1H_1^2 + H_3^2 = 1 and H02+H22⋅2=2H_0^2 + H_2^2 \cdot 2 = 2, and explain the role of these conditions in the Nyquist property of ∣G(f)∣2|G(f)|^2.
  5. Explain why a pilot with value pp and data neighbors receives H(p+ju)H(p + j u) for some real uu, and why uu depends on the data.

References

  1. Burton R. Saltzberg, Performance of an efficient parallel data transmission system, IEEE Transactions on Communication Technology 15(6), 1967, pages 805 to 811, parallel transmission on overlapping subchannels with the quadrature components staggered by half a symbol period
  2. Behrouz Farhang-Boroujeny, OFDM versus filter bank multicarrier, IEEE Signal Processing Magazine 28(3), 2011, pages 92 to 112, the OQAM synthesis and analysis filter banks, the real orthogonality, the polyphase implementation and the comparison with OFDM

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
Code (python)I0 not checked yet
  • the tests did not run in this build
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW2 basic
  • three classic examples