Acessibilidade / Reportar erro

Non-decimated Wavelet Transform for a Shift-invariant Analysis

ABSTRACT

Due to the ability of time-frequency location, the wavelet transform has been applied in several areas of research involving signal analysis and processing, often replacing the conventional Fourier transform. The discrete wavelet transform has great application potential, being an important tool in signal compression, signal and image processing, smoothing and de-noising data. It also presents advantages over the continuous version because of its easy implementation, good computational performance and perfect reconstruction of the signal upon inversion. Nevertheless, the downsampling required in the computation of the discrete wavelet transform makes it shift variant and not appropriated to some applications, such as for signals or time series analysis. On the other hand, the Non-Decimated Discrete Wavelet Transform is shift-invariant because it eliminates the downsampling and, consequently, is more appropriate for identifying both stationary and non-stationary behaviors in signals. However, the non-decimated wavelet transform has been underused in the literature. This paper intends to show the advantages of using the non-decimated wavelet transform in signal analysis. The main theoretical and practical aspects of the multi-scale analysis of time series from non-decimated wavelets in terms of its formulation using the same pyramidal algorithm of the decimated wavelet transform was presented. Finally, applications with a simulated and real time series compare the performance of the decimated and non-decimated wavelet transform, demonstrating the superiority of non-decimated one, mainly due to the shift-invariant analysis, patterns detection and more perfect reconstruction of a signal.

Keywords:
Non-decimated wavelets; shift invariance; time series; signal analysis

RESUMO

Devido sua habilidade de localização tempo-frequência, a Transformada wavelet tem sido aplicada em várias áreas de pesquisa envolvendo análise e processamento de dados, frequentemente substituindo a convencional Transformada de Fourier. A TransformadaWavelet Discreta tem um grande potencial de aplicação¸ destacando-se como uma importante ferramenta na compressão de sinal, processamento de imagem e sinal, suavização e filtragem de ruídos em dados. Ela também apresenta vantagens sobre a versão contínua por causa de sua fácil implementação, bom desempenho computacional e reconstrução perfeita do sinal após inversão. No entanto, a decimação requerida no cálculo da Transformada Wavelet Discreta a torna variante à translação e não apropriada para algumas aplicaões, tais como análise de sinais ou séries temporais. Por outro lado, a Transformada Wavelet Discreta Não Decimada é invariante à translação, porque elimina o processo de decimação, e consequentemente, é mais apropriada para identificar comportamentos estacionários e não estacionários presentes no sinal. No entanto, a Transformada Wavelet Não Decimada tem sido pouco usada na literatura. Esse artigo pretende mostrar as vantagens do uso na Transformada Wavelet Não Decimada na análise de sinais. Os principais aspectos teóricos e práticos da análise multiescala de séries temporais a partir das wavelets não decimadas, em termos de sua formulação usando o mesmo algoritmo piramidal da Transformada Wavelet Decimada, são apresentados. Por fim, aplicações com séries temporais simuladas e reais comparam o desempenho das transformadas wavelet decimada e não decimada, demonstrando a superioridade da wavelet não decimada, principalmente devido à análise invariante a translação, detecção de padrões e uma reconstrução mais perfeita do sinal.

Palavras-chave:
Wavelets não decimadas; invariância à translação; séries temporais; análise de sinais

1 INTRODUCTION

The wavelet transform allows extracting information of stationary and non-stationary signal variations in time and frequency, i.e., identifying their frequency of occurrence, localization in time, and making a reliable approximation of magnitude of this variation. For this reason, this methodology has been adopted for a vast number of applications, often replacing the conventional Fourier transform.

There are two kinds of wavelet transforms, the continuous wavelet transform (CWT) 1111. C. Torrence & G. P. Compo. A Practical Guide to Wavelet Analysis in Bulletin of the American Meteorological Society, 79(1) (1998), 61-78. and the discrete wavelet transforms, with its decimated (DWT) 66. S. G. Mallat. A theory for multiresolution signal decomposition: the wavelet representation, in IEEE Trans. on Pattern Anal. and Mach.Intell., 11 (1989), 674-693. and non-decimated (NDWT) 77. G. P. Nason & B. W. Silverman. The Stationary Wavelet Transform and Some Statistical Applications, in Wavelets and statistics - Springer Verlag, (1995), 281-281. versions. Both wavelet transforms differ in the representation of the scale and location parameters of the wavelet function, which can take continuous or discrete (powers of two) values, respectively.

These differences result in advantages and disadvantages for the two classes of wavelet transforms and also determine in which applications each wavelet transform can provide superior results.

