SlideShare une entreprise Scribd logo
1  sur  82
Denoising using wavelets




        Dorit Moshe
In today’s show
 Denoising – definition
 Denoising using wavelets vs. other methods
 Denoising process
 Soft/Hard thresholding
 Known thresholds
 Examples and comparison of denoising methods
  using WL
 Advanced applications
 2 different simulations
 Summary
 July 25, 2012                                   2
In today’s show
 Denoising – definition
 Denoising using wavelets vs. other methods
 Denoising process
 Soft/Hard thresholding
 Known thresholds
 Examples and comparison of denoising methods
  using WL
 Advanced applications
 2 different simulations
 Summary
 July 25, 2012                                   3
Denoising
 Denosing is the process with which we reconstruct a signal from a
  noisy one.



                                                             original




                                                              denoised


July 25, 2012                                                         4
In today’s show
 Denoising – definition
 Denoising using wavelets vs. other methods
 Denoising process
 Soft/Hard thresholding
 Known thresholds
 Examples and comparison of denoising methods
  using WL
 Advanced applications
 2 different simulations
 Summary
 July 25, 2012                                   5
Old denoising methods

What was wrong with existing methods?
Kernel estimators / Spline estimators
 Do not resolve local structures well enough. This is necessary when
 dealing with signals that contain structures of different scales and
 amplitudes such as neurophysiological signals.




 July 25, 2012                                                          6
 Fourier based signal processing

 we arrange our signals such that the signals and any
  noise overlap as little as possible in the frequency
  domain and linear time-invariant filtering will
  approximately separate them.

 This linear filtering approach cannot separate noise
  from signal where their Fourier spectra overlap.
                                          overlap


 July 25, 2012                                       7
Motivation

 Non-linear method
 The spectra can overlap.
 The idea is to have the amplitude, rather than the
  location of the spectra be as different as possible
  for that of the noise.
 This allows shrinking of the amplitude of the
  transform to separate signals or remove noise.


July 25, 2012                                           8
original




July 25, 2012           9
                noisy
 Fourier filtering –
 Spline method - suppresses
                                     leaves features sharp
  noise, by broadening,
                                     but doesn’t really
  erasing certain features           suppress the noise




  July 25, 2012                                              10
                        denoised
 Here we use Haar-basis
  shrinkage method

                     original




   July 25, 2012                11
Wh y wavelets?

 The Wavelet transform performs a correlation
  analysis, therefore the output is expected to be
  maximal when the input signal most resembles the
  mother wavelet.
 If a signal has its energy concentrated in a small
  number of WL dimensions, its coefficients will be
  relatively large compared to any other signal or noise
  that its energy spread over a large number of
  coefficients
                Localizing properties +
  July 25, 2012
                    concentration                      12
 This means that shrinking the WL transform will
  remove the low amplitude noise or undesired
  signal in the WL domain, and an inverse wavelet
  transform will then retrieve the desired signal with
  little loss of details

 Usually the same properties that make a system
  good for denoising or separation by non linear
  methods makes it good for compression, which is
  also a nonlinear process
July 25, 2012                                       13
In today’s show
 Denoising – definition
 Denoising using wavelets vs. other methods
 Denoising process
 Soft/Hard thresholding
 Known thresholds
 Examples and comparison of denoising methods
  using WL
 Advanced applications
 2 different simulations
 Summary
 July 25, 2012                                   14
Noise (especially white
                                     one)
 Wavelet denoising works for additive noise since wavelet transform is linear


    W ( a , b ) [ f + η ;ψ ] = W ( a, b ) [ f ;ψ ] + W ( a, b )[ η; ψ]

  White noise means the noise values are not correlated in time
  Whiteness means noise has equal power at all frequencies.
  Considered the most difficult to remove, due to the fact that it
   affects every single frequency component over the whole
   length of the signal.


  July 25, 2012                                                          15
Denoising process




N-1 = 2 j+1 -1 dyadic sampling
  July 25, 2012                      16
Goal : recover x
In the Transformation Domain:

where: Wy = Y        (W transform matrix).
ˆ                        ˆ
X estimate of X from Y , x estimate of x from y
 Define diagonal linear projection:   ˆ
                                      X = ∆Y




  July 25, 2012                                   17
We define the risk measure :
    ˆ
R ( X , X ) = E[|| x − x ||2 ] =
                        ˆ 2
            ˆ                    ˆ
E[|| W −1 ( X − X ) ||2 ] = E[|| X − X ||2 ] =
                      2                  2

                    || Yi − X i ||2 =|| N i ||2 ,
                                  2           2     X i >ε
E[|| ∆Y − X ||2 ] = 
              2                                             
                    || 0 − X i ||2 =|| X i ||2 ,
                                 2           2      X i <ε 
                                                            
δi =1xi >ε
                 N
Rid ( X , X ) = ∑min( X 2 ,ε 2 )
      ˆ
                 n=1

Is the lower limit of l 2 error


18                                                   July 25, 2012
3 step general method

1.      Decompose signal using DWT;
        Choose wavelet and number of decomposition levels.
        Compute Y=Wy
2. Perform thresholding in the Wavelet domain.
   Shrink coefficients by thresholding (hard /soft)


3. Reconstruct the signal from thresholded DWT
   coefficients
   Compute

     July 25, 2012                                           19
Questions



 Which thresholding method?
 Which threshold?
 Do we pick a single threshold or pick different
  thresholds at different levels?




July 25, 2012                                       20
In today’s show
 Denoising – definition
 Denoising using wavelets vs. other methods
 Denoising process
 Soft/Hard thresholding
 Known thresholds
 Examples and comparison of denoising methods
  using WL
 Advanced applications
 2 different simulations
 Summary
 July 25, 2012                                   21
Thresholding Methods




July 25, 2012                     22
Hard Thresholding

                      x(t ),     | x(t ) |> δ
        yhard (t ) = 
                     0,          | x(t ) |< δ




                                =0.28



July 25, 2012                                    23
Sof t Thresholding

              sgn ( x( t ) ) ⋅ ( x(t ) − δ ),   | x(t ) |> δ
 ysoft (t ) = 
              0,                                | x(t ) |< δ




