SlideShare una empresa de Scribd logo
1 de 30
Descargar para leer sin conexión
Summer School
“Achievements and Applications of Contemporary Informatics,
         Mathematics and Physics” (AACIMP 2011)
              August 8-20, 2011, Kiev, Ukraine




          Density Based Clustering

                                 Erik Kropat

                     University of the Bundeswehr Munich
                      Institute for Theoretical Computer Science,
                        Mathematics and Operations Research
                                Neubiberg, Germany
DBSCAN
Density based spatial clustering of applications with noise




                                                              noise




      arbitrarily shaped clusters
DBSCAN

DBSCAN is one of the most cited clustering algorithms in the literature.

Features
− Spatial data
     geomarketing, tomography, satellite images

− Discovery of clusters with arbitrary shape
     spherical, drawn-out, linear, elongated

− Good efficiency on large databases
     parallel programming

− Only two parameters required
− No prior knowledge of the number of clusters required.
DBSCAN

Idea
− Clusters have a high density of points.
− In the area of noise the density is lower
  than the density in any of the clusters.


Goal
− Formalize the notions of clusters and noise.
DBSCAN

Naïve approach
For each point in a cluster there are at least a minimum number (MinPts)
of points in an Eps-neighborhood of that point.




                                       cluster
Neighborhood of a Point

 Eps-neighborhood of a point p

   NEps(p) = { q ∈ D | dist (p, q) ≤ Eps }




                                     Eps

                                       p
DBSCAN ‒ Data

Problem

• In each cluster there are two kinds of points:

                                                                    cluster
     ̶ points inside the cluster (core points)
     ̶ points on the border      (border points)



An Eps-neighborhood of a border point contains significantly less points than
an Eps-neighborhood of a core point.
Better idea
For every point p in a cluster C there is a point q ∈ C,
so that
(1) p is inside of the Eps-neighborhood of q               border points are connected to core points
and
(2) NEps(q) contains at least MinPts points.               core points = high density




                                               p

                                                   q
Definition
A point p is directly density-reachable from a point q
with regard to the parameters Eps and MinPts, if
  1) p ∈ NEps(q)                (reachability)
  2) | NEps(q) | ≥ MinPts       (core point condition)




                     p

                                            MinPts = 5
                            q
                                            | NEps(q) | = 6 ≥ 5 = MinPts (core point condition)
Remark
Directly density-reachable is symmetric for pairs of core points.
It is not symmetric if one core point and one border point are involved.



                                             Parameter: MinPts = 5

                   p                         p directly density reachable from q
                                              p ∈ NEps(q)
                          q
                                              | NEps(q) | = 6 ≥ 5 = MinPts   (core point condition)


                                             q not directly density reachable from p
                                              | NEps (p) | = 4 < 5 = MinPts (core point condition)
Definition
A point p is density-reachable from a point q
with regard to the parameters Eps and MinPts
if there is a chain of points p1, p2, . . . ,ps with p1 = q and ps = p
such that pi+1 is directly density-reachable from pi for all 1 < i < s-1.




                             p
                                  p1            MinPts = 5
                                                | NEps(q) | = 5 = MinPts     (core point condition)
                                       q
                                                | NEps(p1) | = 6 ≥ 5 = MinPts (core point condition)
Definition (density-connected)
A point p is density-connected to a point q
with regard to the parameters Eps and MinPts
if there is a point v such that both p and q are density-reachable from v.


                   p

                                                        MinPts = 5

                           v


                                 q




Remark: Density-connectivity is a symmetric relation.
Definition (cluster)
A cluster with regard to the parameters Eps and MinPts
is a non-empty subset C of the database D with

  1) For all p, q ∈ D:                                    (Maximality)
      If p ∈ C      and q is density-reachable from p
      with regard to the parameters Eps and MinPts,
      then q ∈ C.

  2) For all p, q ∈ C:                                   (Connectivity)
      The point p is density-connected to q
      with regard to the parameters Eps and MinPts.
Definition (noise)
Let C1,...,Ck be the clusters of the database D
with regard to the parameters Eps i and MinPts I (i=1,...,k).

The set of points in the database D not belonging to any cluster C1,...,Ck
is called noise:

      Noise = { p ∈ D | p ∉ Ci for all i = 1,...,k}




                                                                 noise
Two-Step Approach

If the parameters Eps and MinPts are given,
a cluster can be discovered in a two-step approach:

1) Choose an arbitrary point v from the database
   satisfying the core point condition as a seed.

2) Retrieve all points that are density-reachable from the seed
   obtaining the cluster containing the seed.
DBSCAN (algorithm)

(1) Start with an arbitrary point p from the database and
    retrieve all points density-reachable from p
    with regard to Eps and MinPts.

(2) If p is a core point, the procedure yields a cluster
    with regard to Eps and MinPts
    and the point is classified.

(3) If p is a border point, no points are density-reachable from p
    and DBSCAN visits the next unclassified point in the database.
Algorithm: DBSCAN
INPUT:      Database SetOfPoints, Eps, MinPts
OUTPUT: Clusters, region of noise