The DWT, for example, provides a sparse representation for many natural signals, it is therefore an important tool in signal compression. The DWT is an orthonormal transform (when using an orthogonal wavelet) able to separate the signal from the noise. This is possible because the signal of interest is typically captured by a few large-magnitude DWT coefficients, while the noise results in many small DWT coefficients, which can be throw away without harming the quality of the signal approximation 77. G. P. Nason & B. W. Silverman. The Stationary Wavelet Transform and Some Statistical Applications, in Wavelets and statistics - Springer Verlag, (1995), 281-281.. As a result, the important features of the signal are captured by a subset of DWT coefficients that is typically much smaller than the original signal, namely, the compressed signal. The same considerations are taken in noise filtering or de-noising. The CWT, instead, is a highly redundant transform and it not appropriate to these applications. The computational resources required to compute the CWT and store the coefficients is much larger than the DWT.

On the other hand, because the DWT downsamples, a shift in the input signal does not manifest itself as an equivalent shift in the DWT coefficients at all levels, i.e, the DWT is not shift-invariant. Thus, a simple shift in a signal can cause a significant change of signal energy in the DWT coefficients by scale, what is not ideal for some applications. The CWT and NDWT, instead, are shift-invariant so they are perfect to time series analysis.

The other advantage of the discrete wavelet transforms in relation to CWT is the easy implementation and good computational performance. The discrete approach of the wavelet transform can be performed with Mallat’s and the ‘à trous’ algorithms 99. M. J. Shensa. Discrete Wavelet Transforms: The relationship of the ’à trous’ and Mallat algorithms, in Treizième Colloque Gretsi - Juan-Les-Pins, (1991).. The first is an orthogonal, dyadic, non-symmetric, decimated and non-redundant algorithm. The ’à trous’, in opposite, is a non-orthogonal, dyadic, symmetric, shift-invariant and redundant algorithm 44. M. González-Audícana, X. Otazu, O. Fors & A. Seco. Comparison between Mallat’s and the ’à trous’ discrete wavelet transform based algorithms for the fusion of multispectral and panchromatic images, in International Journal of Remote Sensing 26(3) (2005), 595-614.. Both algorithms are equivalent to discrete filter banks, where the signal is iteratively filtered by a low-pass and a high-pass filter. The Mallat’s algorithm, also called the pyramidal algorithm, is the most used to computation of the discrete wavelet transform. In the DWT, the filter outputs are downsampled at each successive stage of the pyramidal algorithm, namely, for each two outputs of the filter, one output is discarded. In the NDWT, however, the outputs are not downsampled, wherein each scale will have the same number of wavelet coefficients. The filters that define the discrete wavelet transforms typically only have a small number of coefficients so the transform can be implemented very efficiently. Furthermore, for the most common implementation of the CWT it is necessary that the wavelet is defined in a closed-form expression, while for both DWT and NDWT, only the filters are sufficient.

Another key point of the discrete wavelet transform is the perfect reconstruction of the signal upon inversion. An inverse CWT can be implemented, but often the reconstructions are not perfect. Reconstructing a signal from the CWT coefficients is a much less stable numerical operation.

It should be emphasized, however, that the finer sampling of scales in the CWT typically results in a higher-fidelity signal analysis. Continuous analysis is often easier to interpret because its redundancy tends to reinforce the traits and makes all information more visible. Thus, it is possible to localize transients in a signal or characterize periodic behavior better with the CWT than with the discrete wavelet transforms. Nevertheless, it is possible to have a discrete wavelet transform, which does not lose important information and has the advantages of implementation and computational effort. This is the case of the NDWT, which can be seen as a compromise between the DWT and CWT because of its redundancy, but not as redundant as CWT. Although, neither the CWT nor the NDWT are orthonormal transforms, the NDWT can be computed similarly to the ordinary DWT but without downsampling, ensuring the shift invariance, which is ideal for analyzing time series.

While it is well known that the DWT is efficient to data compression, signal and image processing, smoothing and de-noising data, among others applications; for signals or time series analysis, however, the NDWT shows to be more appropriate. As the NDWT is shift-invariant and represents a time series with the same number of coefficients at each scale, it is possible to detect the occurrence of hidden information such as stationary or non-stationary patterns and its time/frequency location. Recently, the NDWT has been applied in some areas of research: in GNSS signal analysis to investigate the ionospheric scintillation effect 22. G. O. N. Brassarote, E. M. Souza & J. F. G. Monico. Multiscale Analysis of GPS Time Series from Non-decimated Wavelet to Investigate the Effects of Ionospheric Scintillation, in TEMA - Tend. Mat. Apl. Comput., 16(2) (2015), 119-130.; in daily temperature data to explore the time scale patterns in the relationship between the average ambient temperature and the number of deaths due to cardiovascular diseases 11. M. Bašta. The MODWT analysis of the relationship between mortality and ambient temperature for Prague, Czech Republic, in Acta Oeconomica Pragensia, 19 (2011), 20-40.; in analysis of BSE and NSE indexes financial time series 55. A. Kumar, L. K. Joshi, A. Pal & A. Shukla. MODWT based time scale decomposition analysis of BSE and NSE indexes financial time series, in International Journal of Mathematical Analysis, 5(27) (2011), 1343-1352.; in waves pressure, height geopotential and thickness time series analysis in order to forecast rain events 1010. F. Buendia, A. M. Tarquis, G. Buendia & D. Andina. Feature Extraction Via Multiresolution MODWT Analysis in a Rainfall Forecast System, in Wmsci 2008: 12th World Multi-Conference on Systemics, Cybernetics and Informatics, (2008), 69-73., among other applications. However, the use of NDWT should be much larger in signal analysis. Thus, in this paper we aim to point out the advantages of NDWT for signal or time series analysis in an intuitive point of view of Mallat´s pyramidal algorithm. As this algorithm is well known and largely used in the literature, the implementation of NDWT from it can be facilitated. The focus in this paper is in the sense of evaluation of methodologies that allow the signal analysis with possibility of investigating behavior in it as well as the perfect reconstruction. Thus, only discrete transforms will be taken into account, i.e. both decimated (DWT) and non-decimated (NDWT) transforms. Simulated and real signals are used to illustrate the results.

