Wavelet Transforms in One Dimension

Wavelet transforms in one dimension are a powerful mathematical tool used for analyzing and processing signals in both the time and frequency domains. Unlike traditional Fourier transforms, which represent a signal using infinite sinusoidal functions, wavelet transforms decompose a signal into localized wavelet functions. These wavelets are capable of capturing both global trends and fine-scale details simultaneously.

The key advantage of wavelet transforms lies in their ability to adapt to the varying nature of a signal. For instance:

  • Low-frequency components (global features) are analyzed with coarse, stretched wavelets.
  • High-frequency components (local details) are captured using fine, compressed wavelets.

This adaptability makes wavelet transforms especially useful for non-stationary signals, where the frequency content changes over time. The one-dimensional wavelet transform works by recursively decomposing a signal into approximation and detail coefficients at different levels of resolution. These coefficients enable efficient analysis and manipulation of the signal’s structure.

Applications of one-dimensional wavelet transforms include:

  • Signal Compression: Reducing data size by preserving significant wavelet coefficients while discarding minor ones.
  • Denoising: Isolating and removing noise by thresholding wavelet coefficients.
  • Feature Extraction: Detecting transient features, edges, or abrupt changes in signals.

Wavelet transforms have found wide-ranging applications across fields like audio processing, biomedical signal analysis (e.g., ECG or EEG), seismic data interpretation, and communications. Their ability to provide a time-frequency representation with adjustable resolution makes them a cornerstone of modern signal analysis techniques.

1. Wavelet Series Expansion

A wavelet series expansion represents a function as a combination of scaling functions and wavelet functions. The scaling functions capture the low-frequency or smooth part of the signal, while the wavelet functions encode the high-frequency or detailed parts.

Consider a function f(x)L2(R)f(x) \in L^2(\mathbb{R}) (the space of square-integrable functions). We can represent this function using scaling and wavelet functions. The wavelet series expansion of a function is given by:

f(x)=kcj0(k)ϕj0,k(x)+j=j0kdj(k)ψj,k(x)f(x) = \sum_k c_{j_0}(k) \phi_{j_0,k}(x) + \sum_{j=j_0}^\infty \sum_k d_j(k) \psi_{j,k}(x)

Where:

  • ϕj0,k(x)\phi_{j_0,k}(x) is the scaling function at scale j0j_0.
  • ψj,k(x)\psi_{j,k}(x) are the wavelet functions at different scales jj and translations kk.
  • cj0(k)c_{j_0}(k) are the approximation coefficients that capture the low-frequency content.
  • dj(k)d_j(k) are the detail coefficients that capture the high-frequency details.

The scaling function, ϕj0,k(x)\phi_{j_0,k}(x), provides a coarse approximation of the function, while the wavelet functions, ψj,k(x)\psi_{j,k}(x), add finer details as we go to higher scales jj. The first sum represents the low-frequency approximation, and the second sum adds detail at various scales to improve accuracy.

Calculation of Coefficients

To compute the coefficients, we use the inner product of the function with the scaling and wavelet functions:

cj0(k)=f(x)ϕj0,k(x)dxc_{j_0}(k) = \int f(x) \phi_{j_0,k}(x) \, dx dj(k)=f(x)ψj,k(x)dxd_j(k) = \int f(x) \psi_{j,k}(x) \, dx

This allows us to decompose the function f(x)f(x) into components at different scales, where the approximation coefficients cj0(k)c_{j_0}(k) provide the smooth representation, and the detail coefficients dj(k)d_j(k) add higher-resolution information.

2. Discrete Wavelet Transform (DWT)

The Discrete Wavelet Transform (DWT) is a computationally efficient method that maps a discrete signal (a sequence of values) into wavelet coefficients, representing both the low- and high-frequency components of the signal.

The DWT operates by applying discrete filters to a signal f(n)f(n), which is sampled at discrete intervals. The filters decompose the signal into a set of approximation coefficients (low-frequency components) and detail coefficients (high-frequency components). This decomposition can be applied iteratively to obtain finer details.

Formulation of the DWT

For a discrete signal f(n)f(n), where n=0,1,,M1n = 0, 1, \dots, M-1, the discrete wavelet transform is given by:

Wϕ(j0,k)=nf(n)ϕj0,k(n)W_\phi(j_0, k) = \sum_{n} f(n) \phi_{j_0,k}(n) Wψ(j,k)=nf(n)ψj,k(n)W_\psi(j, k) = \sum_{n} f(n) \psi_{j,k}(n)