(1) ClusterID := nextID(NOISE);
(2) Foreach p ∈ SetOfPoints do
(3)       if p.classifiedAs == UNCLASSIFIED then
(4)               if ExpandCluster(SetOfPoints, p, ClusterID, Eps, MinPts) then
(5)                  ClusterID++;
(6)               endif
(7)       endif
(8) endforeach
SetOfPoints = the database or   a discovered cluster from a previous run.
Function: ExpandCluster

INPUT:     SetOfPoints, p, ClusterID, Eps, MinPts
OUTPUT: True, if p is a core point; False, else.

(1) seeds = NEps(p);
(2) if seeds.size < MinPts then            // no core point
(3)      p.classifiedAs = NOISE;
(4)      return FALSE;
(5) else                                   // all points in seeds are density-reachable from p
(6)      foreach q ∈ seeds do
(7)           q.classifiedAs = ClusterID
(8)      endforeach
Function: ExpandCluster                      (continued)
(9)        seeds = seeds  {p};
(10)       while seeds ≠ ∅ do
(11)             currentP = seeds.first();
(12)             result = NEps(currentP);
(13)             if result.size ≥ MinPts then
(14)                      foreach resultP ∈ result and
                               resultP.classifiedAs ∈ {UNCLASSIFIED, NOISE} do
(15)                                             if resultP.classifiedAs == UNCLASSIFIED then
(16)                                                     seeds = seeds ∪ {resultP};
(17)                                             endif
(18)                                             resultP.classifiedAs = ClusterID;
(19)                      endforeach
(20)             endif
(21)             seeds = seeds  {currentP};
(22)       endwhile
(23)       return TRUE;
(24)   endif

Source: A. Naprienko: Dichtebasierte Verfahren der Clusteranalyse raumbezogener Daten am Beispiel von DBSCAN und Fuzzy-DBSCAN.
        Universität der Bundeswehr München, student’s project, WT2011.
Density Based Clustering
 ‒ The Parameters Eps and MinPts ‒
Determining the parameters Eps and MinPts
The parameters Eps and MinPts can be determined by a heuristic.

Observation
• For points in a cluster, their k-th nearest neighbors are at roughly the same distance.
• Noise points have the k-th nearest neighbor at farther distance.




⇒    Plot sorted distance of every point to its k-th nearest neighbor.
Determining the parameters Eps and MinPts

Procedure
• Define a function k-dist from the database to the real numbers,
  mapping each point to the distance from its k-th nearest neighbor.

• Sort the points of the database in descending order of their k-dist values.

                   k-dist




                                       database
Determining the parameters Eps and MinPts

Procedure
• Choose an arbitrary point p
        set Eps = k-dist(p)
        set MinPts = k.
• All points with an equal or smaller k-dist value will be cluster points


                   k-dist




                                      p
                              noise          cluster points
Determining the parameters Eps and MinPts



Idea: Use the point density of the least dense cluster in the data set as parameters
Determining the parameters Eps and MinPts


• Find threshold point with the maximal k-dist value in the “thinnest cluster” of D
• Set parameters     Eps = k-dist(p)      and   MinPts = k.




                                    Eps




                            noise               cluster 1     cluster 2
Density Based Clustering
       ‒ Applications ‒
Automatic border detection in dermoscopy images




Sample images showing assessments of the dermatologist (red), automated frameworks DBSCAN (blue) and FCM (green).
Kockara et al. BMC Bioinformatics 2010 11(Suppl 6):S26 doi:10.1186/1471-2105-11-S6-S26
Literature
• M. Ester, H.P. Kriegel, J. Sander, X. Xu
  A density-based algorithm for discovering clusters in large spatial
  databases with noise.
  Proceedings of 2nd International Conference on Knowledge Discovery
  and Data Mining (KDD96).

• A. Naprienko
  Dichtebasierte Verfahren der Clusteranalyse raumbezogener Daten
  am Beispiel von DBSCAN und Fuzzy-DBSCAN.
  Universität der Bundeswehr München, student’s project, WT2011.

• J. Sander, M. Ester, H.P. Kriegel, X. Xu
  Density-based clustering in spatial databases: the algorithm GDBSCAN
  and its applications.
  Data Mining and Knowledge Discovery, Springer, Berlin, 2 (2): 169–194.
Literature
• J.N Dharwa, A.R. Patel
  A Data Mining with Hybrid Approach Based Transaction Risk Score
  Generation Model (TRSGM) for Fraud Detection of Online Financial Transaction.
  Proceedings of 2nd International Conference on Knowledge Discovery and
  Data Mining (KDD96). International Journal of Computer Applications, Vol 16, No. 1, 2011.
Thank you very much!

Más contenido relacionado

La actualidad más candente

Data Mining: clustering and analysis
Data Mining: clustering and analysisData Mining: clustering and analysis
Data Mining: clustering and analysisDataminingTools Inc
 
Dimensionality Reduction
Dimensionality ReductionDimensionality Reduction
Dimensionality Reductionmrizwan969
 
3.2 partitioning methods
3.2 partitioning methods3.2 partitioning methods
3.2 partitioning methodsKrish_ver2
 