2 NDWT SIGNAL ANALYSIS

2.1 NDWT wavelet and scaling filters

The NDWT of a time series X = [X 0, X 1,...,X n-1 ] in a level J yields column vectors W˜1,W˜2,...,W˜J and V˜J of length n. The vector W˜j contains the NDWT wavelet coefficients associated with changes in X on a scale of τ j = 2j-1 , j = 1,...,J, while V˜J contains the NDWT scaling coefficients associated with variations at scale τ j = 2 J (88. D. B. Percival & A. T. Walden. Wavelet Methods for Time Series Analysis (Vol. 4), Cambridge university press, (2006).. Such wavelet and scaling coefficients are the filtering result on the time series X with the NDWT wavelet and scaling filters.

A wavelet filter {h k } must satisfy the following properties:

1) k=0K1hk=0;

2) k=0K1hk2=1;

3) k=0K1hkhk+2n=+hkhk+2n=0, for most of nonzero integer K values and all nonzero integers n.

On other words, a wavelet filter must sum zero, have unit energy, and must be orthogonal to its even shifts.

The second required filter {g k } is obtained by quadrature mirror filter gk=(1)k+1hK1k. The filter {g k } is known as the scaling filter and must also satisfy three basic properties:

1) k=0K1gk=2;

2) k=0K1gk2=1;

3) k=0K1gkgk+2n=+hkhk+2n=0, for all nonzero integers n.

The NDWT wavelet filter {h˜k} and NDWT scaling filter {g˜k} are the rescaled version of the wavelet filter {h k } and scaling {g k } shown above, defined via h˜k=hk/2 and g˜k=gk/2.

So, the result of the filtering of a time series {X t: t = 0, …, N - 1} with the NDWT wavelet and scaling filters is given, respectively, by

W ˜ 1, t = k = 0 K 1 h ˜ k X t k mod n V ˜ 1, t = k = 0 K 1 g ˜ k X t k mod n , t = 0,1,..., n 1. (2.1)

These two sequences are the NDWT in the level J = 1. The term mod in (2.1) allows a circularly filtering, consequently, X is represented with the same number of coefficients at each scale.

A relationship between the DWT and NDWT wavelet and scaling coefficients, can be expressed

W 1, t 2 1 / 2 W ˜ 1,2 t + 1 = k = 0 K 1 h ˜ k X 2 t + 1 k mod n V 1, t 2 1 / 2 V ˜ 1,2 t + 1 = k = 0 K 1 g ˜ k X 2 t + 1 k mod n , t = 0,..., n 2 1. (2.2)

2.2 NDWT Formulation

The great motivation for formulating the NDWT is to define a transform that acts similarly to the DWT, but does not suffer sensitivity to the choice of a starting point for a time series, in other words, it is shift-invariant.This DWT’sensitivity is entirely due to downsampling the outputs from the wavelet and scaling filters at each stage of the pyramidal algorithm. To make the understanding easier, we are going to use a matrix notation 88. D. B. Percival & A. T. Walden. Wavelet Methods for Time Series Analysis (Vol. 4), Cambridge university press, (2006).. The filter outputs that usually discarded at first stage of the DWT pyramidal algorithm can be obtained by applying the DWT pyramidal algorithm to the circularly shifted vector TX rather than X. It is worth mentioning that if the vector X=[X 0,X 1,…,X n-1 ]t , so TX=[X n-1 ,X 0,…,X n-2 ]t is the vector X shifted by one unit, where T n is called translation matrix, given by

T = [ 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 ] . (2.3)

This procedure suggests how to eliminate the downsampling and defines the first stage of NDWT pyramidal algorithm when n is an even sample size. The idea is to apply the usual DWT pyramidal algorithm twice, once to X and once to TX, and then merging the two sets of DWT coefficients together 88. D. B. Percival & A. T. Walden. Wavelet Methods for Time Series Analysis (Vol. 4), Cambridge university press, (2006).. The first application yields in

