SlideShare uma empresa Scribd logo
1 de 33
ENHANCED K-MEANS ALGORITHM ON SPATIAL DATASET
OVERVIEW ,[object Object]
VARIATION IN K-MEAN ALGORITHM ,[object Object],[object Object],[object Object]
PROCEDURE OF K-MEAN ALGORITHM ,[object Object]
FLOW CHART
HOW K-MEANS ALGORITHM WORKS ,[object Object],[object Object]
HOW K-MEANS ALGORITHM WORKS ,[object Object]
HOW K-MEANS ALGORITHM WORKS ,[object Object]
HOW K-MEANS ALGORITHM WORKS ,[object Object]
HOW K-MEANS ALGORITHM WORKS ,[object Object],[object Object]
COMPUTATIONAL COMPLEXITY ,[object Object],[object Object],[object Object]
ADVANTAGES ,[object Object],[object Object]
DISADVANTAGES ,[object Object],[object Object],[object Object],[object Object]
K-MEANS FOR SPHERICAL CLUSTERS ,[object Object],[object Object]
EXAMPLES OF SUCH SHAPES ,[object Object],(a) Chain-like patterns (b) Clusters detected by K-means
[object Object],[object Object]
[object Object],[object Object]
 
SPHERICAL SHAPED WITH LARGE VARIANCE IN SIZES. ,[object Object],[object Object]
CONT. ,[object Object]
 
SPATIAL AUTOCORRELATION ,[object Object]
ENHANCED  K -MEANS ALGORITHM ,[object Object],[object Object]
[object Object],[object Object]
[object Object],[object Object]
Point_ID K_ID Distance
For each data point, we can keep the distance to the nearest cluster. This saves the time required to compute distances to  k −1 cluster centers . If (New distance <= Previous distance) { The point stays in its cluster. }else { Implement K-Means functionality }
 
FUNCTION “ DISTANCE” keep the number of the closest cluster and the distance to the closest cluster Function  distance () //assign each point to its nearest cluster 1 For  i =1 to  n 2 For  j =1 to  k 3 Compute squared Euclidean distance d 2( xi ,  mj ); 4 endfor 5 Find the closest centroid  mj  to  xi ; 6  mj = mj + xi ;  nj=nj +1; 7  MSE=MSE + d 2( xi ,  mj ); 8  Clusterid [ i ] = number of the closest centroid; 9  Pointdis [ i ]=Euclidean distance to the closest centroid; 10 endfor 11 For  j =1 to  k 12  mj=mj / nj ; 13 endfor
FUNCTION “DISTANCE _ NEW” No need to compute the distances to the other  k −1 centers Function  distance _ new () //assign each point to its nearest cluster 1 For  i =1 to  n Compute squared Euclidean distance d 2( xi ,  Clusterid [ i ]); If ( d 2( xi ,  Clusterid [ i ])<= Pointdis [ i ]) Point stay in its cluster; 2 Else 3 For  j =1 to  k 4 Compute squared Euclidean distance d 2( xi ,  mj ); 5 endfor 6 Find the closest centroid  mj  to  xi ; 7  mj = mj + xi ;  nj = nj +1; 8  MSE = MSE + d 2( xi ,  mj ); 9  Clustered [ i ]=number of the closest centroid; 10  Pointdis [ i ]=Euclidean distance to the closest centroid; 11 endfor 12 For  j =1 to  k 13  mj=mj / nj ; 14 endfor
COMPLEXITY ,[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object]

Mais conteúdo relacionado

Mais procurados

K-means Clustering Algorithm with Matlab Source code
K-means Clustering Algorithm with Matlab Source codeK-means Clustering Algorithm with Matlab Source code
K-means Clustering Algorithm with Matlab Source codegokulprasath06
 
K-means clustering algorithm
K-means clustering algorithmK-means clustering algorithm
K-means clustering algorithmVinit Dantkale
 
CC282 Unsupervised Learning (Clustering) Lecture 7 slides for ...
CC282 Unsupervised Learning (Clustering) Lecture 7 slides for ...CC282 Unsupervised Learning (Clustering) Lecture 7 slides for ...
CC282 Unsupervised Learning (Clustering) Lecture 7 slides for ...butest
 
Customer Segmentation using Clustering
Customer Segmentation using ClusteringCustomer Segmentation using Clustering
Customer Segmentation using ClusteringDessy Amirudin
 
