Next Article in Journal
A Novel Method for Ocean Wind Speed Detection Based on Energy Distribution of Beidou Reflections
Previous Article in Journal
Computational Efficiency-Based Adaptive Tracking Control for Robotic Manipulators with Unknown Input Bouc–Wen Hysteresis
Previous Article in Special Issue
Detecting Malicious False Frame Injection Attacks on Surveillance Systems at the Edge Using Electrical Network Frequency Signals
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Reduced Cycle Spinning Method for the Undecimated Wavelet Transform

by
Miguel A. Rodriguez-Hernandez
Instituto ITACA, Universitat Politècnica de València, Camino de Vera, s/n, Valencia 46022, Spain
Sensors 2019, 19(12), 2777; https://doi.org/10.3390/s19122777
Submission received: 27 May 2019 / Revised: 17 June 2019 / Accepted: 18 June 2019 / Published: 20 June 2019
(This article belongs to the Special Issue Intelligent Signal Processing, Data Science and the IoT World)

Abstract

:
The Undecimated Wavelet Transform is commonly used for signal processing due to its advantages over other wavelet techniques, but it is limited for some applications because of its computational cost. One of the methods utilized for the implementation of the Undecimated Wavelet Transform is the one known as Cycle Spinning. This paper introduces an alternative Cycle Spinning implementation method that divides the computational cost by a factor close to 2. This work develops the mathematical background of the proposed method, shows the block diagrams for its implementation and validates the method by applying it to the denoising of ultrasonic signals. The evaluation of the denoising results shows that the new method produces similar denoising qualities than other Cycle Spinning implementations, with a reduced computational cost.

1. Introduction

The wavelet transforms are commonly used to analyse non-stationary signals and, as a result, there is a wide bibliography both generalist [1,2,3,4] and applied [5,6,7]. The wavelet term is assigned to a set of time frequency transforms that depending on the selection of some parameters produces more specific definitions of wavelet transforms. The most utilized wavelet is the Discrete Wavelet Transform (DWT), which has the disadvantage of not being shift-invariant. The Undecimated Wavelet Transform (UWT) was designed to overcome the lack of the DWT time variance [8]. There are several implementations of the UWT, for instance the à trous algorithm [8], but this work deals with the technique called Cycle Spinning (CS) [9].
The CS method has been used in the processing of different kinds of images: astronomical images [10], synthetic aperture radar images [11], medical images for diagnosis [12] and for estimation of fluid flows [13], or the classic image of Lena [14]. However, CS has been also used for the extraction of signal characteristics from electrical discharges [15], for denoising in electromagnetic signals from geophysical explorations [16] or for denoising of ultrasonic signals used both for nondestructive evaluations [17,18] and for medical diagnosis [19,20].
The CS algorithm has some advantages over other wavelet implementations. The main advantage is that the final processed signal is obtained by the combination of different shifted versions of the processed signal. This characteristic produces a high redundancy of the processed information and allows different points of view, which can suggest different solutions, for instance the best basis selection in wavelet denoising problems. The redundancy of the processed information is intrinsic to the UWT, but the CS UWT technique is more redundant than other UWT techniques. For instance, the à trous algorithm generates ( J + 1 ) wavelet coefficients per sample whereas the CS algorithm generates 2 J (being J the maximum decomposition level of the UWT analysis) [18].
The UWT CS analysis is based on performing numerous DWTs to circular shifted versions of the signal to process, generating the CS coefficients. After the wavelet coefficients processing, the UWT CS synthesis is carried out performing several inverse DWTs (iDWT), resulting in a set of recovered signals that must be combined to obtain the final processed signal. The limitation of the CS method is the high number of DWTs and iDWTs to perform, and the reduction of the CS computational cost has been treated in several works. In References [21,22] it was demonstrated that the CS coefficients, obtained performing DWTs with maximum decomposition level J, were periodic every 2 J shifts. Recently in Reference [18] the complete formulation of the CS coefficients was done and other periodicities of the CS coefficients were shown. These periodicities allowed the proposal of some alternatives to reduce the computational cost in the CS method. One of them was the Partial Cycling Spinning (PCS) method [17,19] that performs the CS method using only a subset of the circular shifted versions of the signal to process, reducing the number of DWTs and iDWTs.
The present work introduces an improvement to the CS UWT implementation by removing all the iDWTs except one, reducing the computational cost. The improvement is obtained doing a combination of the wavelet coefficients, after the Digital Signal Processing (DSP) tap and prior to the iDWT tap. In this way, the combination is performed over the wavelet coefficients instead of over the recovered signals, reducing the number of iDWTs to one. Figure 1 shows the schemes of the standard CS method and the proposed Reduced Cycle Spinning (RCS) method.
This work develops the mathematical formulation of the new RCS method, studies its advantages and limitations, evaluates different options for the wavelet coefficients combination and shows experimental results which validate the proposed method. The experimental validation is done by comparing the RCS method with the CS and the PCS methods applied to the denoising of ultrasonic signals. This paper is written in four parts: Section 2 resumes the CS method; Section 3 introduces the new RCS method; Section 4 describes the simulations of an ultrasonic denoising problem and Section 5 explains the conclusions.

2. Undecimated Wavelet Transform and Cycle Spinning