July 25, 2012                                                   24
Sof t Or Hard threshold?

 It is known that soft thresholding provides smoother
  results in comparison with the hard thresholding.
 More visually pleasant images, because it is
  continuous.
 Hard threshold, however, provides better edge
  preservation in comparison with the soft one.
 Sometimes it might be good to apply the soft
  threshold to few detail levels, and the hard to the rest.



 July 25, 2012                                          25
July 25, 2012   26
Edges aren’t kept.
                           However, the noise
                           was almost fully
                           suppressed




 Edges are kept, but the
 noise wasn’t fully
 suppressed

July 25, 2012                                   27
In today’s show
 Denoising – definition
 Denoising using wavelets vs. other methods
 Denoising process
 Soft/Hard thresholding
 Known thresholds
 Examples and comparison of denoising methods
  using WL
 Advanced applications
 2 different simulations
 Summary
July 25, 2012                                    28
Known sof t thresholds

VisuShrink (Universal Threshold)

 Donoho and Johnstone developed this method
 Provides easy, fast and automatic thresholding.
 Shrinkage of the wavelet coefficients is calculated using the formula




                                                 No need to calculate λ
                                                 foreach level (sub-band)!!

σ is the standard deviation of the noise of the noise level
n is the sample size.
  July 25, 2012                                                           29
 The rational is to remove all wavelet coefficients that are smaller than the
  expected maximum of an assumed i.i.d normal noise sequence of sample
  size n.
 It can be shown that if the noise is a white noise zi i.i.d N(0,1)


 Probablity {maxi |zi| >(2logn)1/2}  0, n         ∞


  July 25, 2012                                                            30
SureShrink

A threshold level is assigned to each resolution level of the
wavelet transform. The threshold is selected by the
principle of minimizing the Stein Unbiased Estimate of
Risk (SURE).
                                                      min



  where d is the number of elements in the noisy data
  vector and xi are the wavelet coefficients. This procedure
  is smoothness-adaptive, meaning that it is suitable for
  denoising a wide range of functions from those that have
  many jumps to those that are essentially smooth.
July 25, 2012                                                   31
 If the unknown function contains jumps, the
  reconstruction (essentially) does also;
  if the unknown function has a smooth piece, the
  reconstruction is (essentially) as smooth as the
  mother wavelet will allow.
 The procedure is in a sense optimally smoothness-
  adaptive: it is near-minimax simultaneously over a
  whole interval of the Besov scale; the size of this
  interval depends on the choice of mother wavelet.
   July 25, 2012                                        32
Estimating the Noise Level


 In the threshold selection methods it may be
  necessary to estimate the standard deviation σ of the noise from the
  wavelet coefficients. A common estimator is shown below:




    where MAD is the median of the absolute values of the
    .wavelet coefficients

    July 25, 2012                                                        33
In today’s show
 Denoising – definition
 Denoising using wavelets vs. other methods
 Denoising process
 Soft/Hard thresholding
 Known thresholds
 Examples and comparison of denoising methods
  using WL
 Advanced applications
 2 different simulations
 Summary
 July 25, 2012                                 34
Ex ample




July 25, 2012               35
                 !!Difference
More examples




                       Original
                       signals




July 25, 2012               36
Noisy
                          signals




     N = 2048 = 211
37                    July 25, 2012
Denoised
                        signals




     Soft threshold

38                    July 25, 2012
The reconstructions have two properties:
1. The noise has been almost entirely suppressed
2. Features sharp in the original remain sharp in
    reconstruction




July 25, 2012                                       39
Why it works (I)
                                  Data compression

 Here we use Haar-basis shrinkage method




July 25, 2012                                  40
 The Haar transform of the noiseless object Blocks
  compresses the l2 energy of the signal into a very
  small number of consequently) very large
  coefficients.
 On the other hand, Gaussian white noise in any one
  orthogonal basis is again a white noise in any other.
 In the Haar basis, the few nonzero signal coefficients
  really stick up above the noise
the thresholding kills the noise while not killing the
  signal
  July 25, 2012                                       41
Formal:
 Data: di = θi + εzi , i=1,…,n
 zi standard white noise
 Goal : recovering θi
 Ideal diagonal projector : keep all coefficients
  where θi is larger in amplitude than ε and ‘kill’ the
  rest.
 The ideal is unattainable since it requires
  knowledge on θ which we don’t know
July 25, 2012                                         42
The ideal mean square error is




Define the “compression number“ cn as follows.
                        number
With |θ|(k) = k-th largest amplitude in vector θi set

This is a measure of how well the vector θi can
approximated by a vector with n nonzero entries.

  July 25, 2012                                         43
Setting




so this ideal risk is explicitly a measure of the
extent to which the energy is compressed into a
few big coefficients.
 July 25, 2012                                      44
 We will see the extend to which the different orthogonal basses
  compress the objects




                                            db
                 db                                                 fourier
                                                    Haar

    Haar               fourier
July 25, 2012                                                            45
Another aspect -
                         Vanishing Moments

 The m moment of a wavelet is defined as
            th                                  ∫ t mψ (t )dt

 If the first M moments of a wavelet are zero, then all
  polynomial type signals of the form x(t ) = ∑cmt m
                                               0 <m <M

   have (near) zero wavelet / detail coefficients.
 Why is this important? Because if we use a wavelet with
  enough number of vanishing moments, M, to analyze a
  polynomial with a degree less than M, then all detail
  coefficients will be zero  excellent compression ratio.
 All signals can be written as a polynomial when expanded
  into its Taylor series.
 This is what makes wavelets so successful in compression!!!
July 25, 2012                                                   46
Why it works?(II)
                  Unconditional basis
 A very special feature of wavelet bases is that they
  serve as unconditional bases, not just of L2, but of
  a wide range of smoothness spaces, including
  Sobolev and HÖlder classes.
 As a consequence, “shrinking" the coefficients of
  an object towards zero, as with soft thresholding,
  acts as a “smoothing operation" in any of a wide
  range of smoothness measures.
 Fourier basis isn’t such basis


July 25, 2012                                       47
Original singal




                                        Denoising using the 100
                                        biggest WL coefficients




                                     Denoising using the 100
                                     biggest Fourier
                                     coefficients