K-Means clustring @jax
K-Means clustring @jaxK-Means clustring @jax
K-Means clustring @jaxAjay Iet
 
K Means Clustering Algorithm | K Means Example in Python | Machine Learning A...
K Means Clustering Algorithm | K Means Example in Python | Machine Learning A...K Means Clustering Algorithm | K Means Example in Python | Machine Learning A...
K Means Clustering Algorithm | K Means Example in Python | Machine Learning A...Edureka!
 
K mean-clustering algorithm
K mean-clustering algorithmK mean-clustering algorithm
K mean-clustering algorithmparry prabhu
 
K-Means, its Variants and its Applications
K-Means, its Variants and its ApplicationsK-Means, its Variants and its Applications
K-Means, its Variants and its ApplicationsVarad Meru
 
K means Clustering
K means ClusteringK means Clustering
K means ClusteringEdureka!
 
Cluster analysis using k-means method in R
Cluster analysis using k-means method in RCluster analysis using k-means method in R
Cluster analysis using k-means method in RVladimir Bakhrushin
 
Unsupervised Learning
Unsupervised LearningUnsupervised Learning
Unsupervised LearningAlia Hamwi
 

Mais procurados (20)

Kmeans
KmeansKmeans
Kmeans
 
K mean-clustering
K mean-clusteringK mean-clustering
K mean-clustering
 
K-means Clustering Algorithm with Matlab Source code
K-means Clustering Algorithm with Matlab Source codeK-means Clustering Algorithm with Matlab Source code
K-means Clustering Algorithm with Matlab Source code
 
K-means clustering algorithm
K-means clustering algorithmK-means clustering algorithm
K-means clustering algorithm
 
Neural nw k means
Neural nw k meansNeural nw k means
Neural nw k means
 
CC282 Unsupervised Learning (Clustering) Lecture 7 slides for ...
CC282 Unsupervised Learning (Clustering) Lecture 7 slides for ...CC282 Unsupervised Learning (Clustering) Lecture 7 slides for ...
CC282 Unsupervised Learning (Clustering) Lecture 7 slides for ...
 
Customer Segmentation using Clustering
Customer Segmentation using ClusteringCustomer Segmentation using Clustering
Customer Segmentation using Clustering
 
K-Means clustring @jax
K-Means clustring @jaxK-Means clustring @jax
K-Means clustring @jax
 
K-Means manual work
K-Means manual workK-Means manual work
K-Means manual work
 
K means
K meansK means
K means
 
K Means Clustering Algorithm | K Means Example in Python | Machine Learning A...
K Means Clustering Algorithm | K Means Example in Python | Machine Learning A...K Means Clustering Algorithm | K Means Example in Python | Machine Learning A...
K Means Clustering Algorithm | K Means Example in Python | Machine Learning A...
 
K mean-clustering algorithm
K mean-clustering algorithmK mean-clustering algorithm
K mean-clustering algorithm
 
Data miningpresentation
Data miningpresentationData miningpresentation
Data miningpresentation
 
K means
K meansK means
K means
 
K-Means, its Variants and its Applications
K-Means, its Variants and its ApplicationsK-Means, its Variants and its Applications
K-Means, its Variants and its Applications
 
K means Clustering
K means ClusteringK means Clustering
K means Clustering
 
Cluster analysis using k-means method in R
Cluster analysis using k-means method in RCluster analysis using k-means method in R
Cluster analysis using k-means method in R
 
Clustering: A Survey
Clustering: A SurveyClustering: A Survey
Clustering: A Survey
 
Unsupervised Learning
Unsupervised LearningUnsupervised Learning
Unsupervised Learning
 
05 k-means clustering
05 k-means clustering05 k-means clustering
05 k-means clustering
 

Semelhante a Enhance The K Means Algorithm On Spatial Dataset

Slide-TIF311-DM-10-11.ppt
Slide-TIF311-DM-10-11.pptSlide-TIF311-DM-10-11.ppt
Slide-TIF311-DM-10-11.pptSandinoBerutu1
 
Slide-TIF311-DM-10-11.ppt
Slide-TIF311-DM-10-11.pptSlide-TIF311-DM-10-11.ppt
Slide-TIF311-DM-10-11.pptImXaib
 
Lecture_3_k-mean-clustering.ppt
Lecture_3_k-mean-clustering.pptLecture_3_k-mean-clustering.ppt
Lecture_3_k-mean-clustering.pptSyedNahin1
 
