Next Article in Journal
Formal Group Fairness and Accuracy in Automated Decision Making
Previous Article in Journal
Neural Attractor-Based Adaptive Key Generator with DNA-Coded Security and Privacy Framework for Multimedia Data in Cloud Environments
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

The Improvement of the Discrete Wavelet Transform

School of Mathematics, Shandong University, Jinan 250100, China
Mathematics 2023, 11(8), 1770; https://doi.org/10.3390/math11081770
Submission received: 16 March 2023 / Revised: 30 March 2023 / Accepted: 3 April 2023 / Published: 7 April 2023

Abstract

:
Discrete wavelet transforms are widely used in signal processing, data compression and spectral analysis. For discrete data with finite sizes, one always pads the data with zeros or extends the data into periodic data before performing the discrete periodic wavelet transform. Due to discontinuity on the boundaries of the original data, the obtained wavelet coefficients always decay slowly, leading to data compression ratios that are significantly lower. In order to solve this issue, in this study, we coupled polynomial fitting into classic discrete periodic wavelet transforms to mitigate these boundary effects.

1. Introduction

The application of wavelets in data compression, denoising and time-frequency representation [1,2,3,4,5,6] requires that the wavelets are real-valued, (anti)symmetric and compactly supported. Classic orthogonal wavelets cannot achieve these properties, so the orthogonality in wavelets is relaxed to biorthogonality [7,8,9,10,11,12]. Let ψ ( t ) and ψ ˜ ( t ) be a pair of real-valued compactly supported biorthonomal wavelets in L 2 ( R ) that are generated by real-valued compactly supported scaling functions φ ( t ) and φ ˜ ( t ) . The frequently used wavelets in higher dimensions just consist of tensor products of one-dimensional wavelets, e.g., we can generate the tensor product of φ ( t ) and ψ ( t ) as follows:
φ 0 ( t 1 , t 2 ) = φ ( t 1 ) φ ( t 2 ) , ψ 1 ( t 1 , t 2 ) = φ ( t 1 ) ψ ( t 2 ) , ψ 2 ( t 1 , t 2 ) = ψ ( t 1 ) φ ( t 2 ) , ψ 3 ( t 1 , t 2 ) = ψ ( t 1 ) ψ ( t 2 ) .
Similarly, taking the tensor products of φ ˜ ( t ) and ψ ˜ ( t ) , we can obtain φ ˜ ( t 1 , t 2 ) , ψ ˜ 1 ( t 1 , t 2 ) , ψ ˜ 2 ( t 1 , t 2 ) and ψ ˜ 3 ( t 1 , t 2 ) . Then, { ψ μ ( t 1 , t 2 ) } μ = 1 , 2 , 3 and { ψ ˜ μ ( t 1 , t 2 ) } μ = 1 , 2 , 3 are a pair of two-dimensional biorthonomal wavelets of L 2 ( R 2 ) .
Denote
ψ μ , m , n ( t ) = : 2 m ψ μ ( 2 m t n ) = 2 m ψ μ ( 2 m t 1 n 1 , 2 m t 2 n 2 ) ( t = ( t 1 , t 2 ) , n = ( n 1 , n 2 ) ) .
Any function f C l ( R 2 ) can be expanded into a biorthonomal wavelet series:
f ( t ) = n c m , n w φ ˜ 0 , m , n ( t ) + μ = 1 3 m = 0 + n d μ , m , n w ψ ˜ μ , m , n ( t ) ,
where
c m , n w = R R f ( t ) φ ¯ 0 , m , n ( t ) d t , d μ , m , n w = R R f ( t ) ψ ¯ μ , m , n ( t ) d t .
If φ , φ ˜ , ψ , ψ ˜ C l ( R ) , then wavelet coefficients of any smooth function f C l ( R 2 ) satisfy [1,2]
d μ , m , n w = O ( 2 m ( l + 1 ) ) .
The associated wavelet filter banks { h k } and { τ k } are
h k = 2 R φ ( t ) φ ˜ ( 2 t k ) d t , τ k = 2 R ψ ( t ) φ ˜ ( 2 t k ) d t .
Then, the one-dimensional wavelet coefficients satisfy the following:
c m 1 , k w = n h n 2 k c m , n w , d m 1 , k w = n τ n 2 k c m , n w ,
and the two-dimensional wavelet coefficients satisfy
c m 1 , k 1 , k 2 w = n 1 , n 2 h n 1 2 k 1 h n 2 2 k 2 c m , n 1 , n 2 w , d 1 , m 1 , k 1 , k 2 w = n 1 , n 2 h n 1 2 k 1 τ n 2 2 k 2 c m , n 1 , n 2 w , d 2 , m 1 , k 1 , k 2 w = n 1 , n 2 τ n 1 2 k 1 h n 2 2 k 2 c m , n 1 , n 2 w , d 3 , m 1 , k 1 , k 2 w = n 1 , n 2 τ n 1 2 k 1 τ n 2 2 k 2 c m , n 1 , n 2 w ,
see [1]. Formulas (2) and (3) are the one-dimensional and two-dimensional discrete wavelet transforms (DWTs), respectively [1,2].
Biorthonomal wavelets can be extended to deal with periodic data. The periodization of any function h ( t ) is denoted by
h p e r ( t ) = : k Z 2 h ( t + k ) .
The families generated by the periodization of φ , ψ , φ ˜ and ψ ˜ , namely
ψ p e r = { φ 0 p e r } { ψ μ , m , n p e r , μ = 1 , 2 , 3 , m = 0 , 1 , 2 , , n 1 , n 2 = 0 , 1 , , 2 m 1 } , ψ ˜ p e r = { φ ˜ 0 p e r } { ψ ˜ μ , m , n p e r , μ = 1 , 2 , 3 , m = 0 , 1 , 2 , , n 1 , n 2 = 0 , 1 , , 2 m 1 } ,
are a pair of biorthonomal periodic wavelet bases for L 2 ( [ 1 2 , 1 2 ] 2 ) [1,2]. Any periodic function f C l ( [ 1 2 , 1 2 ] 2 ) can be expanded into a biorthonomal periodic wavelet series:
f ( t ) = c 0 , 0 + μ = 1 3 m = 0 n 1 , n 2 = 0 2 m 1 d μ , m , n ψ ˜ μ , m , n p e r ( t ) ,
where
c m , n = 1 2 1 2 1 2 1 2 f ( t ) φ ¯ 0 , m , n p e r ( t ) d t , d μ , m , n = 1 2 1 2 1 2 1 2 f ( t ) ψ ¯ μ , m , n p e r ( t ) d t .
If φ , φ ˜ , ψ , ψ ˜ C l ( R ) , then periodic wavelet coefficients of any smooth periodic function f C l ( [ 1 2 , 1 2 ] 2 ) C l ( R 2 ) satisfy
d μ , m , n = O ( 2 m ( l + 1 ) ) .
Noticing that φ ( t ) and φ ˜ ( t ) are compactly supported, there exists a positive integer N such that
h k = τ k = 0 ( | k | N ) .
We take 2 m 0 1 > N and then define 2 m 0 periodic sequences { h n * } and { τ n * } such that
h k * = h k , τ k * = τ k ( | k | 2 m 0 1 ) , h k + 2 m 0 * = h k * , τ k + 2 m 0 * = τ k * ( k Z ) .
For m m 0 , the one-dimensional periodic wavelet coefficients satisfy the following:
c m 1 , k = n = 0 2 m 1 h n 2 k * c m , n , d m 1 , k = n = 0 2 m 1 τ n 2 k * c m , n ,
and the two-dimensional periodic wavelet coefficients satisfy
c m 1 , k 1 , k 2 = n 1 , n 2 = 0 2 m 1 h n 1 2 k 1 * h n 2 2 k 2 * c m , n 1 , n 2 , d 1 , m 1 , k 1 , k 2 = n 1 , n 2 = 0 2 m 1 h n 1 2 k 1 * τ n 2 2 k 2 * c m , n 1 , n 2 , d 2 , m 1 , k 1 , k 2 = n 1 , n 2 = 0 2 m 1 τ n 1 2 k 1 * h n 2 2 k 2 * c m , n 1 , n 2 , d 3 , m 1 , k 1 , k 2 = n 1 , n 2 = 0 2 m 1 τ n 1 2 k 1 * τ n 2 2 k 2 * c m , n 1 , n 2 ,
see [1]. Formulas (5) and (6) are one-dimensional and two-dimensional discrete periodic wavelet transforms (DPWTs), respectively [1,2]. Since the convolution of finite length data are always computed approximately by circular convolution in signal processing and data analysis, there is no big difference between (2) and (3) and (5) and (6); hence, the DPWT is considered to be the same as the DWT.
The DWT/DPWT has become a routine fast algorithm in various signal processing fields such as data compression, spectral analysis, denoising, mechanical fault diagnosis, etc. Zeng [13] used two-dimensional DWTs to extract weak information from the gamma spectrum; Alaifari et al. [14] developed a recovery algorithm of square-integrable signals from the absolute values of their wavelet transforms; Lin [15] applied the DWT to the simulation of corrosion fields on buried pipelines; Torrence and Compo [15] developed an empirical formula for the statistical significance testing of DWTs of signals against red noise. Later on, Zhang [16] extended this empirical formula to the generalized case and gave the proof in the rigid statistical framework. Since all data used in this research are of a finite size, we always needed to either pad the data with zeros before performing the DWT or extend the data into periodic data before performing the DPWT. Due to discontinuity on the data boundary, the associated wavelet coefficients always decayed slowly, leading to data compression ratios that were significantly lower and wavelet spectra that were distorted. Although the DWT/DPWT has been widely used in different fields (e.g., [13,14,15,16,17,18]), until now there has been no method to delete or mitigate boundary effects in the DWT/DPWT.
In this study, we coupled simple polynomial fitting with a classic DWT/DPWT to mitigate boundary effects on wavelet coefficients. In Section 2, since our proposed algorithm is complex, we first briefly introduce the simplest version of our improved DWT/DPWT algorithm and show how boundary discontinuities are mitigated in our improvement. In Section 3, we discuss the continuous version of our improvement and show the advantages of our improvement. In Section 4, we establish, step by step, a full version of our improvement of the DWT/DPWT. In Section 5, we give details of some numerical experiments that we used to test our improvement algorithm. In Section 6, we summarize the advantages of our improvement algorithm and discuss some potential applications.

