SlideShare a Scribd company logo
1 of 34
Download to read offline
Eric Xing © Eric Xing @ CMU, 2006-2010 1
Machine Learning
Spectral Clustering
Eric Xing
Lecture 8, August 13, 2010
Reading:
Eric Xing © Eric Xing @ CMU, 2006-2010 2
Data Clustering
Eric Xing © Eric Xing @ CMU, 2006-2010 3
Eric Xing © Eric Xing @ CMU, 2006-2010 4
Data Clustering
Compactness Connectivity
 Two different criteria
 Compactness, e.g., k-means, mixture models
 Connectivity, e.g., spectral clustering
Eric Xing © Eric Xing @ CMU, 2006-2010 5
Spectral Clustering
Data Similarities
Eric Xing © Eric Xing @ CMU, 2006-2010 6
 Some graph terminology
 Objects (e.g., pixels, data points)
i∈ I = vertices of graph G
 Edges (ij) = pixel pairs with Wij > 0
 Similarity matrix W = [ Wij ]
 Degree
di = Σj∈G Wij
dA = Σi∈A di degree of A G
 Assoc(A,B) = Σi∈A Σj∈B Wij
⊆
Wij
i
j
i
A
A
B
Weighted Graph Partitioning
Eric Xing © Eric Xing @ CMU, 2006-2010 7
 (edge) cut = set of edges whose removal makes a graph
disconnected
 weight of a cut:
cut( A, B ) = Σi∈A Σj∈B Wij=Assoc(A,B)
 Normalized Cut criteria: minimum cut(A,Ā)