Where:

  • Wϕ(j0,k)W_\phi(j_0, k) are the approximation coefficients at the coarsest scale j0j_0.
  • Wψ(j,k)W_\psi(j, k) are the detail coefficients at finer scales jj.

The discrete wavelet transform uses a pair of filters:

  • Lowpass filter: Captures the approximation (scaling) coefficients.
  • Highpass filter: Captures the detail (wavelet) coefficients.

Inverse Discrete Wavelet Transform

Once the signal is decomposed, it can be reconstructed using the inverse discrete wavelet transform (IDWT). The IDWT reconstructs the original signal by summing up the contributions from both the approximation and detail coefficients:

f(n)=kWϕ(j0,k)ϕj0,k(n)+j=j0kWψ(j,k)ψj,k(n)f(n) = \sum_k W_\phi(j_0, k) \phi_{j_0,k}(n) + \sum_{j=j_0}^\infty \sum_k W_\psi(j, k) \psi_{j,k}(n)

This allows us to fully reconstruct the original signal f(n)f(n) from its wavelet coefficients.

3. Continuous Wavelet Transform (CWT)

The Continuous Wavelet Transform (CWT) is similar to the DWT but is defined for continuous functions and produces a redundant representation of the signal, capturing both time and frequency information. The CWT transforms a continuous function into a two-dimensional representation over scale and translation.

The CWT of a function f(x)f(x) is defined as:

Wc(s,t)=f(x)ψs,t(x)dxW_c(s, t) = \int_{-\infty}^{\infty} f(x) \psi_{s,t}(x) \, dx

Where:

  • ψs,t(x)=1sψ(xts)\psi_{s,t}(x) = \frac{1}{\sqrt{s}} \psi\left(\frac{x – t}{s}\right) is the mother wavelet, scaled by ss and translated by tt.
  • ss is the scale parameter that controls the dilation or compression of the wavelet.
  • tt is the translation parameter that shifts the wavelet along the xx-axis.

The inverse CWT allows us to reconstruct the original function by integrating over the scales and translations:

f(x)=1Cψ0Wc(s,t)ψs,t(x)dtdss2f(x) = \frac{1}{C_\psi} \int_0^\infty \int_{-\infty}^{\infty} W_c(s, t) \psi_{s,t}(x) \, \frac{dt \, ds}{s^2}

Where CψC_\psi is a constant that depends on the wavelet used.

4. Example: Haar Wavelets

The Haar wavelet is one of the simplest and most commonly used wavelets. It is defined as:

ψ(x)={1for 0x<121for 12x<10otherwise\psi(x) = \begin{cases} 1 & \text{for } 0 \leq x < \frac{1}{2} \\ -1 & \text{for } \frac{1}{2} \leq x < 1 \\ 0 & \text{otherwise} \end{cases}

Consider the function f(x)=x2f(x) = x^2 over the interval [0,1][0, 1]. Using Haar wavelets, we can approximate this function by applying the wavelet series expansion.

Step-by-Step Approximation

  1. Coarse Approximation: Start by approximating f(x)f(x) using the scaling function at the coarsest level. The approximation captures the average behavior of f(x)f(x) over each interval.

  2. Add Detail: At the next level, we add the first wavelet function, which captures the difference between the original function and the coarse approximation. This adds finer details to the approximation.

  3. Higher-Order Approximation: As we go to higher scales, we add more wavelets, capturing even finer details of f(x)f(x). The more levels we include, the closer the wavelet series expansion gets to the original function.

After applying several levels of the wavelet expansion, the approximation will become closer to the original function f(x)=x2f(x) = x^2, and the error will decrease as more wavelets are added.

5. Fast Wavelet Transform (FWT)

The Fast Wavelet Transform (FWT) is an efficient algorithm for computing the DWT. It exploits the relationship between wavelet coefficients at successive scales to reduce the computational complexity. The FWT reduces the number of calculations required by successively applying lowpass and highpass filters to the signal and downsampling the result.

This approach is similar to subband coding, where the signal is decomposed into different frequency bands. By iterating this process, the FWT can efficiently compute the wavelet coefficients for large datasets, making it suitable for real-time signal processing and image compression.

References

  • Gonzalez, Rafael C., and Richard E. Woods. Digital Image Processing, 3rd Edition. Pearson, 2008

Leave a Comment