2. Our Improvement of the DWT: The Simplest Version

In order to mitigate boundary effects in DWT/DPWT, we proposed the following algorithm.
First, the discrete data, { x n 1 , n 2 } n 1 , n 2 = 0 , 1 , , 2 J 1 , are decomposed into three parts:
x n 1 , n 2 = y n 1 , n 2 ( 2 ) y n 1 , n 2 ( 1 ) + z n 1 , n 2 ,
where
y n 1 , n 2 ( 1 ) = x 0 , 0 ( 1 2 n 1 2 J ) ( 1 2 n 2 2 J ) + x 0 , 2 J 1 ( 1 2 n 1 2 J ) ( 2 n 2 2 J ) + x 2 J 1 , 0 ( 2 n 1 2 J ) ( 1 2 n 2 2 J ) + x 2 J 1 , 2 J 1 ( 2 n 1 2 J ) ( 2 n 2 2 J ) , y n 1 , n 2 ( 2 ) = x 0 , n 2 ( 1 2 n 1 2 J ) + x 2 J 1 , n 2 ( 2 n 1 2 J ) + x n 1 , 0 ( 1 2 n 2 2 J ) + x n 1 , 2 J 1 ( 2 n 2 2 J ) .
The computation of y n 1 , n 2 ( 1 ) depends on the values { x 0 , 0 } , { x 0 , 2 J 1 } , { x 2 J 1 , 0 } and { x 2 J 1 , 2 J 1 } . The computation of y n 1 , n 2 ( 2 ) depends on the boundary data { x n 1 , 0 } , { x n 1 , 2 J 1 } , { x 0 , n 2 } and { x 2 J 1 , n 2 } , which can be further decomposed as follows:
x n 1 , 0 = x 0 , 0 ( 1 2 n 1 2 J ) + x 2 J 1 , 0 ( 2 n 1 2 J ) + w n 1 0 , x n 1 , 2 J 1 = x 0 , 2 J 1 ( 1 2 n 1 2 J ) + x 2 J 1 , 2 J 1 ( 2 n 1 2 J ) + w n 1 1 , x 0 , n 2 = x 0 , 0 ( 1 2 n 2 2 J ) + x 0 , 2 J 1 ( 2 n 2 2 J ) + v n 2 0 , x 2 J 1 , n 2 = x 2 J 1 , 0 ( 1 2 n 2 2 J ) + x 2 J 1 , 2 J 1 ( 2 n 2 2 J ) + v n 2 1 .
Next, an odd extension, and then a periodic extension, for { w n 1 0 } , { w n 1 1 } , { v n 2 0 } , { v n 2 1 } and { z n 1 , n 2 } are performed. By (2.1) and (2.2), it is clear that for n 1 = 0 , 2 J 1 o r n 2 = 0 , 2 J 1 ,
z n 1 , n 2 = 0 , w n 1 0 = 0 , w n 1 1 = 0 , v n 2 0 = 0 , v n 2 1 = 0 ,
so we can easily deduce that the above odd and periodic extensions guarantee continuity and differentiability on the data boundary. Finally, one-dimensional and two-dimensional DWTs/DPWTs are performed for these extension data.
Due to the smooth extension in our improvement, by (1) and (4), the decay rate of the obtained wavelet coefficients in our improvement algorithm is faster than that of traditional (periodic) wavelet coefficients. This means that our improvement can compress the data better than the traditional DWT/DPWT. Our proposed algorithm can be further modified to achieve higher compression ratios. The full version of our improved algorithm is summarized at the end of Section 4.