More generally:
Cuts in a Graph
AA d
AA
d
AA
AA
),(cut),(cut
),Ncut( +=
∑∑
∑
∑
== ∈∈
∈∈








=








=
k
r A
rr
k
r VjAi ij
AVjAi ij
k
rr
rr
d
AA
W
W
AAA
11
21
),(cut
),Ncut(
,
,

Eric Xing © Eric Xing @ CMU, 2006-2010 8
Graph-based Clustering
 Data Grouping
 Image sigmentation
 Affinity matrix:
 Degree matrix:
 Laplacian matrix:
 (bipartite) partition vector:
ijW
G = {V,E}
Wij
i
j
)),(( jiij xxdfW =
][ , jiwW =
)(diag idD =
WDL −=
],,,[
][
111111
1
−−−=
=
,,
,...,xxx N
Eric Xing © Eric Xing @ CMU, 2006-2010 9
Affinity Function
 Affinities grow as σ grows 
 How the choice of σ value affects the results?
 What would be the optimal choice for σ?
2
2
2
σ
ji XX
ji eW
−−
=,
Eric Xing © Eric Xing @ CMU, 2006-2010 10
Clustering via Optimizing
Normalized Cut
 The normalized cut:
 Computing an optimal normalized cut over all possible y (i.e.,
partition) is NP hard
 Transform Ncut equation to a matrix form (Shi & Malik 2000):
 Still an NP hard problem
BA d
BA
d
BA
BA
),(cut),(cut
),Ncut( +=
Dyy
yWDy
xNcut T
T
yx
)(
min)(min
−
=
01 =DyT
Subject to:
Rayleigh quotientn
by },{ −∈ 1
...
),(
),(
;
11)1(
)1)(()1(
11
)1)(()1(
)Bdeg(
B)A,(
)Adeg(
B)A,(
B)A,(
0
=
=
−
−−−
+
+−+
=
+=
∑
∑ >
i
x
T
T
T
T
iiD
iiD
k
Dk
xWDx
Dk
xWDx
cutcut
Ncut
i
Eric Xing © Eric Xing @ CMU, 2006-2010 11
 Instead, relax into the continuous domain by solving generalized eigenvalue
system:
 Which gives:
 Note that so, the first eigenvector is y0=1 with eigenvalue 0.
 The second smallest eigenvector is the real valued solution to this problem!!
Relaxation
DyyWD λ=− )(
01 =− )( WD
Dyy
yWDy
xNcut T
T
yx
)(
min)(min
−
=
01 =DyT
Subject to:
Rayleigh quotient
n
by },{ −∈ 1
1=− DyyyWDy TT
y s.t.,)(min
Rayleigh quotient theorem
Eric Xing © Eric Xing @ CMU, 2006-2010 12
Algorithm
1. Define a similarity function between 2 nodes. i.e.:
2. Compute affinity matrix (W) and degree matrix (D).
3. Solve
 Do singular value decomposition (SVD) of the graph Laplacian
4. Use the eigenvector with the second smallest eigenvalue, , to
bipartition the graph.
 For each threshold k, Ak={i | yi among k largest element of y*}
Bk={i | yi among n-k smallest element of y*}
 Compute Ncut(Ak,Bk)
 Output
DyyWD λ=− )(
2
2
2
X
ji XX
ji ew σ
)()(
,
−−
=
WDL −=
VVL T
Λ= ⇒
*
y
),(Ncutmaxarg*
kk BAk = ** ,and kk
BA
Eric Xing © Eric Xing @ CMU, 2006-2010 13
.},,{with,
)(
),( 011 =−∈
−
= Dyby
Dyy
ySDy
BANcut T
iT
T
y2
i
i
A
y2
i
i
A
DyySD λ=− )(
Ideally …
Eric Xing © Eric Xing @ CMU, 2006-2010 14
Example (Xing et al, 2001)
Eric Xing © Eric Xing @ CMU, 2006-2010 15
Poor features can lead to poor
outcome (Xing et al 2001)
Eric Xing © Eric Xing @ CMU, 2006-2010 16
Cluster vs. Block matrix
BA d
BAcut
d
BAcut
BANcut
),(),(
),( +=
∑ ∈∈
= VjAi jiWADegree , ,)(
A
B
A
B
BA d
BA
d
BA
BA
),(cut),(cut
),Ncut( +=
Eric Xing © Eric Xing @ CMU, 2006-2010 17
 Criterion for partition:
Compare to Minimum cut
∑∈∈
=
BjAi
ji
BA
WBAcut
,
,
,
min),(min
First proposed by Wu and Leahy
A
B
Ideal Cut
Cuts with
lesser weight
than the
ideal cut
Problem!
Weight of cut is directly proportional
to the number of edges in the cut.
Eric Xing © Eric Xing @ CMU, 2006-2010 18
Superior Performance?
 K-means and Gaussian mixture methods are biased toward
convex clusters
Eric Xing © Eric Xing @ CMU, 2006-2010 19
Ncut is superior in certain cases
Eric Xing © Eric Xing @ CMU, 2006-2010 20
Why?
Eric Xing © Eric Xing @ CMU, 2006-2010 21
General Spectral Clustering
Data Similarities
Eric Xing © Eric Xing @ CMU, 2006-2010 22
Representation
[ ]KXXX ,...,1=
∑= j jiwiiD ,),(
WDL −=
segments
pixels
),(),( jiaffjiW =
 Partition matrix X:
 Pair-wise similarity matrix W:
 Degree matrix D:
 Laplacian matrix L:
Eric Xing © Eric Xing @ CMU, 2006-2010 23
 Given a set of points S={s1,…sn}
 Form the affinity matrix
 Define diagonal matrix Dii= Σκ aik
 Form the matrix
 Stack the k largest eigenvectors of L to for the columns of the new
matrix X:
 Renormalize each of X’s rows to have unit length and get new
matrix Y. Cluster rows of Y as points in R k
A Spectral Clustering Algorithm
Ng, Jordan, and Weiss 2003
0
2
2
2
=≠∀=
−−
ii
SS
ji wjiew
ji
,, ,,
σ
2121 // −−
= WDDL










=
|
|
|
|
|
|
kxxxX 21
Eric Xing © Eric Xing @ CMU, 2006-2010 24
SC vs Kmeans
Eric Xing © Eric Xing @ CMU, 2006-2010 25
Why it works?
 K-means in the spectrum space !
Eric Xing © Eric Xing @ CMU, 2006-2010 26
Eigenvectors and blocks
1 1 0 0
1 1 0 0
0 0 1 1
0 0 1 1
eigensolver
.71
.71
0
0
0
0
.71
.71
λ1= 2 λ2= 2 λ3= 0
λ4= 0
1 1 .2 0
1 1 0 -.2
.2 0 1 1
0 -.2 1 1
eigensolver
.71
.69
.14
0
0
-.14
.69
.71
λ1= 2.02 λ2= 2.02 λ3= -0.02
λ4= -0.02
 Block matrices have block eigenvectors:
 Near-block matrices have near-block eigenvectors:
Eric Xing © Eric Xing @ CMU, 2006-2010 27
Spectral Space
1 1 .2 0
1 1 0 -.2
.2 0 1 1
0 -.2 1 1
.71
.69
.14
0
0
-.14
.69
.71
e1
e2
e1 e2
1 .2 1 0
.2 1 0 1
1 0 1 -.2
0 1 -.2 1
.71
.14
.69
0
0
.69
-.14
.71
e1
e2
e1 e2
 Can put items into blocks by eigenvectors:
 Clusters clear regardless of row ordering:
Eric Xing © Eric Xing @ CMU, 2006-2010 28
More formally …
 Recall generalized Ncut
 Minimizing this is equivalent to spectral clustering
∑∑
∑
∑
== ∈∈
∈∈








=








=
k
r A
rr
k
r VjAi ij
AVjAi ij
k
rr
rr
d
AA
W
W
AAA
11
21
),(cut
),Ncut(
,
,

∑=








=
k
r A
rr
k
r
d
AA
AAA
1
21
),(cut
),Ncut(min 
YWDDY 2121 //T
min −−
IYY =T
s.t.
segments
pixels
Y
Eric Xing © Eric Xing @ CMU, 2006-2010 29
Spectral Clustering
 Algorithms that cluster points using eigenvectors of matrices
derived from the data
 Obtain data representation in the low-dimensional space that
can be easily clustered
 Variety of methods that use the eigenvectors differently (we
have seen an example)
 Empirically very successful
 Authors disagree:
 Which eigenvectors to use
 How to derive clusters from these eigenvectors
 Two general methods
Eric Xing © Eric Xing @ CMU, 2006-2010 30
Method #1
 Partition using only one eigenvector at a time
 Use procedure recursively
 Example: Image Segmentation
 Uses 2nd (smallest) eigenvector to define optimal cut
 Recursively generates two clusters with each cut
Eric Xing © Eric Xing @ CMU, 2006-2010 31
Method #2
 Use k eigenvectors (k chosen by user)
 Directly compute k-way partitioning
 Experimentally has been seen to be “better”
Eric Xing © Eric Xing @ CMU, 2006-2010 32
Toy examples
Images from Matthew Brand (TR-2002-42)
Eric Xing © Eric Xing @ CMU, 2006-2010 33
User’s Prerogative
 Choice of k, the number of clusters
 Choice of scaling factor
 Realistically, search over and pick value that gives the tightest clusters
 Choice of clustering method: k-way or recursive bipartite
 Kernel affinity matrix
2
σ
),(, jiji SSKw =
Eric Xing © Eric Xing @ CMU, 2006-2010 34
Conclusions
 Good news:
 Simple and powerful methods to segment images.
 Flexible and easy to apply to other clustering problems.
 Bad news:
 High memory requirements (use sparse matrices).
 Very dependant on the scale factor for a specific problem.
2
2
2)()(
),( X
ji XX
ejiW σ
−−
=

More Related Content

What's hot

A non-stiff boundary integral method for internal waves
A non-stiff boundary integral method for internal wavesA non-stiff boundary integral method for internal waves
A non-stiff boundary integral method for internal wavesAlex (Oleksiy) Varfolomiyev
 
Common fixed point and weak commuting mappings
Common fixed point and weak commuting mappingsCommon fixed point and weak commuting mappings
Common fixed point and weak commuting mappingsAlexander Decker
 
Applied mathematics for CBE assignment
Applied mathematics for CBE assignmentApplied mathematics for CBE assignment
Applied mathematics for CBE assignmentSahl Buhary
 
Lec11: Active Contour and Level Set for Medical Image Segmentation
Lec11: Active Contour and Level Set for Medical Image SegmentationLec11: Active Contour and Level Set for Medical Image Segmentation
Lec11: Active Contour and Level Set for Medical Image SegmentationUlaş Bağcı
 
PREDICTION OF COMPRESSIVE STRENGTH OF CONCRETE FROM EARLY AGE TEST RESULT
PREDICTION OF COMPRESSIVE STRENGTH OF CONCRETE FROM EARLY AGE TEST RESULTPREDICTION OF COMPRESSIVE STRENGTH OF CONCRETE FROM EARLY AGE TEST RESULT
PREDICTION OF COMPRESSIVE STRENGTH OF CONCRETE FROM EARLY AGE TEST RESULTMonjurul Shuvo
 
Lec9: Medical Image Segmentation (III) (Fuzzy Connected Image Segmentation)
Lec9: Medical Image Segmentation (III) (Fuzzy Connected Image Segmentation)Lec9: Medical Image Segmentation (III) (Fuzzy Connected Image Segmentation)
Lec9: Medical Image Segmentation (III) (Fuzzy Connected Image Segmentation)Ulaş Bağcı
 
Image sampling and quantization
Image sampling and quantizationImage sampling and quantization
Image sampling and quantizationBCET, Balasore
 
Predicting 28 Days Compressive Strength of Concrete from 7 Days Test Result
Predicting 28 Days Compressive Strength of Concrete from 7 Days Test ResultPredicting 28 Days Compressive Strength of Concrete from 7 Days Test Result
Predicting 28 Days Compressive Strength of Concrete from 7 Days Test ResultMonjurul Shuvo
 
Lecture 19: Implementation of Histogram Image Operation
Lecture 19: Implementation of Histogram Image OperationLecture 19: Implementation of Histogram Image Operation
Lecture 19: Implementation of Histogram Image OperationVARUN KUMAR
 
bayesImageS: an R package for Bayesian image analysis
bayesImageS: an R package for Bayesian image analysisbayesImageS: an R package for Bayesian image analysis
bayesImageS: an R package for Bayesian image analysisMatt Moores
 
An approximate solution for plates resting on winkler foundation
An approximate solution for plates resting on winkler foundationAn approximate solution for plates resting on winkler foundation
An approximate solution for plates resting on winkler foundationIAEME Publication
 
R05410102 finiteelementmethodsincivilengineering
R05410102 finiteelementmethodsincivilengineeringR05410102 finiteelementmethodsincivilengineering
R05410102 finiteelementmethodsincivilengineeringimaduddin91
 
Stability analysis of orthotropic reinforce concrete shear wall
Stability analysis of orthotropic reinforce concrete shear wallStability analysis of orthotropic reinforce concrete shear wall
Stability analysis of orthotropic reinforce concrete shear walleSAT Publishing House
 
Stability analysis of orthotropic reinforce concrete shear wall
Stability analysis of orthotropic reinforce concrete shear wallStability analysis of orthotropic reinforce concrete shear wall
Stability analysis of orthotropic reinforce concrete shear walleSAT Journals
 
Math behind the kernels
Math behind the kernelsMath behind the kernels
Math behind the kernelsRevanth Kumar
 
Blur Filter - Hanpo
Blur Filter - HanpoBlur Filter - Hanpo
Blur Filter - HanpoHanpo Cheng
 
Think Locally, Act Gobally - Improving Defect and Effort Prediction Models
Think Locally, Act Gobally - Improving Defect and Effort Prediction ModelsThink Locally, Act Gobally - Improving Defect and Effort Prediction Models
Think Locally, Act Gobally - Improving Defect and Effort Prediction ModelsNicolas Bettenburg
 

What's hot (20)

A non-stiff boundary integral method for internal waves
A non-stiff boundary integral method for internal wavesA non-stiff boundary integral method for internal waves
A non-stiff boundary integral method for internal waves
 
Common fixed point and weak commuting mappings
Common fixed point and weak commuting mappingsCommon fixed point and weak commuting mappings
Common fixed point and weak commuting mappings
 
Applied mathematics for CBE assignment
Applied mathematics for CBE assignmentApplied mathematics for CBE assignment
Applied mathematics for CBE assignment
 
On the Zeros of Complex Polynomials
On the Zeros of Complex PolynomialsOn the Zeros of Complex Polynomials
On the Zeros of Complex Polynomials
 
Lec11: Active Contour and Level Set for Medical Image Segmentation
Lec11: Active Contour and Level Set for Medical Image SegmentationLec11: Active Contour and Level Set for Medical Image Segmentation
Lec11: Active Contour and Level Set for Medical Image Segmentation
 
PREDICTION OF COMPRESSIVE STRENGTH OF CONCRETE FROM EARLY AGE TEST RESULT
PREDICTION OF COMPRESSIVE STRENGTH OF CONCRETE FROM EARLY AGE TEST RESULTPREDICTION OF COMPRESSIVE STRENGTH OF CONCRETE FROM EARLY AGE TEST RESULT
PREDICTION OF COMPRESSIVE STRENGTH OF CONCRETE FROM EARLY AGE TEST RESULT
 
Unit 3
Unit 3Unit 3
Unit 3
 
Pixelrelationships
PixelrelationshipsPixelrelationships
Pixelrelationships
 
Lec9: Medical Image Segmentation (III) (Fuzzy Connected Image Segmentation)
Lec9: Medical Image Segmentation (III) (Fuzzy Connected Image Segmentation)Lec9: Medical Image Segmentation (III) (Fuzzy Connected Image Segmentation)
Lec9: Medical Image Segmentation (III) (Fuzzy Connected Image Segmentation)
 
Image sampling and quantization
Image sampling and quantizationImage sampling and quantization
Image sampling and quantization
 
Predicting 28 Days Compressive Strength of Concrete from 7 Days Test Result
Predicting 28 Days Compressive Strength of Concrete from 7 Days Test ResultPredicting 28 Days Compressive Strength of Concrete from 7 Days Test Result
Predicting 28 Days Compressive Strength of Concrete from 7 Days Test Result
 
Lecture 19: Implementation of Histogram Image Operation
Lecture 19: Implementation of Histogram Image OperationLecture 19: Implementation of Histogram Image Operation
Lecture 19: Implementation of Histogram Image Operation
 
bayesImageS: an R package for Bayesian image analysis
bayesImageS: an R package for Bayesian image analysisbayesImageS: an R package for Bayesian image analysis
bayesImageS: an R package for Bayesian image analysis
 
An approximate solution for plates resting on winkler foundation
An approximate solution for plates resting on winkler foundationAn approximate solution for plates resting on winkler foundation
An approximate solution for plates resting on winkler foundation
 
R05410102 finiteelementmethodsincivilengineering
R05410102 finiteelementmethodsincivilengineeringR05410102 finiteelementmethodsincivilengineering
R05410102 finiteelementmethodsincivilengineering
 
Stability analysis of orthotropic reinforce concrete shear wall
Stability analysis of orthotropic reinforce concrete shear wallStability analysis of orthotropic reinforce concrete shear wall
Stability analysis of orthotropic reinforce concrete shear wall
 
Stability analysis of orthotropic reinforce concrete shear wall
Stability analysis of orthotropic reinforce concrete shear wallStability analysis of orthotropic reinforce concrete shear wall
Stability analysis of orthotropic reinforce concrete shear wall
 
Math behind the kernels
Math behind the kernelsMath behind the kernels
Math behind the kernels
 
Blur Filter - Hanpo
Blur Filter - HanpoBlur Filter - Hanpo
Blur Filter - Hanpo
 
Think Locally, Act Gobally - Improving Defect and Effort Prediction Models
Think Locally, Act Gobally - Improving Defect and Effort Prediction ModelsThink Locally, Act Gobally - Improving Defect and Effort Prediction Models
Think Locally, Act Gobally - Improving Defect and Effort Prediction Models
 

Viewers also liked

Notes on Spectral Clustering
Notes on Spectral ClusteringNotes on Spectral Clustering
Notes on Spectral ClusteringDavide Eynard
 
icml2004 tutorial on spectral clustering part II
icml2004 tutorial on spectral clustering part IIicml2004 tutorial on spectral clustering part II
icml2004 tutorial on spectral clustering part IIzukun
 
Spectral clustering Tutorial
Spectral clustering TutorialSpectral clustering Tutorial
Spectral clustering TutorialZitao Liu
 
Spectral Clustering Report
Spectral Clustering ReportSpectral Clustering Report
Spectral Clustering ReportMiaolan Xie
 
Presentation PRIDE Cluster HUPO 2014
Presentation PRIDE Cluster HUPO 2014Presentation PRIDE Cluster HUPO 2014
Presentation PRIDE Cluster HUPO 2014Juan Antonio Vizcaino
 
Tensor Spectral Clustering
Tensor Spectral ClusteringTensor Spectral Clustering
Tensor Spectral ClusteringAustin Benson
 
Large Scale Data Clustering: an overview
Large Scale Data Clustering: an overviewLarge Scale Data Clustering: an overview
Large Scale Data Clustering: an overviewVahid Mirjalili
 
Cross-project Defect Prediction Using A Connectivity-based Unsupervised Class...
Cross-project Defect Prediction Using A Connectivity-based Unsupervised Class...Cross-project Defect Prediction Using A Connectivity-based Unsupervised Class...
Cross-project Defect Prediction Using A Connectivity-based Unsupervised Class...Feng Zhang
 
Community detection
Community detectionCommunity detection
Community detectionScott Pauls
 
Spectral clustering - Houston ML Meetup
Spectral clustering - Houston ML MeetupSpectral clustering - Houston ML Meetup
Spectral clustering - Houston ML MeetupYan Xu
 

Viewers also liked (11)

Notes on Spectral Clustering
Notes on Spectral ClusteringNotes on Spectral Clustering
Notes on Spectral Clustering
 
icml2004 tutorial on spectral clustering part II
icml2004 tutorial on spectral clustering part IIicml2004 tutorial on spectral clustering part II
icml2004 tutorial on spectral clustering part II
 
Spectral clustering Tutorial
Spectral clustering TutorialSpectral clustering Tutorial
Spectral clustering Tutorial
 
Spectral Clustering Report
Spectral Clustering ReportSpectral Clustering Report
Spectral Clustering Report
 
Presentation PRIDE Cluster HUPO 2014
Presentation PRIDE Cluster HUPO 2014Presentation PRIDE Cluster HUPO 2014
Presentation PRIDE Cluster HUPO 2014
 
Tensor Spectral Clustering
Tensor Spectral ClusteringTensor Spectral Clustering
Tensor Spectral Clustering
 
Spectral graph theory
Spectral graph theorySpectral graph theory
Spectral graph theory
 
Large Scale Data Clustering: an overview
Large Scale Data Clustering: an overviewLarge Scale Data Clustering: an overview
Large Scale Data Clustering: an overview
 
Cross-project Defect Prediction Using A Connectivity-based Unsupervised Class...
Cross-project Defect Prediction Using A Connectivity-based Unsupervised Class...Cross-project Defect Prediction Using A Connectivity-based Unsupervised Class...
Cross-project Defect Prediction Using A Connectivity-based Unsupervised Class...
 
Community detection
Community detectionCommunity detection
Community detection
 
Spectral clustering - Houston ML Meetup
Spectral clustering - Houston ML MeetupSpectral clustering - Houston ML Meetup
Spectral clustering - Houston ML Meetup
 

Similar to Lecture8 xing

Effect of Block Sizes on the Attributes of Watermarking Digital Images
Effect of Block Sizes on the Attributes of Watermarking Digital ImagesEffect of Block Sizes on the Attributes of Watermarking Digital Images
Effect of Block Sizes on the Attributes of Watermarking Digital ImagesDr. Michael Agbaje
 
An Efficient Convex Hull Algorithm for a Planer Set of Points
An Efficient Convex Hull Algorithm for a Planer Set of PointsAn Efficient Convex Hull Algorithm for a Planer Set of Points
An Efficient Convex Hull Algorithm for a Planer Set of PointsKasun Ranga Wijeweera
 
Edge linking hough transform
Edge linking hough transformEdge linking hough transform
Edge linking hough transformaruna811496
 
[Vldb 2013] skyline operator on anti correlated distributions
[Vldb 2013] skyline operator on anti correlated distributions[Vldb 2013] skyline operator on anti correlated distributions
[Vldb 2013] skyline operator on anti correlated distributionsWooSung Choi
 
Free FE practice problems
Free FE practice problemsFree FE practice problems
Free FE practice problemsEIT Experts
 
Steven Duplij, Raimund Vogl, "Polyadic Braid Operators and Higher Braiding Ga...
Steven Duplij, Raimund Vogl, "Polyadic Braid Operators and Higher Braiding Ga...Steven Duplij, Raimund Vogl, "Polyadic Braid Operators and Higher Braiding Ga...
Steven Duplij, Raimund Vogl, "Polyadic Braid Operators and Higher Braiding Ga...Steven Duplij (Stepan Douplii)
 
Mm chap08 -_lossy_compression_algorithms
Mm chap08 -_lossy_compression_algorithmsMm chap08 -_lossy_compression_algorithms
Mm chap08 -_lossy_compression_algorithmsEellekwameowusu
 
Information Matrices and Optimality Values for various Block Designs
Information Matrices and Optimality Values for various Block DesignsInformation Matrices and Optimality Values for various Block Designs
Information Matrices and Optimality Values for various Block Designstheijes
 
Peridynamic simulation of delamination propagation in fiber-reinforced composite
Peridynamic simulation of delamination propagation in fiber-reinforced compositePeridynamic simulation of delamination propagation in fiber-reinforced composite
Peridynamic simulation of delamination propagation in fiber-reinforced compositeYILE HU
 
IRJET- 5th Order Shear Deformation Theory for Fixed Deep Beam
IRJET- 5th Order Shear Deformation Theory for Fixed Deep BeamIRJET- 5th Order Shear Deformation Theory for Fixed Deep Beam
IRJET- 5th Order Shear Deformation Theory for Fixed Deep BeamIRJET Journal
 
A Hybrid Technique for the Automated Segmentation of Corpus Callosum in Midsa...
A Hybrid Technique for the Automated Segmentation of Corpus Callosum in Midsa...A Hybrid Technique for the Automated Segmentation of Corpus Callosum in Midsa...
A Hybrid Technique for the Automated Segmentation of Corpus Callosum in Midsa...IJERA Editor
 
Performance Improvement of Vector Quantization with Bit-parallelism Hardware
Performance Improvement of Vector Quantization with Bit-parallelism HardwarePerformance Improvement of Vector Quantization with Bit-parallelism Hardware
Performance Improvement of Vector Quantization with Bit-parallelism HardwareCSCJournals
 
Lecture7 xing fei-fei
Lecture7 xing fei-feiLecture7 xing fei-fei
Lecture7 xing fei-feiTianlu Wang
 
Simulation and Experimental Studies on Composite Beams
Simulation and Experimental Studies on Composite BeamsSimulation and Experimental Studies on Composite Beams
Simulation and Experimental Studies on Composite BeamsIJERA Editor
 
Challenges for coupling approaches for classical linear elasticity and bond-b...
Challenges for coupling approaches for classical linear elasticity and bond-b...Challenges for coupling approaches for classical linear elasticity and bond-b...
Challenges for coupling approaches for classical linear elasticity and bond-b...Patrick Diehl
 
Normalization cross correlation value of
Normalization cross correlation value ofNormalization cross correlation value of
Normalization cross correlation value ofeSAT Publishing House
 

Similar to Lecture8 xing (20)

Effect of Block Sizes on the Attributes of Watermarking Digital Images
Effect of Block Sizes on the Attributes of Watermarking Digital ImagesEffect of Block Sizes on the Attributes of Watermarking Digital Images
Effect of Block Sizes on the Attributes of Watermarking Digital Images
 
An Efficient Convex Hull Algorithm for a Planer Set of Points
An Efficient Convex Hull Algorithm for a Planer Set of PointsAn Efficient Convex Hull Algorithm for a Planer Set of Points
An Efficient Convex Hull Algorithm for a Planer Set of Points
 
Edge linking hough transform
Edge linking hough transformEdge linking hough transform
Edge linking hough transform
 
[Vldb 2013] skyline operator on anti correlated distributions
[Vldb 2013] skyline operator on anti correlated distributions[Vldb 2013] skyline operator on anti correlated distributions
[Vldb 2013] skyline operator on anti correlated distributions
 
Free FE practice problems
Free FE practice problemsFree FE practice problems
Free FE practice problems
 
lecture 1.pptx
lecture 1.pptxlecture 1.pptx
lecture 1.pptx
 
Lecture4 xing
Lecture4 xingLecture4 xing
Lecture4 xing
 
Steven Duplij, Raimund Vogl, "Polyadic Braid Operators and Higher Braiding Ga...
Steven Duplij, Raimund Vogl, "Polyadic Braid Operators and Higher Braiding Ga...Steven Duplij, Raimund Vogl, "Polyadic Braid Operators and Higher Braiding Ga...
Steven Duplij, Raimund Vogl, "Polyadic Braid Operators and Higher Braiding Ga...
 
Mm chap08 -_lossy_compression_algorithms
Mm chap08 -_lossy_compression_algorithmsMm chap08 -_lossy_compression_algorithms
Mm chap08 -_lossy_compression_algorithms
 
Information Matrices and Optimality Values for various Block Designs
Information Matrices and Optimality Values for various Block DesignsInformation Matrices and Optimality Values for various Block Designs
Information Matrices and Optimality Values for various Block Designs
 
Peridynamic simulation of delamination propagation in fiber-reinforced composite
Peridynamic simulation of delamination propagation in fiber-reinforced compositePeridynamic simulation of delamination propagation in fiber-reinforced composite
Peridynamic simulation of delamination propagation in fiber-reinforced composite
 
IRJET- 5th Order Shear Deformation Theory for Fixed Deep Beam
IRJET- 5th Order Shear Deformation Theory for Fixed Deep BeamIRJET- 5th Order Shear Deformation Theory for Fixed Deep Beam
IRJET- 5th Order Shear Deformation Theory for Fixed Deep Beam
 
A Hybrid Technique for the Automated Segmentation of Corpus Callosum in Midsa...
A Hybrid Technique for the Automated Segmentation of Corpus Callosum in Midsa...A Hybrid Technique for the Automated Segmentation of Corpus Callosum in Midsa...
A Hybrid Technique for the Automated Segmentation of Corpus Callosum in Midsa...
 
Performance Improvement of Vector Quantization with Bit-parallelism Hardware
Performance Improvement of Vector Quantization with Bit-parallelism HardwarePerformance Improvement of Vector Quantization with Bit-parallelism Hardware
Performance Improvement of Vector Quantization with Bit-parallelism Hardware
 
WITMSE 2013
WITMSE 2013WITMSE 2013
WITMSE 2013
 
Lecture7 xing fei-fei
Lecture7 xing fei-feiLecture7 xing fei-fei
Lecture7 xing fei-fei
 
Simulation and Experimental Studies on Composite Beams
Simulation and Experimental Studies on Composite BeamsSimulation and Experimental Studies on Composite Beams
Simulation and Experimental Studies on Composite Beams
 
Challenges for coupling approaches for classical linear elasticity and bond-b...
Challenges for coupling approaches for classical linear elasticity and bond-b...Challenges for coupling approaches for classical linear elasticity and bond-b...
Challenges for coupling approaches for classical linear elasticity and bond-b...
 
cheb_conf_aksenov.pdf
cheb_conf_aksenov.pdfcheb_conf_aksenov.pdf
cheb_conf_aksenov.pdf
 
Normalization cross correlation value of
Normalization cross correlation value ofNormalization cross correlation value of
Normalization cross correlation value of
 

More from Tianlu Wang

14 pro resolution
14 pro resolution14 pro resolution
14 pro resolutionTianlu Wang
 
13 propositional calculus
13 propositional calculus13 propositional calculus
13 propositional calculusTianlu Wang
 
12 adversal search
12 adversal search12 adversal search
12 adversal searchTianlu Wang
 
11 alternative search
11 alternative search11 alternative search
11 alternative searchTianlu Wang
 
21 situation calculus
21 situation calculus21 situation calculus
21 situation calculusTianlu Wang
 
20 bayes learning
20 bayes learning20 bayes learning
20 bayes learningTianlu Wang
 
19 uncertain evidence
19 uncertain evidence19 uncertain evidence
19 uncertain evidenceTianlu Wang
 
18 common knowledge
18 common knowledge18 common knowledge
18 common knowledgeTianlu Wang
 
17 2 expert systems
17 2 expert systems17 2 expert systems
17 2 expert systemsTianlu Wang
 
17 1 knowledge-based system
17 1 knowledge-based system17 1 knowledge-based system
17 1 knowledge-based systemTianlu Wang
 
16 2 predicate resolution
16 2 predicate resolution16 2 predicate resolution
16 2 predicate resolutionTianlu Wang
 
16 1 predicate resolution
16 1 predicate resolution16 1 predicate resolution
16 1 predicate resolutionTianlu Wang
 
09 heuristic search
09 heuristic search09 heuristic search
09 heuristic searchTianlu Wang
 
08 uninformed search
08 uninformed search08 uninformed search
08 uninformed searchTianlu Wang
 

More from Tianlu Wang (20)

L7 er2
L7 er2L7 er2
L7 er2
 
L8 design1
L8 design1L8 design1
L8 design1
 
L9 design2
L9 design2L9 design2
L9 design2
 
14 pro resolution
14 pro resolution14 pro resolution
14 pro resolution
 
13 propositional calculus
13 propositional calculus13 propositional calculus
13 propositional calculus
 
12 adversal search
12 adversal search12 adversal search
12 adversal search
 
11 alternative search
11 alternative search11 alternative search
11 alternative search
 
10 2 sum
10 2 sum10 2 sum
10 2 sum
 
22 planning
22 planning22 planning
22 planning
 
21 situation calculus
21 situation calculus21 situation calculus
21 situation calculus
 
20 bayes learning
20 bayes learning20 bayes learning
20 bayes learning
 
19 uncertain evidence
19 uncertain evidence19 uncertain evidence
19 uncertain evidence
 
18 common knowledge
18 common knowledge18 common knowledge
18 common knowledge
 
17 2 expert systems
17 2 expert systems17 2 expert systems
17 2 expert systems
 
17 1 knowledge-based system
17 1 knowledge-based system17 1 knowledge-based system
17 1 knowledge-based system
 
16 2 predicate resolution
16 2 predicate resolution16 2 predicate resolution
16 2 predicate resolution
 
16 1 predicate resolution
16 1 predicate resolution16 1 predicate resolution
16 1 predicate resolution
 
15 predicate
15 predicate15 predicate
15 predicate
 
09 heuristic search
09 heuristic search09 heuristic search
09 heuristic search
 
08 uninformed search
08 uninformed search08 uninformed search
08 uninformed search
 

Recently uploaded

Akola Call Girls #9907093804 Contact Number Escorts Service Akola
Akola Call Girls #9907093804 Contact Number Escorts Service AkolaAkola Call Girls #9907093804 Contact Number Escorts Service Akola
Akola Call Girls #9907093804 Contact Number Escorts Service Akolasrsj9000
 
Vip Hisar Call Girls #9907093804 Contact Number Escorts Service Hisar
Vip Hisar Call Girls #9907093804 Contact Number Escorts Service HisarVip Hisar Call Girls #9907093804 Contact Number Escorts Service Hisar
Vip Hisar Call Girls #9907093804 Contact Number Escorts Service Hisarsrsj9000
 
Hazratganj ] (Call Girls) in Lucknow - 450+ Call Girl Cash Payment 🧄 89231135...
Hazratganj ] (Call Girls) in Lucknow - 450+ Call Girl Cash Payment 🧄 89231135...Hazratganj ] (Call Girls) in Lucknow - 450+ Call Girl Cash Payment 🧄 89231135...
Hazratganj ] (Call Girls) in Lucknow - 450+ Call Girl Cash Payment 🧄 89231135...akbard9823
 