Decision trees in Machine Learning
Decision trees in Machine Learning Decision trees in Machine Learning
Decision trees in Machine Learning Mohammad Junaid Khan
 
K means clustering
K means clusteringK means clustering
K means clusteringkeshav goyal
 
Linear models for classification
Linear models for classificationLinear models for classification
Linear models for classificationSung Yub Kim
 
DBSCAN (2014_11_25 06_21_12 UTC)
DBSCAN (2014_11_25 06_21_12 UTC)DBSCAN (2014_11_25 06_21_12 UTC)
DBSCAN (2014_11_25 06_21_12 UTC)Cory Cook
 
Unsupervised learning (clustering)
Unsupervised learning (clustering)Unsupervised learning (clustering)
Unsupervised learning (clustering)Pravinkumar Landge
 
3.4 density and grid methods
3.4 density and grid methods3.4 density and grid methods
3.4 density and grid methodsKrish_ver2
 
Support Vector Machines for Classification
Support Vector Machines for ClassificationSupport Vector Machines for Classification
Support Vector Machines for ClassificationPrakash Pimpale
 
Classification Based Machine Learning Algorithms
Classification Based Machine Learning AlgorithmsClassification Based Machine Learning Algorithms
Classification Based Machine Learning AlgorithmsMd. Main Uddin Rony
 
Machine Learning with Decision trees
Machine Learning with Decision treesMachine Learning with Decision trees
Machine Learning with Decision treesKnoldus Inc.
 
Ensemble methods in machine learning
Ensemble methods in machine learningEnsemble methods in machine learning
Ensemble methods in machine learningSANTHOSH RAJA M G
 
Clustering in data Mining (Data Mining)
Clustering in data Mining (Data Mining)Clustering in data Mining (Data Mining)
Clustering in data Mining (Data Mining)Mustafa Sherazi
 
Decision Trees
Decision TreesDecision Trees
Decision TreesStudent
 

La actualidad más candente (20)

Data Mining: clustering and analysis
Data Mining: clustering and analysisData Mining: clustering and analysis
Data Mining: clustering and analysis
 
Dimensionality Reduction
Dimensionality ReductionDimensionality Reduction
Dimensionality Reduction
 
Db Scan
Db ScanDb Scan
Db Scan
 
3.2 partitioning methods
3.2 partitioning methods3.2 partitioning methods
3.2 partitioning methods
 
Cluster analysis
Cluster analysisCluster analysis
Cluster analysis
 
Decision trees in Machine Learning
Decision trees in Machine Learning Decision trees in Machine Learning
Decision trees in Machine Learning
 
K means clustering
K means clusteringK means clustering
K means clustering
 
Linear models for classification
Linear models for classificationLinear models for classification
Linear models for classification
 
DBSCAN (2014_11_25 06_21_12 UTC)
DBSCAN (2014_11_25 06_21_12 UTC)DBSCAN (2014_11_25 06_21_12 UTC)
DBSCAN (2014_11_25 06_21_12 UTC)
 
Unsupervised learning (clustering)
Unsupervised learning (clustering)Unsupervised learning (clustering)
Unsupervised learning (clustering)
 
Fuzzy Clustering(C-means, K-means)
Fuzzy Clustering(C-means, K-means)Fuzzy Clustering(C-means, K-means)
Fuzzy Clustering(C-means, K-means)
 
3.4 density and grid methods
3.4 density and grid methods3.4 density and grid methods
3.4 density and grid methods
 
Support Vector Machines for Classification
Support Vector Machines for ClassificationSupport Vector Machines for Classification
Support Vector Machines for Classification
 
Classification Based Machine Learning Algorithms
Classification Based Machine Learning AlgorithmsClassification Based Machine Learning Algorithms
Classification Based Machine Learning Algorithms
 
Machine Learning with Decision trees
Machine Learning with Decision treesMachine Learning with Decision trees
Machine Learning with Decision trees
 
Ensemble methods in machine learning
Ensemble methods in machine learningEnsemble methods in machine learning
Ensemble methods in machine learning
 
Presentation on K-Means Clustering
Presentation on K-Means ClusteringPresentation on K-Means Clustering
Presentation on K-Means Clustering
 
Clustering in data Mining (Data Mining)
Clustering in data Mining (Data Mining)Clustering in data Mining (Data Mining)
Clustering in data Mining (Data Mining)
 
Hierarchical Clustering
Hierarchical ClusteringHierarchical Clustering
Hierarchical Clustering
 
Decision Trees
Decision TreesDecision Trees
Decision Trees
 

Destacado

Destacado (16)

Clique
Clique Clique
Clique
 
Difference between molap, rolap and holap in ssas
Difference between molap, rolap and holap  in ssasDifference between molap, rolap and holap  in ssas
Difference between molap, rolap and holap in ssas
 
HR FUNCTIONS
HR FUNCTIONSHR FUNCTIONS
HR FUNCTIONS
 
Database aggregation using metadata
Database aggregation using metadataDatabase aggregation using metadata
Database aggregation using metadata
 
Data preprocessing
Data preprocessingData preprocessing
Data preprocessing
 
Cure, Clustering Algorithm
Cure, Clustering AlgorithmCure, Clustering Algorithm
Cure, Clustering Algorithm
 