3. Continuous Version of Our Improved Wavelet Algorithm

In order to explain the advantages of our improved algorithm over traditional wavelet algorithms, we established a step by step continuous version of our improved wavelet algorithm.
Denote D ( α , β ) f = t i a l α + β t i a l t 1 α t i a l t 2 β f . If D ( α , β ) f is continuous on the region Ω for all α , β l , we say f C l ( Ω ) . Let the fundamental polynomial p m ( t ) be a univariate polynomial of degree 2 m + 1 satisfying
D ( 2 λ ) p m ( 0 ) = 0 , D ( 2 λ ) p m ( 1 ) = δ λ , m ,
where δ λ , m = 0 ( λ m ) and δ λ , m = 1 ( λ = m ) . Then, p m ( t ) can be represented as follows:
p m ( t ) = 1 ( 2 m + 1 ) ! t 2 m + 1 + k = 0 m 1 c k t 2 k + 1 ,
where the coefficients, { c k } k = 0 , , m 1 , satisfy
k = j m 1 ( 2 k + 1 ) ! ( 2 k 2 j + 1 ) ! c k = 1 ( 2 m 2 j + 1 ) ! ( j = 0 , 1 , , m 1 ) .
For any function f C l ( [ 0 , 1 2 ] ) , define the interpolation polynomial of f at the nodes 0 and 1 2 :
h ( t ) = k = 0 n 1 2 2 k D ( 2 k ) f ( 0 ) p k ( 1 2 t ) + D ( 2 k ) f 1 2 p k ( 2 t ) ( 0 t 1 2 ) ,
where n = [ l 2 ] and [ · ] represent the integral part. Then, h ( t ) satisfies
D ( 2 j ) h ( 0 ) = D ( 2 j ) f ( 0 ) , D ( 2 j ) h ( 1 2 ) = D ( 2 j ) f ( 1 2 ) ( j = 0 , 1 , , n ) .
Let r ( t ) = f ( t ) h ( t ) ( t [ 0 , 1 2 ] ) . Then,
r ( 2 j ) ( 0 ) = r ( 2 j ) ( 1 2 ) = 0 ( j = 0 , 1 , , n ) .
For r ( t ) , an odd extension is performed, which is denoted by r o ( t ) . Again, a 1-periodic extension of r o ( t ) is performed to obtain r ˜ ( t ) . By (10), it follows that r ˜ C l ( R ) , i.e., the univariate function f C l ( [ 0 , 1 2 ] ) can be decomposed as follows:
f ( t ) = h ( t ) + r ˜ ( t ) ,
where h ( t ) is the interpolation polynomial of f at the nodes 0 and 1 2 , r ˜ ( t ) is a 1-periodic odd function and r ˜ C l ( R ) .
For a bivariate smooth function f C l ( [ 0 , 1 2 ] 2 ) , denote t = ( t 1 , t 2 ) and n = l 2 . Define τ 1 ( t ) as the interpolation polynomial of f at the vertices of [ 0 , 1 2 ] 2 :
τ 1 ( t ) = α , β = 0 n 2 2 α 2 β [ D ( 2 α , 2 β ) f ( 0 , 0 ) p α ( 1 2 t 1 ) p β ( 1 2 t 2 ) + D ( 2 α , 2 β ) f ( 0 , 1 2 ) p α ( 1 2 t 1 ) p β ( 2 t 2 ) + D ( 2 α , 2 β ) f ( 1 2 , 0 ) p α ( 2 t 1 ) p β ( 1 2 t 2 ) + D ( 2 α , 2 β ) f ( 1 2 , 1 2 ) p α ( 2 t 1 ) p β ( 2 t 2 ) ] ,
such that for 0 α , β n and ( t 1 , t 2 ) = ( 0 , 0 ) , ( 0 , 1 2 ) , ( 1 2 , 0 ) , ( 1 2 , 1 2 ) ,
D ( 2 α , 2 β ) τ 1 ( t 1 , t 2 ) = D ( 2 α , 2 β ) f ( t 1 , t 2 ) .
Define
τ 2 ( t ) = α = 0 n 1 2 2 α [ D ( 2 α , 0 ) f ( 0 , t 2 ) p α ( 1 2 t 1 ) + D ( 2 α , 0 ) f ( 1 2 , t 2 ) p α ( 2 t 1 ) ] + β = 0 n 1 2 2 β [ D ( 0 , 2 β ) f ( t 1 , 0 ) p β ( 1 2 t 2 ) + D ( 0 , 2 β ) f ( t 1 , 1 2 ) p β ( 2 t 2 ) ] .
Theorem 1.
Let f C l ( [ 0 , 1 2 ] 2 ) . Then, the following decomposition formula holds:
f ( t ) = τ 2 ( t ) τ 1 ( t ) + r ( t ) ( t [ 0 , 1 2 ] 2 ) ,
 and r ( t ) can be extended into a 1-periodic odd function r ˜ ( t ) and r ˜ C l ( R 2 ) .