48   Worst MSE+ visual artifacts!!                      July 25, 2012
In today’s show
 Denoising – definition
 Denoising using wavelets vs. other methods
 Denoising process
 Soft/Hard thresholding
 Known thresholds
 Examples and comparison of denoising methods
  using WL
 Advanced applications
 2 different simulations
 Summary
 July 25, 2012                                   49
Advanced applications

Discrete inverse problems

Assume : yi = (Kf)(ti) + εzi
 Kf is a transformation of f (Fourier transformation,
  laplace transformation or convolution)
 Goal : reconstruct the singal ti
 Such problems become problems of recovering
  wavelets coefficients in the presence of non-white
  noise
  July 25, 2012                                          50
Example :
  we want to reconstruct the discrete signal (xi)i=0..n-1, given
  the noisy data :
                                                          White gaussian noise




We may attempt to invert this relation, forming the differences :
 yi = di – di-1, y0 = d0

This is equivalent to observing

yi = xi + σ(zi – zi-1) (non white noise)
    July 25, 2012                                                      51
 Solution : reconstructing xi in three-step process, with
  level-dependent threshold.




The threshold is much larger at high resolution levels
than at low ones (j0 is the coarse level. J is the finest)
Motivation : the variance of the noise in level j grows roughly
like 2j
The noise is heavily damped, while the main structure of the
object persists
July 25, 2012                                                52
53   WL denoising method supresses the noise!! 2012
                                          July 25,
Fourier is unable to supress the noise!!
54                                          July 25, 2012
In today’s show
 Denoising – definition
 Denoising using wavelets vs. other methods
 Denoising process
 Soft/Hard thresholding
 Known thresholds
 Examples and comparison of denoising methods
  using WL
 Advanced applications
 2 different simulations
 Summary
 July 25, 2012                                   55
Monte Carlo simulation

 The Monte Carlo method (or simulation) is a
  statistical method for finding out the answer to a
  problem that is too difficult to solve analytically,
  or for verifying the analytical solution.
 It Randomly generates values for uncertain
  variables over and over to simulate a model
 It is called Monte Carlo because of the gambling
  casinos in that city, and because the Monte Carlo
  method is related to rolling dice.

July 25, 2012                                            56
 We will describe a variety of wavelet and
   wavelet packet based denoising methods and
   compare them with each other by applying
   them to a simulated, noised signal
  f is a known signal. The noise is a free
   parameter
  The results help us choose the best wavelet,
   best denoising method and a suitable denoising
   threshold in pratictical applications.

July 25, 2012                                       57
 A noised singal ƒi i=0,…,2jmax-1

 Wavelet




 Wavelet pkt




July 25, 2012                        58
Denoising methods

 Linear – Independent on the size of the signal coefficients.
  Therefore the coefficient size isn’t taken into account, but the
  scale of the coefficient. It is based on the assumption that signal
  noise can be found mainly in fine scale coefficients and not in
  coarse ones. Therefore we will cut off all coefficients with a
  scale finer that a certain scale threshold S0.




   WL

 July 25, 2012                                                  59
In packet wavelets, fine scaled signal structures can
be represented not only by fine scale coefficients but
also by coarse scale coefficients with high
frequency. Therefore, it is necessary to eliminate not
only fine scale coefficients through linear denoising,
but also coefficients of a scale and frequency
combination which refer to a certain fine scale
structure.


        PL
 July 25, 2012                                           60
 Non linear – cutting of the coefficients (hard or soft), threshold = λ




July 25, 2012                                                              61
Measuring denoising errors

Lp norms (p=1,2) :




Entropy -




   July 25, 2012                   62
Choosing the best
                       threshold and basis
  Using Monte Carlo simulation DB with 3 vanishing
   moments has been chosen for PNLS method.




Min Error

 July 25, 2012                                        63
Threshold – universal soft threshold
For normally distibuted noise, λu = 0.008
However, it seems that λu lies above the optimal
. threshold
Using monte carlo to evaluate the ‘best’ threshold
for PNLS, 0.003 is the best



 July 25, 2012   Min error                           64
 For each method a best basis and an optimal
  threshold is collected using Monte Carlo
  simulations.
 Now we are ready to compare!
 The comparison reveals that WNLH has the best
  denoising performance.
 We would expect wavelet packets method to have
  the best performance. It seems that for this specific
  signal, even with Donoho best cost function, this
  method isn’t the optimal.
July 25, 2012                                        65
!!Best




DJ WP
  close
 to the
 !!Best



 66            July 25, 2012
Improvements

 Even with the minimal denoising error, there are small
  artifacts.

         Original                      Denoised




 July 25, 2012                                             67
• Solution : the artifacts live only on fine scales,
   we can adapt λ to the scale j      λ j = λ * µj




               Most coarse scale    Artifacts have disappeared!
Finest scale
 68                                                 July 25, 2012
Thresholds experiment

 In this experiment, 6 known signals were taken at
  n=1024 samples.
 Additive white noise (SNR = 10dB)
 The aim – to compare all thresholds performance
  in comparison to the ideal thresholds.
 RIS, VIS – global threshold which depends on n.
 SUR – set for each level
 WFS, FFS – James thresholds (WL, Fourier)
 IFD, IWD – ideal threshold (if we knew noise
  level)
July 25, 2012                                     69
70   original   July 25, 2012
71
     Noisy signals   July 25, 2012
72                      July 25, 2012
     Denoised signals
73   July 25, 2012
Results

 Surprising, isn’t it?
 VIS is the worst for all the signals.
 Fourier is better?
 What about the theoretical claims of optimality
  and generality?
 We use SNR to measure error rates
 Maybe should it be judged visually by the human
  eye and mind?


July 25, 2012                                       74
 [DJ] In this case, VIS performs best.




July 25, 2012                             75
Denoising Implementation
                                in Matlab


                                 First,
                                 analyze the
                                 signal with
                                 appropriate
                                 wavelets



                                       Hit
                                     Denoise




July 25, 2012                         76
Choose
                thresholding
                   method

                Choose
                noise type

                Choose
                thresholds

                   Hit
                 Denoise




July 25, 2012           77
July 25, 2012   78
In today’s show
 Denoising – definition
 Denoising using wavelets vs. other methods
 Denoising process
 Soft/Hard thresholding
 Known thresholds
 Examples and comparison of denoising methods
  using WL
 Advanced applications
 2 different simulations
 Summary
 July 25, 2012                                   79