1.7 data reduction
1.7 data reduction1.7 data reduction
1.7 data reduction
 
Application of data mining
Application of data miningApplication of data mining
Application of data mining
 
Overview of human resource management system & function
Overview of human resource management  system & functionOverview of human resource management  system & function
Overview of human resource management system & function
 
Apriori Algorithm
Apriori AlgorithmApriori Algorithm
Apriori Algorithm
 
Role of HR Manager
Role of HR ManagerRole of HR Manager
Role of HR Manager
 
hrm functions
hrm functionshrm functions
hrm functions
 
Functions and Activities of HRM
Functions and Activities of HRMFunctions and Activities of HRM
Functions and Activities of HRM
 
OLAP
OLAPOLAP
OLAP
 
Data Mining: Association Rules Basics
Data Mining: Association Rules BasicsData Mining: Association Rules Basics
Data Mining: Association Rules Basics
 
Hr functions and strategy ppt
Hr functions and strategy pptHr functions and strategy ppt
Hr functions and strategy ppt
 

Similar a Density Based Clustering

Clustering: Large Databases in data mining
Clustering: Large Databases in data miningClustering: Large Databases in data mining
Clustering: Large Databases in data miningZHAO Sam
 
density based method and expectation maximization
density based method and expectation maximizationdensity based method and expectation maximization
density based method and expectation maximizationSiva Priya
 
Massively Parallel K-Nearest Neighbor Computation on Distributed Architectures
Massively Parallel K-Nearest Neighbor Computation on Distributed Architectures Massively Parallel K-Nearest Neighbor Computation on Distributed Architectures
Massively Parallel K-Nearest Neighbor Computation on Distributed Architectures Intel® Software
 
Graph and Density Based Clustering
Graph and Density Based ClusteringGraph and Density Based Clustering
Graph and Density Based ClusteringAyushAnand105
 
Kernel estimation(ref)
Kernel estimation(ref)Kernel estimation(ref)
Kernel estimation(ref)Zahra Amini
 
Core–periphery detection in networks with nonlinear Perron eigenvectors
Core–periphery detection in networks with nonlinear Perron eigenvectorsCore–periphery detection in networks with nonlinear Perron eigenvectors
Core–periphery detection in networks with nonlinear Perron eigenvectorsFrancesco Tudisco
 
Parallel kmeans clustering in Erlang
Parallel kmeans clustering in ErlangParallel kmeans clustering in Erlang
Parallel kmeans clustering in ErlangChinmay Patel
 
Neural Network
Neural NetworkNeural Network
Neural Networksamisounda
 
Data Mining: Concepts and techniques: Chapter 11,Review: Basic Cluster Analys...
Data Mining: Concepts and techniques: Chapter 11,Review: Basic Cluster Analys...Data Mining: Concepts and techniques: Chapter 11,Review: Basic Cluster Analys...
Data Mining: Concepts and techniques: Chapter 11,Review: Basic Cluster Analys...Salah Amean
 
An improved spfa algorithm for single source shortest path problem using forw...
An improved spfa algorithm for single source shortest path problem using forw...An improved spfa algorithm for single source shortest path problem using forw...
An improved spfa algorithm for single source shortest path problem using forw...IJMIT JOURNAL
 
Enhance The K Means Algorithm On Spatial Dataset
Enhance The K Means Algorithm On Spatial DatasetEnhance The K Means Algorithm On Spatial Dataset
Enhance The K Means Algorithm On Spatial DatasetAlaaZ
 
KNN.pptx
KNN.pptxKNN.pptx
KNN.pptxdfgd7
 
An improved spfa algorithm for single source shortest path problem using forw...
An improved spfa algorithm for single source shortest path problem using forw...An improved spfa algorithm for single source shortest path problem using forw...
An improved spfa algorithm for single source shortest path problem using forw...IJMIT JOURNAL
 
International Journal of Managing Information Technology (IJMIT)
International Journal of Managing Information Technology (IJMIT)International Journal of Managing Information Technology (IJMIT)
International Journal of Managing Information Technology (IJMIT)IJMIT JOURNAL
 
2012 mdsp pr08 nonparametric approach
2012 mdsp pr08 nonparametric approach2012 mdsp pr08 nonparametric approach
2012 mdsp pr08 nonparametric approachnozomuhamada
 

Similar a Density Based Clustering (20)

DBSCAN
DBSCANDBSCAN
DBSCAN
 
Clustering: Large Databases in data mining
Clustering: Large Databases in data miningClustering: Large Databases in data mining
Clustering: Large Databases in data mining
 
density based method and expectation maximization
density based method and expectation maximizationdensity based method and expectation maximization
density based method and expectation maximization
 
Dbscan
DbscanDbscan
Dbscan
 
Massively Parallel K-Nearest Neighbor Computation on Distributed Architectures
Massively Parallel K-Nearest Neighbor Computation on Distributed Architectures Massively Parallel K-Nearest Neighbor Computation on Distributed Architectures
Massively Parallel K-Nearest Neighbor Computation on Distributed Architectures
 
Graph and Density Based Clustering
Graph and Density Based ClusteringGraph and Density Based Clustering
Graph and Density Based Clustering
 
