Korkut Kaynardag

Stationary Wavelet Package Transformation

There are multiple wavelet transformation. One of them with very useful features for many different applications is Stationary Wavelet Package Transformation (SWPT), Therefore, in this blog, I wanted explain this transformation by combining the explanations from several different papers:

SWPT combines the attractive features of Stationary Wavelet Transformation (i.e., SWT) and Discrete Wavelet Package Transformation (i.e., DWPT) (Wirsing 2013). These features are the shift-invariance of SWT and high-resolution decompositions of DWPT. As an example, Figure 1 (a) demonstrates the three-level decomposition of a signal using DWPT. In the first level, the signal is decomposed into approximation (i.e., A) and detail coefficients (i.e., D). These coefficients are obtained by filtering the signal by a low pass (i.e., L) and high pass filter (i.e., H) that are determined by a wavelet. Then, the outputs of the filters are downsampled by 2. The approximation coefficient represents the lower frequency components since they are obtained by deconvolving the signal with a low pass filter. Similarly, detail coefficients represent the higher frequency components. In the next levels, the decompositions are applied to approximation and detail coefficients. However, the downsampling of filter outputs violates Nyquist criteria. This causes aliasing of frequency components above or below the cutoff frequency of the filter (since an ideal filter is not achievable) into wrong decomposition levels, leading to shift-invariance. This is a situation that which a small shift of a signal can lead to large variations in the distribution of wavelet coefficients (Bradley 2003). SWPT achieves translation-invariance by removing the down samplers and padding zeros to the filter coefficients (Nason and Silverman 1995). In addition, SWPT uses both the approximation and detail coefficients for the decompositions as DWPT does. However, SWT uses only the approximation coefficients. Therefore, SWPT allows for high-resolution decompositions for the entire frequency range of interest. Figure 1 (b) and (c) show the time-frequency tiling of SWPT and SWT for the first three-level, respectively. The figures show that the decompositions of SWPT have higher resolution in higher frequencies. Consequently, SWPT achieves shift-invariant high-resolution decompositions.

Figure 1: (a) the binary tree of a three-level DWPT, where the signal is split by low- and high-pass filters and down-sampled by 2 at each level; (b) the time-frequency tiling of SWPT, eight equal frequency bands; (c) the time-frequency tiling of SWT, bands D1, AD2 and AAD3.
Figure 1. Wavelet Transformation: (a) binary tree of DWPT (b) time-frequency tiling of SWPT (c) time-frequency tiling of SWT.

Approximation coefficient’s (ACs) and detail coefficient’s (DCs) of WPT (also of DWT) at each level are computed from the proceeding AC’s and DC’s using low-pass filters (i.e., H), high-pass filters (i.e. ,G), and decimation (i.e., ↓ 2) (Nason and Silverman 1995), as shown in Figure 1 (a). The low-pass filter has the coefficients of {hn} in time-domain and they convolute with an infinite signal sequence {…, s−2, s−1, s0, s1, s2, …} in time-domain:

(Hs)k=∑nhn−ksn(1)

When the sequence is finite, boundary conditions are applied at finite ends. Several different boundary conditions are available (Strang and Nguyen 1996) and periodic boundary condition is chosen in this study. Moreover, the filter coefficients should have a sum of squares equal to one (i.e., ∑nhn2=1), and they should also satisfy the internal orthogonality condition:

∑nhnhn+2j=0,j≠0(2)

The high-pass filter (G) coefficients (i.e., gn) also obey the same rules and they are related to hn:

gn=(−1)nh1−n(3)

Moreover, both filters satisfy the following mutual orthogonality relation:

∑nhngn+2j=0(4)

These filters are determined by the wavelet type used in the composition. For down-sampling, binary decimator operator (i.e., Do) chooses every even member of the sequence (shown as ↓ 2 in Figure 1 (a)):

(Dos)j=s2j(5)

Now, consider the signal sequence to be finite (e.g., s: s0, s1, …, sN−1 where N = 2J for some integer J). Consider that the signal equals to zero level approximation. AC’s and DC’s at other levels can be found:

aj+1=D0Hajanddj+1=D0Gdj(6)

where a and d are AC’s and DC’s, respectively, and the superscript on them denotes the decomposition level. The mapping of any sequence (e.g. s) to the pair of sequences (D0Hs, D0Gs) is an orthogonal transformation and therefore the filters are called quadrature mirror filters. At each level, the number of coefficients is reduced by 2.

However, DTW and WPT suffer from shift variance, which is a situation that a small shift of the signal can lead to large variations in the distribution of wavelet coefficients and therefore

resulting in changes in the reconstructed signal (Bradley 2003). The cause of shift variance is the down sampling of filter outputs, which violates Nyquist criteria and causes aliasing of frequency components above or below the cutoff frequency of the filter (due to the fact that an ideal filter is not achievable) into wrong decomposition levels.

One of the methods introduced to overcome this problem is SWT. First, to formulate SWT (Nason and Silverman 1995), ϵ-decimated Discrete Wavelet Transform (ϵDWT) is introduced. Define D1 which is a binary decimation operator as D0. However, D1 selects every odd member of a sequence instead of the even member:

(D1s)j=s2j+1(7)

Now, define sequence ϵ: ϵJ−1, ϵJ−2,…, ϵ0 as a sequence of 0’s and 1’s. Next, use the binary decimation operator Dϵj at level j to perform DWT. For each different ϵ, a different orthogonal transformation is obtained. DWT decomposed with different ϵ’s is referred as ϵDWT. It was shown that SWT includes every combination of ϵDWT (Nason and Silverman 1995). Therefore, the number of coefficients at each composition level of SWT equals to the number of signal points.

To directly obtain SWT transformation, DWT algorithm was modified. The modification was achieved by removing the decimation operators and padding zeros to high and low-pass filters at each level. To achieve the latter, define Z to be an operator that places zeros between each point of a signal so that (Zs)2j = sj and (Zs)2j+1 = 0. Now, define filters H[r] and G[r] to be equal to Zrh and Zrg, respectively. Consequently, the coefficients of H[r] equal to coefficients of H for every 2rj’th coefficient, and to zero for the remaining 2rj − N number of coefficients (i.e., h2rj[r]=hj, and hk[r]=0 if k is not a multiple of 2r). Therefore, the following relationship holds:

D0rH[r]=HD0randD0rG[r]=GD0r(8)

Considering again that the signal equals to zero level approximation (a0 = s), AC’s and AD’s of SWT at other levels can be found:

aj+1=H[j]ajanddj+1=G[j]dj(9)

References

  • Bradley, A. P. 2003. “Shift-invariance in the Discrete Wavelet Transform.” Proc. VIIth Digit. Image Comput., 10–12.
  • Nason, G. P., and B. W. Silverman. 1995. “The Stationary Wavelet Transform and some Statistical Applications.” 281–299. https://doi.org/10.1007/978-1-4612-2544-7_17.
  • Strang, G., and T. Nguyen. 1996. Wavelets and Filter Banks. Wellesley: Wellesley-Cambridge Press.
  • Wirsing, K. 2013. “Time Frequency Analysis of Wavelet and Fourier Transform.” Intech, 32 (July): 137–144.