Summary

 We learn how to use wavelets for denoising
 We saw different denoising methods and their
  results
 We saw other uses of wavelets denoising to solve
  discrete problems
 We saw experiments and results




July 25, 2012                                        80
81   July 25, 2012
Bibliogr aphy
 Nonlinear Wavelet Methods for Recovering Signals, Images, and
  Densities from indirect and noisy data [D94]
 Filtering (Denoising) in the Wavelet Transform Domain Yousef M.
  Hawwar, Ali M. Reza, Robert D. Turney
 Comparison and Assessment of Various Wavelet and Wavelet Packet
  based Denoising Algorithms for Noisy Data F. Hess, M. Kraft, M.
  Richter, H. Bockhorn
 De-Noising via Soft-Thresholding, Tech. Rept., Statistics, Stanford,
  1992.
 Adapting to unknown smoothness by wavelet shrinkage, Tech. Rept.,
  Statistics, Stanford, 1992. D. L. Donoho and I. M. Johnstone
 Denoising by wavelet transform [Junhui Qian]
 Filtering denoising in the WL transform domain[Hawwr,Reza,Turney]
 The What,how,and why of wavelet shrinkage denoising[Carl Taswell,
  2000]


July 25, 2012                                                       82

Contenu connexe

Tendances

Sampling Theorem, Quantization Noise and its types, PCM, Channel Capacity, Ny...
Sampling Theorem, Quantization Noise and its types, PCM, Channel Capacity, Ny...Sampling Theorem, Quantization Noise and its types, PCM, Channel Capacity, Ny...
Sampling Theorem, Quantization Noise and its types, PCM, Channel Capacity, Ny...Waqas Afzal
 
Wavelet based image compression technique
Wavelet based image compression techniqueWavelet based image compression technique
Wavelet based image compression techniquePriyanka Pachori
 
Image noise reduction
Image noise reductionImage noise reduction
Image noise reductionJksuryawanshi
 
Basics of analog communication system
Basics of analog communication systemBasics of analog communication system
Basics of analog communication systemswatihalunde
 
Wavelet transform
Wavelet transformWavelet transform
Wavelet transformTwinkal
 
Lect 02 second portion
Lect 02  second portionLect 02  second portion
Lect 02 second portionMoe Moe Myint
 
Amplitute modulation
Amplitute modulationAmplitute modulation
Amplitute modulationZunAib Ali
 
Lecture 3 image sampling and quantization
Lecture 3 image sampling and quantizationLecture 3 image sampling and quantization
Lecture 3 image sampling and quantizationVARUN KUMAR
 
Lecture 16 KL Transform in Image Processing
Lecture 16 KL Transform in Image ProcessingLecture 16 KL Transform in Image Processing
Lecture 16 KL Transform in Image ProcessingVARUN KUMAR
 
Lect 03 - first portion
Lect 03 - first portionLect 03 - first portion
Lect 03 - first portionMoe Moe Myint
 
Image processing second unit Notes
Image processing second unit NotesImage processing second unit Notes
Image processing second unit NotesAAKANKSHA JAIN
 
Image sampling and quantization
Image sampling and quantizationImage sampling and quantization
Image sampling and quantizationBCET, Balasore
 
Convolutional Neural Network (CNN) presentation from theory to code in Theano
Convolutional Neural Network (CNN) presentation from theory to code in TheanoConvolutional Neural Network (CNN) presentation from theory to code in Theano
Convolutional Neural Network (CNN) presentation from theory to code in TheanoSeongwon Hwang
 

Tendances (20)

Image Quantization
Image QuantizationImage Quantization
Image Quantization
 
Sampling Theorem, Quantization Noise and its types, PCM, Channel Capacity, Ny...
Sampling Theorem, Quantization Noise and its types, PCM, Channel Capacity, Ny...Sampling Theorem, Quantization Noise and its types, PCM, Channel Capacity, Ny...
Sampling Theorem, Quantization Noise and its types, PCM, Channel Capacity, Ny...
 
Wavelet based image compression technique
Wavelet based image compression techniqueWavelet based image compression technique
Wavelet based image compression technique
 
Image noise reduction
Image noise reductionImage noise reduction
Image noise reduction
 
Basics of analog communication system
Basics of analog communication systemBasics of analog communication system
Basics of analog communication system
 
Wavelet transform
Wavelet transformWavelet transform
Wavelet transform
 
Lect 02 second portion
Lect 02  second portionLect 02  second portion
Lect 02 second portion
 
color image processing
color image processingcolor image processing
color image processing
 
Amplitute modulation
Amplitute modulationAmplitute modulation
Amplitute modulation
 
Lecture 3 image sampling and quantization
Lecture 3 image sampling and quantizationLecture 3 image sampling and quantization
Lecture 3 image sampling and quantization
 
Waveform Coding
Waveform CodingWaveform Coding
Waveform Coding
 
Lecture 16 KL Transform in Image Processing
Lecture 16 KL Transform in Image ProcessingLecture 16 KL Transform in Image Processing
Lecture 16 KL Transform in Image Processing
 
Unit ii
Unit iiUnit ii
Unit ii
 
Lect 03 - first portion
Lect 03 - first portionLect 03 - first portion
Lect 03 - first portion
 
Image processing second unit Notes
Image processing second unit NotesImage processing second unit Notes
Image processing second unit Notes
 
Wiener Filter
Wiener FilterWiener Filter
Wiener Filter
 
Image sampling and quantization
Image sampling and quantizationImage sampling and quantization
Image sampling and quantization
 
digital filter design
digital filter designdigital filter design
digital filter design
 
Convolutional Neural Network (CNN) presentation from theory to code in Theano
Convolutional Neural Network (CNN) presentation from theory to code in TheanoConvolutional Neural Network (CNN) presentation from theory to code in Theano
Convolutional Neural Network (CNN) presentation from theory to code in Theano
 
FILTER BANKS
FILTER BANKSFILTER BANKS
FILTER BANKS
 

En vedette

image denoising technique using disctere wavelet transform
image denoising technique using disctere wavelet transformimage denoising technique using disctere wavelet transform
image denoising technique using disctere wavelet transformalishapb
 