Proof. 
By (9), we know that D ( 2 μ ) p α ( 1 ) = δ α , μ and D ( 2 μ ) p α ( 0 ) = 0 . Again, by (11), for 0 μ , ν n ,
D ( 2 μ , 2 ν ) ( τ 1 ( 0 , t 2 ) ) = β = 0 n [ D ( 2 μ , 2 β ) f ( 0 , 0 ) D ( 2 ν ) p β ( 1 2 t 2 ) + D ( 2 μ , 2 β ) f ( 0 , 1 2 ) D ( 2 ν ) p β ( 2 t 2 ) ] .
By (12), we deduce that for 0 μ , ν n and 0 t 2 1 2 ,
D ( 2 μ , 2 ν ) ( τ 2 ( 0 , t 2 ) ) = D ( 2 μ , 2 ν ) f ( 0 , t 2 ) + β = 0 n [ D ( 2 μ , 2 β ) f ( 0 , 0 ) D ( 2 ν ) p β ( 1 2 t 2 ) + D ( 2 μ , 2 β ) f ( 0 , 1 2 ) D ( 2 ν ) p β ( 2 t 2 ) ] .
Therefore, for 0 μ , ν n ,
D ( 2 μ , 2 ν ) ( τ 2 ( 0 , t 2 ) τ 1 ( 0 , t 2 ) ) = D ( 2 μ , 2 ν ) f ( 0 , t 2 ) ( 0 t 2 1 2 ) .
By (13), for 0 μ , ν n ,
D ( 2 μ , 2 ν ) r ( 0 , t 2 ) = 0 ( 0 t 2 1 2 ) .
Similarly, we can deduce that for 0 μ , ν n ,
D ( 2 μ , 2 ν ) r ( 1 2 , t 2 ) = 0 ( 0 t 2 1 2 ) , D ( 2 μ , 2 ν ) r ( t 1 , 0 ) = D ( 2 μ , 2 ν ) r ( t 1 , 1 2 ) = 0 ( 0 t 1 1 2 ) .
Finally
D ( 2 μ , 2 ν ) r ( t ) = 0 ( t t i a l ( [ 0 , 1 2 ] 2 ) , 0 μ , ν n ) .
For r, an odd extension is performed, denoted by r o ,
r o ( t 1 , t 2 ) = r ( t 1 , t 2 ) ( t [ 0 , 1 2 ] 2 ) , r o ( t 1 , t 2 ) = r o ( t 1 , t 2 ) = r o ( t 1 , t 2 ) ( t [ 1 2 , 1 2 ] 2 ) .
From this and (14), it follows that r o C ( l ) ( [ 1 2 , 1 2 ] 2 ) . Again, a periodic extension is performed, denoted by r ˜ ,
r ˜ ( t + m ) = r o ( t ) ( t [ 1 2 , 1 2 ] 2 , m Z 2 ) ,
so r ˜ is a 1-periodic odd function and r ˜ C l ( R 2 ) , and it can be reconstructed well using its two-dimensional periodic wavelet coefficients. □
By (4), the periodic wavelet coefficients of r ˜ decay as fast as O ( 2 m ( l + 1 ) ) . Compared with this, if we directly compute traditional (periodic) wavelet coefficients of f C l ( [ 0 , 1 2 ] 2 ) , due to discontinuity on the boundary, the obtained (periodic) wavelet coefficients decay as fast as O ( 2 m ) .
By (12), τ 2 ( t ) is determined by four derivative functions of f on the boundary of [ 0 , 1 2 ] 2 :
{ D ( 2 α , 0 ) f ( 0 , t 2 ) } α = 0 , 1 , n , { D ( 2 α , 0 ) f ( 1 2 , t 2 ) } α = 0 , 1 , , n ,
{ D ( 0 , 2 β ) f ( t 1 , 0 ) } β = 0 , 1 , , n , { D ( 0 , 2 β ) f ( t 1 , 1 2 ) } β = 0 , 1 , , n .
Similarly to the above process, these four functions can be decomposed as
D ( 2 α , 0 ) f ( 0 , t 2 ) = β = 0 n 1 2 2 β ( D ( 2 α , 2 β ) f ( 0 , 0 ) p β ( 1 2 t 2 ) + D ( 2 α , 2 β ) f ( 0 , 1 2 ) p β ( 2 t 2 ) ) + u α ( t 2 ) , D ( 2 α , 0 ) f ( 1 2 , t 2 ) = β = 0 n 1 2 2 β ( D ( 2 α , 2 β ) f ( 1 2 , 0 ) p β ( 1 2 t 2 ) + D ( 2 α , 2 β ) f ( 1 2 , 1 2 ) p β ( 2 t 2 ) ) + v α ( t 2 ) , D ( 0 , 2 β ) f ( t 1 , 0 ) = α = 0 n 1 2 2 α ( D ( 2 α , 2 β ) f ( 0 , 0 ) p α ( 1 2 t 1 ) + D ( 2 α , 2 β ) f ( 1 2 , 0 ) p α ( 2 t 1 ) ) + w β ( t 1 ) , D ( 0 , 2 β ) f ( t 1 , 1 2 ) = α = 0 n 1 2 2 α ( D ( 2 α , 2 β ) f ( 0 , 1 2 ) p α ( 1 2 t 1 ) + D ( 2 α , 2 β ) f ( 1 2 , 1 2 ) p α ( 2 t 1 ) ) + γ β ( t 1 ) .
From this, we have
u α ( 2 β ) ( 0 ) = u α ( 2 β ) ( 1 2 ) = 0 , v α ( 2 β ) ( 0 ) = v α ( 2 β ) ( 1 2 ) = 0 , w β ( 2 α ) ( 0 ) = w β ( 2 α ) ( 1 2 ) = 0 , γ β ( 2 α ) ( 0 ) = γ β ( 2 α ) ( 1 2 ) = 0 ( α , β = 0 , 1 , , n ) .
After odd extensions and then 1-periodic extensions for u α , v α , w β and γ β , we obtain four 1-periodic smooth odd functions u α * , v α * , w β * , γ β * C l ( R ) . Similarly to the argument in (4), the one-dimensional periodic wavelet coefficients of these four periodic functions decay as fast as O ( 2 m ( l + 1 ) ) . So, τ 2 ( t ) can be reconstructed well using the value of the derivative of f on the four vertices of [ 0 , 1 2 ] 2 and the one-dimensional periodic wavelet coefficients. By (11), τ 1 ( t ) can be reconstructed using the value of the derivative of f on the four vertices of [ 0 , 1 2 ] 2 . Therefore, f can be reconstructed well using the value of the derivative of f on the four vertices of [ 0 , 1 2 ] 2 and the one-dimensional and two-dimensional fast-decaying periodic wavelet coefficients.