Hazratganj / Call Girl in Lucknow - Phone 🫗 8923113531 ☛ Escorts Service at 6...
Hazratganj / Call Girl in Lucknow - Phone 🫗 8923113531 ☛ Escorts Service at 6...Hazratganj / Call Girl in Lucknow - Phone 🫗 8923113531 ☛ Escorts Service at 6...
Hazratganj / Call Girl in Lucknow - Phone 🫗 8923113531 ☛ Escorts Service at 6...akbard9823
 
Lucknow 💋 Virgin Call Girls Lucknow | Book 8923113531 Extreme Naughty Call Gi...
Lucknow 💋 Virgin Call Girls Lucknow | Book 8923113531 Extreme Naughty Call Gi...Lucknow 💋 Virgin Call Girls Lucknow | Book 8923113531 Extreme Naughty Call Gi...
Lucknow 💋 Virgin Call Girls Lucknow | Book 8923113531 Extreme Naughty Call Gi...anilsa9823
 
FULL ENJOY - 9953040155 Call Girls in Moti Nagar | Delhi
FULL ENJOY - 9953040155 Call Girls in Moti Nagar | DelhiFULL ENJOY - 9953040155 Call Girls in Moti Nagar | Delhi
FULL ENJOY - 9953040155 Call Girls in Moti Nagar | DelhiMalviyaNagarCallGirl
 