[ W 1 V 1 ] = [ B 1 A 1 ] X = P 1 X , (2.4)

where,

B 1 = [ h 1 h 0 0 0 0 0 0 0 0 0 h 3 h 2 h 3 h 2 h 1 h 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 h 3 h 2 h 1 h 0 0 0 0 0 0 0 0 0 0 0 h 3 h 2 h 1 h 0 ] ,

A 1 = [ g 1 g 0 0 0 0 0 0 0 0 0 g 3 g 2 g 3 g 2 g 1 g 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 g 3 g 2 g 1 g 0 0 0 0 0 0 0 0 0 0 0 g 3 g 2 g 1 g 0 ]

and

P 1 = [ B 1 A ! ] .

In displaying the elements of the matrices, we specialize to the case K=4 and N>K for clarity, but the mathematical treatment holds in general.

In view of equation (2.2), we can denote the elements of W 1 and V 1 by

W 1 = [ 2 1 / 2 W ˜ 1,1 ,2 1 / 2 W ˜ 1,3 ,...,2 1 / 2 W ˜ 1, n 1 ] t V 1 = [ 2 1 / 2 V ˜ 1,1 ,2 1 / 2 V ˜ 1,3 ,...,2 1 / 2 V ˜ 1, n 1 ] t .

Note that W 1 and V 1 contain all the odd indexed elements of the length n sequences {21/2W˜1,t} and {21/2V˜1,t}, which are formed by circularly convolving the time series X with, respectively, the wavelet filter {h k } and scaling filter {g k }.

The second application consists of replacing X for TX and apply the DWT to the circularly shifted vector. Therefore, it is obtained

[ W T ,1 V T ,1 ] = P 1 T X .

Defining

P T ,1 = P 1 T = [ B 1 A 1 ] T = [ B 1 T A 1 T ] = [ B T ,1 A T ,1 ] ,

we can write

[ W T ,1 V T ,1 ] = P T ,1 X = [ B T ,1 A T ,1 ] X , (2.5)

where

B T ,1 = [ h 0 0 0 0 0 0 0 0 0 h 3 h 2 h 1 h 2 h 1 h 0 0 0 0 0 0 0 0 0 h 3 0 0 0 0 0 h 3 h 2 h 1 h 0 0 0 0 0 0 0 0 0 0 0 h 3 h 2 h 1 h 0 0 ]

and A T,1 has the same structure as the above with h k replaced by g k . As B 1 X is formed by odd indexed values of the sequence {21/2W˜1,t}, then, B T,1 X, which is B 1 X one unit shifted, will be formed of the even indexed values of the filter output {21/2W˜1,t}, that is

W T ,1 = [ 2 1 / 2 W ˜ 1,0 ,2 1 / 2 W ˜ 1,2 ,...,2 1 / 2 W ˜ 1, n 2 ] t ,

and by a similar argument the elements of V T,1 are given by

V T ,1 = [ 2 1 / 2 V ˜ 1,0 ,2 1 / 2 V ˜ 1,2 ,...,2 1 / 2 V ˜ 1, n 2 ] t .

So, it is possible to form the NDWT wavelet coefficients W˜1 by rescaling the interleaved elements of W 1 and W 1,T , and similarly obtain NDWT scaling coefficients V˜1 from V 1 and V T,1 , i.e.

W ˜ 1 = [ W ˜ 1,0 , W ˜ 1,1 , W ˜ 1,2 ,..., W ˜ 1, n 1 ] t V ˜ 1 = [ V ˜ 1,0 , V ˜ 1,1 , V ˜ 1,2 ,..., V ˜ 1, n 1 ] t . (2.6)

Note in (2.6), that the elements of W˜1 and V˜1 are exactly the filters outputs W˜1,t and V˜1,t obtained by using the NDWT filters h˜k and g˜k, as can be seen in (2.1).

Defining B˜1 as the N?N matrix formed by interleaving the rows of B T,1 and B 1 and replacing each h k by h˜k, i.e.,

B ˜ 1 [ h ˜ 0 0 0 0 0 0 0 h ˜ 3 h ˜ 2 h ˜ 1 h ˜ 1 h ˜ 0 0 0 0 0 0 0 h ˜ 3 h ˜ 2 h ˜ 2 h ˜ 1 h ˜ 0 0 0 0 0 0 0 h ˜ 3 0 0 0 0 h ˜ 3 h ˜ 2 h ˜ 1 h ˜ 0 0 0 0 0 0 0 0 h ˜ 3 h ˜ 2 h ˜ 1 h ˜ 0 0 0 0 0 0 0 0 h ˜ 3 h ˜ 2 h ˜ 1 h ˜ 0 ] ,

we obtain W˜1=B˜1X. With an analogous definition for A˜1, we have V˜1=A˜1X. Lastly, it is possible to represent the first stage of the NDWT pyramid algorithm as

[ W ˜ 1 V ˜ 1 ] = [ B ˜ 1 A ˜ 1 ] X = P ˜ 1 X ,