Image denoising algorithms
Image denoising algorithmsImage denoising algorithms
Image denoising algorithmsMohammad Sunny
 
Matlab 2015 project titles list
Matlab 2015 project titles listMatlab 2015 project titles list
Matlab 2015 project titles listigeeks1234
 
Curved Wavelet Transform For Image Denoising using MATLAB.
Curved Wavelet Transform For Image Denoising using MATLAB.Curved Wavelet Transform For Image Denoising using MATLAB.
Curved Wavelet Transform For Image Denoising using MATLAB.Nikhil Kumar
 
Image Denoising using Spatial Domain Filters: A Quantitative Study
Image Denoising using Spatial Domain Filters: A Quantitative StudyImage Denoising using Spatial Domain Filters: A Quantitative Study
Image Denoising using Spatial Domain Filters: A Quantitative StudyAnmol Sharma
 
Wavelet Applications in Image Denoising Using MATLAB
Wavelet Applications in Image Denoising Using MATLABWavelet Applications in Image Denoising Using MATLAB
Wavelet Applications in Image Denoising Using MATLABajayhakkumar
 
Introduction to Wavelet Transform with Applications to DSP
Introduction to Wavelet Transform with Applications to DSPIntroduction to Wavelet Transform with Applications to DSP
Introduction to Wavelet Transform with Applications to DSPHicham Berkouk
 
Introduction to Digital Image Processing Using MATLAB
Introduction to Digital Image Processing Using MATLABIntroduction to Digital Image Processing Using MATLAB
Introduction to Digital Image Processing Using MATLABRay Phan
 

En vedette (12)

image denoising technique using disctere wavelet transform
image denoising technique using disctere wavelet transformimage denoising technique using disctere wavelet transform
image denoising technique using disctere wavelet transform
 
Image denoising algorithms
Image denoising algorithmsImage denoising algorithms
Image denoising algorithms
 
Image denoising using curvelet transform
Image denoising using curvelet transformImage denoising using curvelet transform
Image denoising using curvelet transform
 
Matlab 2015 project titles list
Matlab 2015 project titles listMatlab 2015 project titles list
Matlab 2015 project titles list
 
Curved Wavelet Transform For Image Denoising using MATLAB.
Curved Wavelet Transform For Image Denoising using MATLAB.Curved Wavelet Transform For Image Denoising using MATLAB.
Curved Wavelet Transform For Image Denoising using MATLAB.
 
Image denoising
Image denoisingImage denoising
Image denoising
 
final_project
final_projectfinal_project
final_project
 
Image denoising
Image denoisingImage denoising
Image denoising
 
Image Denoising using Spatial Domain Filters: A Quantitative Study
Image Denoising using Spatial Domain Filters: A Quantitative StudyImage Denoising using Spatial Domain Filters: A Quantitative Study
Image Denoising using Spatial Domain Filters: A Quantitative Study
 
Wavelet Applications in Image Denoising Using MATLAB
Wavelet Applications in Image Denoising Using MATLABWavelet Applications in Image Denoising Using MATLAB
Wavelet Applications in Image Denoising Using MATLAB
 
Introduction to Wavelet Transform with Applications to DSP
Introduction to Wavelet Transform with Applications to DSPIntroduction to Wavelet Transform with Applications to DSP
Introduction to Wavelet Transform with Applications to DSP
 
Introduction to Digital Image Processing Using MATLAB
Introduction to Digital Image Processing Using MATLABIntroduction to Digital Image Processing Using MATLAB
Introduction to Digital Image Processing Using MATLAB
 

Similaire à Good denoising using wavelets

WAVELET THRESHOLDING APPROACH FOR IMAGE DENOISING
WAVELET THRESHOLDING APPROACH FOR IMAGE DENOISINGWAVELET THRESHOLDING APPROACH FOR IMAGE DENOISING
WAVELET THRESHOLDING APPROACH FOR IMAGE DENOISINGIJNSA Journal
 
slides_nuclear_norm_regularization_david_mateos
slides_nuclear_norm_regularization_david_mateosslides_nuclear_norm_regularization_david_mateos
slides_nuclear_norm_regularization_david_mateosDavid Mateos
 
IVR - Chapter 2 - Basics of filtering I: Spatial filters (25Mb)
IVR - Chapter 2 - Basics of filtering I: Spatial filters (25Mb) IVR - Chapter 2 - Basics of filtering I: Spatial filters (25Mb)
IVR - Chapter 2 - Basics of filtering I: Spatial filters (25Mb) Charles Deledalle
 
Introduction to Common Spatial Pattern Filters for EEG Motor Imagery Classifi...
Introduction to Common Spatial Pattern Filters for EEG Motor Imagery Classifi...Introduction to Common Spatial Pattern Filters for EEG Motor Imagery Classifi...
Introduction to Common Spatial Pattern Filters for EEG Motor Imagery Classifi...Tatsuya Yokota
 

Similaire à Good denoising using wavelets (7)

WAVELET THRESHOLDING APPROACH FOR IMAGE DENOISING
WAVELET THRESHOLDING APPROACH FOR IMAGE DENOISINGWAVELET THRESHOLDING APPROACH FOR IMAGE DENOISING
WAVELET THRESHOLDING APPROACH FOR IMAGE DENOISING
 
Bh044365368
Bh044365368Bh044365368
Bh044365368
 
Speckle Reduction in Images with WEAD and WECD
Speckle Reduction in Images with WEAD and WECD  Speckle Reduction in Images with WEAD and WECD
Speckle Reduction in Images with WEAD and WECD
 
slides_nuclear_norm_regularization_david_mateos
slides_nuclear_norm_regularization_david_mateosslides_nuclear_norm_regularization_david_mateos
slides_nuclear_norm_regularization_david_mateos
 
IVR - Chapter 2 - Basics of filtering I: Spatial filters (25Mb)
IVR - Chapter 2 - Basics of filtering I: Spatial filters (25Mb) IVR - Chapter 2 - Basics of filtering I: Spatial filters (25Mb)
IVR - Chapter 2 - Basics of filtering I: Spatial filters (25Mb)
 