4. Our Improvement of the DWT: Full Version

In this section, the traditional DWT/DPWT is improved so that the impacts of the data boundary on the wavelet coefficients can be mitigated well. The full version of our improved algorithm is stated as follows.
For f C l ( [ 0 , 1 2 ] 2 ) , assume that the sampling of f on [ 0 , 1 2 ] 2 is given by the following:
x n 1 , n 2 = f n 1 2 J , n 2 2 J ( n 1 , n 2 = 0 , 1 , , 2 J 1 ) .
The derivatives on the boundary of the square are denoted by
x n 1 , n 2 ( α , β ) = D ( 2 α , 2 β ) f n 1 2 J , n 2 2 J ( n 1 = 0 , 2 J 1 o r n 2 = 0 , 2 J 1 ; α , β = 0 , 1 , , [ l / 2 ] ) .
Based on (11) and (12), we define y n 1 , n 2 ( 1 ) and y n 1 , n 2 ( 2 ) as
y n ( 1 ) = τ 1 ( n 2 J ) = α , β = 0 n 1 2 2 α + 2 β [ x 0 , 0 ( α , β ) p α ( 1 2 n 1 2 J ) p β ( 1 2 n 2 2 J ) + x 0 , 2 J 1 ( α , β ) p α ( 1 2 n 1 2 J ) p β ( 2 n 2 2 J ) + x 2 J 1 , 0 ( α , β ) p α ( 2 n 1 2 J ) p β ( 1 2 n 2 2 J ) + x 2 J 1 , 2 J 1 ( α , β ) p α ( 2 n 1 2 J ) p β ( 2 n 2 2 J ) ] ( n = ( n 1 , n 2 ) , n 1 , n 2 = 0 , 1 , , 2 J 1 ) ,
y n ( 2 ) = τ 2 ( n 2 J ) = α = 0 n 1 2 2 α [ x 0 , n 2 ( α , 0 ) p α ( 1 2 n 1 2 J ) + x 2 J 1 , n 2 ( α , 0 ) p α ( 2 n 1 2 J ) ] + β = 0 n 1 2 2 β [ x n 1 , 0 ( 0 , β ) p β ( 1 2 n 2 2 J ) + x n 1 , 2 J 1 ( 0 , β ) p β ( 2 n 2 2 J ) ] ( n = ( n 1 , n 2 ) , n 1 , n 2 = 0 , 1 , , 2 J 1 ) .
The discrete data, x n 1 , n 2 , can be decomposed as follows:
x n 1 , n 2 = y n 1 , n 2 ( 2 ) y n 1 , n 2 ( 1 ) + z n 1 , n 2 ( n 1 , n 2 = 0 , 1 , , 2 J 1 ) .
By (17)–(19), we have
z n 1 , n 2 = 0 , ( n 1 = 0 , 2 J 1 or n 2 = 0 , 2 J 1 ) .
An odd extension for the data { z n 1 , n 2 } is performed as follows:
z 2 J 1 + k , n 2 o = z 2 J 1 k , n 2 , z n 1 , 2 J 1 + k o = z n 1 , 2 J 1 k o , z 2 J 1 + k , 2 J 1 + k o = z 2 J 1 k , 2 J 1 k o
where n 1 , n 2 = 0 , 1 , , 2 J 1 , k = 1 , , 2 J 1 1 . Following this, the 2 J periodic extension for { z n 1 , n 2 o } is performed to obtain { z n 1 , n 2 * } .
Proposition 1.
For a large J, the periodic wavelet coefficients c J , n of r ˜ satisfy
c J , n λ 2 J z n * ( n 1 , n 2 = 0 , 1 , , 2 J 1 ) ,
 where λ = ( R φ ( t ) d t ) 2 and r ˜ is stated in Theorem 1.