where

P ˜ 1 = [ B ˜ 1 A ˜ 1 ] .

Because P1tP1=ln and T t T=l n , where T is a translation matrix given in (2.3), it follows that

P T ,1 t P T ,1 = T t P 1 t P 1 T = l n

and therefore P T,1 is an orthonormal matrix. Hence, we obtain the following decompositions to X

X 2 = W 1 2 + V 1 2 X 2 = W T ,1 2 + V T ,1 2 .

Furthermore, since

W 1 2 + W T ,1 2 = 2 W ˜ 1 2 V 1 2 + V T ,1 2 = 2 V ˜ 1 2 .

it follows that

X 2 = W ˜ 1 2 + V ˜ 1 2 .

From equations (2.4) and (2.5) has

X = [ B 1 t , A 1 t ] [ W 1 V 1 ]

and

X = [ B T ,1 t , A T ,1 t ] [ W T ,1 V T ,1 ] .

Thus, X can be written as

X = 1 2 [ B 1 t , A 1 t ] [ W 1 V 1 ] + 1 2 [ B T ,1 t , A T ,1 t ] [ W T ,1 V T ,1 ] = 1 2 ( B 1 t W 1 + A 1 t V 1 + B T ,1 t W T ,1 + A t ,1 t V T ,1 ) = 1 2 ( B 1 t W 1 + B T ,1 t W T ,1 ) + 1 2 ( A 1 t V 1 + A T ,1 t V T ,1 ) = B ˜ 1 t W ˜ 1 + A ˜ 1 t V ˜ 1 = D ˜ 1 + S ˜ 1

where D˜1B˜1tW˜1 is the first level NDWT detail and S˜1A˜1tV˜1 is the smooth corresponding.

We obtained until now the first level of NDWT coefficients. In the next sections, such concepts will be generalized in order to define the level j of the NDWT. It will also be presented the NDWT pyramidal algorithm, in order to calculate the wavelet and scaling coefficients in j levels of details.

2.3 Definition of jth level NDWT coefficients

For arbitrary sample size n, the NDWT wavelet and scaling coefficients are defined by

W ˜ j , t = k = 0 K j 1 h ˜ j , k X t k m o d n V ˜ j , t = k = 0 K j 1 g ˜ j , k X t k m o d n , t = 0,1,..., n 1, (2.7)

where {h˜j,k:k=0,...,Kj1} and {g˜j,k:k=0,...,Kj1} are, respectively, the NDWT wavelet and scaling filters defined via h˜j,khj,k/2j/2 and g˜j,kgj,k/2j/2 from the wavelet {h j,k } and scaling {g j,k } filters of width K j ≡ (2j - 1)(K - 1) + 1.

The NDWT filters are modified at each scale by inserting zeros. That is, at each scale 2j - 1 zeros are entered between each K values of the NDWT filters {h˜j} and {g˜j}, namely

h ˜ 0 , 0,...,0 2 j 1 , h ˜ 1 , 0,...,0 2 j 1 ,..., h ˜ K 2 , 0,...,0 2 j 1 , h ˜ K 1 g ˜ 0 , 0,...,0 2 j 1 , g ˜ 1 , 0,...,0 2 j 1 ,..., g ˜ K 2 , 0,...,0 2 j 1 , g ˜ K 1 , (2.8)

that consist in apply an upsample of width 2j - 1 (K - 1) + 1. This process eliminate the downsample 5.5 88. D. B. Percival & A. T. Walden. Wavelet Methods for Time Series Analysis (Vol. 4), Cambridge university press, (2006)..

2.3.1 The NDWT pyramidal algorithm

The NDWT wavelet coefficient W˜j and NDWT scaling coefficient V˜j of j level, presented in the equation (2.7), can still be calculated using an efficient algorithm, based on NDWT scaling coefficient V˜j1 of the j?1 level.The NDWT pyramidal algorithm is similar to the DWT one with the advantage that it does not produce a downsampling of wavelet and scaling coefficients and does not require the length of the signal to be a power of two. At each stage of the NDWT pyramidal algorithm the wavelet and scaling filters are upsampled, as in (2.8), so that when performing the convolving the signal with the filter, to obtain n coefficients at each scale of the algorithm.

The NDWT coefficients W˜j,V˜j and V˜j1 are obtained by circularly filtering X t with the respective periodized filters {h˜j,k},{g˜j,k} e {g˜j1,k}, as in equation (2.7).

Moreover, it can be shown (see section 5.5 88. D. B. Percival & A. T. Walden. Wavelet Methods for Time Series Analysis (Vol. 4), Cambridge university press, (2006).) that it is possible to obtain W˜j and V˜j by filtering of V˜j1 by the following equation

W ˜ j , t = k = 0 K 1 h ˜ k V ˜ j 1, t 2 j 1 k mod N V ˜ j , t = k = 0 K 1 g ˜ k V ˜ j 1, t 2 j 1 k mod N , t = 0,1,..., N 1 (2.9)