Kernel estimation(ref)
Kernel estimation(ref)Kernel estimation(ref)
Kernel estimation(ref)
 
Core–periphery detection in networks with nonlinear Perron eigenvectors
Core–periphery detection in networks with nonlinear Perron eigenvectorsCore–periphery detection in networks with nonlinear Perron eigenvectors
Core–periphery detection in networks with nonlinear Perron eigenvectors
 
Approximate Tree Kernels
Approximate Tree KernelsApproximate Tree Kernels
Approximate Tree Kernels
 
Parallel kmeans clustering in Erlang
Parallel kmeans clustering in ErlangParallel kmeans clustering in Erlang
Parallel kmeans clustering in Erlang
 
Lecture5.pptx
Lecture5.pptxLecture5.pptx
Lecture5.pptx
 
Neural Network
Neural NetworkNeural Network
Neural Network
 
Data Mining: Concepts and techniques: Chapter 11,Review: Basic Cluster Analys...
Data Mining: Concepts and techniques: Chapter 11,Review: Basic Cluster Analys...Data Mining: Concepts and techniques: Chapter 11,Review: Basic Cluster Analys...
Data Mining: Concepts and techniques: Chapter 11,Review: Basic Cluster Analys...
 
An improved spfa algorithm for single source shortest path problem using forw...
An improved spfa algorithm for single source shortest path problem using forw...An improved spfa algorithm for single source shortest path problem using forw...
An improved spfa algorithm for single source shortest path problem using forw...
 
Enhance The K Means Algorithm On Spatial Dataset
Enhance The K Means Algorithm On Spatial DatasetEnhance The K Means Algorithm On Spatial Dataset
Enhance The K Means Algorithm On Spatial Dataset
 
KNN.pptx
KNN.pptxKNN.pptx
KNN.pptx
 
KNN.pptx
KNN.pptxKNN.pptx
KNN.pptx
 
An improved spfa algorithm for single source shortest path problem using forw...
An improved spfa algorithm for single source shortest path problem using forw...An improved spfa algorithm for single source shortest path problem using forw...
An improved spfa algorithm for single source shortest path problem using forw...
 
International Journal of Managing Information Technology (IJMIT)
International Journal of Managing Information Technology (IJMIT)International Journal of Managing Information Technology (IJMIT)
International Journal of Managing Information Technology (IJMIT)
 
2012 mdsp pr08 nonparametric approach
2012 mdsp pr08 nonparametric approach2012 mdsp pr08 nonparametric approach
2012 mdsp pr08 nonparametric approach
 

Más de SSA KPI

Germany presentation
Germany presentationGermany presentation
Germany presentationSSA KPI
 
Grand challenges in energy
Grand challenges in energyGrand challenges in energy
Grand challenges in energySSA KPI
 
Engineering role in sustainability
Engineering role in sustainabilityEngineering role in sustainability
Engineering role in sustainabilitySSA KPI
 
Consensus and interaction on a long term strategy for sustainable development
Consensus and interaction on a long term strategy for sustainable developmentConsensus and interaction on a long term strategy for sustainable development
Consensus and interaction on a long term strategy for sustainable developmentSSA KPI
 
Competences in sustainability in engineering education
Competences in sustainability in engineering educationCompetences in sustainability in engineering education
Competences in sustainability in engineering educationSSA KPI
 
Introducatio SD for enginers
Introducatio SD for enginersIntroducatio SD for enginers
Introducatio SD for enginersSSA KPI
 
DAAD-10.11.2011
DAAD-10.11.2011DAAD-10.11.2011
DAAD-10.11.2011SSA KPI
 
Talking with money
Talking with moneyTalking with money
Talking with moneySSA KPI
 
'Green' startup investment
'Green' startup investment'Green' startup investment
'Green' startup investmentSSA KPI
 
From Huygens odd sympathy to the energy Huygens' extraction from the sea waves
From Huygens odd sympathy to the energy Huygens' extraction from the sea wavesFrom Huygens odd sympathy to the energy Huygens' extraction from the sea waves
From Huygens odd sympathy to the energy Huygens' extraction from the sea wavesSSA KPI
 
Dynamics of dice games
Dynamics of dice gamesDynamics of dice games
Dynamics of dice gamesSSA KPI
 
Energy Security Costs
Energy Security CostsEnergy Security Costs
Energy Security CostsSSA KPI
 
Naturally Occurring Radioactivity (NOR) in natural and anthropic environments
Naturally Occurring Radioactivity (NOR) in natural and anthropic environmentsNaturally Occurring Radioactivity (NOR) in natural and anthropic environments
Naturally Occurring Radioactivity (NOR) in natural and anthropic environmentsSSA KPI
 
Advanced energy technology for sustainable development. Part 5
Advanced energy technology for sustainable development. Part 5Advanced energy technology for sustainable development. Part 5
Advanced energy technology for sustainable development. Part 5SSA KPI
 
Advanced energy technology for sustainable development. Part 4
Advanced energy technology for sustainable development. Part 4Advanced energy technology for sustainable development. Part 4
Advanced energy technology for sustainable development. Part 4SSA KPI
 