exhuma plot and synopsis from the exhuma movie.pptx
exhuma plot and synopsis from the exhuma movie.pptxexhuma plot and synopsis from the exhuma movie.pptx
exhuma plot and synopsis from the exhuma movie.pptxKurikulumPenilaian
 
Alex and Chloe by Daniel Johnson Storyboard
Alex and Chloe by Daniel Johnson StoryboardAlex and Chloe by Daniel Johnson Storyboard
Alex and Chloe by Daniel Johnson Storyboardthephillipta
 
Islamabad Call Girls # 03091665556 # Call Girls in Islamabad | Islamabad Escorts
Islamabad Call Girls # 03091665556 # Call Girls in Islamabad | Islamabad EscortsIslamabad Call Girls # 03091665556 # Call Girls in Islamabad | Islamabad Escorts
Islamabad Call Girls # 03091665556 # Call Girls in Islamabad | Islamabad Escortswdefrd
 
(NEHA) Call Girls Ahmedabad Booking Open 8617697112 Ahmedabad Escorts
(NEHA) Call Girls Ahmedabad Booking Open 8617697112 Ahmedabad Escorts(NEHA) Call Girls Ahmedabad Booking Open 8617697112 Ahmedabad Escorts
(NEHA) Call Girls Ahmedabad Booking Open 8617697112 Ahmedabad EscortsCall girls in Ahmedabad High profile
 