K means clustering
K means clusteringK means clustering
K means clusteringkeshav goyal
 
AI-Lec20 Clustering I - Kmean.pptx
AI-Lec20 Clustering I - Kmean.pptxAI-Lec20 Clustering I - Kmean.pptx
AI-Lec20 Clustering I - Kmean.pptxSyed Ejaz
 
K Means Clustering Algorithm | K Means Clustering Example | Machine Learning ...
K Means Clustering Algorithm | K Means Clustering Example | Machine Learning ...K Means Clustering Algorithm | K Means Clustering Example | Machine Learning ...
K Means Clustering Algorithm | K Means Clustering Example | Machine Learning ...Simplilearn
 
K mean-clustering
K mean-clusteringK mean-clustering
K mean-clusteringPVP College
 
The International Journal of Engineering and Science (The IJES)
The International Journal of Engineering and Science (The IJES)The International Journal of Engineering and Science (The IJES)
The International Journal of Engineering and Science (The IJES)theijes
 
8.clustering algorithm.k means.em algorithm
8.clustering algorithm.k means.em algorithm8.clustering algorithm.k means.em algorithm
8.clustering algorithm.k means.em algorithmLaura Petrosanu
 
Optimising Data Using K-Means Clustering Algorithm
Optimising Data Using K-Means Clustering AlgorithmOptimising Data Using K-Means Clustering Algorithm
Optimising Data Using K-Means Clustering AlgorithmIJERA Editor
 
k-mean-clustering.ppt
k-mean-clustering.pptk-mean-clustering.ppt
k-mean-clustering.pptRanimeLoutar
 
k-mean-Clustering impact on AI using DSS
k-mean-Clustering impact on AI using DSSk-mean-Clustering impact on AI using DSS
k-mean-Clustering impact on AI using DSSMarkNaguibElAbd
 
K means Clustering - algorithm to cluster n objects
K means Clustering - algorithm to cluster n objectsK means Clustering - algorithm to cluster n objects
K means Clustering - algorithm to cluster n objectsVoidVampire
 
Parametric Comparison of K-means and Adaptive K-means Clustering Performance ...
Parametric Comparison of K-means and Adaptive K-means Clustering Performance ...Parametric Comparison of K-means and Adaptive K-means Clustering Performance ...
Parametric Comparison of K-means and Adaptive K-means Clustering Performance ...IJECEIAES
 
Chapter 11. Cluster Analysis Advanced Methods.ppt
Chapter 11. Cluster Analysis Advanced Methods.pptChapter 11. Cluster Analysis Advanced Methods.ppt
Chapter 11. Cluster Analysis Advanced Methods.pptSubrata Kumer Paul
 
CLUSTER ANALYSIS ALGORITHMS.pptx
CLUSTER ANALYSIS ALGORITHMS.pptxCLUSTER ANALYSIS ALGORITHMS.pptx
CLUSTER ANALYSIS ALGORITHMS.pptxShwetapadmaBabu1
 

Semelhante a Enhance The K Means Algorithm On Spatial Dataset (20)

Slide-TIF311-DM-10-11.ppt
Slide-TIF311-DM-10-11.pptSlide-TIF311-DM-10-11.ppt
Slide-TIF311-DM-10-11.ppt
 
Slide-TIF311-DM-10-11.ppt
Slide-TIF311-DM-10-11.pptSlide-TIF311-DM-10-11.ppt
Slide-TIF311-DM-10-11.ppt
 
Lecture_3_k-mean-clustering.ppt
Lecture_3_k-mean-clustering.pptLecture_3_k-mean-clustering.ppt
Lecture_3_k-mean-clustering.ppt
 
K means clustering
K means clusteringK means clustering
K means clustering
 
AI-Lec20 Clustering I - Kmean.pptx
AI-Lec20 Clustering I - Kmean.pptxAI-Lec20 Clustering I - Kmean.pptx
AI-Lec20 Clustering I - Kmean.pptx
 
K Means Clustering Algorithm | K Means Clustering Example | Machine Learning ...
K Means Clustering Algorithm | K Means Clustering Example | Machine Learning ...K Means Clustering Algorithm | K Means Clustering Example | Machine Learning ...
K Means Clustering Algorithm | K Means Clustering Example | Machine Learning ...
 
K mean-clustering
K mean-clusteringK mean-clustering
K mean-clustering
 