Advanced energy technology for sustainable development. Part 3
Advanced energy technology for sustainable development. Part 3Advanced energy technology for sustainable development. Part 3
Advanced energy technology for sustainable development. Part 3SSA KPI
 
Advanced energy technology for sustainable development. Part 2
Advanced energy technology for sustainable development. Part 2Advanced energy technology for sustainable development. Part 2
Advanced energy technology for sustainable development. Part 2SSA KPI
 
Advanced energy technology for sustainable development. Part 1
Advanced energy technology for sustainable development. Part 1Advanced energy technology for sustainable development. Part 1
Advanced energy technology for sustainable development. Part 1SSA KPI
 
Fluorescent proteins in current biology
Fluorescent proteins in current biologyFluorescent proteins in current biology
Fluorescent proteins in current biologySSA KPI
 
Neurotransmitter systems of the brain and their functions
Neurotransmitter systems of the brain and their functionsNeurotransmitter systems of the brain and their functions
Neurotransmitter systems of the brain and their functionsSSA KPI
 

Más de SSA KPI (20)

Germany presentation
Germany presentationGermany presentation
Germany presentation
 
Grand challenges in energy
Grand challenges in energyGrand challenges in energy
Grand challenges in energy
 
Engineering role in sustainability
Engineering role in sustainabilityEngineering role in sustainability
Engineering role in sustainability
 
Consensus and interaction on a long term strategy for sustainable development
Consensus and interaction on a long term strategy for sustainable developmentConsensus and interaction on a long term strategy for sustainable development
Consensus and interaction on a long term strategy for sustainable development
 
Competences in sustainability in engineering education
Competences in sustainability in engineering educationCompetences in sustainability in engineering education
Competences in sustainability in engineering education
 
Introducatio SD for enginers
Introducatio SD for enginersIntroducatio SD for enginers
Introducatio SD for enginers
 
DAAD-10.11.2011
DAAD-10.11.2011DAAD-10.11.2011
DAAD-10.11.2011
 
Talking with money
Talking with moneyTalking with money
Talking with money
 
'Green' startup investment
'Green' startup investment'Green' startup investment
'Green' startup investment
 
From Huygens odd sympathy to the energy Huygens' extraction from the sea waves
From Huygens odd sympathy to the energy Huygens' extraction from the sea wavesFrom Huygens odd sympathy to the energy Huygens' extraction from the sea waves
From Huygens odd sympathy to the energy Huygens' extraction from the sea waves
 
Dynamics of dice games
Dynamics of dice gamesDynamics of dice games
Dynamics of dice games
 
Energy Security Costs
Energy Security CostsEnergy Security Costs
Energy Security Costs
 
Naturally Occurring Radioactivity (NOR) in natural and anthropic environments
Naturally Occurring Radioactivity (NOR) in natural and anthropic environmentsNaturally Occurring Radioactivity (NOR) in natural and anthropic environments
Naturally Occurring Radioactivity (NOR) in natural and anthropic environments
 
Advanced energy technology for sustainable development. Part 5
Advanced energy technology for sustainable development. Part 5Advanced energy technology for sustainable development. Part 5
Advanced energy technology for sustainable development. Part 5
 
Advanced energy technology for sustainable development. Part 4
Advanced energy technology for sustainable development. Part 4Advanced energy technology for sustainable development. Part 4
Advanced energy technology for sustainable development. Part 4
 
Advanced energy technology for sustainable development. Part 3
Advanced energy technology for sustainable development. Part 3Advanced energy technology for sustainable development. Part 3
Advanced energy technology for sustainable development. Part 3
 
Advanced energy technology for sustainable development. Part 2
Advanced energy technology for sustainable development. Part 2Advanced energy technology for sustainable development. Part 2
Advanced energy technology for sustainable development. Part 2
 
Advanced energy technology for sustainable development. Part 1
Advanced energy technology for sustainable development. Part 1Advanced energy technology for sustainable development. Part 1
Advanced energy technology for sustainable development. Part 1
 
Fluorescent proteins in current biology
Fluorescent proteins in current biologyFluorescent proteins in current biology
Fluorescent proteins in current biology
 
Neurotransmitter systems of the brain and their functions
Neurotransmitter systems of the brain and their functionsNeurotransmitter systems of the brain and their functions
Neurotransmitter systems of the brain and their functions
 

Último

Congestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationCongestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationdeepaannamalai16
 
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...DhatriParmar
 
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...DhatriParmar
 
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQ-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQuiz Club NITW
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxlancelewisportillo
 
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxGrade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxkarenfajardo43
 
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxBIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxSayali Powar
 
Expanded definition: technical and operational
Expanded definition: technical and operationalExpanded definition: technical and operational
Expanded definition: technical and operationalssuser3e220a
 
Mental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young mindsMental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young mindsPooky Knightsmith
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Association for Project Management
 
Multi Domain Alias In the Odoo 17 ERP Module
Multi Domain Alias In the Odoo 17 ERP ModuleMulti Domain Alias In the Odoo 17 ERP Module
Multi Domain Alias In the Odoo 17 ERP ModuleCeline George
 
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
Unraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptxUnraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptx
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptxDhatriParmar
 
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmStan Meyer
 
