32
Wavelet Shrinkage David Seebran January 2007 David Seebran () January 2007 1 / 32

Wavelet Shrinkage - University of South Floridaicons.eng.usf.edu/Pdf and PPt's/David Seebran Wavelet Thresholding Spring 2007.pdfWavelet Shrinkage Wavelet Shrinkage via Thresholding

  • Upload
    others

  • View
    9

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Wavelet Shrinkage - University of South Floridaicons.eng.usf.edu/Pdf and PPt's/David Seebran Wavelet Thresholding Spring 2007.pdfWavelet Shrinkage Wavelet Shrinkage via Thresholding

Wavelet Shrinkage

David Seebran

January 2007

David Seebran () January 2007 1 / 32

Page 2: Wavelet Shrinkage - University of South Floridaicons.eng.usf.edu/Pdf and PPt's/David Seebran Wavelet Thresholding Spring 2007.pdfWavelet Shrinkage Wavelet Shrinkage via Thresholding

Wavelet ShrinkageWavelet Shrinkage via Thresholding

Wavelet thresholding proceeds in a number of distinct steps:

Decompose the noisy data into an orthogonal wavelet basis

Threshold the wavelet coe¢ cients using an estimated discriminatorythreshold to suppress the wavelet coe¢ cients that are smaller than agiven amplitude

Transform the coe¢ cients back into the original time domain via theinverse Wavelet Transform

The non-linear threshold operator can be computed in any orthogonalbasis, and Donoho and Johnstone have proven that its performance isclose to an ideal coe¢ cient selection and attenuation.

David Seebran () January 2007 2 / 32

Page 3: Wavelet Shrinkage - University of South Floridaicons.eng.usf.edu/Pdf and PPt's/David Seebran Wavelet Thresholding Spring 2007.pdfWavelet Shrinkage Wavelet Shrinkage via Thresholding

Wavelets ShrinkageNoise Modeling

The thresholding operation can be formalized as follows:

Let s(n) be the noise-free signal and x(n) the signal corrupted withgaussian noise, v(n), then

x(n) = s(n) + v(n) n = 1, 2, ...,N

The task of denoising x(n) or, stated another way, removing v(n), issummarized as follows:

Compute the Wavelet Packet Transform of the noisy signal x(n)

Threshold the resulting wavelet coe¢ cients

Compute the Inverse wavelet transform to obtain the denoised signal,x(n)

David Seebran () January 2007 3 / 32

Page 4: Wavelet Shrinkage - University of South Floridaicons.eng.usf.edu/Pdf and PPt's/David Seebran Wavelet Thresholding Spring 2007.pdfWavelet Shrinkage Wavelet Shrinkage via Thresholding

Wavelets ShrinkageThe Hard Thresholding Operator

The hard thresholding operator T is de�ned as

Th =�wk jwk j � λ0 jwk j < λ

0

0

David Seebran () January 2007 4 / 32

Page 5: Wavelet Shrinkage - University of South Floridaicons.eng.usf.edu/Pdf and PPt's/David Seebran Wavelet Thresholding Spring 2007.pdfWavelet Shrinkage Wavelet Shrinkage via Thresholding

Wavelets ShrinkageThe Soft Thresholding Operator

The soft thresholding operator

Ts (λ,wk ) =�sgn(wk )(jwk j � λ) jwk j � λ0 jwk j < λ

0

0

David Seebran () January 2007 5 / 32

Page 6: Wavelet Shrinkage - University of South Floridaicons.eng.usf.edu/Pdf and PPt's/David Seebran Wavelet Thresholding Spring 2007.pdfWavelet Shrinkage Wavelet Shrinkage via Thresholding

Wavelets ShrinkageAdaptive Thresholding Operator

λ is the universal threshold operator and is de�ned as

λ = σp2 logN

and

σ =MAD0.6745