Lucknow 💋 Cheap Call Girls In Lucknow Finest Escorts Service 8923113531 Avail...
Lucknow 💋 Cheap Call Girls In Lucknow Finest Escorts Service 8923113531 Avail...Lucknow 💋 Cheap Call Girls In Lucknow Finest Escorts Service 8923113531 Avail...
Lucknow 💋 Cheap Call Girls In Lucknow Finest Escorts Service 8923113531 Avail...anilsa9823
 
The First Date by Daniel Johnson (Inspired By True Events)
The First Date by Daniel Johnson (Inspired By True Events)The First Date by Daniel Johnson (Inspired By True Events)
The First Date by Daniel Johnson (Inspired By True Events)thephillipta
 
RAK Call Girls Service # 971559085003 # Call Girl Service In RAK
RAK Call Girls Service # 971559085003 # Call Girl Service In RAKRAK Call Girls Service # 971559085003 # Call Girl Service In RAK
RAK Call Girls Service # 971559085003 # Call Girl Service In RAKedwardsara83
 
MinSheng Gaofeng Estate commercial storyboard
MinSheng Gaofeng Estate commercial storyboardMinSheng Gaofeng Estate commercial storyboard
MinSheng Gaofeng Estate commercial storyboardjessica288382
 
FULL ENJOY - 9953040155 Call Girls in Indirapuram | Delhi
FULL ENJOY - 9953040155 Call Girls in Indirapuram | DelhiFULL ENJOY - 9953040155 Call Girls in Indirapuram | Delhi
FULL ENJOY - 9953040155 Call Girls in Indirapuram | DelhiMalviyaNagarCallGirl
 