Proof. 
Comparing (13) and (19), it follows that { z n 1 , n 2 * } is just the sampling of r ˜ . Noticing that φ 0 , J , n p e r ( t ) = k Z 2 φ 0 , J , n ( t + k ) , by (2.6), it follows that
c J , n = [ 1 2 , 1 2 ] 2 r ˜ ( t ) k Z 2 φ 0 , J , n ( t + k ) d t = k Z 2 [ 1 2 , 1 2 ] 2 + k r ˜ ( t ) φ 0 , J , n ( t ) d t = R 2 r ˜ ( t ) φ 0 , J , n ( t ) d t .
Denote the compact support of φ 0 by Ω . Noticing that φ 0 , J , n ( t ) = 2 J φ 0 ( 2 J t n ) and r ˜ C l ( R 2 ) , we have
c J , n = 2 J R 2 r ˜ ( t ) φ 0 ( 2 J t n ) d t = 2 J R 2 r ˜ ( 2 J u ) φ 0 ( u n ) d u = 2 J R 2 r ˜ ( 2 J ( u + n ) ) φ 0 ( u ) d u = 2 J Ω r ˜ ( 2 J ( u + n ) ) φ 0 ( u ) d u = 2 J r ˜ ( 2 J n ) R 2 φ 0 ( u ) d u + Ω ( r ˜ ( 2 J ( u + n ) ) r ˜ ( 2 J n ) ) φ 0 ( u ) d u = 2 J ( λ r ˜ ( 2 J n ) + O ( 2 J ) ) ,
i.e.,
c J , n λ 2 J r ˜ ( 2 J n ) = λ 2 J z n * ( n 1 , n 2 = 0 , 1 , , 2 J 1 ) ,
where
λ = R 2 φ 0 ( u ) d u = R 2 φ 0 ( u 1 , u 2 ) d u 1 d u 2 = R 2 φ ( u 1 ) φ ( u 2 ) d u 1 d u 2 = R φ ( t ) d t 2 .
The wavelet coefficients { c J , n } ( n = ( n 1 , n 2 ) , n 1 , n 2 = 0 , 1 , , 2 J 1 ) can be decomposed as
{ c m 0 , k 1 , k 2 } k 1 , k 2 = 0 , 1 , , 2 m 0 1 , { d μ , m , k 1 , k 2 } μ = 1 , 2 , 3 , k 1 , k 2 = 0 , 1 , , 2 m 1 , m = m 0 , m 0 + 1 , , J 1 .
Theorem 2.
Suppose that φ and φ ˜ are symmetric at t = 0 and ψ and ψ ˜ are symmetric at t = 1 2 and t = 1 2 , respectively. Then periodic wavelet coefficients in (21) are symmetric:
c m , 2 m k 1 , k 2 = c m , k 1 , k 2 , c m , k 1 , 2 m k 2 = c m , k 1 , k 2 , d 1 , m , 2 m k 1 , k 2 = d 1 , m , k 1 , k 2 , d 1 , m , k 1 , 2 m k 2 1 = d 1 , m , k 1 , k 2 , d 2 , m , 2 m k 1 1 , k 2 = d 2 , m , k 1 , k 2 , d 2 , m , k 1 , 2 m k 2 = d 2 , m , k 1 , k 2 , d 3 , m , 2 m k 1 1 , k 2 = d 3 , m , k 1 , k 2 , d 3 , m , k 1 , 2 m k 2 1 = d 3 , m , k 1 , k 2 .
Proof. 
Since φ and φ ˜ are symmetric at t = 0 and ψ and ψ ˜ are symmetric at t = 1 2 and t = 1 2 , respectively, by (6), it follows that
h n * = h n * , τ 1 + n * = τ 1 n * .
Based on the DPWT algorithm, by (20), we easily obtain the symmetry property of the wavelet coefficients. □
In (18), { y n ( 2 ) } is determined by four sequences { x 0 , n 2 ( α , 0 ) } , { x 2 J 1 , n 2 ( α , 0 ) } , { x n 1 , 0 ( 0 , β ) } and { x n 1 , 2 J 1 ( 0 , β ) } , which can be decomposed further as follows:
x 0 , n 2 ( α , 0 ) = β = 0 n 1 2 2 β ( x 0 , 0 ( α , β ) p β ( 1 2 n 2 2 J ) + x 0 , 2 J 1 ( α , β ) p β ( 2 n 2 2 J ) ) + u α , n 2 , x 2 J 1 , n 2 ( α , 0 ) = β = 0 n 1 2 2 β ( x 2 J 1 , 0 ( α , β ) p β ( 1 2 n 2 2 J ) + x 2 J 1 , 2 J 1 ( α , β ) p β ( 2 n 2 2 J ) ) + v α , n 2 , x n 1 , 0 ( 0 , β ) = α = 0 n 1 2 2 α ( x 0 , 0 ( α , β ) p α ( 1 2 n 1 2 J ) + x 2 J 1 , 0 ( α , β ) p α ( 2 n 1 2 J ) ) + w β , n 1 , x n 1 , 2 J 1 ( 0 , β ) = α = 0 n 1 2 2 α ( x 0 , 2 J 1 ( α , β ) p α ( 1 2 n 1 2 J ) + x 2 J 1 , 2 J 1 ( α , β ) p α ( 2 n 1 2 J ) ) + γ β , n 1 .
After odd extensions and then 1-periodic extensions for u α , n 2 , v α , n 2 , w β , n 1 , γ β , n 1 , we obtain four 2 J -periodic smooth sequences u α , n 2 * , v α , n 2 * , w β , n 1 * , γ β , n 1 * . Again, by (5), we obtain one-dimensional periodic wavelet coefficients of u α , n 2 * , v α , n 2 * , w β , n 1 * , γ β , n 1 * :
{ c m 0 , k u } k = 0 , 1 , , 2 m 0 1 , { d m , k u } k = 0 , 1 , , 2 m 1 , m = m 0 , m 0 + 1 , , J 1 . { c m 0 , k v } k = 0 , 1 , , 2 m 0 1 , { d m , k v } k = 0 , 1 , , 2 m 1 , m = m 0 , m 0 + 1 , , J 1 . { c m 0 , k w } k = 0 , 1 , , 2 m 0 1 , { d m , k w } k = 0 , 1 , , 2 m 1 , m = m 0 , m 0 + 1 , , J 1 . { c m 0 , k γ } k = 0 , 1 , , 2 m 0 1 , { d m , k γ } k = 0 , 1 , , 2 m 1 , m = m 0 , m 0 + 1 , , J 1 .
Similar to Theorem 2, the above periodic wavelet coefficients are also symmetric.
Finally, we summarize our improvement of the discrete (periodic) wavelet transform for { x n 1 , n 2 } n 1 , n 2 = 0 , 1 , , 2 J 1 , as follows:
Decomposition Algorithm
Step 1. By (17)–(19), we obtain { z n 1 , n 2 } n 1 , n 2 = 0 , 1 , , 2 J 1 . After that, an odd extension and a periodic extension are performed for { z n 1 , n 2 } n 1 , n 2 = 0 , 1 , , 2 J 1 to obtain { z n 1 , n 2 * } n 1 , n 2 Z 2 . Finally, by Proposition 1 and (6), two-dimensional periodic wavelet coefficients are computed in (21). Again, by Theorem 2, the number of nonzero two-dimensional periodic wavelet coefficients that is necessary to store is ( 2 J 1 1 ) 2 .
Step 2. By (22), u α , n 2 , v α , n 2 , w β , n 1 , γ β , n 1 can be obtained. After odd extensions, and then periodic extensions, we obtain four 2 J -periodic smooth sequences u α , n 2 * , v α , n 2 * , w β , n 1 * , γ β , n 1 * . Again, by (5), one-dimensional periodic wavelet coefficients are obtained as those in (23). Similar to Theorem 2, due to the symmetric property of periodic wavelet coefficients, the number of nonzero two-dimensional periodic wavelet coefficients that is necessary to store is 4 × ( 2 J 1 1 ) .
Step 3. The following 4 ( n + 1 ) 2 values are stored:
{ x 0 , 0 ( α , β ) } , { x 0 , 2 J 1 ( α , β ) } , { x 2 J 1 , 0 ( α , β ) } , { x 2 J 1 , 2 J 1 ( α , β ) } ( α , β = 0 , 1 , , n ) .
Reconstruction Algorithm.
Step 1. By (17), using the 4 ( n + 1 ) 2 values,
{ x 0 , 0 ( α , β ) } , { x 0 , 2 J 1 ( α , β ) } , { x 2 J 1 , 0 ( α , β ) } , { x 2 J 1 , 2 J 1 ( α , β ) } ( α , β = 0 , 1 , , n ) ,
we obtain { y n 1 , n 2 ( 1 ) } n 1 , n 2 = 0 , 1 , , 2 J 1 .
Step 2. Using the 4 ( n + 1 ) 2 values in Step 1, (22), (23) and the one-dimensional inverse discrete periodic wavelet transform, we obtain
{ x 0 , n 2 ( α , 0 ) } , { x 2 J 1 , n 2 ( α , 0 ) } ( n 2 = 0 , 1 , , 2 J 1 , α = 0 , 1 , , n )
{ x n 1 , 0 ( 0 , β ) } , { x n 1 , 2 J 1 ( 0 , β ) } ( n 1 = 0 , 1 , , 2 J 1 , β = 0 , 1 , , n ) ,
and, by (18), we obtain { y n 1 , n 2 ( 2 ) } n 1 , n 2 = 0 , 1 , , 2 J 1 .
Step 3. By (21) and the two-dimensional inverse discrete periodic wavelet transform, we obtain { z n 1 , n 2 * } . This means that { z n 1 , n 2 } n 1 , n 2 = 0 , 1 , , 2 J 1 can be computed.
Step 4. By (17), we can reconstruct f:
x n 1 , n 2 = y n 1 , n 2 ( 2 ) y n 1 , n 2 ( 1 ) + z n 1 , n 2 ( n 1 , n 2 = 0 , 1 , , 2 J 1 ) .