The Discrete Wavelet Transform (DWT) is defined by:
D W T x ( k ) ( j , n ) = k = k = x ( k ) 1 2 j ψ ( k 2 j n )       j , n   Z
where x ( k ) is the discrete signal, ψ ( k ) the mother wavelet, n is the discrete time and j is the scale level.
The popularity of the DWT is in part due to its easy implementation with iterative filter banks using the Mallat algorithm [23]. In the Mallat algorithm the input signal passes through two filters (a low pass filter and a high pass filter) and the outputs of the filters are decimated. The output of the high pass filter is formed by the wavelet coefficients and the output of the low pass filter is the input of the filtering Level 2, which uses the same filter bank as Level 1. Repeating this filtering-decimating process, the wavelet coefficients are obtained for all the decomposition levels.
Figure 2 shows the Mallat DWT analysis algorithm. The input X ( z ) is the z-transform of x ( k ) , G ( z ) and H ( z ) are the transfer functions of the low pass and high pass filters, the blocks with (2↓) represent the decimation by 2, d j ( z ) are the wavelet coefficients at the decomposition level j and a J ( z ) are the coefficients from the output of low pass filter of level J .
The number of wavelet coefficients obtained by the Mallat algorithm is coincident with the number of samples of the input signal x ( k ) , K samples. The expressions of the DWT coefficients are [3]:
d j ( z ) = X ( z ) [ H ( z ) ( 2 ) ] j 1 [ G ( z ) ( 2 ) ] a J ( z ) = X ( z ) [ H ( z ) ( 2 ) ] J
The synthesis of the signal from the wavelet coefficients can be obtained using another filter bank, where two new low and high filters, G ˜ ( z ) and H ˜ ( z ) (obtained from G ( z ) and H ( z ) ), are utilized and where the decimator is replaced by an interpolator. The expression of the recovered signal is:
X ˜ ( z ) = a J ( z ) [ ( 2 ) H ˜ ( z ) ] J + j = 1 J d j ( z ) ( 2 ) G ˜ ( z ) [ ( 2 ) H ˜ ( z ) ] j 1
The DWT is not a shift-invariant transform because the wavelet coefficients of level j are calculated with periods of 2 j samples [8]. To overcome this problem was developed the Undecimated Wavelet Transform (UWT) that is an invariant-shift transform [8].
U W T x ( k ) ( j , n ) = k = k = x ( k ) 1 2 j ψ ( k n 2 j )       j , n   Z
There are two widely used algorithms for the implementation of the UWT: the à trous algorithm [8] and the CS method [9]; the relationship among them was studied in Reference [18].
The CS algorithm is based on the DWTs of several circular shifted versions of the input signal x ( k ) . Therefore, it is necessary to calculate a DWT for each shifted version of the input signal. The shifted versions of the input signal, x m ( k ) , are obtained using the shift operator S h m [   ] [18].
x m ( k ) = S h m [ x ( k ) ] = x ( ( k + m ) mod   K )           being   ( k + m ) mod   K = { ( k + m + K )       if   ( k + m ) < 0 ( k + m )           if   0 ( k + m ) < K ( k + m K )     if   ( k + m ) K
with 0 k K 1 and 0 m M 1 , being m the shift and M K . M = 2 J because the CS UWT coefficients are periodic every 2 J shifts [21,22], thus if M is increased the wavelet coefficient obtained are periodically repeated.
In the z-transform domain the shift operator S h m [   ] is transformed to S m [   ]     and the shifted signals can be expressed as:
X m ( z ) = T Z { S h m [ x ( k ) ] } = S m [ X ( z ) ] = Remainder [ X ( z ) . z m z K ]
Figure 3 shows the UWT analysis scheme using CS with maximum decomposition level J . The output of the CS analysis is composed of the wavelet coefficients of M DWTs, so the total number of coefficients is M K = 2 J K . The expressions of the CS wavelet coefficients are:
d m , j ( z ) = X m ( z ) [ H ( z ) ( 2 ) ] j 1 [ G ( z ) ( 2 ) ] a m , J ( z ) = X m ( z ) [ H ( z ) ( 2 ) ] J
with 0 m M 1 and 1 j J .
The synthesis of the recovered signal X r ( z ) from the CS wavelet coefficients is carried out by means of several parallel iDWT’s processes, followed by the inverse shifts that compensate the ones performed during the analysis process (see Figure 4). In this way, if the wavelet coefficients have not been modified, the signals recovered for each shift, X r , m ( z ) , are equal to the original signal X ( z ) . In fact, with the CS method, M processed versions X r , m ( z ) of the original signal X ( z ) are obtained.
Using the Equation (5), X r , m ( z ) can be written as:
X r , m ( z ) = S m [ a m , J ( z ) [ ( 2 ) H ˜ ( z ) ] J + j = 1 J d m , j ( z ) ( 2 ) G ˜ ( z ) [ ( 2 ) H ˜ ( z ) ] j 1 ]
Finally, the recovered signal X r ( z ) is obtained by combining the different signals X r , m ( z ) using the mean. The Figure 4 show the complete diagram block of the CS synthesis process.
X r ( z ) = 1 M m = 0 M 1 X r , m ( z )
An alternative to reduce the number of shifts M = 2 J is the PCS method. The PCS method introduced in References [17,18,19] is an approximation of the CS method with a reduced number of shifts, M < 2 J . The PCS method selects a subset of the shifts and performs the UWT in a similar way to the CS method. The quality of the results obtained with the PCS method depends on the selected subset of shifts, but with an adequate selection of the shifts the quality of the processed signal is maintained. The PCS method can obtain good results with M J , reducing the number of shifts from 2 J to J , and obtaining a computational cost reduction by a factor of approximately 2 J / J . The PCS method optimizes the CS method maintaining the same block diagrams both in analysis and synthesis, but reducing the number of shifts ( M < 2 J ); the RCS method presented in this work optimizes the CS method using a new synthesis block diagram with only one iDWT.

3. Reduced Cycling Spinning (RCS) Method.

The CS algorithm needs a high number of DWTs and iDWTs, one DWT and one iDWT for each signal shift. The number of operations performed in each DWT or iDWT is approximately 2 C K , with C being a constant factor that depends on the filter length and K the number of samples of the input signal x ( k ) . Therefore, for the implementation of the CS method with M shifts the number of needed operations is approximately 4 C K M , 2 C K M for the analysis tap and 2 C K M for the synthesis tap. If all the possible shifts are performed, M = K , the number of operations would be approximately 4 C K 2 . Different methods based on the selection of a limited number of shifts have been proposed to reduce the order of the CS operations from O ( K 2 ) to O ( K log 2 ( K ) ) [10,17,19]. The proposed RCS method eliminates all iDWTs except one, reducing the operations in the synthesis from 2 C K M to 2 C K . The RCS method maintains the CS analysis tap and proposes a new synthesis process, implying approximately 2 C K ( M + 1 ) operations. Therefore, the RCS method reduces the number of operations from 4 C K M to 2 C K ( M + 1 ) , very close to the half value. In addition, the RCS method can be combined with other approximated CS methods as the ones proposed in References [10,17,19] increasing the computational cost reduction.
In the RCS synthesis the combination of the shifted wavelet coefficients is performed prior to the iDWT and implies some difficulties. The CS synthesis only needs to perform one inverse shift for each shift performed in the analysis block, but the RCS synthesis needs to perform several inverse shifts for each shift performed in the analysis block because the shifts associated to the wavelet coefficients vary depending on the decomposition levels due to decimators. A shift m in the initial signal X ( z ) generates a shift of m / 2 in the coefficients d 1 ( z ) , a shift of m / 2 2 in the coefficients d 2 ( z ) , and in general a shift of m / 2 j in the coefficients d j ( z ) . In this way, to compensate for the effects of a shift m over the wavelet coefficients it is necessary to perform an inverse shift S ( m 2 1 ) [   ] for scale 1, an inverse shift S ( m 2 2 ) [   ] for scale 2, and in general an inverse shift S ( m 2 j ) [   ] for scale j .
d m , j s ( z ) = S ( m 2 j ) [ d m , j ( z ) ] a m , J s ( z ) = S ( m 2 J ) [ a m , J ( z ) ]
On the other hand, the ratio m / 2 j is not an integer in all cases and it is necessary to approximate the fractional shifts to an integer in order to perform the inverse coefficients shifts. The approximation of m / 2 j to an integer is done by rounding, which is an easy operation and minimizes the maximum rounding shift error.
d ˜ m , j s ( z ) = S round ( m 2 j ) [ d m , j ( z ) ] a ˜ m , J s ( z ) = S round ( m 2 J ) [ a m , J ( z ) ]
The rounding shift error assumed doing the approximation of Equation (11) is:
ε m , j = m 2 j round ( m 2 j ) = c 2 j
where c is an integer which value depends on m and varies between 2 j 1 + 1 and 2 j 1 .
The module of the maximum rounding shift error is bounded to 1/ 2 for all the scales.
The rounding shift error ε m , j generates another error in the wavelet coefficients proportional to the ε m , j value. The approximated shifted coefficients, d ˜ m , j s ( z ) and a ˜ m , J s ( z ) , can be expressed as the exact shifted coefficients, d m , j s ( z ) and a m , J s ( z ) , plus an error:
d ˜ m , j s ( z ) = d m , j s ( z ) + e d ( ε m , j ) a ˜ m , J s ( z ) = a m , J s ( z ) + e a ( ε m , J )
being e d ( ε m , j ) and e a ( ε m , J ) the errors of the wavelet coefficients.
The combination of the shifted coefficients is performed with the mean. Other alternatives for the combination (maximum and minimum) are evaluated in the experimental part, but results confirm the mean as the best option. The exact combined coefficients, d j ( z ) and a J ( z ) , that would be obtained using the exact and unavailable shifted coefficients, d m , j s ( z ) and a m , J s ( z ) , have the expressions:
d j ( z ) = 1 M m = 0 M 1 d m , j s ( z ) a J ( z ) = 1 M m = 0 M 1 a m , J s ( z )
However, in practice the proposed RCS algorithm use the approximated shifted coefficients, d ˜ m , j s ( z ) and a ˜ m , J s ( z ) , for combination and the resulting approximated combined wavelet coefficients d ˜ j ( z ) and a ˜ J ( z ) are:
d ˜ j z = 1 M m = 0 M 1 d ˜ m , j s z = 1 M   m = 0 M 1 d m , j s z + e d ( ε m , j ) = d j z + 1 M   m = 0 M 1 e d ( ε m , j ) = d j z + e ¯ d ( ε m , j ) a ˜ J z = 1 M m = 0 M 1 a ˜ m , J s z = 1 M   m = 0 M 1 a m , J s z + e a ( ε m , J ) = a j z + 1 M   m = 0 M 1 e a ( ε m , J ) = a j z +   e ¯ a ( ε m , J )
The approximated coefficients d ˜ j ( z ) and a ˜ J ( z ) are the exact coefficients d j ( z ) and a J ( z ) plus the mean errors of the shifted wavelet coefficients, e ¯ d ( ε m , j ) and e ¯ a ( ε m , j ) . These mean errors depend on the coefficients values distribution and it is not possible to calculate them in a general way. However, e ¯ d ( ε m , j ) and e ¯ a ( ε m , J ) also depend on the mean of the rounding shift error the value of which is:
ε ¯ m , j = 1 2 j c = 2 j 1 + 1 2 j 1 c 2 j = 1 2 j 2 j 1 2 j = 1 2 j + 1
The mean rounding shift error, ε ¯ m , j , has a low fixed value for each scale and decreases in an exponential way with the scale resulting negligible for many scales. As e ¯ d ( ε m , j ) and e ¯ a ( ε m , J ) depend on ε ¯ m , j , it is possible to conclude that e ¯ d ( ε m , j ) and e ¯ a ( ε m , J ) also have low values, decrease in an exponential way with the scale and in many scales are negligible. In this way, the high scales errors affect a large number of samples of the recovered signals but they are very low, whereas the low scales errors could be more important but affect only a small number of samples of the recovered signals.
Finally, the signal X ˜ r ( z ) is recovered from the wavelet coefficients d ˜ j ( z ) and a ˜ J ( z ) with a unique iDWT.
X ˜ r ( z ) = a ˜ J ( z ) [ ( 2 ) H ˜ ( z ) ] J + j = 1 J d ˜ j ( z ) ( 2 ) G ˜ ( z ) [ ( 2 ) H ˜ ( z ) ] j 1 =   [ a J ( z ) + e ¯ a ( ε m , J ) ] [ ( 2 ) H ˜ ( z ) ] J + j = 1 J [ d j ( z ) + e ¯ d ( ε m , j ) ] ( 2 ) G ˜ ( z ) [ ( 2 ) H ˜ ( z ) ] j 1 = X r ( z ) + e ¯ a ( ε m , J ) [ ( 2 ) H ˜ ( z ) ] J + j = 1 J e ¯ d ( ε m , j ) ( 2 ) G ˜ ( z ) [ ( 2 ) H ˜ ( z ) ] j 1 = X r ( z ) + δ ( z )
The approximated recovered signal X ˜ r ( z ) is the exact recovered signal, X r ( z ) , plus an error. The error in the recovered signal is:
δ ( z ) = e ¯ a ( ε m , J ) [ ( 2 ) H ˜ ( z ) ] J + j = 1 J e ¯ d ( ε m , j ) ( 2 ) G ˜ ( z ) [ ( 2 ) H ˜ ( z ) ] j 1
The error δ ( z ) depends on e ¯ d ( ε m , j ) and e ¯ a ( ε m , J ) , e ¯ d ( ε m , j ) and e ¯ a ( ε m , J ) depend on ε ¯ m , j that has low values; so the error δ ( z ) will have low values.
Figure 5 displays the block diagram of the complete RCS synthesis using the approximated wavelet coefficients.

4. Experimental Results

The goodness of the proposed RCS method is confirmed by applying RCS to a denoising problem of ultrasonic signals. In this way, in the following subsections an introduction to the wavelet signal denoising problem is done, to later describe the ultrasonic experiments carried out and show the results obtained after performing the experiments.

4.1. Signal Denoising Using CS

The denoising of signal using wavelets was introduced by Donoho and Johnstone in different works [24,25,26]. The denoising processing with wavelets is divided into three basic steps: the first is the wavelet coefficients calculation of the signal to denoise, the second is the denoising of the wavelet coefficients by means of thresholding, and the third is the synthesis of the signal from the processed coefficients.
There are different types of thresholds [27,28], but the three most commonly used in wavelet denoising are: the Minimax threshold [24], the Universal threshold [25,26] and the SURE threshold [25].
The Universal threshold is defined by:
T U = median ( | d m , j | ) 0 , 6745 2 ln N j
being N j is the number of d m , j coefficients at level j .
The Minimax threshold is:
T M m = median ( | d m , j | ) 0 , 6745 λ * ( N j )
where λ*( N j ) is defined in Table 1 of Reference [24].
A risk function is used for the SURE threshold that in the case of soft thresholding [29] follows the expression:
S U R E ( T ; X ) = N 2   . # { i : | X i | T } + i = 1 N [ min ( | X i | , T ) ] 2
being # { i : | X i | T } the cardinal of { i : | X i | T } .
The SURE threshold is the value that minimizes:
T S = arg min T 0 { S U R E ( T ; d m , j median ( | d m , j | ) / 0 , 6745 ) }

4.2. Experimental Setup

Several sets of synthetic ultrasonic traces were generated to the experimental verification of the RCS method. Each synthetic trace was generated by the insertion of a real ultrasonic echo acquired from a 1 MHz frequency transducer in a simulated ultrasonic grain noise register. The coloured ultrasonic grain noise registers, N ( f ) , came from a noise simulator based on the model proposed in Reference [30]:
N ( f ) = [ N 1 ( f ) f 2 H t ( f ) ] exp ( α 0 f 4 ) + N 2 ( f )
where H t ( f ) is the frequency response of the ultrasonic transducer, N 1 ( f ) models the structure of the material, α 0 is the attenuation and N 2 ( f ) is the additive white Gaussian noise associated to the measuring equipment.
The registers corresponding to the ultrasonic echo and the grain noise were added with different weights to generate several sets of traces with different signal to noise ratios (SNR). The SNR was used as the quality parameter for both the initial signal and the processed signals. SNR was defined by References [28,30,31,32]:
SNR = peak   value   in   target   zone standard   deviation   of   trace
Seven sets of 1000 traces with different SNR were generated. The length of each trace was K = 4096 samples and the sampling frequency was 64 MHz, thus the length of the simulated registers was 64 microseconds. The value of the attenuation parameter of noise was α 0 = 1.8   ×   10 26 .

4.3. Experimental Results

The simulations presented in this paper were done using MATLAB over a Windows PC with Intel Core i7-4790k CPU and 16 MB of RAM. Denoising processing was performed for the seven sets of noisy ultrasonic registers with the CS, PCS and RCS method, using CS and PCS as references. For all methods, Daubechies 6 [2] was selected as mother wavelet due to the previous experience with this kind of signals [17,18,19,20], J = 7 was the maximum decomposition level, the filters border treatment was zero padding and soft thresholding was used with threshold values calculated independently for each decomposition level [27]. RCS was applied in combination with the PCS method to obtain a greater reduction of the computational cost. The number of shifts used for both the RCS and the PCS methods was M = 8, the selected shifts values for the two methods were m { 3 ,   14 ,   51 ,   61 , 88 ,   97 ,   104 ,   108 } . Three evaluations were carried out varying the threshold: Minimax, SURE and Universal. Additionally, in the RCS method three alternatives for the combination of the wavelet coefficients were studied: mean, maximum and minimum.
Two types of results were obtained: numerical and graphical. The numerical results are displayed in Table 1, Table 2 and Table 3 where the mean SNR values of the seven sets of 1000 ultrasonic traces processed with different methods are listed. Table 1, Table 2 and Table 3 contain six columns and the differences among tables are due to the threshold utilized in the denoising. The first column values are common for the three tables and correspond to the initial SNR of the ultrasonic traces. Columns 2 and 3 show the reference results obtained using the CS and PCS methods and the three last columns list the SNR values using the RCS method with the three combination choices: mean, minimum and maximum.
Table 1, Table 2 and Table 3 show that the SNR results of the CS, PCS and RCS methods are similar. Although the RCS method was proposed using the mean for the coefficients combination, the SNR results using the minimum and the maximum are close to the mean results and in some cases they are even slightly better. However, the mean choice generates registers in which the non-eliminated noise peaks are lower than in the minimum and maximum cases, even lower than in the CS and PCS cases.
Figure 6b–e show the normalized graphical results of the denoised ultrasonic trace with noise of Figure 6a with different wavelet methods using the Minimax threshold. The processed signals of Figure 6c–f were processed using the same eight shifts and have an SNR very close to 8.2. However, it can be clearly observed that Figure 6d, obtained with RCS and mean, shows lower noise peaks values outside the area of the recovered pulse than in Figure 6e,f. Furthermore, these non-eliminated noise peaks are also lower in Figure 6d than in Figure 6b,c, obtained using CS and PCS respectively. This noise peaks reduction effect is another improvement observed in the denoising RCS method with coefficients combination using the mean. The cause of the noise peak reduction has not been determined with detail and probably it is due to the averaging of the wavelet coefficients; this is an open problem for a future research.
An additional quality parameter was calculated to evaluate the similitude between the denoised signals of Figure 6b–e and the ultrasonic pulse without noise of Figure 6a, the Minimum Square Error (MSE) defined as:
MSE = 1 K k = 0 K 1 ( x ˜ r ( k ) P ( k ) ) 2
where x ˜ r ( k ) is the recovered denoised signal and P ( k ) the ultrasonic pulse without noise.
The MSE of the initial trace with noise (Figure 6a) is 0.0413 and it is reduced after the denoising by all the methods. The best MSE after denoising is obtained, again, by the RCS method with mean (MSE = 0.0062), even this value is slightly better than MSE PCS value (MSE = 0.0066) and MSE CS value (MSE = 0.0072). The RCS methods with minimum and maximum have MSE values of 0.0086 and 0.0092 respectively.
Figure 7 shows the joint comparison of the denoised ultrasonic registers of Figure 6b–e. The individual curves are shown in Figure 6. In Figure 7 the curves are superimposed to compare the reduction of the residual noise and the perfect synchronization of the recovered signals. To evaluate the residual noise in Figure 7, the curves are ordered according to the noise level; the curve with the greatest residual noise (RCS with minimum) is represented at the deepest level whereas the curve with the lowest residual noise (RCS with mean) is represented at the most superficial level. In Figure 7 the green line corresponds to the RCS method with mean and shows the lowest values in the noise peaks. The highest values of the noise peaks correspond to RCS method using minimum (black line), whereas the registers associate to CS and PCS have intermediate values. Additionally, Figure 7 shows the perfect time synchronization achieved in the recovered signals using the RCS method. The perfect time synchronization and the low values of the residual noise confirm the goodness of the RCS method.

4.4. Error Evaluation.

Another experiment was designed to evaluate the influence of the rounding shift error over the recovered signal. In this experiment only the RCS analysis and synthesis of an ultrasonic pulse were performed (without the denoising), and the initial and the recovered pulses were compared. In the RCS synthesis part, the rounding shift error for all the scales was selected equal to 1/2. This error corresponds to the theoretical worse case and it cannot happen in a real problem because there is not a shift that generates rounding shift errors equal to 1/2 for all the scales.
The simulation used Daubechies 6, J = 7 and zero padding as in the previous denoising experiments. To simplify the representation but without loss of generality, the shifts m = 0 and m = 1 were selected to calculate the RCS analysis wavelet coefficients and to generate the RCS shifted wavelet coefficients with rounding shift errors. In this way, the shifted wavelet coefficients with rounding shift error equal to 1/2 for all the scales were obtained using:
d ˜ 0 , j s z = d 0 , j s z + d 0 , j s z d 1 , j s z 2 a ˜ 0 , j s z = a 0 , j s z + a 0 , j s z a 1 , j s z 2
Note that a rounding shift error equal to 1/2 implies the error of the shifted wavelet coefficients correspond to a half of the difference between the wavelet coefficients of two consecutive shifts, 0 and 1 in the present case.
Figure 8 shows the initial and the recovered pulses, the wavelet coefficients and the errors committed during the RCS process in both wavelet coefficients and recovered pulse. Figure 8a displays the initial ultrasonic pulse. Figure 8b represents the wavelet coefficients of the ultrasonic pulse, in this figure it can be appreciated that the coefficients are different to 0 only in scales j = 4 ,   5 ,   6   and   7 . Figure 8c shows the scales j = 4 ,   5 ,   6   and   7 of the approximated shifted wavelet coefficients and the error associated to each approximated shifted wavelet coefficient. In this figure it can be appreciated the low magnitude of the wavelet coefficients error. Figure 8d contains the curves of the recovered pulse and the difference (error) between the initial pulse and the recovered pulse. In this figure it can be observed the low magnitude of the error in the recovered pulse. An MSE of 3.1 × 10−5 confirms the low magnitude of the error in the recovered pulse.
A second experiment was designed to evaluate the errors in the RCS method with real shifts. In this experiment the ultrasonic pulse was analysed and synthetized with the set of shifts used in the denoising experiment, m { 3 ,   14 ,   51 ,   61 , 88 ,   97 ,   104 ,   108 } . The rounding shift errors ε m , j associated to each shift m and scale j are listed in Table 4. The mean of the rounding shift errors associated to each scale is in all the scales inferior to the 1/2 value used in the previous error evaluation.
Figure 9a displays the approximated shifted wavelet coefficients and its error. As in Figure 8c, they only represent the scales j = 4 ,   5 ,   6   and   7 with coefficients values different to 0. The magnitude of the coefficients error of Figure 9a is inferior to the magnitude of the coefficients error of Figure 8a. Figure 9b shows the recovered pulse and the error of the recovered pulse. The error of the recovered pulse is also inferior to the error in Figure 8d; the MSE in this case is 1.8 × 10−6.
Two experiments have been performed to evaluate the errors in the RCS method. The first experiment simulates the theoretical and non-real case where the rounding shift error is maximum (1/2) for all the scales; the second experiment corresponds to the set of shifts used in the denoising problem. Both experiments confirm that although the error associated to the recovery signal using RCS method depends on each specific signal, the magnitudes of the errors is low compared with the magnitudes of the shifted wavelet coefficients and the recovered signal. Additionally, the MSE values confirm the low magnitude of the errors.

5. Conclusions

This paper introduces the RCS method for the CS UWT implementation that reduces the computational cost by a factor close to 2 and is compatible with other optimized methods such as PCS. The proposed RCS method maintains the analysis blocks of the CS method but changes the synthesis tap reducing the number of iDWTs to one. For the iDWT’s reduction in the synthesis tap, it is necessary to perform a combination over the wavelet coefficients, instead of over the recovered signals as in the CS method.
The combination of the wavelet coefficients associated to each shift has implied the proposal of solutions to the difficulties that appeared during development. The main difficulty was due to the fact that the shifts have integer values in the shifted signals, but not in the CS wavelet coefficients because of the decimation process. To solve this problem and calculate the inverse shifts during the synthesis process, the shifts were rounded and a rounding shift error was generated. The rounding shift error was studied and its effects over the recovered signal were estimated. The error in the recovered signal depends on the mean value of the rounding shift error, and the mean value of the rounding shift error has been calculated resulting ε ¯ m , j = 1 2 j + 1 . Therefore, the error in the recovered signal is proportional to 1 2 j + 1 , negligible in most of the samples; the experimental results confirm this hypothesis.
The novelty of the proposed RCS method is the combination of the wavelet coefficients associated with each shift, so different alternatives for the coefficients combination have been studied. Specifically, the paper shows results using three alternatives for the coefficients combination: the mean, the maximum and the minimum. In denoising processing applications, the SNR and MSE values do not show big differences among the coefficients combination methods.
On the other hand, the graphical results of denoised ultrasonic traces show an interesting effect, the non-eliminated noise peaks are smaller using the RCS method with the mean than using RCS with the minimum or maximum. Additionally, there is a reduction of these noise peaks compared to the CS and PCS methods. The reduction of the non-eliminated noise peaks in RCS denoising must be studied to determinate the causes and to evaluate the effects of applying RCS to other signal processing problems.
The final conclusion is that this work introduces the RCS method for the CS UWT implementation with half the computational cost of the standard CS method, develops the RCS mathematical formulation, shows the block diagrams of the RCS analysis and synthesis taps, performs an experimental validation applying the RCS method to an ultrasonic denoising problem and evaluates the RCS errors.

Funding

This research was funded by grants number PGC2018-09415-B-I00 (MCIU/AEI/FEDER, UE) and TEC2015-71932-REDT.

Conflicts of Interest

The author declares no conflict of interest.

References

  1. Burrus, C.S.; Gopinath, R.A.; Guo, H. Introduction to Wavelets and Wavelet Transforms; Prentice-Hall: Upper Saddle River, NJ, USA, 1998. [Google Scholar]
  2. Daubechies, I. Ten Lectures on Wavelets; SIAM: Philadelphia, PA, USA, 1992. [Google Scholar]
  3. Kovacevic, J.; Goyal, V.K.; Vetterli, M. Signal Processing Fourier and Wavelet Representations. 2012. Available online: http://www.fourierandwavelets.org/SPFWR_a3.1_2012.pdf (accessed on 14 January 2013).
  4. Mallat, S. A Wavelet Tour of Signal Processing; Academic Press: New York, NY, USA, 1999. [Google Scholar]
  5. Zhao, H.; Zuo, S.; Hou, M.; Liu, W.; Yu, L.; Yang, X.; Deng, W. A Novel Adaptive Signal Processing Method Based on Enhanced Empirical Wavelet Transform Technology. Sensors 2018, 18, 3323. [Google Scholar] [CrossRef] [PubMed]
  6. Gradolewski, D.; Magenes, G.; Johansson, S.; Kulesza, W.J. A Wavelet Transform-Based Neural Network Denoising Algorithm for Mobile Phonocardiography. Sensors 2019, 19, 957. [Google Scholar] [CrossRef] [PubMed]
  7. Shikhsarmast, F.M.; Lyu, T.T.; Liang, X.L.; Zhang, H.; Gulliver, T.A. Random-Noise Denoising and Clutter Elimination of Human Respiration Movements Based on an Improved Time Window Selection Algorithm Using Wavelet Transform. Sensors 2019, 19, 95. [Google Scholar] [CrossRef] [PubMed]
  8. Shensa, M.J. The Discrete Wavelet Transform: Wedding the A Trous and Mallat Algorithms. IEEE Trans. Signal Process. 1992, 40, 2464–2482. [Google Scholar] [CrossRef]
  9. Coifman, R.; Donoho, D. Translation Invariant de-Noising. In Wavelets and Statistics; Lecture Notes in Statistics; Antoniadis, A., Oppenheim, G., Eds.; Springer: Berlin, Germany, 1995; pp. 125–150. [Google Scholar]
  10. Li, M.; Ghosal, S. Fast Translation Invariant Multiscale Image Denoising. IEEE Trans. Image Process. 2015, 24, 12. [Google Scholar] [CrossRef] [PubMed]
  11. Hazarika, D.; Nath, V.K.; Bhuyan, M. SAR Image Despeckling Based on a Mixture of Gaussian Distributions with Local Parameters and Multiscale Edge Detection in Lapped Transform Domain. Sens. Imaging 2016, 17, 15. [Google Scholar] [CrossRef]
  12. Sakhaee, E.; Entezari, A. Joint Inverse Problems for Signal Reconstruction via Dictionary Splitting. IEEE Signal Process. Lett. 2017, 24, 1203–1207. [Google Scholar] [CrossRef]
  13. Ong, F.; Uecker, M.; Tariq, U.; Hsiao, A.; Alley, M.T.; Vasanawala, S.S.; Lustig, M. Robust 4D flow denoising using divergence-free wavelet transform. Magn. Reson. Med. 2015, 73, 828–842. [Google Scholar] [CrossRef] [PubMed]
  14. Rehman, N.U.; Abbas, S.Z.; Asif, A.; Javed, A.; Naveed, K.; Mandic, D.P. Translation invariant multi-scale signal denoising based on goodness-of-fit tests. Signal Process. 2017, 131, 220–234. [Google Scholar] [CrossRef]
  15. Mota, H.O.; Vasconcelos, F.H.; de Castro, C.L. A comparison of cycle spinning versus stationary wavelet transform for the extraction of features of partial discharge signals. IEEE Trans. Dielectr. Electr. Insul. 2016, 23, 1106–1118. [Google Scholar] [CrossRef]
  16. Li, D.; Wang, Y.; Lin, J.; Yu, S.; Ji, Y. Electromagnetic noise reduction in grounded electrical-source airborne transient electromagnetic signal using a stationary wavelet-based denoising algorithm. Near Surf. Geophys. 2017, 15, 163–173. [Google Scholar] [CrossRef]
  17. San Emeterio, J.L.; Rodriguez-Hernandez, M.A. Wavelet Cycle Spinning Denoising of NDE Ultrasonic Signals Using a Random Selection of Shifts. J. Nondestruct. Eval. 2015, 34, 270. [Google Scholar] [CrossRef]
  18. Rodriguez-Hernandez, M.A.; San Emeterio, J.L. Noise Reduction Using Wavelet Cycle Spinning. Analysis of Useful Periodicities in the z-Transform Domain. Signal Image Video Process. 2016, 10, 519–526. [Google Scholar] [CrossRef]
  19. Rodriguez-Hernandez, M.A. Shift selection influence in partial cycle spinning denoising of biomedical signals. Biomed. Signal Process. Control 2016, 26, 64–68. [Google Scholar] [CrossRef] [Green Version]
  20. Rodriguez-Hernandez, M.A. Denoising of hepatic signals with Partial Cycle Spinning. In Proceedings of the 2016 Global Medical Engineering Physics Exchanges/Pan American Health Care Exchanges (GMEPE/PAHCE), Madrid, Spain, 4–9 April 2016; pp. 104–110. [Google Scholar]
  21. Beylkin, G.; Coifman, R.; Rokhlin, V. Fast Wavelet Transforms and Numerical Algorithms. Commun. Pure Appl. Math. 1991, 44, 141–183. [Google Scholar] [CrossRef]
  22. Beylkin, G. On the Representation of Operators in Bases of Compactly Supported Wavelets. Siam J. Numer. Anal. 1992, 6, 1716–1740. [Google Scholar] [CrossRef]
  23. Mallat, S.G. A theory for multiresolution signal decomposition: The wavelet representation. IEEE Trans. Putt. Anal. Mach. Inre 1999, 2, 674–693. [Google Scholar]
  24. Donoho, D.L.; Johnstone, I.M. Ideal spatial adaptation by wavelet shrinkage. Biometrika 1994, 81, 425–455. [Google Scholar] [CrossRef]
  25. Donoho, D.L.; Johnstone, I.M. Adapting to unknown smoothness via wavelet shrinkage. J. Am. Stat. Assoc. 1995, 90, 1200–1224. [Google Scholar] [CrossRef]
  26. Donoho, D.L.; Johnstone, I.M.; Kerkyacharian, G.; Picard, D. Wavelet shrinkage: Asymptotia? J. R. Stat. Soc. Ser. B 1995, 57, 301–369. [Google Scholar]
  27. Johnstone, I.M.; Silverman, B.W. Wavelet threshold estimators for data with correlated noise. J. R. Stat. Soc. 1997, 59, 319–351. [Google Scholar] [CrossRef]
  28. Pardo, E.; San Emeterio, J.L.; Rodriguez, M.A.; Ramos, A. Noise Reduction in Ultrasonic NDT using Undecimated Wavelet Transforms. Ultrasonics 2006, 44, e1063–e1067. [Google Scholar] [CrossRef] [PubMed]
  29. Donoho, D.L. De-noising by soft thresholding. IEEE Trans. Inf. Theory 1995, 41, 613–627. [Google Scholar] [CrossRef]
  30. Lazaro, J.C.; San Emeterio, J.L.; Ramos, A.; Fernandez, J.L. Influence of thresholding procedures in ultrasonic grain noise reduction using wavelets. Ultrasonics 2002, 40, 263–267. [Google Scholar] [CrossRef]
  31. Karpur, P.; Shankar, P.M.; Rose, J.L.; Newhouse, V.L. Split spectrum processing: Optimizing the processing parameters using minimization. Ultrasonics 1997, 25, 204–208. [Google Scholar] [CrossRef]
  32. Pardo, E.; San Emeterio, J.L.; Rodriguez, M.A.; Ramos, A. Shift invariant wavelet denoising of ultrasonic traces. Acta Acust. United Acust. 2008, 94, 685–693. [Google Scholar] [CrossRef]
Figure 1. Cycle Spinning method and the proposed Reduced Cycle Spinning method.
Figure 1. Cycle Spinning method and the proposed Reduced Cycle Spinning method.
Sensors 19 02777 g001
Figure 2. DWT Mallat analysis algorithm with J levels.
Figure 2. DWT Mallat analysis algorithm with J levels.
Sensors 19 02777 g002
Figure 3. Block diagram of the CS analysis with M shifts.
Figure 3. Block diagram of the CS analysis with M shifts.
Sensors 19 02777 g003
Figure 4. Block diagram of the CS synthesis with M shifts.
Figure 4. Block diagram of the CS synthesis with M shifts.
Sensors 19 02777 g004
Figure 5. Block diagram of the RCS synthesis with M shifts.
Figure 5. Block diagram of the RCS synthesis with M shifts.
Sensors 19 02777 g005
Figure 6. Ultrasonic traces after denoising with different methods using a soft Minimax threshold: (a) Ultrasonic pulse and initial trace with noise, SNR = 4.24 and MSE = 0.0413; (b) Denoised trace with CS method, SNR = 9.08 and MSE = 0.0072; (c) Denoised trace with PCS method using eight shifts, SNR = 8.18 and MSE = 0.0066; (d) Denoised trace with RCS method using eight shifts and mean to combine coefficients, SNR = 8.26 and MSE = 0.0062; (e) Denoised trace with RCS method using eight shifts and minimum to combine coefficients, SNR = 8.25 and MSE = 0.0086; (f) Denoised trace with RCS method using eight shifts and maximum to combine coefficients, SNR = 7.95 and MSE = 0.0092.
Figure 6. Ultrasonic traces after denoising with different methods using a soft Minimax threshold: (a) Ultrasonic pulse and initial trace with noise, SNR = 4.24 and MSE = 0.0413; (b) Denoised trace with CS method, SNR = 9.08 and MSE = 0.0072; (c) Denoised trace with PCS method using eight shifts, SNR = 8.18 and MSE = 0.0066; (d) Denoised trace with RCS method using eight shifts and mean to combine coefficients, SNR = 8.26 and MSE = 0.0062; (e) Denoised trace with RCS method using eight shifts and minimum to combine coefficients, SNR = 8.25 and MSE = 0.0086; (f) Denoised trace with RCS method using eight shifts and maximum to combine coefficients, SNR = 7.95 and MSE = 0.0092.
Sensors 19 02777 g006
Figure 7. Comparative of denoised ultrasonic traces with four methods using a soft Minimax threshold.
Figure 7. Comparative of denoised ultrasonic traces with four methods using a soft Minimax threshold.
Sensors 19 02777 g007
Figure 8. Effects of a rounding shift error equal to 1/2 in all the scales. (a) Ultrasonic pulse to analyse and to synthetize; (b) Wavelet coefficients with m = 0 ; (c) Approximated shifted wavelet coefficients (with rounding shift error influence) for scales j = 4 ,   5 ,   6   and   7 , and error of the wavelet coefficients; (d) Recovered pulse after RCS analysis and synthesis, and difference between pulses of Figure 8a,d.
Figure 8. Effects of a rounding shift error equal to 1/2 in all the scales. (a) Ultrasonic pulse to analyse and to synthetize; (b) Wavelet coefficients with m = 0 ; (c) Approximated shifted wavelet coefficients (with rounding shift error influence) for scales j = 4 ,   5 ,   6   and   7 , and error of the wavelet coefficients; (d) Recovered pulse after RCS analysis and synthesis, and difference between pulses of Figure 8a,d.
Sensors 19 02777 g008
Figure 9. Effects of the rounding shift error with m { 3 ,   14 ,   51 ,   61 , 88 ,   97 ,   104 ,   108 } . (a) Approximated shifted wavelet coefficients for scales j = 4 ,   5 ,   6   and   7 and error of the wavelet coefficients; (b) Recovered pulse after RCS analysis and synthesis, and difference between pulses of Figure 8a and Figure 9b.
Figure 9. Effects of the rounding shift error with m { 3 ,   14 ,   51 ,   61 , 88 ,   97 ,   104 ,   108 } . (a) Approximated shifted wavelet coefficients for scales j = 4 ,   5 ,   6   and   7 and error of the wavelet coefficients; (b) Recovered pulse after RCS analysis and synthesis, and difference between pulses of Figure 8a and Figure 9b.
Sensors 19 02777 g009
Table 1. SNR mean of 1000 ultrasonic traces sets after denoising with different methods using Universal threshold.
Table 1. SNR mean of 1000 ultrasonic traces sets after denoising with different methods using Universal threshold.
InitialCSPCSRCS meanRCS max.RCS min.
3.090.910.920.930.681.24
3.892.812.672.701.8813.46
4.746.536.396.365.116.65
5.618.918.888.818.548.74
6.499.369.289.279.489.40
7.339.289.299.319.399.50
8.139.028.928.949.179.18
Table 2. SNR mean of 1000 ultrasonic traces sets after denoising with different methods using Minimax threshold.
Table 2. SNR mean of 1000 ultrasonic traces sets after denoising with different methods using Minimax threshold.
InitialCSPCSRCS meanRCS max.RCS min.
3.093.313.042.832.973.74
3.896.426.346.285.956.48
4.748.598.548.507.888.43
5.619.128.948.948.969.19
6.499.148.998.979.159.18
7.339.038.918.929.129.17
8.138.848.808.809.069.14
Table 3. SNR mean of 1000 ultrasonic traces sets after denoising with different methods using SURE threshold.
Table 3. SNR mean of 1000 ultrasonic traces sets after denoising with different methods using SURE threshold.
InitialCSPCSRCS meanRCS max.RCS min.
3.093.793.723.673.204.05
3.896.106.056.035.455.95
4.747.627.617.586.867.42
5.618.288.268.257.908.29
6.498.548.508.518.308.53
7.338.648.568.578.658.74
8.138.648.618.628.758.79
Table 4. Rounding shift error ε m , j for m { 3 ,   14 ,   51 ,   61 , 88 ,   97 ,   104 ,   108 } and J = 7 .
Table 4. Rounding shift error ε m , j for m { 3 ,   14 ,   51 ,   61 , 88 ,   97 ,   104 ,   108 } and J = 7 .
mj = 1j = 2j = 3j = 4j = 5j = 6j = 7
31/2−1/43/83/163/323/643/128
1402/4−2/8−2/1614/3214/6414/128
511/2−1/43/83/16−13/32−13/6451/128
611/21/4−3/8−3/16−3/32−3/6461/128
880008/16−8/3224/64−40/128
971/21/41/81/161/32−31/64−31/128
1040008/168/32−24/64−24/128
108004/8−4/1612/32−20/64−20/128
mean1/42/163/329/647/12825/2567/512

Share and Cite

MDPI and ACS Style

Rodriguez-Hernandez, M.A. Reduced Cycle Spinning Method for the Undecimated Wavelet Transform. Sensors 2019, 19, 2777. https://doi.org/10.3390/s19122777

AMA Style

Rodriguez-Hernandez MA. Reduced Cycle Spinning Method for the Undecimated Wavelet Transform. Sensors. 2019; 19(12):2777. https://doi.org/10.3390/s19122777

Chicago/Turabian Style

Rodriguez-Hernandez, Miguel A. 2019. "Reduced Cycle Spinning Method for the Undecimated Wavelet Transform" Sensors 19, no. 12: 2777. https://doi.org/10.3390/s19122777

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