These two equations in (2.9) constitute the NDWT pyramidal algorithm and also can be written using the N?N matrices B˜j and A˜j, as

W ˜ j = B ˜ j V ˜ j 1, t V ˜ j = A ˜ j V ˜ j 1, t ,

where the rows of B˜j consist of the wavelet filter {h˜j} upsampled width 2j - 1 (K - 1) + 1 and periodized to length n, with each row differing from its neighbors by circular shifts of one unit either forward ou backward. Likewise, the rows of B˜j are built based in the scaling filter {h˜j}.

Note that defining V˜0,t=X, the equations in (2.9) produce wavelet coefficients W˜1 and scaling coefficients V˜1 of the first level of the NDWT.

The NDWT also allows to reconstruct V˜j1 from W˜j and V˜j. The inverse NDWT can be calculated via inverse pyramidal algorithm described by the following equation

V ˜ j 1, t = k = 0 K 1 h ˜ k W ˜ j , t + 2 j 1 k mod N + k = 0 K 1 g ˜ k V ˜ j , t + 2 j 1 k mod N , t = 0,1,..., N 1.

Or, in the matrix form

V ˜ j 1 = A ˜ j t W ˜ j + B ˜ j t V ˜ j . (2.10)

Identifying V˜0X and applying (2.10) recursively until the stage J, can be expressed as

X = A ˜ 1 t W ˜ 1 + B ˜ 1 t A ˜ 2 t W ˜ 2 + B ˜ 1 t B ˜ 2 t A ˜ 3 t W ˜ 3 + ... + B ˜ 1 t ... B ˜ J 1 t A ˜ J t W ˜ J + B ˜ 1 t ... B ˜ J 1 t B ˜ J t V ˜ J ,

considering the jth NDWT detail coefficient D˜j and J-th NDWT smooth coefficient S˜J, namely

D ˜ j = B ˜ 1 t ... B ˜ j 1 t A ˜ j t W ˜ j and S ˜ j = B ˜ 1 t ... B ˜ J 1 t B ˜ J t V ˜ J (2.11)

and given a sample size n, can be expressed in NDWT additive decomposition by

X = j = 1 J D ˜ j + S ˜ J

where the energy of the NDWT decomposition can be obtained from

X 2 = j = 1 J W ˜ j 2 + V ˜ J 2

for any integer J ³ 1.

The NDWT pyramidal algorithm is similar to the DWT one with the advantage that it does not produce a downsampling of wavelet and scaling coeffic? ients and does not require the length of the signal to be a power of two.

2.4 Signal analysis by wavelet periodogram

The wavelet periodogram is calculated from wavelet coefficients, namely

I j , t = | W j , t | ,

decomposing the energy of the signal in multi-scales and with time-frequency location.

The Table (1) provides a scale-frequency interpretation of the wavelet periodogram.

Table 1:
Frequency and Period Intervals in each scale τj = 2j - 1

Each scale τj related to resolution level j corresponds to a period interval from 2τj to 4τj . The higher the resolution level j, the smoother the scale τj , representing the effects related to this scale have low frequency.

The periodogram provides a good description of the predominant frequencies contained in the signal and where the significant changes are located.

3 EXPERIMENTS

As already mentioned, the DWT can be seen as a filtering process followed by a downsampling, wherein only the odd or even elements of the sample are availed. Therefore, the result of the DWT depends on the choice of origin, i.e., the DWT is not shift-variant. To illustrate this fact, the DWT and NDWT were applied to both simulated and real data. In the case of simulated data, we generated signal s, illustrated in (b) of Figure (1), consisting of the sum of three periodic functions f, g and h of frequencies k = 12,21 and 5 (showed in (a) of Figure (1)), respectively, and a localized noise m added to the signal. In (c) of Figure (1), the same signal s is translated from 20 units forward.

Figure 1:
Simulated and shifted signals composed by periodic functions and a non-stationary behavior.

As all the components (f, g, h and m) of the simulated signal are known, we can evaluate the identification of these components after decomposition in periodogram analysis from both DWT and NDWT. Furthermore, after identifying specific behaviors depending on the frequencies or scales of interest in the periodogram, the reconstruction can be compared to the original signal, in order to assess the performance of these transforms in signal analysis. Furthermore, after identifying specific behaviors depending on the frequencies or scales of interest in the periodogram, the reconstruction can be compared to the original signal, allowing investigate which of the transforms (DWT or NDWT) generates a more perfect reconstruction of the signal. Thus, e.g. if we intend to identify and remove effects of frequency 12 from the signal s, after the decomposition, the scale that includes this frequency can be removed. Then, the coefficients of other scales can be reconstructed and compared to the original simulated signal (g + h + m) in the time domain.