5. Numerical Experiments

We compared our improved DWT with the classic DWT through numerical experiments. The quality of data approximation was measured by the known peak signal-to-noise ratio (PSNR) [17]:
PSNR = 20 log 10 max m , n | x m , n | RMSE ,
where { x m , n } is the original data, RMSE is the mean squared error between the original and the approximation divided by the square root of the total number of samples.
For the discrete data x m , n = e m 128 + n 128 ( m , n = 0 , 1 , 2 , , 127 ) , we used the simplest version of our algorithm, which meant that no numerical derivative was computed to approximate { x m , n } . In the approximation and reconstruction processes, we retained a certain number of the largest coefficients in terms of energy from all one/two-dimensional wavelet coefficients and then reconstructed the original data from them. Figure 1 shows the quality of the approximations by using DWT and our improvement, where the depth of wavelet decomposition was set to the maximum level. The higher value of the PSNR indicated a better approximation performance. It was clear that the simplified version of our algorithm had a better approximation performance than that of the classic DWT. Noticing that the PSNR value is in terms of logarithmic scale, the smaller the number of retained coefficients, the clearer the performance difference became.

6. Discussion and Conclusions

The discrete wavelet transform and the discrete periodic wavelet transform is widely used in signal processing, data compression and wireless communication. Due to discontinuity on the boundary of the original data, the decay rate of the obtained wavelet coefficients was slow. In this study, we introduced a combination of polynomial interpolation and one-dimensional/two-dimensional discrete periodic wavelet transforms to mitigate these boundary effects. Due to the smooth extension in our algorithm, the one-dimensional and two-dimensional periodic wavelet coefficients in our algorithm decayed as fast as O ( 2 m ( l + 1 ) ) . Compared with this, if we applied the traditional discrete (periodic) wavelet transform, due to discontinuity on the boundary, the corresponding wavelet coefficients decayed as fast as O ( 2 m ) . Even if we considered the simplest version of our algorithm (i.e., taking n = 0 in (17) and (18), which meant that no numerical derivative was computed), the corresponding wavelet coefficients in our algorithm still decayed as fast as O ( 2 3 m ) , which was faster than that of the traditional discrete (periodic) wavelet transform (i.e., O ( 2 m ) ). Moreover, the numerical experiment also demonstrated that the simplest version of our algorithm could compress the data much better than the traditional discrete wavelet transform. The full version of our algorithm could be applied to compress smoother data, e.g., CMIP6 data [13]. The size of CMIP6 data increases sharply at the petabyte scale [19], but, even now, there is still no good algorithm to compress it. Since CMIP6 data are output data from numerical solutions of fluid equations and energy equations governing the Earth’s climate system [18], CMIP6 data is smooth and the derivative values on the data boundary are easily estimated, so our algorithm could compress this kind of data well.