FULL ENJOY - 9953040155 Call Girls in Shaheen Bagh | Delhi
FULL ENJOY - 9953040155 Call Girls in Shaheen Bagh | DelhiFULL ENJOY - 9953040155 Call Girls in Shaheen Bagh | Delhi
FULL ENJOY - 9953040155 Call Girls in Shaheen Bagh | DelhiMalviyaNagarCallGirl
 
Charbagh / best call girls in Lucknow - Book 🥤 8923113531 🪗 Call Girls Availa...
Charbagh / best call girls in Lucknow - Book 🥤 8923113531 🪗 Call Girls Availa...Charbagh / best call girls in Lucknow - Book 🥤 8923113531 🪗 Call Girls Availa...
Charbagh / best call girls in Lucknow - Book 🥤 8923113531 🪗 Call Girls Availa...gurkirankumar98700
 
FULL ENJOY - 9953040155 Call Girls in Gtb Nagar | Delhi
FULL ENJOY - 9953040155 Call Girls in Gtb Nagar | DelhiFULL ENJOY - 9953040155 Call Girls in Gtb Nagar | Delhi
FULL ENJOY - 9953040155 Call Girls in Gtb Nagar | DelhiMalviyaNagarCallGirl
 
Turn Lock Take Key Storyboard Daniel Johnson
Turn Lock Take Key Storyboard Daniel JohnsonTurn Lock Take Key Storyboard Daniel Johnson
Turn Lock Take Key Storyboard Daniel Johnsonthephillipta
 

Recently uploaded (20)

Akola Call Girls #9907093804 Contact Number Escorts Service Akola
Akola Call Girls #9907093804 Contact Number Escorts Service AkolaAkola Call Girls #9907093804 Contact Number Escorts Service Akola
Akola Call Girls #9907093804 Contact Number Escorts Service Akola
 
Vip Hisar Call Girls #9907093804 Contact Number Escorts Service Hisar
Vip Hisar Call Girls #9907093804 Contact Number Escorts Service HisarVip Hisar Call Girls #9907093804 Contact Number Escorts Service Hisar
Vip Hisar Call Girls #9907093804 Contact Number Escorts Service Hisar
 
Hazratganj ] (Call Girls) in Lucknow - 450+ Call Girl Cash Payment 🧄 89231135...
Hazratganj ] (Call Girls) in Lucknow - 450+ Call Girl Cash Payment 🧄 89231135...Hazratganj ] (Call Girls) in Lucknow - 450+ Call Girl Cash Payment 🧄 89231135...
Hazratganj ] (Call Girls) in Lucknow - 450+ Call Girl Cash Payment 🧄 89231135...
 
Dxb Call Girls # +971529501107 # Call Girls In Dxb Dubai || (UAE)
Dxb Call Girls # +971529501107 # Call Girls In Dxb Dubai || (UAE)Dxb Call Girls # +971529501107 # Call Girls In Dxb Dubai || (UAE)
Dxb Call Girls # +971529501107 # Call Girls In Dxb Dubai || (UAE)
 
Hazratganj / Call Girl in Lucknow - Phone 🫗 8923113531 ☛ Escorts Service at 6...
Hazratganj / Call Girl in Lucknow - Phone 🫗 8923113531 ☛ Escorts Service at 6...Hazratganj / Call Girl in Lucknow - Phone 🫗 8923113531 ☛ Escorts Service at 6...
Hazratganj / Call Girl in Lucknow - Phone 🫗 8923113531 ☛ Escorts Service at 6...
 
Lucknow 💋 Virgin Call Girls Lucknow | Book 8923113531 Extreme Naughty Call Gi...
Lucknow 💋 Virgin Call Girls Lucknow | Book 8923113531 Extreme Naughty Call Gi...Lucknow 💋 Virgin Call Girls Lucknow | Book 8923113531 Extreme Naughty Call Gi...
Lucknow 💋 Virgin Call Girls Lucknow | Book 8923113531 Extreme Naughty Call Gi...
 
FULL ENJOY - 9953040155 Call Girls in Moti Nagar | Delhi
FULL ENJOY - 9953040155 Call Girls in Moti Nagar | DelhiFULL ENJOY - 9953040155 Call Girls in Moti Nagar | Delhi
FULL ENJOY - 9953040155 Call Girls in Moti Nagar | Delhi
 
exhuma plot and synopsis from the exhuma movie.pptx
exhuma plot and synopsis from the exhuma movie.pptxexhuma plot and synopsis from the exhuma movie.pptx
exhuma plot and synopsis from the exhuma movie.pptx
 
