Professional Documents
Culture Documents
FrC02.1
I. INTRODUCTION
Statistical segmentation techniques usually define a parametric model representing the tissue, assuming particular distribution forms on the selected feature space. This assumption
can introduce artifacts implied by the density model choice.
On the other hand, the nonparametric methods do not have
embedded assumptions; the motivation to use a nonparametric
approach is to let the data guide a search for the function which
fits them best without the restrictions imposed by a parametric
model.
A clustering technique which does not require prior knowledge of the number of clusters, and does not constrain their
shape, is built upon the mean shift. This is an iterative
technique which estimates the modes of the multivariate
underlying distribution of the feature space; this modes are
considered the centers of the densest regions in the space. The
Mean Shift algorithm has been successfully used for image
segmentation, particularly in brain MR images [1].
One of the limitations of the mean shift procedure is that
it involves the specification of a parameter named the kernel
width or bandwidth. While results obtained appear satisfactory,
when the local characteristics of the feature space differs
significantly across data, it is difficult to find an optimal global
bandwidth for the mean shift procedure. For this reason, in this
paper a locally adaptive bandwidth is employed. The technique
estimates a bandwidth for each data point, based in a rough
estimation, and then estimates the modes. The solution is
tested with synthetic brain data.
The paper is organized as follows. The limitations of the
fixed bandwidth density estimation are reviewed, and the
sample point estimator is introduced in Section 2. Section 3
presents the criterion for bandwidth selection and the adaptive
mean shift procedure. In Section 4, the variable bandwidth
procedure is applied to clustering feature spaces. Finally,
conclusions are presented in Section 5.
J. R. Jimnez-Alaniz, Mauricio Pohl-Alfaro, V. Medina-Bauelos, O.
Yez-Surez are with the Neuroimaging Laboratory, Department of Electrical
Engineering, Universidad Autnoma Metropolitana - Iztapalapa, Av. San
Rafael Atlixco 186, Col. Vicentina, Mxico, D. F., 09340, Mxico. E-mail:
{jajr, vera, yaso}@xanum.uam.mx
K
f (x) =
nhd i=1
h
(1)
The kernel function K(x) is a function defined for ddimensional vectors Xi , i = 1, ..., n that are the given multivariate data set whose underlying density f is unknown and should
be estimated. The kernel is taken to be a radially symmetric,
non-negative function centered at zero and integrating to one,
for example the multivariate Epanechnikov kernel
K(x) =
1 1
2 cd (d
+ 2)(1 xT x) if xT x < 1
otherwise
(2)
bias(x)
1 2
h 2 f (x)
2
(4)
(5)
var f(x) n1 h4 f (x)
2
where the constants = t1 K(t)dt y = K(t)2 dt
depend on the kernel. Combining (4) and (5) gives the
approximate mean integrated square error
2
1 4 2 2
(6)
h
f (x) dx + n1 hd
4
Hence the approximately optimal fixed bandwidth, in the
sense of minimizing MISE, is given by
3114
hd+4
opt
1
( f )
= d
(7)
f (Xi )
1/2
(9)
xXi 2
hi
2
n
i x
i
= n2 i=1 Xhd+2
g xX
hi
i
n
xXi 2
1
g
= n2
d+2
i=1 h
hi
n X i xX 2
i g
i
hi
i=1 d+2
hi
2 x
n
1
i
xX
d+2 g
h
fK (x) =
2
n
n
i=1 h
i
xXi
k
i=1 hd
i
(12)
where g(x) = k (x), and it is assumed that the derivative
of profile k exists for all x [0, ), except for a finite set of
points.
The last part of (12) contains the adaptive mean shift vector
n
xXi 2
Xi
g
hi
i=1 hd+2
i
M (x) =
(13)
x
n
xXi 2
1
g
d+2
i=1 h
hi
i
G(x) = Cg(x )
(14)
3115
n
2 1
g
n i=1 hd+2
i
n
x Xi 2
2
i=1 f (Xi )
=
fG (x)
hi
C
nh20
(15)
where
2
xXi
(Xi ) 1d g
f
i=1
hi
hi
n
i=1 f (Xi )
n
fG (x) C
(16)
K (x)
h20 f
n
1
2/C fG (x)
n
i=1 f (Xi )
(17)
yj Xi 2
hi
,
yj Xi 2
1
g hi
hd+2
Xi
i=1 hd+2 g
i
n
i=1
j = 1, 2, . . .
(18)
fK (yj )
(19)
fK = fK (j)
j=1,2,...
j=1,2,...
computational module to analyze such spaces. Therefore, arbitrarily structured feature spaces can be analyzed by MS, the
data points converging to their modes, automatically delineate
clusters of arbitrary shapes.
The discontinuity preserving smoothing in an image is one
application of MS. Smoothing through replacing the pixel by
the mode obtained with MS, remove the noise and preserve
discontinuities reducing the amount of smoothing near abrupt
changes in the local structure, i.e., edges.
An improved mean shift estimate can be obtained by
weighting each data by a function of its edge confidence [5],
that represent the confidence of truly being in the presence of
and edge between adjacent clusters, so that data that lie close
to an edge (edge confidence close to one) are less influential
in the determination of the new cluster center.
The weighted MS procedure is applied for the data points in
the joint spatial-range domain. For both domains, an Euclidian
metric is used to control the quality of the segmentation, which
is dependent on the radii hs (Xi ) and hr (Xi ), corresponding to
the bandwidths of the kernel estimate in the spatial and range
domains. After the MS procedure is applied to every data,
those points that are sufficiently close in the joint domain are
fused to obtain the homogeneous region in the image. The
filtered image is drawn from the output of the MS procedure,
by replacing each pixel with the gray level (range domain) of
the 3-dimensional mode it is associated to [1].
The iterative MS procedure for mode detection based on
variable bandwidth is summarized in the sequel.
Adaptive mean shift filtering algorithm
Let Xi and zi , i = 1, . . . , n, be the d-dimensional input and
filtered image pixels,
1) Derive a pilot estimate f using a fixed Epanechnikov
kernel estimate, with bandwidth chosen arbitrarily.
2) Compute
the bandwidth factor: log
=
n1 log f(Xi ).
3) For each pixel Xi compute its adaptive bandwidth
h(Xi ) = h0 [/f (Xi )]1/2
4) Initialize j = 1 and yi,1 = Xi
5) Compute yi,j+1 according to (18) until convergence,
yi,c
r
6) Assign zi = (Xsi , yi,c
)
The superscripts s and r denote the spatial and range components of a vector, respectively. The assignment specifies that
the filtered data at the spatial location Xsi will have the range
r
.
component of the point of convergence yi,c
IV. RESULTS
The performance of the adaptive MS filtering algorithm
was assessed with synthetic images. The images were taken
from the BrainWeb: Simulated Brain Database, and consist
of T1 weighted images with a 181 217 size, 1 mm3 voxel
resolution, and a variety of noise levels and levels of intensity
non-uniformity.
The pilot estimate f was derived using a fixed bandwidth
procedure. The fixed bandwidths, hs and hr were selected
subjectively, and intentionally wrong (a larger bandwidth) in
3116
Fig. 2. Image with constant 3% noise level. The first, second and third column
with 0%, 20% and 40% of level of intensity non-uniformity, respectively.
Top row, original image. Middle row, filtered with adaptive MS. Bottom row,
filtered with fixed bandwidth (hs , hr ) = (15, 30).
3117