Introduction to Common Spatial Pattern Filters for EEG Motor Imagery Classifi...
Introduction to Common Spatial Pattern Filters for EEG Motor Imagery Classifi...Introduction to Common Spatial Pattern Filters for EEG Motor Imagery Classifi...
Introduction to Common Spatial Pattern Filters for EEG Motor Imagery Classifi...
 
Image Denoising Using WEAD
Image Denoising Using WEADImage Denoising Using WEAD
Image Denoising Using WEAD
 

Dernier

Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 

Dernier (20)

Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 

Good denoising using wavelets

  • 2. In today’s show  Denoising – definition  Denoising using wavelets vs. other methods  Denoising process  Soft/Hard thresholding  Known thresholds  Examples and comparison of denoising methods using WL  Advanced applications  2 different simulations  Summary July 25, 2012 2
  • 3. In today’s show  Denoising – definition  Denoising using wavelets vs. other methods  Denoising process  Soft/Hard thresholding  Known thresholds  Examples and comparison of denoising methods using WL  Advanced applications  2 different simulations  Summary July 25, 2012 3
  • 4. Denoising  Denosing is the process with which we reconstruct a signal from a noisy one. original denoised July 25, 2012 4
  • 5. In today’s show  Denoising – definition  Denoising using wavelets vs. other methods  Denoising process  Soft/Hard thresholding  Known thresholds  Examples and comparison of denoising methods using WL  Advanced applications  2 different simulations  Summary July 25, 2012 5
  • 6. Old denoising methods What was wrong with existing methods? Kernel estimators / Spline estimators Do not resolve local structures well enough. This is necessary when dealing with signals that contain structures of different scales and amplitudes such as neurophysiological signals. July 25, 2012 6
  • 7.  Fourier based signal processing  we arrange our signals such that the signals and any noise overlap as little as possible in the frequency domain and linear time-invariant filtering will approximately separate them.  This linear filtering approach cannot separate noise from signal where their Fourier spectra overlap. overlap July 25, 2012 7
  • 8. Motivation  Non-linear method  The spectra can overlap.  The idea is to have the amplitude, rather than the location of the spectra be as different as possible for that of the noise.  This allows shrinking of the amplitude of the transform to separate signals or remove noise. July 25, 2012 8
  • 10.  Fourier filtering –  Spline method - suppresses leaves features sharp noise, by broadening, but doesn’t really erasing certain features suppress the noise July 25, 2012 10 denoised
  • 11.  Here we use Haar-basis shrinkage method original July 25, 2012 11
  • 12. Wh y wavelets?  The Wavelet transform performs a correlation analysis, therefore the output is expected to be maximal when the input signal most resembles the mother wavelet.  If a signal has its energy concentrated in a small number of WL dimensions, its coefficients will be relatively large compared to any other signal or noise that its energy spread over a large number of coefficients Localizing properties + July 25, 2012 concentration 12
  • 13.  This means that shrinking the WL transform will remove the low amplitude noise or undesired signal in the WL domain, and an inverse wavelet transform will then retrieve the desired signal with little loss of details  Usually the same properties that make a system good for denoising or separation by non linear methods makes it good for compression, which is also a nonlinear process July 25, 2012 13
  • 14. In today’s show  Denoising – definition  Denoising using wavelets vs. other methods  Denoising process  Soft/Hard thresholding  Known thresholds  Examples and comparison of denoising methods using WL  Advanced applications  2 different simulations  Summary July 25, 2012 14
  • 15. Noise (especially white one)  Wavelet denoising works for additive noise since wavelet transform is linear W ( a , b ) [ f + η ;ψ ] = W ( a, b ) [ f ;ψ ] + W ( a, b )[ η; ψ]  White noise means the noise values are not correlated in time  Whiteness means noise has equal power at all frequencies.  Considered the most difficult to remove, due to the fact that it affects every single frequency component over the whole length of the signal. July 25, 2012 15
  • 16. Denoising process N-1 = 2 j+1 -1 dyadic sampling July 25, 2012 16
  • 17. Goal : recover x In the Transformation Domain: where: Wy = Y (W transform matrix). ˆ ˆ X estimate of X from Y , x estimate of x from y Define diagonal linear projection: ˆ X = ∆Y July 25, 2012 17
  • 18. We define the risk measure : ˆ R ( X , X ) = E[|| x − x ||2 ] = ˆ 2 ˆ ˆ E[|| W −1 ( X − X ) ||2 ] = E[|| X − X ||2 ] = 2 2 || Yi − X i ||2 =|| N i ||2 ,  2 2 X i >ε E[|| ∆Y − X ||2 ] =  2  || 0 − X i ||2 =|| X i ||2 ,  2 2 X i <ε   δi =1xi >ε N Rid ( X , X ) = ∑min( X 2 ,ε 2 ) ˆ n=1 Is the lower limit of l 2 error 18 July 25, 2012
  • 19. 3 step general method 1. Decompose signal using DWT; Choose wavelet and number of decomposition levels. Compute Y=Wy 2. Perform thresholding in the Wavelet domain. Shrink coefficients by thresholding (hard /soft) 3. Reconstruct the signal from thresholded DWT coefficients Compute July 25, 2012 19
  • 20. Questions  Which thresholding method?  Which threshold?  Do we pick a single threshold or pick different thresholds at different levels? July 25, 2012 20
  • 21. In today’s show  Denoising – definition  Denoising using wavelets vs. other methods  Denoising process  Soft/Hard thresholding  Known thresholds  Examples and comparison of denoising methods using WL  Advanced applications  2 different simulations  Summary July 25, 2012 21
  • 23. Hard Thresholding  x(t ), | x(t ) |> δ yhard (t ) =  0, | x(t ) |< δ =0.28 July 25, 2012 23
  • 24. Sof t Thresholding sgn ( x( t ) ) ⋅ ( x(t ) − δ ), | x(t ) |> δ ysoft (t ) =  0, | x(t ) |< δ July 25, 2012 24
  • 25. Sof t Or Hard threshold?  It is known that soft thresholding provides smoother results in comparison with the hard thresholding.  More visually pleasant images, because it is continuous.  Hard threshold, however, provides better edge preservation in comparison with the soft one.  Sometimes it might be good to apply the soft threshold to few detail levels, and the hard to the rest. July 25, 2012 25
  • 27. Edges aren’t kept. However, the noise was almost fully suppressed Edges are kept, but the noise wasn’t fully suppressed July 25, 2012 27
  • 28. In today’s show  Denoising – definition  Denoising using wavelets vs. other methods  Denoising process  Soft/Hard thresholding  Known thresholds  Examples and comparison of denoising methods using WL  Advanced applications  2 different simulations  Summary July 25, 2012 28
  • 29. Known sof t thresholds VisuShrink (Universal Threshold)  Donoho and Johnstone developed this method  Provides easy, fast and automatic thresholding.  Shrinkage of the wavelet coefficients is calculated using the formula No need to calculate λ foreach level (sub-band)!! σ is the standard deviation of the noise of the noise level n is the sample size. July 25, 2012 29
  • 30.  The rational is to remove all wavelet coefficients that are smaller than the expected maximum of an assumed i.i.d normal noise sequence of sample size n.  It can be shown that if the noise is a white noise zi i.i.d N(0,1)  Probablity {maxi |zi| >(2logn)1/2}  0, n ∞ July 25, 2012 30
  • 31. SureShrink A threshold level is assigned to each resolution level of the wavelet transform. The threshold is selected by the principle of minimizing the Stein Unbiased Estimate of Risk (SURE). min where d is the number of elements in the noisy data vector and xi are the wavelet coefficients. This procedure is smoothness-adaptive, meaning that it is suitable for denoising a wide range of functions from those that have many jumps to those that are essentially smooth. July 25, 2012 31
  • 32.  If the unknown function contains jumps, the reconstruction (essentially) does also; if the unknown function has a smooth piece, the reconstruction is (essentially) as smooth as the mother wavelet will allow.  The procedure is in a sense optimally smoothness- adaptive: it is near-minimax simultaneously over a whole interval of the Besov scale; the size of this interval depends on the choice of mother wavelet. July 25, 2012 32
  • 33. Estimating the Noise Level  In the threshold selection methods it may be necessary to estimate the standard deviation σ of the noise from the wavelet coefficients. A common estimator is shown below: where MAD is the median of the absolute values of the .wavelet coefficients July 25, 2012 33
  • 34. In today’s show  Denoising – definition  Denoising using wavelets vs. other methods  Denoising process  Soft/Hard thresholding  Known thresholds  Examples and comparison of denoising methods using WL  Advanced applications  2 different simulations  Summary July 25, 2012 34
  • 35. Ex ample July 25, 2012 35 !!Difference
  • 36. More examples Original signals July 25, 2012 36
  • 37. Noisy signals N = 2048 = 211 37 July 25, 2012
  • 38. Denoised signals Soft threshold 38 July 25, 2012
  • 39. The reconstructions have two properties: 1. The noise has been almost entirely suppressed 2. Features sharp in the original remain sharp in reconstruction July 25, 2012 39
  • 40. Why it works (I) Data compression  Here we use Haar-basis shrinkage method July 25, 2012 40
  • 41.  The Haar transform of the noiseless object Blocks compresses the l2 energy of the signal into a very small number of consequently) very large coefficients.  On the other hand, Gaussian white noise in any one orthogonal basis is again a white noise in any other.  In the Haar basis, the few nonzero signal coefficients really stick up above the noise the thresholding kills the noise while not killing the signal July 25, 2012 41
  • 42. Formal:  Data: di = θi + εzi , i=1,…,n  zi standard white noise  Goal : recovering θi  Ideal diagonal projector : keep all coefficients where θi is larger in amplitude than ε and ‘kill’ the rest.  The ideal is unattainable since it requires knowledge on θ which we don’t know July 25, 2012 42
  • 43. The ideal mean square error is Define the “compression number“ cn as follows. number With |θ|(k) = k-th largest amplitude in vector θi set This is a measure of how well the vector θi can approximated by a vector with n nonzero entries. July 25, 2012 43
  • 44. Setting so this ideal risk is explicitly a measure of the extent to which the energy is compressed into a few big coefficients. July 25, 2012 44
  • 45.  We will see the extend to which the different orthogonal basses compress the objects db db fourier Haar Haar fourier July 25, 2012 45
  • 46. Another aspect - Vanishing Moments  The m moment of a wavelet is defined as th ∫ t mψ (t )dt  If the first M moments of a wavelet are zero, then all polynomial type signals of the form x(t ) = ∑cmt m 0 <m <M have (near) zero wavelet / detail coefficients.  Why is this important? Because if we use a wavelet with enough number of vanishing moments, M, to analyze a polynomial with a degree less than M, then all detail coefficients will be zero  excellent compression ratio.  All signals can be written as a polynomial when expanded into its Taylor series.  This is what makes wavelets so successful in compression!!! July 25, 2012 46
  • 47. Why it works?(II) Unconditional basis  A very special feature of wavelet bases is that they serve as unconditional bases, not just of L2, but of a wide range of smoothness spaces, including Sobolev and HÖlder classes.  As a consequence, “shrinking" the coefficients of an object towards zero, as with soft thresholding, acts as a “smoothing operation" in any of a wide range of smoothness measures.  Fourier basis isn’t such basis July 25, 2012 47
  • 48. Original singal Denoising using the 100 biggest WL coefficients Denoising using the 100 biggest Fourier coefficients 48 Worst MSE+ visual artifacts!! July 25, 2012
  • 49. In today’s show  Denoising – definition  Denoising using wavelets vs. other methods  Denoising process  Soft/Hard thresholding  Known thresholds  Examples and comparison of denoising methods using WL  Advanced applications  2 different simulations  Summary July 25, 2012 49
  • 50. Advanced applications Discrete inverse problems Assume : yi = (Kf)(ti) + εzi  Kf is a transformation of f (Fourier transformation, laplace transformation or convolution)  Goal : reconstruct the singal ti  Such problems become problems of recovering wavelets coefficients in the presence of non-white noise July 25, 2012 50
  • 51. Example : we want to reconstruct the discrete signal (xi)i=0..n-1, given the noisy data : White gaussian noise We may attempt to invert this relation, forming the differences : yi = di – di-1, y0 = d0 This is equivalent to observing yi = xi + σ(zi – zi-1) (non white noise) July 25, 2012 51
  • 52.  Solution : reconstructing xi in three-step process, with level-dependent threshold. The threshold is much larger at high resolution levels than at low ones (j0 is the coarse level. J is the finest) Motivation : the variance of the noise in level j grows roughly like 2j The noise is heavily damped, while the main structure of the object persists July 25, 2012 52
  • 53. 53 WL denoising method supresses the noise!! 2012 July 25,
  • 54. Fourier is unable to supress the noise!! 54 July 25, 2012
  • 55. In today’s show  Denoising – definition  Denoising using wavelets vs. other methods  Denoising process  Soft/Hard thresholding  Known thresholds  Examples and comparison of denoising methods using WL  Advanced applications  2 different simulations  Summary July 25, 2012 55
  • 56. Monte Carlo simulation  The Monte Carlo method (or simulation) is a statistical method for finding out the answer to a problem that is too difficult to solve analytically, or for verifying the analytical solution.  It Randomly generates values for uncertain variables over and over to simulate a model  It is called Monte Carlo because of the gambling casinos in that city, and because the Monte Carlo method is related to rolling dice. July 25, 2012 56
  • 57.  We will describe a variety of wavelet and wavelet packet based denoising methods and compare them with each other by applying them to a simulated, noised signal  f is a known signal. The noise is a free parameter  The results help us choose the best wavelet, best denoising method and a suitable denoising threshold in pratictical applications. July 25, 2012 57
  • 58.  A noised singal ƒi i=0,…,2jmax-1  Wavelet  Wavelet pkt July 25, 2012 58
  • 59. Denoising methods  Linear – Independent on the size of the signal coefficients. Therefore the coefficient size isn’t taken into account, but the scale of the coefficient. It is based on the assumption that signal noise can be found mainly in fine scale coefficients and not in coarse ones. Therefore we will cut off all coefficients with a scale finer that a certain scale threshold S0. WL July 25, 2012 59
  • 60. In packet wavelets, fine scaled signal structures can be represented not only by fine scale coefficients but also by coarse scale coefficients with high frequency. Therefore, it is necessary to eliminate not only fine scale coefficients through linear denoising, but also coefficients of a scale and frequency combination which refer to a certain fine scale structure. PL July 25, 2012 60
  • 61.  Non linear – cutting of the coefficients (hard or soft), threshold = λ July 25, 2012 61
  • 62. Measuring denoising errors Lp norms (p=1,2) : Entropy - July 25, 2012 62
  • 63. Choosing the best threshold and basis  Using Monte Carlo simulation DB with 3 vanishing moments has been chosen for PNLS method. Min Error July 25, 2012 63
  • 64. Threshold – universal soft threshold For normally distibuted noise, λu = 0.008 However, it seems that λu lies above the optimal . threshold Using monte carlo to evaluate the ‘best’ threshold for PNLS, 0.003 is the best July 25, 2012 Min error 64
  • 65.  For each method a best basis and an optimal threshold is collected using Monte Carlo simulations.  Now we are ready to compare!  The comparison reveals that WNLH has the best denoising performance.  We would expect wavelet packets method to have the best performance. It seems that for this specific signal, even with Donoho best cost function, this method isn’t the optimal. July 25, 2012 65
  • 66. !!Best DJ WP close to the !!Best 66 July 25, 2012
  • 67. Improvements  Even with the minimal denoising error, there are small artifacts. Original Denoised July 25, 2012 67
  • 68. • Solution : the artifacts live only on fine scales, we can adapt λ to the scale j λ j = λ * µj Most coarse scale Artifacts have disappeared! Finest scale 68 July 25, 2012
  • 69. Thresholds experiment  In this experiment, 6 known signals were taken at n=1024 samples.  Additive white noise (SNR = 10dB)  The aim – to compare all thresholds performance in comparison to the ideal thresholds.  RIS, VIS – global threshold which depends on n.  SUR – set for each level  WFS, FFS – James thresholds (WL, Fourier)  IFD, IWD – ideal threshold (if we knew noise level) July 25, 2012 69
  • 70. 70 original July 25, 2012
  • 71. 71 Noisy signals July 25, 2012
  • 72. 72 July 25, 2012 Denoised signals
  • 73. 73 July 25, 2012
  • 74. Results  Surprising, isn’t it?  VIS is the worst for all the signals.  Fourier is better?  What about the theoretical claims of optimality and generality?  We use SNR to measure error rates  Maybe should it be judged visually by the human eye and mind? July 25, 2012 74
  • 75.  [DJ] In this case, VIS performs best. July 25, 2012 75
  • 76. Denoising Implementation in Matlab First, analyze the signal with appropriate wavelets Hit Denoise July 25, 2012 76
  • 77. Choose thresholding method Choose noise type Choose thresholds Hit Denoise July 25, 2012 77
  • 79. In today’s show  Denoising – definition  Denoising using wavelets vs. other methods  Denoising process  Soft/Hard thresholding  Known thresholds  Examples and comparison of denoising methods using WL  Advanced applications  2 different simulations  Summary July 25, 2012 79
  • 80. Summary  We learn how to use wavelets for denoising  We saw different denoising methods and their results  We saw other uses of wavelets denoising to solve discrete problems  We saw experiments and results July 25, 2012 80
  • 81. 81 July 25, 2012
  • 82. Bibliogr aphy  Nonlinear Wavelet Methods for Recovering Signals, Images, and Densities from indirect and noisy data [D94]  Filtering (Denoising) in the Wavelet Transform Domain Yousef M. Hawwar, Ali M. Reza, Robert D. Turney  Comparison and Assessment of Various Wavelet and Wavelet Packet based Denoising Algorithms for Noisy Data F. Hess, M. Kraft, M. Richter, H. Bockhorn  De-Noising via Soft-Thresholding, Tech. Rept., Statistics, Stanford, 1992.  Adapting to unknown smoothness by wavelet shrinkage, Tech. Rept., Statistics, Stanford, 1992. D. L. Donoho and I. M. Johnstone  Denoising by wavelet transform [Junhui Qian]  Filtering denoising in the WL transform domain[Hawwr,Reza,Turney]  The What,how,and why of wavelet shrinkage denoising[Carl Taswell, 2000] July 25, 2012 82