How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17Celine George
 
Using Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea DevelopmentUsing Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea Developmentchesterberbo7
 
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptxDIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptxMichelleTuguinay1
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptxmary850239
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4JOYLYNSAMANIEGO
 

Último (20)

Congestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationCongestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentation
 
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
 
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
 
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQ-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
 
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxGrade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
 
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxBIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
 
Expanded definition: technical and operational
Expanded definition: technical and operationalExpanded definition: technical and operational
Expanded definition: technical and operational
 
Mental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young mindsMental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young minds
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
 
Multi Domain Alias In the Odoo 17 ERP Module
Multi Domain Alias In the Odoo 17 ERP ModuleMulti Domain Alias In the Odoo 17 ERP Module
Multi Domain Alias In the Odoo 17 ERP Module
 
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
Unraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptxUnraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptx
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
 
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and Film
 
How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17
 
Using Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea DevelopmentUsing Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea Development
 
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptxDIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx
 
Paradigm shift in nursing research by RS MEHTA
Paradigm shift in nursing research by RS MEHTAParadigm shift in nursing research by RS MEHTA
Paradigm shift in nursing research by RS MEHTA
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4
 

Density Based Clustering

  • 1. Summer School “Achievements and Applications of Contemporary Informatics, Mathematics and Physics” (AACIMP 2011) August 8-20, 2011, Kiev, Ukraine Density Based Clustering Erik Kropat University of the Bundeswehr Munich Institute for Theoretical Computer Science, Mathematics and Operations Research Neubiberg, Germany
  • 2. DBSCAN Density based spatial clustering of applications with noise noise arbitrarily shaped clusters
  • 3. DBSCAN DBSCAN is one of the most cited clustering algorithms in the literature. Features − Spatial data geomarketing, tomography, satellite images − Discovery of clusters with arbitrary shape spherical, drawn-out, linear, elongated − Good efficiency on large databases parallel programming − Only two parameters required − No prior knowledge of the number of clusters required.
  • 4. DBSCAN Idea − Clusters have a high density of points. − In the area of noise the density is lower than the density in any of the clusters. Goal − Formalize the notions of clusters and noise.
  • 5. DBSCAN Naïve approach For each point in a cluster there are at least a minimum number (MinPts) of points in an Eps-neighborhood of that point. cluster
  • 6. Neighborhood of a Point Eps-neighborhood of a point p NEps(p) = { q ∈ D | dist (p, q) ≤ Eps } Eps p
  • 7. DBSCAN ‒ Data Problem • In each cluster there are two kinds of points: cluster ̶ points inside the cluster (core points) ̶ points on the border (border points) An Eps-neighborhood of a border point contains significantly less points than an Eps-neighborhood of a core point.
  • 8. Better idea For every point p in a cluster C there is a point q ∈ C, so that (1) p is inside of the Eps-neighborhood of q border points are connected to core points and (2) NEps(q) contains at least MinPts points. core points = high density p q
  • 9. Definition A point p is directly density-reachable from a point q with regard to the parameters Eps and MinPts, if 1) p ∈ NEps(q) (reachability) 2) | NEps(q) | ≥ MinPts (core point condition) p MinPts = 5 q | NEps(q) | = 6 ≥ 5 = MinPts (core point condition)
  • 10. Remark Directly density-reachable is symmetric for pairs of core points. It is not symmetric if one core point and one border point are involved. Parameter: MinPts = 5 p p directly density reachable from q p ∈ NEps(q) q | NEps(q) | = 6 ≥ 5 = MinPts (core point condition) q not directly density reachable from p | NEps (p) | = 4 < 5 = MinPts (core point condition)
  • 11. Definition A point p is density-reachable from a point q with regard to the parameters Eps and MinPts if there is a chain of points p1, p2, . . . ,ps with p1 = q and ps = p such that pi+1 is directly density-reachable from pi for all 1 < i < s-1. p p1 MinPts = 5 | NEps(q) | = 5 = MinPts (core point condition) q | NEps(p1) | = 6 ≥ 5 = MinPts (core point condition)
  • 12. Definition (density-connected) A point p is density-connected to a point q with regard to the parameters Eps and MinPts if there is a point v such that both p and q are density-reachable from v. p MinPts = 5 v q Remark: Density-connectivity is a symmetric relation.
  • 13. Definition (cluster) A cluster with regard to the parameters Eps and MinPts is a non-empty subset C of the database D with 1) For all p, q ∈ D: (Maximality) If p ∈ C and q is density-reachable from p with regard to the parameters Eps and MinPts, then q ∈ C. 2) For all p, q ∈ C: (Connectivity) The point p is density-connected to q with regard to the parameters Eps and MinPts.
  • 14. Definition (noise) Let C1,...,Ck be the clusters of the database D with regard to the parameters Eps i and MinPts I (i=1,...,k). The set of points in the database D not belonging to any cluster C1,...,Ck is called noise: Noise = { p ∈ D | p ∉ Ci for all i = 1,...,k} noise
  • 15. Two-Step Approach If the parameters Eps and MinPts are given, a cluster can be discovered in a two-step approach: 1) Choose an arbitrary point v from the database satisfying the core point condition as a seed. 2) Retrieve all points that are density-reachable from the seed obtaining the cluster containing the seed.
  • 16. DBSCAN (algorithm) (1) Start with an arbitrary point p from the database and retrieve all points density-reachable from p with regard to Eps and MinPts. (2) If p is a core point, the procedure yields a cluster with regard to Eps and MinPts and the point is classified. (3) If p is a border point, no points are density-reachable from p and DBSCAN visits the next unclassified point in the database.
  • 17. Algorithm: DBSCAN INPUT: Database SetOfPoints, Eps, MinPts OUTPUT: Clusters, region of noise (1) ClusterID := nextID(NOISE); (2) Foreach p ∈ SetOfPoints do (3) if p.classifiedAs == UNCLASSIFIED then (4) if ExpandCluster(SetOfPoints, p, ClusterID, Eps, MinPts) then (5) ClusterID++; (6) endif (7) endif (8) endforeach SetOfPoints = the database or a discovered cluster from a previous run.
  • 18. Function: ExpandCluster INPUT: SetOfPoints, p, ClusterID, Eps, MinPts OUTPUT: True, if p is a core point; False, else. (1) seeds = NEps(p); (2) if seeds.size < MinPts then // no core point (3) p.classifiedAs = NOISE; (4) return FALSE; (5) else // all points in seeds are density-reachable from p (6) foreach q ∈ seeds do (7) q.classifiedAs = ClusterID (8) endforeach
  • 19. Function: ExpandCluster (continued) (9) seeds = seeds {p}; (10) while seeds ≠ ∅ do (11) currentP = seeds.first(); (12) result = NEps(currentP); (13) if result.size ≥ MinPts then (14) foreach resultP ∈ result and resultP.classifiedAs ∈ {UNCLASSIFIED, NOISE} do (15) if resultP.classifiedAs == UNCLASSIFIED then (16) seeds = seeds ∪ {resultP}; (17) endif (18) resultP.classifiedAs = ClusterID; (19) endforeach (20) endif (21) seeds = seeds {currentP}; (22) endwhile (23) return TRUE; (24) endif Source: A. Naprienko: Dichtebasierte Verfahren der Clusteranalyse raumbezogener Daten am Beispiel von DBSCAN und Fuzzy-DBSCAN. Universität der Bundeswehr München, student’s project, WT2011.
  • 20. Density Based Clustering ‒ The Parameters Eps and MinPts ‒
  • 21. Determining the parameters Eps and MinPts The parameters Eps and MinPts can be determined by a heuristic. Observation • For points in a cluster, their k-th nearest neighbors are at roughly the same distance. • Noise points have the k-th nearest neighbor at farther distance. ⇒ Plot sorted distance of every point to its k-th nearest neighbor.
  • 22. Determining the parameters Eps and MinPts Procedure • Define a function k-dist from the database to the real numbers, mapping each point to the distance from its k-th nearest neighbor. • Sort the points of the database in descending order of their k-dist values. k-dist database
  • 23. Determining the parameters Eps and MinPts Procedure • Choose an arbitrary point p set Eps = k-dist(p) set MinPts = k. • All points with an equal or smaller k-dist value will be cluster points k-dist p noise cluster points
  • 24. Determining the parameters Eps and MinPts Idea: Use the point density of the least dense cluster in the data set as parameters
  • 25. Determining the parameters Eps and MinPts • Find threshold point with the maximal k-dist value in the “thinnest cluster” of D • Set parameters Eps = k-dist(p) and MinPts = k. Eps noise cluster 1 cluster 2
  • 26. Density Based Clustering ‒ Applications ‒
  • 27. Automatic border detection in dermoscopy images Sample images showing assessments of the dermatologist (red), automated frameworks DBSCAN (blue) and FCM (green). Kockara et al. BMC Bioinformatics 2010 11(Suppl 6):S26 doi:10.1186/1471-2105-11-S6-S26
  • 28. Literature • M. Ester, H.P. Kriegel, J. Sander, X. Xu A density-based algorithm for discovering clusters in large spatial databases with noise. Proceedings of 2nd International Conference on Knowledge Discovery and Data Mining (KDD96). • A. Naprienko Dichtebasierte Verfahren der Clusteranalyse raumbezogener Daten am Beispiel von DBSCAN und Fuzzy-DBSCAN. Universität der Bundeswehr München, student’s project, WT2011. • J. Sander, M. Ester, H.P. Kriegel, X. Xu Density-based clustering in spatial databases: the algorithm GDBSCAN and its applications. Data Mining and Knowledge Discovery, Springer, Berlin, 2 (2): 169–194.
  • 29. Literature • J.N Dharwa, A.R. Patel A Data Mining with Hybrid Approach Based Transaction Risk Score Generation Model (TRSGM) for Fraud Detection of Online Financial Transaction. Proceedings of 2nd International Conference on Knowledge Discovery and Data Mining (KDD96). International Journal of Computer Applications, Vol 16, No. 1, 2011.
  • 30. Thank you very much!