σ is de�ned as the noise level obtained from the �nest scale coe¢ cientsand MAD = median(abs(wk �median(wk )) is the median absolutedeviation of the �rst scale.

David Seebran () January 2007 6 / 32

Page 7: Wavelet Shrinkage - University of South Floridaicons.eng.usf.edu/Pdf and PPt's/David Seebran Wavelet Thresholding Spring 2007.pdfWavelet Shrinkage Wavelet Shrinkage via Thresholding

Wavelets ShrinkageAdaptive Thresholding

The energies of unvoiced segments in noisy speech, may be comparable tothose of noise. Thus applying a uniform threshold to all waveletcoe¢ cients will not only suppress additional noise but also some speechcomponents, particularly, unvoiced ones. Consequently, the perceptivequality of the denoised speech is degraded.

Need to mitigate this phenomenon. Possible solution:

Compute the energy of the signal

Adapt the discriminative threshold in space and time using the energy

David Seebran () January 2007 7 / 32

Page 8: Wavelet Shrinkage - University of South Floridaicons.eng.usf.edu/Pdf and PPt's/David Seebran Wavelet Thresholding Spring 2007.pdfWavelet Shrinkage Wavelet Shrinkage via Thresholding

Wavelets ShrinkageAdaptive Thresholding Operator

This can be achieved by:

Modeling the vocal tract as a physical system

The Teager Energy Operator is a physical model that can be used tomodel the energy in speech.

David Seebran () January 2007 8 / 32

Page 9: Wavelet Shrinkage - University of South Floridaicons.eng.usf.edu/Pdf and PPt's/David Seebran Wavelet Thresholding Spring 2007.pdfWavelet Shrinkage Wavelet Shrinkage via Thresholding

Wavelets ShrinkageThe Teager Energy Operator

The Teager Energy Operator is based on a 2nd order dynamical system.Speci�cally, the motion of a mass m suspended by a spring of forceconstant k.

For dicsrete time signals, the energy operator has a simple form as follows:

E = x2n � xn+1xn�1

David Seebran () January 2007 9 / 32

Page 10: Wavelet Shrinkage - University of South Floridaicons.eng.usf.edu/Pdf and PPt's/David Seebran Wavelet Thresholding Spring 2007.pdfWavelet Shrinkage Wavelet Shrinkage via Thresholding

Wavelets ShrinkageThe Teager Energy Operator

An important property of the Teager Energy Operator:

It gives us a good measure of the energy of the oscillating signal whenthe sampling rate of the input speech signal is greater than eighttimes the frequency of oscillation of the signal, i.e. at least twosample points in each quarter cycle of the sinusoidal oscillation.

Thus the above expression forms a simple algorithm to obtain ameasure of the energy in any single component signal.

David Seebran () January 2007 10 / 32

Page 11: Wavelet Shrinkage - University of South Floridaicons.eng.usf.edu/Pdf and PPt's/David Seebran Wavelet Thresholding Spring 2007.pdfWavelet Shrinkage Wavelet Shrinkage via Thresholding

Wavelets ShrinkageWavelet Packet Decomposition

The Wavelet Packet Transform (WPT) is a generalization of the DiscreteWavelet Transform

At a scale level j , the WPT decomposes the time series signal, x [n], into2j subbands w jk ,m where

w jk ,m = WP [x [n], j ] n = 0, 1, ...,N � 1 (1)

at the scale level j , w jk ,m de�nes the mth coe¢ cient of the k th subband

with m = 1, ..., (N/2j )� 1 and k = 1, ..., 2j

For example, when j = 4, there are k = 2j = 16 subbands.

David Seebran () January 2007 11 / 32

Page 12: Wavelet Shrinkage - University of South Floridaicons.eng.usf.edu/Pdf and PPt's/David Seebran Wavelet Thresholding Spring 2007.pdfWavelet Shrinkage Wavelet Shrinkage via Thresholding

Wavelets ShrinkageAdaptive Thresholding Algorithm

W11

W10

W 21

W12 W 2

2 W 32 W 4

2

W13

W 23 W8

3

W14 W 2

4 W164

j = 0

j= 1

j = 2

j = 3

j = 4

k = 1 k = 2 j

OriginalTimeseries

Figure: Wavelet packet decomposition for j = 4. This produces 2j = 16 packetsat level 4. Note that, at level 4, W 4

1,m contains the approximation coe¢ cients.

David Seebran () January 2007 12 / 32

Page 13: Wavelet Shrinkage - University of South Floridaicons.eng.usf.edu/Pdf and PPt's/David Seebran Wavelet Thresholding Spring 2007.pdfWavelet Shrinkage Wavelet Shrinkage via Thresholding

Wavelets ShrinkageThe Teager Energy Operator

For a wavelet packet decomposition at j = 4 levels, application of theenergy operator to the coe¢ cients at the highest level, w4k ,m , leads to thefollowing

t4k ,m = Ψ�w4k ,m

�k = 1, ..., 16

David Seebran () January 2007 13 / 32

Page 14: Wavelet Shrinkage - University of South Floridaicons.eng.usf.edu/Pdf and PPt's/David Seebran Wavelet Thresholding Spring 2007.pdfWavelet Shrinkage Wavelet Shrinkage via Thresholding

Wavelets ShrinkageDenoising by Adaptive thresholding operaton

The denoiosing operation proceeds in a number of distinct steps.

For subband k at scale level j , the threshold is

λ4k = σ4k

q2 log(N) k = 1, ..., 16

where σ4k = MAD4k/0.6745 is an estimate of the noise level in the k th

subband at scale j and N is the length of the speech signal.

David Seebran () January 2007 14 / 32

Page 15: Wavelet Shrinkage - University of South Floridaicons.eng.usf.edu/Pdf and PPt's/David Seebran Wavelet Thresholding Spring 2007.pdfWavelet Shrinkage Wavelet Shrinkage via Thresholding

Wavelets ShrinkageSpace-adaptive Thresholding

Space adaptative thresholding is introduced via the Teager EnergyOperator

t4k ,m = [w4k ,m ]

2 � w4k ,m�1w4k ,m+1

An initial mask is now formed for each subband k at level j = 4 isconstructed by smoothing the TEO coe¢ cients as follows

M4k ,m = t

4k ,m � hk (m)

where hk is a 2nd order IIR low pass �lter.

David Seebran () January 2007 15 / 32

Page 16: Wavelet Shrinkage - University of South Floridaicons.eng.usf.edu/Pdf and PPt's/David Seebran Wavelet Thresholding Spring 2007.pdfWavelet Shrinkage Wavelet Shrinkage via Thresholding

Wavelets ShrinkageTime adaptive Thresholding

Recall that using a �xed threshold will cause some speech components tobe suppressed, particularly in regions containing unvoiced speech. This willresult in objectionable speech artifacts.

Need to mitigate the introduction of artifacts - di¤erentiate between thepresence of speech or noise and adapting the threshold, λk , for eachsubband.

David Seebran () January 2007 16 / 32

Page 17: Wavelet Shrinkage - University of South Floridaicons.eng.usf.edu/Pdf and PPt's/David Seebran Wavelet Thresholding Spring 2007.pdfWavelet Shrinkage Wavelet Shrinkage via Thresholding

Wavelets ShrinkageTime adaptive Thresholding

Speech is determined to be present if there is a signi�cant contrastbetween peaks and valleys of M4

k while its absence will result in a weakercontrast or smoother mask. This is accomplished by de�ning the o¤setparameter, S4k

S4k = abscissa[max(H(M4k ,m))]

where H is precisely the amplitude distribution (or histogram) of M4k . The

mask, M4k , is now preprocessed to suppress the o¤set in order to reduce

the di¤erences between local maxima.

M0kk ,m =

"M4k ,m � S4k

max(M4k ,m � S4k )

#

David Seebran () January 2007 17 / 32

Page 18: Wavelet Shrinkage - University of South Floridaicons.eng.usf.edu/Pdf and PPt's/David Seebran Wavelet Thresholding Spring 2007.pdfWavelet Shrinkage Wavelet Shrinkage via Thresholding

Wavelets ShrinkageTime adaptive Thresholding

The time-adapted threshold is now computed for each subband, k.at levelj = 4. This is accomplished by adapting λ4k ,m in the time domain

λ4k ,m = λ4k (1� αM04k ,m)

where λk is the space-dependent threshold, and α = 1 is an adjustmentparameter.

David Seebran () January 2007 18 / 32

Page 19: Wavelet Shrinkage - University of South Floridaicons.eng.usf.edu/Pdf and PPt's/David Seebran Wavelet Thresholding Spring 2007.pdfWavelet Shrinkage Wavelet Shrinkage via Thresholding

Wavelets ShrinkageSubband Thresholding

Adaptive soft thresholding is applied to the coe¢ cients of each packet, M4k

w4k ,m = Ts (λa,w4k ,m)

where Ts is the soft threshold operator and λa is de�ned as follows

λa =

�λk ,m S4k � 0.5maxM4

k ,mλk otherwise

David Seebran () January 2007 19 / 32

Page 20: Wavelet Shrinkage - University of South Floridaicons.eng.usf.edu/Pdf and PPt's/David Seebran Wavelet Thresholding Spring 2007.pdfWavelet Shrinkage Wavelet Shrinkage via Thresholding

Wavelets ShrinkageReconstruction

Perform the inverse DWT on the subbands, w4k to reconstruct thedenoised speech signal

s(n) = WP�1�w4k ,m , 4

�Note that the coe¢ cients, w41 (subband) are not thresholded, but are keptintact. Only the detail coe¢ cients packets w4k for k = 2, ..., 2

j arethresholded.

David Seebran () January 2007 20 / 32

Page 21: Wavelet Shrinkage - University of South Floridaicons.eng.usf.edu/Pdf and PPt's/David Seebran Wavelet Thresholding Spring 2007.pdfWavelet Shrinkage Wavelet Shrinkage via Thresholding

Wavelets ShrinkageSolution of the Re�nement Equation

WP

Framing

TEO

Maskconstruction

Maskprocessing

Time-adaptedThreshold

computation

SoftThresholding

WP- 1j = 4

j = 4

W1, m4

W k ,m4

W16, m4

t k ,m4

M k ,m4

Vk,m4 W1,m

4

Wk,m4

W16,m4

xÝnÞ

x!ÝnÞ

M k ,m' 4

David Seebran () January 2007 21 / 32

Page 22: Wavelet Shrinkage - University of South Floridaicons.eng.usf.edu/Pdf and PPt's/David Seebran Wavelet Thresholding Spring 2007.pdfWavelet Shrinkage Wavelet Shrinkage via Thresholding

Wavelets ShrinkageDenoising Example

A segment of speech at two di¤erent SNR�s will be denoised. At thehigher SNR, the Berouti spectral subtraction will used for comparison.

David Seebran () January 2007 22 / 32

Page 23: Wavelet Shrinkage - University of South Floridaicons.eng.usf.edu/Pdf and PPt's/David Seebran Wavelet Thresholding Spring 2007.pdfWavelet Shrinkage Wavelet Shrinkage via Thresholding

Wavelets ShrinkageDenoising Example

David Seebran () January 2007 23 / 32

Page 24: Wavelet Shrinkage - University of South Floridaicons.eng.usf.edu/Pdf and PPt's/David Seebran Wavelet Thresholding Spring 2007.pdfWavelet Shrinkage Wavelet Shrinkage via Thresholding

Wavelets ShrinkageDenoising Example

David Seebran () January 2007 24 / 32

Page 25: Wavelet Shrinkage - University of South Floridaicons.eng.usf.edu/Pdf and PPt's/David Seebran Wavelet Thresholding Spring 2007.pdfWavelet Shrinkage Wavelet Shrinkage via Thresholding

Wavelets ShrinkageDenoising Example

David Seebran () January 2007 25 / 32

Page 26: Wavelet Shrinkage - University of South Floridaicons.eng.usf.edu/Pdf and PPt's/David Seebran Wavelet Thresholding Spring 2007.pdfWavelet Shrinkage Wavelet Shrinkage via Thresholding

Wavelets ShrinkageDenoising Example

David Seebran () January 2007 26 / 32

Page 27: Wavelet Shrinkage - University of South Floridaicons.eng.usf.edu/Pdf and PPt's/David Seebran Wavelet Thresholding Spring 2007.pdfWavelet Shrinkage Wavelet Shrinkage via Thresholding

Wavelets ShrinkageDenoising Example

David Seebran () January 2007 27 / 32

Page 28: Wavelet Shrinkage - University of South Floridaicons.eng.usf.edu/Pdf and PPt's/David Seebran Wavelet Thresholding Spring 2007.pdfWavelet Shrinkage Wavelet Shrinkage via Thresholding

Wavelets ShrinkageDenoising Example

David Seebran () January 2007 28 / 32

Page 29: Wavelet Shrinkage - University of South Floridaicons.eng.usf.edu/Pdf and PPt's/David Seebran Wavelet Thresholding Spring 2007.pdfWavelet Shrinkage Wavelet Shrinkage via Thresholding

Wavelets ShrinkageWhat�s Next - Second Generation Wavelets

Wavelets are basis functions which are localized in both physical space(due to their �nite support).

In contrast, the Fourier transform is based on functions (sines and cosines)that are well localized in frequency but do not provide localization inphysical space due to their global support. Because of this space/scalelocalization, the wavelet transform provides both spatial and scale(frequency) information while the Fourier transform only providesfrequency information.

David Seebran () January 2007 29 / 32

Page 30: Wavelet Shrinkage - University of South Floridaicons.eng.usf.edu/Pdf and PPt's/David Seebran Wavelet Thresholding Spring 2007.pdfWavelet Shrinkage Wavelet Shrinkage via Thresholding

Wavelets ShrinkageWhat�s Next - Second Generation Wavelets

The need for improvement of wavelets come from a shortcoming that isinherent because of its construction. The main limitation is that the �rstgeneration wavelet works well for in�nite or periodic signals but it is notclear how one should modify it for use in a bounded domain.

In many applications, the domain of interest is not in�nite, and signals arenot periodic. Moreover, even 1-D signals are often not sampled regularly.In higher dimension, domains are often have boundaries, and often themetric is not �at, i.e., we need to analyze functions on manifolds orsurfaces.

David Seebran () January 2007 30 / 32

Page 31: Wavelet Shrinkage - University of South Floridaicons.eng.usf.edu/Pdf and PPt's/David Seebran Wavelet Thresholding Spring 2007.pdfWavelet Shrinkage Wavelet Shrinkage via Thresholding

Wavelets ShrinkageWhat�s Next - Second Generation Wavelets

The big issue is how to keep the "nice" properties of wavelets, namelytime-frequency localization and fast algorithms, while being able to extendbeyond simple geometries.

The solution is to give up translation and dilation: The construction musttherefore not use any Fourier analysis. Instead, the calculation will beentirely based on a new approach called The Lifting Scheme.

David Seebran () January 2007 31 / 32

Page 32: Wavelet Shrinkage - University of South Floridaicons.eng.usf.edu/Pdf and PPt's/David Seebran Wavelet Thresholding Spring 2007.pdfWavelet Shrinkage Wavelet Shrinkage via Thresholding

Wavelets ShrinkageWhat�s Next - Second Generation Wavelets

Second generation wavelets are a generalization of �rst generationwavelets that supplies the necessary freedom to deal with complexgeometries, arbitrary boundary conditions, and irregular sampling intervals.Second generation wavelets form a Reisz basis for some function space,with the wavelets being local in both space and frequency and oftenhaving many vanishing polynomial moments, but without the translationand dilation invariance of their �rst generation cousins.

Despite the loss of these two fundamental properties of wavelet bases,second generation wavelets retain many of the useful features of �rstgeneration wavelets, including a fast O(N) transform. The construction ofsecond generation wavelets is based on the lifting scheme

David Seebran () January 2007 32 / 32