The International Journal of Engineering and Science (The IJES)
The International Journal of Engineering and Science (The IJES)The International Journal of Engineering and Science (The IJES)
The International Journal of Engineering and Science (The IJES)
 
8.clustering algorithm.k means.em algorithm
8.clustering algorithm.k means.em algorithm8.clustering algorithm.k means.em algorithm
8.clustering algorithm.k means.em algorithm
 
Data analysis of weather forecasting
Data analysis of weather forecastingData analysis of weather forecasting
Data analysis of weather forecasting
 
Optimising Data Using K-Means Clustering Algorithm
Optimising Data Using K-Means Clustering AlgorithmOptimising Data Using K-Means Clustering Algorithm
Optimising Data Using K-Means Clustering Algorithm
 
k-mean-clustering.ppt
k-mean-clustering.pptk-mean-clustering.ppt
k-mean-clustering.ppt
 
k-mean-Clustering impact on AI using DSS
k-mean-Clustering impact on AI using DSSk-mean-Clustering impact on AI using DSS
k-mean-Clustering impact on AI using DSS
 
K Means Clustering in ML.pptx
K Means Clustering in ML.pptxK Means Clustering in ML.pptx
K Means Clustering in ML.pptx
 
Clustering
ClusteringClustering
Clustering
 
Lect4
Lect4Lect4
Lect4
 
K means Clustering - algorithm to cluster n objects
K means Clustering - algorithm to cluster n objectsK means Clustering - algorithm to cluster n objects
K means Clustering - algorithm to cluster n objects
 
Parametric Comparison of K-means and Adaptive K-means Clustering Performance ...
Parametric Comparison of K-means and Adaptive K-means Clustering Performance ...Parametric Comparison of K-means and Adaptive K-means Clustering Performance ...
Parametric Comparison of K-means and Adaptive K-means Clustering Performance ...
 
Chapter 11. Cluster Analysis Advanced Methods.ppt
Chapter 11. Cluster Analysis Advanced Methods.pptChapter 11. Cluster Analysis Advanced Methods.ppt
Chapter 11. Cluster Analysis Advanced Methods.ppt
 
CLUSTER ANALYSIS ALGORITHMS.pptx
CLUSTER ANALYSIS ALGORITHMS.pptxCLUSTER ANALYSIS ALGORITHMS.pptx
CLUSTER ANALYSIS ALGORITHMS.pptx
 

Enhance The K Means Algorithm On Spatial Dataset

  • 1. ENHANCED K-MEANS ALGORITHM ON SPATIAL DATASET
  • 2.
  • 3.
  • 4.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.  
  • 19.
  • 20.
  • 21.  
  • 22.
  • 23.
  • 24.
  • 25.
  • 27. For each data point, we can keep the distance to the nearest cluster. This saves the time required to compute distances to k −1 cluster centers . If (New distance <= Previous distance) { The point stays in its cluster. }else { Implement K-Means functionality }
  • 28.  
  • 29. FUNCTION “ DISTANCE” keep the number of the closest cluster and the distance to the closest cluster Function distance () //assign each point to its nearest cluster 1 For i =1 to n 2 For j =1 to k 3 Compute squared Euclidean distance d 2( xi , mj ); 4 endfor 5 Find the closest centroid mj to xi ; 6 mj = mj + xi ; nj=nj +1; 7 MSE=MSE + d 2( xi , mj ); 8 Clusterid [ i ] = number of the closest centroid; 9 Pointdis [ i ]=Euclidean distance to the closest centroid; 10 endfor 11 For j =1 to k 12 mj=mj / nj ; 13 endfor
  • 30. FUNCTION “DISTANCE _ NEW” No need to compute the distances to the other k −1 centers Function distance _ new () //assign each point to its nearest cluster 1 For i =1 to n Compute squared Euclidean distance d 2( xi , Clusterid [ i ]); If ( d 2( xi , Clusterid [ i ])<= Pointdis [ i ]) Point stay in its cluster; 2 Else 3 For j =1 to k 4 Compute squared Euclidean distance d 2( xi , mj ); 5 endfor 6 Find the closest centroid mj to xi ; 7 mj = mj + xi ; nj = nj +1; 8 MSE = MSE + d 2( xi , mj ); 9 Clustered [ i ]=number of the closest centroid; 10 Pointdis [ i ]=Euclidean distance to the closest centroid; 11 endfor 12 For j =1 to k 13 mj=mj / nj ; 14 endfor
  • 31.
  • 32.
  • 33.