To illustrate the shift-invariance of the NDWT also in the real data analysis, we analyzed the effects of ionospheric scintillation on GPS signals 22. G. O. N. Brassarote, E. M. Souza & J. F. G. Monico. Multiscale Analysis of GPS Time Series from Non-decimated Wavelet to Investigate the Effects of Ionospheric Scintillation, in TEMA - Tend. Mat. Apl. Comput., 16(2) (2015), 119-130.. The ionospheric scintillation, caused by irregularities in the density of electrons present in the ionosphere, can weaken the signal received by the GPS receiver, causing degradation of positioning or even signal loss 33. R. S. Conker, M. B. El-arini, C. J. Hegarty & T. Hsiao. Modeling the Effects of Ionospheric Scintillation on GPS/Satellite-Based Augmentation System Availability, in Radio Science, 38 (2003), 1-23.. The main indicative to investigate the ionospheric scintillation impact in GPS satellite signals quality is the S4 index. In (a) of Figure (2) we show the ionospheric scintillation S4 signal in a day of weak effect of scintillation. The time series of scintillation index presents daily gaps that occur when the satellite is invisible below the horizon, and daily periodic behavior, which has a shape of "U", when there are data. This scintillation S4 signal was shifted some units forward (in (b) of Figure (2)) and it also was analyzed in multi-scale by DWT and NDWT.

Figure 2:
Analyzed S4 index time series.

4 RESULTS AND DISCUSSIONS

4.1 Simulated data

The DWT and NDWT were applied to the simulated signal s and shifted one, in order to obtain a performance comparison of both transforms in signal analysis. The Figures (3) and (4) present the DWT and NDWT periodogram of the signals, respectively.

Figure 3:
DWT periodogram.

Figure 4:
NDWT periodogram.

The comparison of the obtained results in Figures (3) and (4) shows a better performance of the NDWT in the signal s analysis. Through DWT periodogram it is not easy to extract information of the signal. The NDWT periodogram, however, spells out the periodic functions on the scales of resolution levels from 2 to 4 in addition to identifying noise in the most refined scale, which is located in the signal between the instants 40 and 50. According to Table (1), the periodic functions f, g and h, respectively located on the scales of resolution levels 3,4 and 2, have frequencies in the bands from 8 to 16, 16 to 32 and 4 to 8, respectively, as expected.

In applications like signal analysis, which it is intended to investigate characteristics and patterns in the signal, it is necessary that the method be not sensitive to the origin, i.e., it be shift-invariant. We can observe in (b) of Figure (3) that the translation in data input results in a set of wavelet coefficients different of the data set obtained with the original data input (in (a) of Figure (3)), showing that the DWT is shift-variant. However, note in the Figure (4) that a translation of the input signal does not generate changes in the wavelet coefficients (in (b)) relative to the original signal (in (a)), unless than a translation. Functionality of the NDWT described herein motivates their use in the both stationary and non-stationary signal analysis.

Simulations were made in order to compare the performance of the DWT and NDWT in the reconstruction analysis. Each effect concerning to the frequencies of the functions f, g, h and m, which comprise the simulated signal s (in (b) of Figure (1)), were singly eliminated in the multi-scale decomposition. Then the signal was reconstructed and compared to the simulated signal without such frequency. The Figures (5) and (6) present the obtained results with the DWT and NDWT, respectively. It is important to be clear, that in (a) of these Figures, for example, the estimated signal f + h + m is the reconstruction from the complete signal s=f+g+h+m after decomposition, identification and removal of the scale of resolution level 4 (frequency band from 16 to 32) that contents the frequency of the signal g. Such estimated signal is compared with the original simulated signal f + h + m. This same procedure is performed in all other cases (subfigures (b), (c) and (d)).

Figure 5:
Reconstruction analysis by DWT. Simulated function and estimated function reconstructed from the complete signal s= f+g+h+m after decomposition, identification and removal of the scale that contains the frequency of interest.

Figure 6:
Reconstruction analysis by NDWT. Simulated function and estimated function reconstructed from the complete signal s= f+g+h+m after decomposition, identification and removal of the scale that contents the frequency of interest.

The Figures (5) and (6) show the reconstruction analysis by DWT and NDWT, respectively. Note by comparing these Figures that, in both instances, the estimation from the reconstructed signal was not perfect, as expected. This fact is justified by removing an entire bandwidth of the wavelet periodogram. Even so the estimated signal closely approximates the original signal, mainly from NDWT that presents better results than DWT.

In order to compare the quality of the reconstructions obtained from the DWT and NDWT (Figures (5) and (6)) we calculate the Mean Absolute Error (MAE) and Mean Squared Error (MSE) between the simulated signal and signal estimated from each wavelet decomposition. The results are presented in the Table 2.

Table 2:
Mean Absolute Error (MAE) and Mean Squared Error (MSE) of signal estimated from NDWT and DWT.

Observe in the Table 2 that for all signal estimated from NDWT the MAE and MSE were lower than those estimated by DWT. It shows the NDWT superiority in relation to DWT in this analysis.

4.2 Real data