Funding

This research was partially supported by European Commissions Horizon 2020 Framework Program No. 861584 and Taishan Distinguished Professor Fund.

Data Availability Statement

Not applicable.

Acknowledgments

The author thanks the reviewers and editors for their valuable comments.

Conflicts of Interest

The author declare no conflict of interest.

References

  1. Mallat, S. A Wavelet Tour of Signal Processing; Academic Press: Cambridge, MA, USA, 2008. [Google Scholar]
  2. Zhang, Z.; Jorgenson, P.E.T. Frame Theory in Data Science; Springer: Heidelberg, Germany, 2021. [Google Scholar]
  3. Jha, C.K.; Kolekar, M.H. Tunable Q-wavelet based ECG data compression with validation using cardiac arrhythmia patterns. Biomed. Signal Process. Control 2021, 66, 102464. [Google Scholar] [CrossRef]
  4. Otsuka, A.; Muramatsu, K.; Nagata, F. Data-driven generation of random skin model shapes by using wavelet transformation. Comput. Ind. Eng. 2020, 150, 106860. [Google Scholar] [CrossRef]
  5. Chakraborty, J.; Nandy, A. Discrete wavelet transform based data representation in deep neural network for gait abnormality detection. Biomed. Signal Process. Control 2020, 62, 102076. [Google Scholar] [CrossRef]
  6. Kamgar, R.; Dadkhah, M.; Naderpour, H. Seismic response evaluation of structures using discrete wavelet transform through linear analysis. Structures 2021, 29, 863–882. [Google Scholar] [CrossRef]
  7. Deriaz, E.; Farge, M.; Schneider, K. Craya decomposition using compactly supported biorthogonal wavelets. Appl. Comput. Harmon. Anal. 2010, 28, 267–284. [Google Scholar] [CrossRef] [Green Version]
  8. Chen, Q.; Cao, H.; Shi, Z. Construction and decomposition of biorthogonal vector-valued wavelets with compact support Chaos. Solitons Fractals 2009, 42, 2765–2778. [Google Scholar] [CrossRef]
  9. Antolin, A.S.; Zalik, R.A. Compactly supported Parseval framelets with symmetry associated to E(2)d(Z) matrices. Appl. Math. Comput. 2018, 325, 179–190. [Google Scholar]
  10. Atreasa, N.; Karantzasb, N.; Papadakisb, M.; Stavropoulosc, T. On the design of multi-dimensional compactly supported Parseval framelets with directional characteristics. Linear Algebra Appl. 2019, 582, 1C36. [Google Scholar] [CrossRef] [Green Version]
  11. Dutkay, D.E.; Jorgensen, P.E.T.; Silvestrov, S. Decomposition of wavelet representations and Martin. J. Funct. Anal. 2012, 262, 1043–1061. [Google Scholar] [CrossRef]
  12. Averbuch, A.Z.; Neittaanmäki, P.; Zheludev, V.A. Spline and Spline Wavelet Methods with Applications to Signal and Image Processing; Springer: Berlin/Heidelberg, Germany, 2016. [Google Scholar]
  13. Zeng, C.; Lai, W.; Lin, H.; Liu, G.; Qin, B.; Kang, Q.; Feng, X.; Yu, Y.; Gu, R.; Wu, J.; et al. Weak information extraction of gamma spectrum based on a two-dimensional wavelet transform. Radiat. Phys. Chem. 2023, 208, 110914. [Google Scholar] [CrossRef]
  14. Alaifari, R.; Bartolucci, F.; Wellershoff, M. Phase retrieval of bandlimited functions for the wavelet transform. Appl. Comput. Harmon. Anal. 2023, 64, 102–117. [Google Scholar] [CrossRef]
  15. Lin, J.; Zhou, W.; Cui, X.Z.; Hong, H.P. Application of wavelet transforms to the simulation of corrosion fields on buried pipelines. Comput. Struct. 2023, 276, 106957. [Google Scholar] [CrossRef]
  16. Torrence, C.; Compo, G.P. A practical guide to wavelet anal- ysis. Bull. Am. Meteorol. Soc. 1998, 79, 61–78. [Google Scholar] [CrossRef]
  17. Najmi, A.; Moon, T. Advanced Signal Processing; McGraw-Hill: New York, NY, USA, 2020. [Google Scholar]
  18. Eyring, V.; Bony, S.; Meehl, G.A.; Senior, C.A.; Stevens, B.; Stouffer, R.J.; Taylor, K.E. Overview of the Coupled Model Intercomparison Project Phase 6 (CMIP6) experimental design and organization. Geosci. Model Dev. 2016, 9, 1937–1958. [Google Scholar] [CrossRef] [Green Version]
  19. Reichstein, M.; Camps-Valls, G.; Stevens, B.; Jung, M.; Denzler, J.; Carvalhais, N. Deep learning and process understanding for data-driven Earth system science. Nature 2019, 566, 195C204. [Google Scholar] [CrossRef]
Figure 1. Approximation quality of the discrete wavelet transform and our improved algorithm.
Figure 1. Approximation quality of the discrete wavelet transform and our improved algorithm.
Mathematics 11 01770 g001
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Zhang, Z. The Improvement of the Discrete Wavelet Transform. Mathematics 2023, 11, 1770. https://doi.org/10.3390/math11081770

AMA Style

Zhang Z. The Improvement of the Discrete Wavelet Transform. Mathematics. 2023; 11(8):1770. https://doi.org/10.3390/math11081770

Chicago/Turabian Style

Zhang, Zhihua. 2023. "The Improvement of the Discrete Wavelet Transform" Mathematics 11, no. 8: 1770. https://doi.org/10.3390/math11081770

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop