Docsity

Lecture Notes on Diffusion Equations | STAT 992, Study notes of Statistics

Toggle sidebar
bg1
Stat 992: Lecture 05
Diffusion equations.
Moo K. Chung [email protected]
December 10, 2003
1. Laplacian of Gaussian kernel. To implement iter-
ated kernel smoothing, we need to understand the
relationship between kernel smoothing and diffusion
equations. Let H=σInand represent isotropic ker-
nel in n-dimensional spherical coordinates:
Kσ(r) = 1
(2π)n/2σnexp £−r2
2σ2¤
where r=Pn
i=1 x2
i. Laplacian ∆in rectangular co-
ordinates is given by ∆ = Pn
i=1 ∂2
∂t2
i
.In spherical
coordinates it can be shown that
∆Kσ=∂2Kσ
∂r2+n−1
r
∂Kσ
∂r .
Note that
∂Kσ
∂r =−r
σ2Kσ,∂2Kσ
∂r2=£r2
σ4−1
σ2¤Kσ.
Thus
∆Kσ=£r2
σ4−n
σ2¤Kσ.(1)
On the other hand
∂Kσ
∂σ =£r2
σ3−n
σ¤Kσ(2)
From (1) and (2), we have
1
σ
∂Kσ
∂σ = ∆Kσ.(3)
This equation is an isotropic diffusion equation but it
doesn’t look like it. Let 2t=σ2. Then differential
dt =σdσ and equation (3) transforms to
∂Kσ
∂t = ∆Kσ.
Now apply convolution on both sides and get
∂Kσ∗Y(x)
∂t = ∆£Kσ∗Y(x)¤.
Hence Kσ∗Y(x)is a solution of an isotropic heat
equation
∂f
∂t = ∆f(4)
with initial condition f(x, 0) = Y(x)after time t=
σ2/2. Note that limt→0Kσ∗Y(x) = Y(x)so the so-
lution satisfies the initial condition. So if we diffuse
observation Y(x)for time duration of t=σ2/2. it
should be equivalent to kernel smoothing with band-
width σ. This is a remarkable result that has many
important ramifications1.
Problem 9. Prove the uniqueness of the solution.
Look at Greens functions and fundamental solutions.
One reference would be Stakgold’s Greens Functions
and Boundary Value Problems (1979).
Problem 10. Laplacian of image is used to detect
edges but since images are discrete, partial deriva-
tives are undefined. So traditionally kernel smooth-
ing is applied before estimating the Laplacian. Im-
plement Laplacian-based edge detector using above
kernel smoothing and apply it to sagittal.data.
Experiment with different filter size σto see which
one detect the best. Can you somehow choose σau-
tomatically?
2. Iterated Gaussian kernel smoothing. We will call the
solution to (4) as diffusion smoother. It is identical
to Gaussian kernel smoother so it should inherit all
the statistical properties of kernel smoothing estima-
tor and vice versa. When we diffuse observation Y
for duration δt =σ2/2we get Kσ∗Y. Now we
diffuse Kσ∗Yfor additional δt =σ2/2and get
Kσ∗Kσ∗Y. The total time it has been diffused
is σ2/2 + σ2/2 = σ2. Hence it must be equivalent to
kernel smoothing with bandwidth √2σ, i.e.
Kσ∗Kσ∗Y=K√2σ∗Y.
Let Kσ∗Kσ=K(2∗)
σ. Then K(m∗)
σ=K√mσ.
An alternate proof is that noticing that Kσ∗Kσis
the probability density of the sum of two i.i.d. Gaus-
sian random variables with variance σ2which gives
a Gaussian with variance 2σ2.
Problem 11. Come up with other methods for prov-
ing this. One approach is to compute the convolution
directly.
1Project 3. investigate the statistical properties of diffusion
smoother in 1D and higher dimensions. Need to do stochastic simu-
lations.

Partial preview of the text

Download Lecture Notes on Diffusion Equations | STAT 992 and more Study notes Statistics in PDF only on Docsity!

Stat 992: Lecture 05

Diffusion equations.

Moo K. Chung [email protected]

December 10, 2003

  1. Laplacian of Gaussian kernel. To implement iter- ated kernel smoothing, we need to understand the relationship between kernel smoothing and diffusion equations. Let H = σIn and represent isotropic ker- nel in n-dimensional spherical coordinates:

Kσ(r) =

(2π)n/^2 σn^

exp

[

r^2 2 σ^2

]

where r =

∑n i=1 x

2 i. Laplacian^ ∆^ in rectangular co- ordinates is given by ∆ =

∑n i=

∂^2 ∂t^2 i^.^ In spherical coordinates it can be shown that

∆Kσ =

∂^2 Kσ ∂r^2

n − 1 r

∂Kσ ∂r

Note that

∂Kσ ∂r

r σ^2

Kσ,

∂^2 Kσ ∂r^2

[ (^) r^2 σ^4

σ^2

]

Kσ.

Thus

∆Kσ =

[ (^) r^2 σ^4

n σ^2

]

Kσ. (1)

On the other hand ∂Kσ ∂σ

[ (^) r^2 σ^3

n σ

]

Kσ (2)

From (1) and (2), we have 1 σ

∂Kσ ∂σ

= ∆Kσ. (3)

This equation is an isotropic diffusion equation but it doesn’t look like it. Let 2 t = σ^2. Then differential dt = σdσ and equation (3) transforms to

∂Kσ ∂t

= ∆Kσ.

Now apply convolution on both sides and get

∂Kσ ∗ Y (x) ∂t

[

Kσ ∗ Y (x)

]

Hence Kσ ∗ Y (x) is a solution of an isotropic heat equation

∂f ∂t

= ∆f (4)

with initial condition f (x, 0) = Y (x) after time t = σ^2 / 2. Note that limt→ 0 Kσ ∗Y (x) = Y (x) so the so- lution satisfies the initial condition. So if we diffuse observation Y (x) for time duration of t = σ^2 / 2. it should be equivalent to kernel smoothing with band- width σ. This is a remarkable result that has many important ramifications^1. Problem 9. Prove the uniqueness of the solution. Look at Greens functions and fundamental solutions. One reference would be Stakgold’s Greens Functions and Boundary Value Problems (1979). Problem 10. Laplacian of image is used to detect edges but since images are discrete, partial deriva- tives are undefined. So traditionally kernel smooth- ing is applied before estimating the Laplacian. Im- plement Laplacian-based edge detector using above kernel smoothing and apply it to sagittal.data. Experiment with different filter size σ to see which one detect the best. Can you somehow choose σ au- tomatically?

  1. Iterated Gaussian kernel smoothing. We will call the solution to (4) as diffusion smoother. It is identical to Gaussian kernel smoother so it should inherit all the statistical properties of kernel smoothing estima- tor and vice versa. When we diffuse observation Y for duration δt = σ^2 / 2 we get Kσ ∗ Y. Now we diffuse Kσ ∗ Y for additional δt = σ^2 / 2 and get Kσ ∗ Kσ ∗ Y. The total time it has been diffused is σ^2 /2 + σ^2 /2 = σ^2. Hence it must be equivalent to kernel smoothing with bandwidth

2 σ, i.e.

Kσ ∗ Kσ ∗ Y = K√ 2 σ ∗ Y.

Let Kσ ∗ Kσ = K σ(2 ∗). Then K σ(m ∗)= K√mσ. An alternate proof is that noticing that Kσ ∗ Kσ is the probability density of the sum of two i.i.d. Gaus- sian random variables with variance σ^2 which gives a Gaussian with variance 2 σ^2. Problem 11. Come up with other methods for prov- ing this. One approach is to compute the convolution directly. (^1) Project 3. investigate the statistical properties of diffusion smoother in 1D and higher dimensions. Need to do stochastic simu- lations.