Alex and Chloe by Daniel Johnson Storyboard
Alex and Chloe by Daniel Johnson StoryboardAlex and Chloe by Daniel Johnson Storyboard
Alex and Chloe by Daniel Johnson Storyboard
 
Islamabad Call Girls # 03091665556 # Call Girls in Islamabad | Islamabad Escorts
Islamabad Call Girls # 03091665556 # Call Girls in Islamabad | Islamabad EscortsIslamabad Call Girls # 03091665556 # Call Girls in Islamabad | Islamabad Escorts
Islamabad Call Girls # 03091665556 # Call Girls in Islamabad | Islamabad Escorts
 
(NEHA) Call Girls Ahmedabad Booking Open 8617697112 Ahmedabad Escorts
(NEHA) Call Girls Ahmedabad Booking Open 8617697112 Ahmedabad Escorts(NEHA) Call Girls Ahmedabad Booking Open 8617697112 Ahmedabad Escorts
(NEHA) Call Girls Ahmedabad Booking Open 8617697112 Ahmedabad Escorts
 
Lucknow 💋 Cheap Call Girls In Lucknow Finest Escorts Service 8923113531 Avail...
Lucknow 💋 Cheap Call Girls In Lucknow Finest Escorts Service 8923113531 Avail...Lucknow 💋 Cheap Call Girls In Lucknow Finest Escorts Service 8923113531 Avail...
Lucknow 💋 Cheap Call Girls In Lucknow Finest Escorts Service 8923113531 Avail...
 
The First Date by Daniel Johnson (Inspired By True Events)
The First Date by Daniel Johnson (Inspired By True Events)The First Date by Daniel Johnson (Inspired By True Events)
The First Date by Daniel Johnson (Inspired By True Events)
 
RAK Call Girls Service # 971559085003 # Call Girl Service In RAK
RAK Call Girls Service # 971559085003 # Call Girl Service In RAKRAK Call Girls Service # 971559085003 # Call Girl Service In RAK
RAK Call Girls Service # 971559085003 # Call Girl Service In RAK
 
MinSheng Gaofeng Estate commercial storyboard
MinSheng Gaofeng Estate commercial storyboardMinSheng Gaofeng Estate commercial storyboard
MinSheng Gaofeng Estate commercial storyboard
 
FULL ENJOY - 9953040155 Call Girls in Indirapuram | Delhi
FULL ENJOY - 9953040155 Call Girls in Indirapuram | DelhiFULL ENJOY - 9953040155 Call Girls in Indirapuram | Delhi
FULL ENJOY - 9953040155 Call Girls in Indirapuram | Delhi
 
FULL ENJOY - 9953040155 Call Girls in Shaheen Bagh | Delhi
FULL ENJOY - 9953040155 Call Girls in Shaheen Bagh | DelhiFULL ENJOY - 9953040155 Call Girls in Shaheen Bagh | Delhi
FULL ENJOY - 9953040155 Call Girls in Shaheen Bagh | Delhi
 
Charbagh / best call girls in Lucknow - Book 🥤 8923113531 🪗 Call Girls Availa...
Charbagh / best call girls in Lucknow - Book 🥤 8923113531 🪗 Call Girls Availa...Charbagh / best call girls in Lucknow - Book 🥤 8923113531 🪗 Call Girls Availa...
Charbagh / best call girls in Lucknow - Book 🥤 8923113531 🪗 Call Girls Availa...
 
FULL ENJOY - 9953040155 Call Girls in Gtb Nagar | Delhi
FULL ENJOY - 9953040155 Call Girls in Gtb Nagar | DelhiFULL ENJOY - 9953040155 Call Girls in Gtb Nagar | Delhi
FULL ENJOY - 9953040155 Call Girls in Gtb Nagar | Delhi
 
Turn Lock Take Key Storyboard Daniel Johnson
Turn Lock Take Key Storyboard Daniel JohnsonTurn Lock Take Key Storyboard Daniel Johnson
Turn Lock Take Key Storyboard Daniel Johnson
 

Lecture8 xing

  • 1. Eric Xing © Eric Xing @ CMU, 2006-2010 1 Machine Learning Spectral Clustering Eric Xing Lecture 8, August 13, 2010 Reading:
  • 2. Eric Xing © Eric Xing @ CMU, 2006-2010 2 Data Clustering
  • 3. Eric Xing © Eric Xing @ CMU, 2006-2010 3
  • 4. Eric Xing © Eric Xing @ CMU, 2006-2010 4 Data Clustering Compactness Connectivity  Two different criteria  Compactness, e.g., k-means, mixture models  Connectivity, e.g., spectral clustering
  • 5. Eric Xing © Eric Xing @ CMU, 2006-2010 5 Spectral Clustering Data Similarities
  • 6. Eric Xing © Eric Xing @ CMU, 2006-2010 6  Some graph terminology  Objects (e.g., pixels, data points) i∈ I = vertices of graph G  Edges (ij) = pixel pairs with Wij > 0  Similarity matrix W = [ Wij ]  Degree di = Σj∈G Wij dA = Σi∈A di degree of A G  Assoc(A,B) = Σi∈A Σj∈B Wij ⊆ Wij i j i A A B Weighted Graph Partitioning
  • 7. Eric Xing © Eric Xing @ CMU, 2006-2010 7  (edge) cut = set of edges whose removal makes a graph disconnected  weight of a cut: cut( A, B ) = Σi∈A Σj∈B Wij=Assoc(A,B)  Normalized Cut criteria: minimum cut(A,Ā) More generally: Cuts in a Graph AA d AA d AA AA ),(cut),(cut ),Ncut( += ∑∑ ∑ ∑ == ∈∈ ∈∈         =         = k r A rr k r VjAi ij AVjAi ij k rr rr d AA W W AAA 11 21 ),(cut ),Ncut( , , 
  • 8. Eric Xing © Eric Xing @ CMU, 2006-2010 8 Graph-based Clustering  Data Grouping  Image sigmentation  Affinity matrix:  Degree matrix:  Laplacian matrix:  (bipartite) partition vector: ijW G = {V,E} Wij i j )),(( jiij xxdfW = ][ , jiwW = )(diag idD = WDL −= ],,,[ ][ 111111 1 −−−= = ,, ,...,xxx N
  • 9. Eric Xing © Eric Xing @ CMU, 2006-2010 9 Affinity Function  Affinities grow as σ grows   How the choice of σ value affects the results?  What would be the optimal choice for σ? 2 2 2 σ ji XX ji eW −− =,
  • 10. Eric Xing © Eric Xing @ CMU, 2006-2010 10 Clustering via Optimizing Normalized Cut  The normalized cut:  Computing an optimal normalized cut over all possible y (i.e., partition) is NP hard  Transform Ncut equation to a matrix form (Shi & Malik 2000):  Still an NP hard problem BA d BA d BA BA ),(cut),(cut ),Ncut( += Dyy yWDy xNcut T T yx )( min)(min − = 01 =DyT Subject to: Rayleigh quotientn by },{ −∈ 1 ... ),( ),( ; 11)1( )1)(()1( 11 )1)(()1( )Bdeg( B)A,( )Adeg( B)A,( B)A,( 0 = = − −−− + +−+ = += ∑ ∑ > i x T T T T iiD iiD k Dk xWDx Dk xWDx cutcut Ncut i
  • 11. Eric Xing © Eric Xing @ CMU, 2006-2010 11  Instead, relax into the continuous domain by solving generalized eigenvalue system:  Which gives:  Note that so, the first eigenvector is y0=1 with eigenvalue 0.  The second smallest eigenvector is the real valued solution to this problem!! Relaxation DyyWD λ=− )( 01 =− )( WD Dyy yWDy xNcut T T yx )( min)(min − = 01 =DyT Subject to: Rayleigh quotient n by },{ −∈ 1 1=− DyyyWDy TT y s.t.,)(min Rayleigh quotient theorem
  • 12. Eric Xing © Eric Xing @ CMU, 2006-2010 12 Algorithm 1. Define a similarity function between 2 nodes. i.e.: 2. Compute affinity matrix (W) and degree matrix (D). 3. Solve  Do singular value decomposition (SVD) of the graph Laplacian 4. Use the eigenvector with the second smallest eigenvalue, , to bipartition the graph.  For each threshold k, Ak={i | yi among k largest element of y*} Bk={i | yi among n-k smallest element of y*}  Compute Ncut(Ak,Bk)  Output DyyWD λ=− )( 2 2 2 X ji XX ji ew σ )()( , −− = WDL −= VVL T Λ= ⇒ * y ),(Ncutmaxarg* kk BAk = ** ,and kk BA
  • 13. Eric Xing © Eric Xing @ CMU, 2006-2010 13 .},,{with, )( ),( 011 =−∈ − = Dyby Dyy ySDy BANcut T iT T y2 i i A y2 i i A DyySD λ=− )( Ideally …
  • 14. Eric Xing © Eric Xing @ CMU, 2006-2010 14 Example (Xing et al, 2001)
  • 15. Eric Xing © Eric Xing @ CMU, 2006-2010 15 Poor features can lead to poor outcome (Xing et al 2001)
  • 16. Eric Xing © Eric Xing @ CMU, 2006-2010 16 Cluster vs. Block matrix BA d BAcut d BAcut BANcut ),(),( ),( += ∑ ∈∈ = VjAi jiWADegree , ,)( A B A B BA d BA d BA BA ),(cut),(cut ),Ncut( +=
  • 17. Eric Xing © Eric Xing @ CMU, 2006-2010 17  Criterion for partition: Compare to Minimum cut ∑∈∈ = BjAi ji BA WBAcut , , , min),(min First proposed by Wu and Leahy A B Ideal Cut Cuts with lesser weight than the ideal cut Problem! Weight of cut is directly proportional to the number of edges in the cut.
  • 18. Eric Xing © Eric Xing @ CMU, 2006-2010 18 Superior Performance?  K-means and Gaussian mixture methods are biased toward convex clusters
  • 19. Eric Xing © Eric Xing @ CMU, 2006-2010 19 Ncut is superior in certain cases
  • 20. Eric Xing © Eric Xing @ CMU, 2006-2010 20 Why?
  • 21. Eric Xing © Eric Xing @ CMU, 2006-2010 21 General Spectral Clustering Data Similarities
  • 22. Eric Xing © Eric Xing @ CMU, 2006-2010 22 Representation [ ]KXXX ,...,1= ∑= j jiwiiD ,),( WDL −= segments pixels ),(),( jiaffjiW =  Partition matrix X:  Pair-wise similarity matrix W:  Degree matrix D:  Laplacian matrix L:
  • 23. Eric Xing © Eric Xing @ CMU, 2006-2010 23  Given a set of points S={s1,…sn}  Form the affinity matrix  Define diagonal matrix Dii= Σκ aik  Form the matrix  Stack the k largest eigenvectors of L to for the columns of the new matrix X:  Renormalize each of X’s rows to have unit length and get new matrix Y. Cluster rows of Y as points in R k A Spectral Clustering Algorithm Ng, Jordan, and Weiss 2003 0 2 2 2 =≠∀= −− ii SS ji wjiew ji ,, ,, σ 2121 // −− = WDDL           = | | | | | | kxxxX 21
  • 24. Eric Xing © Eric Xing @ CMU, 2006-2010 24 SC vs Kmeans
  • 25. Eric Xing © Eric Xing @ CMU, 2006-2010 25 Why it works?  K-means in the spectrum space !
  • 26. Eric Xing © Eric Xing @ CMU, 2006-2010 26 Eigenvectors and blocks 1 1 0 0 1 1 0 0 0 0 1 1 0 0 1 1 eigensolver .71 .71 0 0 0 0 .71 .71 λ1= 2 λ2= 2 λ3= 0 λ4= 0 1 1 .2 0 1 1 0 -.2 .2 0 1 1 0 -.2 1 1 eigensolver .71 .69 .14 0 0 -.14 .69 .71 λ1= 2.02 λ2= 2.02 λ3= -0.02 λ4= -0.02  Block matrices have block eigenvectors:  Near-block matrices have near-block eigenvectors:
  • 27. Eric Xing © Eric Xing @ CMU, 2006-2010 27 Spectral Space 1 1 .2 0 1 1 0 -.2 .2 0 1 1 0 -.2 1 1 .71 .69 .14 0 0 -.14 .69 .71 e1 e2 e1 e2 1 .2 1 0 .2 1 0 1 1 0 1 -.2 0 1 -.2 1 .71 .14 .69 0 0 .69 -.14 .71 e1 e2 e1 e2  Can put items into blocks by eigenvectors:  Clusters clear regardless of row ordering:
  • 28. Eric Xing © Eric Xing @ CMU, 2006-2010 28 More formally …  Recall generalized Ncut  Minimizing this is equivalent to spectral clustering ∑∑ ∑ ∑ == ∈∈ ∈∈         =         = k r A rr k r VjAi ij AVjAi ij k rr rr d AA W W AAA 11 21 ),(cut ),Ncut( , ,  ∑=         = k r A rr k r d AA AAA 1 21 ),(cut ),Ncut(min  YWDDY 2121 //T min −− IYY =T s.t. segments pixels Y
  • 29. Eric Xing © Eric Xing @ CMU, 2006-2010 29 Spectral Clustering  Algorithms that cluster points using eigenvectors of matrices derived from the data  Obtain data representation in the low-dimensional space that can be easily clustered  Variety of methods that use the eigenvectors differently (we have seen an example)  Empirically very successful  Authors disagree:  Which eigenvectors to use  How to derive clusters from these eigenvectors  Two general methods
  • 30. Eric Xing © Eric Xing @ CMU, 2006-2010 30 Method #1  Partition using only one eigenvector at a time  Use procedure recursively  Example: Image Segmentation  Uses 2nd (smallest) eigenvector to define optimal cut  Recursively generates two clusters with each cut
  • 31. Eric Xing © Eric Xing @ CMU, 2006-2010 31 Method #2  Use k eigenvectors (k chosen by user)  Directly compute k-way partitioning  Experimentally has been seen to be “better”
  • 32. Eric Xing © Eric Xing @ CMU, 2006-2010 32 Toy examples Images from Matthew Brand (TR-2002-42)
  • 33. Eric Xing © Eric Xing @ CMU, 2006-2010 33 User’s Prerogative  Choice of k, the number of clusters  Choice of scaling factor  Realistically, search over and pick value that gives the tightest clusters  Choice of clustering method: k-way or recursive bipartite  Kernel affinity matrix 2 σ ),(, jiji SSKw =
  • 34. Eric Xing © Eric Xing @ CMU, 2006-2010 34 Conclusions  Good news:  Simple and powerful methods to segment images.  Flexible and easy to apply to other clustering problems.  Bad news:  High memory requirements (use sparse matrices).  Very dependant on the scale factor for a specific problem. 2 2 2)()( ),( X ji XX ejiW σ −− =