Foundations to Frontier
Tests
A. Mathematical Foundations › A10 Signal Processing

Wavelets

Fourier analysis uses waves that last forever, so it struggles with signals that change suddenly. Wavelets are short, localized oscillations that can be stretched and shifted, giving a multi-resolution view: fine detail where things change fast and coarse summaries elsewhere. This topic covers the continuous and discrete wavelet transforms, the Haar and Daubechies filter banks, perfect reconstruction and orthogonality, vanishing moments and sparsity, and thresholding for compression and denoising. In the research exercise you denoise spacecraft bus-voltage telemetry with load-switching steps, beating both moving-average and Fourier filtering while keeping the edges sharp.

Level 0: Foundation

★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.

Zooming in and out

To describe a mountain range you might say “big hills to the north”, then zoom in on one hill to describe its rocks, and zoom further onto one cliff. Wavelets describe signals the same way: a coarse summary plus layers of detail at finer and finer scales, each tied to a place. A sudden jump shows up as a few big details right where it happens. Smooth stretches need almost no detail at all.

Wavelets: zoom lenses for signals
level 1 (fine)level 2level 3level 4level 5level 6
kept 25 of 256 coefficients (9.8%) · RMS error: noisy 0.098 → reconstructed 0.107
Each level halves the time resolution and doubles the scale: fine levels (bottom) see sharp edges and noise, coarse levels see slow trends. Smooth stretches produce near-zero detail coefficients; jumps and spikes produce a few large ones at every level, right where they occur. Zeroing the small (noise-dominated) coefficients denoises while keeping edges, which is the basis of JPEG 2000 and CCSDS 122 image compression.
Why engineers care

The CCSDS 122 standard used by spacecraft and JPEG 2000 compress images with wavelets. Wavelet denoising cleans telemetry without blurring sudden events. Wavelet features detect faults, transients and edges in vibration, power and sensor data.

📝 Quick check (Level 0)
0/3 answered
  1. 1. Wavelets are…
  2. 2. A sudden jump in a signal produces…
  3. 3. Spacecraft image compression (CCSDS 122) uses…

Level 1: Beginner

★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.

The Haar wavelet

The simplest wavelet splits pairs into average and difference:

ai=x2i+x2i+12,di=x2i−x2i+12a_i = \frac{x_{2i} + x_{2i+1}}{\sqrt2},\qquad d_i = \frac{x_{2i} - x_{2i+1}}{\sqrt2}

Repeat on the averages to get levels 2, 3, … Inversion is just as simple. The 1/21/\sqrt2 makes the transform orthonormal, so energy is preserved.

Multi-resolution

After L levels: one coarse approximation plus detail bands at scales 2,4,…,2L2, 4, \dots, 2^L. Each level halves the time resolution and the frequency band, so low frequencies get long windows and high frequencies short ones. That’s a constant-Q tiling of the time–frequency plane.

📝 Quick check (Level 1)
0/3 answered
  1. 1. Haar of the pair (3, 1) gives detail…
  2. 2. An orthonormal wavelet transform preserves…
  3. 3. Each DWT level halves the…

Level 2: Intermediate

★★★☆☆ Intermediate⏱ 40 minUndergraduate students and practising engineers.

Filter banks

The DWT is a two-channel filter bank: a low-pass hh and a high-pass g[k]=(−1)kh[L−1−k]g[k] = (-1)^kh[L - 1 - k] (quadrature mirror), each followed by downsampling by 2. Daubechies-4 has h=142(1+3,3+3,3−3,1−3)h = \frac1{4\sqrt2}(1 + \sqrt3, 3 + \sqrt3, 3 - \sqrt3, 1 - \sqrt3). It has 2 vanishing moments: gg annihilates constants and linear ramps, so smooth segments give near-zero details.

Sparsity and compression

Piecewise-smooth signals have a few large wavelet coefficients near discontinuities and tiny ones elsewhere. Keeping the largest K approximates them far better than keeping K Fourier coefficients, because Fourier spreads a jump over all frequencies (Gibbs).

Denoising by thresholding

For white noise of level σ in an orthonormal transform, every coefficient gets noise σ. Soft-threshold the details with η(v)=sign⁡(v)max⁡(∣v∣−λ,0)\eta(v) = \operatorname{sign}(v)\max(\lvert v\rvert - \lambda, 0), using the universal threshold λ=σ2ln⁡N\lambda = \sigma\sqrt{2\ln N} (Donoho and Johnstone, 1994). Estimate σ\sigma robustly as median⁡∣dfinest∣/0.6745\operatorname{median}\lvert d_{\text{finest}}\rvert/0.6745.

🐍 Exercise 1: Haar and Daubechies filter banks
Implement one DWT level and its inverse for any orthogonal filter (periodic extension), plus multilevel decomposition and reconstruction. Verify perfect reconstruction, energy preservation and D4's vanishing moments. Show that 5% of the wavelet coefficients approximate a step-and-ramp signal better than 5% of the Fourier coefficients.
📝 Quick check (Level 2)
0/3 answered
  1. 1. D4's high-pass filter annihilates…
  2. 2. Universal threshold for σ = 1, N = e²:
  3. 3. Soft thresholding of 3 with λ = 1 gives…

Level 3: Advanced

★★★★☆ Advanced⏱ 40 minGraduate level, with full derivations and proofs.

Orthogonality of the filter bank

The analysis operator stacks the shifted filters h(⋅−2i)h(\cdot - 2i) and g(⋅−2i)g(\cdot - 2i). Orthonormality requires ∑kh[k]h[k−2m]=δm\sum_kh[k]h[k - 2m] = \delta_m (true for Haar and D4), and the QMF choice of g makes g orthogonal to h and to its own shifts. An orthonormal matrix’s inverse is its transpose, which is exactly the synthesis step. ∎

Why thresholding works

In an orthonormal basis, white noise stays white with the same σ. The maximum of N Gaussian noise coefficients is about σ2ln⁡N\sigma\sqrt{2\ln N}, so with high probability the universal threshold removes all pure-noise coefficients, while large signal coefficients survive (shrunk by λ). The risk is within a log factor of an ideal oracle (Donoho and Johnstone, 1994). ∎

MAD noise estimate

For Gaussian noise, median⁡∣Z∣=0.6745σ\operatorname{median}\lvert Z\rvert = 0.6745\sigma. The finest-scale details are mostly noise, plus a few large signal outliers that the median ignores.

Exercise 3.1: verify ∑h[k]h[k − 2] = 0 for D4

h0h2+h1h3∝(1+3)(3−3)+(3+3)(1−3)=(23)+(−23)=0h_0h_2 + h_1h_3\propto(1 + \sqrt3)(3 - \sqrt3) + (3 + \sqrt3)(1 - \sqrt3) = (2\sqrt3) + (-2\sqrt3) = 0.

📝 Quick check (Level 3)
0/3 answered
  1. 1. The inverse of an orthonormal DWT is…
  2. 2. median|Z|/σ for Gaussian Z is…
  3. 3. The universal threshold is about the largest value of…

Level 4: Expert

★★★★★ Expert⏱ 35 minResearchers: original papers and open problems.

Denoising bus-voltage telemetry

A 28 V spacecraft power bus shows slow ripple plus sudden steps as loads switch, buried in 0.15 V of measurement noise. A 4-level D4 decomposition, MAD-estimated σ (0.155 V) and universal soft thresholding give an RMS error of 0.059 V. A reasonably tuned moving average reaches 0.070 V and an FFT low-pass 0.072 V. More importantly, the wavelet estimate rises 0.60 V of a 1 V step within 5 samples, versus 0.34 V for the moving average. Switching events stay sharp for fault detection and timing.

🐍 Exercise 2 (research): wavelet denoising of power-bus telemetry
Denoise a noisy bus-voltage record with load-switching steps using D4 wavelets, a MAD noise estimate and universal soft thresholding. Compare RMSE and step sharpness with a moving average and an FFT low-pass.

Wavelets in AI, robotics and aerospace

  • Onboard image compression: CCSDS 122.0 (wavelet + bit-plane encoder) on many Earth-observation and science missions; JPEG 2000.
  • Fault and transient detection: wavelet features for power-system faults, bearing defects and structural damage.
  • Compressed sensing: natural images are sparse in wavelets, enabling sparse recovery from few measurements.
  • Learning: scattering networks (Mallat, 2012) build invariant features from wavelets; wavelet-based neural operators.

References

  1. S. Mallat (2009). A Wavelet Tour of Signal Processing: The Sparse Way, 3rd ed. Academic Press.
  2. I. Daubechies (1992). Ten Lectures on Wavelets. SIAM.
  3. D. Donoho, I. Johnstone (1994). “Ideal spatial adaptation by wavelet shrinkage.” Biometrika, 81(3).
  4. G. Strang, T. Nguyen (1996). Wavelets and Filter Banks. Wellesley-Cambridge.
  5. CCSDS (2017). Image Data Compression, CCSDS 122.0-B-2. Blue Book.
  6. S. Mallat (2012). “Group invariant scattering.” Comm. Pure Appl. Math., 65(10).
  7. A. Haar (1910). “Zur Theorie der orthogonalen Funktionensysteme.” Mathematische Annalen, 69.