The DWT and NDWT were also applied in the S4 index time series 22. G. O. N. Brassarote, E. M. Souza & J. F. G. Monico. Multiscale Analysis of GPS Time Series from Non-decimated Wavelet to Investigate the Effects of Ionospheric Scintillation, in TEMA - Tend. Mat. Apl. Comput., 16(2) (2015), 119-130.. The Figures (7) and (8) illustrate the DWT and NDWT wavelet periodogram of the S4 signal (in (a)) and shifted S4 signal (in (b)), respectively. Through them we compared the performance of both transforms in signal analysis.

Figure 7:
Multiscale analysis of S4 index time series by DWT.

Figure 8:
Multi-scale analysis of S4 index time series by NDWT.

In the S4 index time series multiscale analysis, the NDWT also present better results than DWT. The comparison of the periodograms produced by DWT (Figure (7)) and NDWT (Figure (8)), shows that differently of the set of wavelet coefficients generated by DWT, the NDWT coefficients of shifted signal (in (b) of figure) differ of the NDWT coefficients original S4 signal (in (a)) only by translation of coefficients, showing that NDWT is shift-invariant also in real data analysis.

5 CONCLUSIONS

Although NDWT has been underused in the literature, it can provide superior results in the signal analysis when compared to the DWT. The NDWT can also be calculated through Pyramidal Algorithm, similarly to DWT. The theory involved in the its calculation was discussed in this paper. The advantages of applying NDWT in signal analysis, such as, no sensitivity to origin choice (shift-invariant), detection of patterns and hidden information present in the time series and its time-frequency location, as well as perfect reconstruction were clearly showed from the simulated and real data. Hence, we encourage the use of NDWT instead of DWT when the aims is to analyze the coefficients or investigate effects in signals or time series.

ACKNOWLEDGMENTS

Thanks to Foundation for Research Support of the State of São Paulo - FAPESP and CAPES, for the financial support.

REFERENCES

  • 1
    M. Bašta. The MODWT analysis of the relationship between mortality and ambient temperature for Prague, Czech Republic, in Acta Oeconomica Pragensia, 19 (2011), 20-40.
  • 2
    G. O. N. Brassarote, E. M. Souza & J. F. G. Monico. Multiscale Analysis of GPS Time Series from Non-decimated Wavelet to Investigate the Effects of Ionospheric Scintillation, in TEMA - Tend. Mat. Apl. Comput., 16(2) (2015), 119-130.
  • 3
    R. S. Conker, M. B. El-arini, C. J. Hegarty & T. Hsiao. Modeling the Effects of Ionospheric Scintillation on GPS/Satellite-Based Augmentation System Availability, in Radio Science, 38 (2003), 1-23.
  • 4
    M. González-Audícana, X. Otazu, O. Fors & A. Seco. Comparison between Mallat’s and the ’à trous’ discrete wavelet transform based algorithms for the fusion of multispectral and panchromatic images, in International Journal of Remote Sensing 26(3) (2005), 595-614.
  • 5
    A. Kumar, L. K. Joshi, A. Pal & A. Shukla. MODWT based time scale decomposition analysis of BSE and NSE indexes financial time series, in International Journal of Mathematical Analysis, 5(27) (2011), 1343-1352.
  • 6
    S. G. Mallat. A theory for multiresolution signal decomposition: the wavelet representation, in IEEE Trans. on Pattern Anal. and Mach.Intell., 11 (1989), 674-693.
  • 7
    G. P. Nason & B. W. Silverman. The Stationary Wavelet Transform and Some Statistical Applications, in Wavelets and statistics - Springer Verlag, (1995), 281-281.
  • 8
    D. B. Percival & A. T. Walden. Wavelet Methods for Time Series Analysis (Vol. 4), Cambridge university press, (2006).
  • 9
    M. J. Shensa. Discrete Wavelet Transforms: The relationship of the ’à trous’ and Mallat algorithms, in Treizième Colloque Gretsi - Juan-Les-Pins, (1991).
  • 10
    F. Buendia, A. M. Tarquis, G. Buendia & D. Andina. Feature Extraction Via Multiresolution MODWT Analysis in a Rainfall Forecast System, in Wmsci 2008: 12th World Multi-Conference on Systemics, Cybernetics and Informatics, (2008), 69-73.
  • 11
    C. Torrence & G. P. Compo. A Practical Guide to Wavelet Analysis in Bulletin of the American Meteorological Society, 79(1) (1998), 61-78.

Publication Dates

  • Publication in this collection
    Jan-Apr 2018

History

  • Received
    30 Jan 2017
  • Accepted
    05 Mar 2018
Sociedade Brasileira de Matemática Aplicada e Computacional Rua Maestro João Seppe, nº. 900, 16º. andar - Sala 163 , 13561-120 São Carlos - SP, Tel. / Fax: (55 16) 3412-9752 - São Carlos - SP - Brazil
E-mail: sbmac@sbmac.org.br