SlideShare uma empresa Scribd logo
1 de 30
Baixar para ler offline
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!

Mais conteúdo relacionado

Mais procurados

Random Forest Algorithm - Random Forest Explained | Random Forest In Machine ...
Random Forest Algorithm - Random Forest Explained | Random Forest In Machine ...Random Forest Algorithm - Random Forest Explained | Random Forest In Machine ...
Random Forest Algorithm - Random Forest Explained | Random Forest In Machine ...
Simplilearn
 

Mais procurados (20)

Clusters techniques
Clusters techniquesClusters techniques
Clusters techniques
 
Dbscan algorithom
Dbscan algorithomDbscan algorithom
Dbscan algorithom
 
Machine Learning with Decision trees
Machine Learning with Decision treesMachine Learning with Decision trees
Machine Learning with Decision trees
 
3.3 hierarchical methods
3.3 hierarchical methods3.3 hierarchical methods
3.3 hierarchical methods
 
Hierachical clustering
Hierachical clusteringHierachical clustering
Hierachical clustering
 
Decision Tree Learning
Decision Tree LearningDecision Tree Learning
Decision Tree Learning
 
Machine learning clustering
Machine learning clusteringMachine learning clustering
Machine learning clustering
 
Random Forest Algorithm - Random Forest Explained | Random Forest In Machine ...
Random Forest Algorithm - Random Forest Explained | Random Forest In Machine ...Random Forest Algorithm - Random Forest Explained | Random Forest In Machine ...
Random Forest Algorithm - Random Forest Explained | Random Forest In Machine ...
 
Density based clustering
Density based clusteringDensity based clustering
Density based clustering
 
Support Vector Machines ( SVM )
Support Vector Machines ( SVM ) Support Vector Machines ( SVM )
Support Vector Machines ( SVM )
 
Dbscan
DbscanDbscan
Dbscan
 
2.2 decision tree
2.2 decision tree2.2 decision tree
2.2 decision tree
 
Clustering
ClusteringClustering
Clustering
 
Hierarchical Clustering
Hierarchical ClusteringHierarchical Clustering
Hierarchical Clustering
 
Hierarchical clustering.pptx
Hierarchical clustering.pptxHierarchical clustering.pptx
Hierarchical clustering.pptx
 
K mean-clustering algorithm
K mean-clustering algorithmK mean-clustering algorithm
K mean-clustering algorithm
 
3. mining frequent patterns
3. mining frequent patterns3. mining frequent patterns
3. mining frequent patterns
 
3.5 model based clustering
3.5 model based clustering3.5 model based clustering
3.5 model based clustering
 
Decision trees in Machine Learning
Decision trees in Machine Learning Decision trees in Machine Learning
Decision trees in Machine Learning
 
K-Nearest Neighbor Classifier
K-Nearest Neighbor ClassifierK-Nearest Neighbor Classifier
K-Nearest Neighbor Classifier
 

Destaque

Hr functions and strategy ppt
Hr functions and strategy pptHr functions and strategy ppt
Hr functions and strategy ppt
LOLITA GANDIA
 

Destaque (17)

Db Scan
Db ScanDb Scan
Db Scan
 
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
 

Semelhante a Density Based Clustering

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
Francesco Tudisco
 
Neural Network
Neural NetworkNeural Network
Neural Network
samisounda
 
2012 mdsp pr08 nonparametric approach
2012 mdsp pr08 nonparametric approach2012 mdsp pr08 nonparametric approach
2012 mdsp pr08 nonparametric approach
nozomuhamada
 

Semelhante 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
 
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
 
PIMRC 2016 Presentation
PIMRC 2016 PresentationPIMRC 2016 Presentation
PIMRC 2016 Presentation
 

Mais de SSA KPI

Germany presentation
Germany presentationGermany presentation
Germany presentation
SSA KPI
 
Grand challenges in energy
Grand challenges in energyGrand challenges in energy
Grand challenges in energy
SSA KPI
 
Engineering role in sustainability
Engineering role in sustainabilityEngineering role in sustainability
Engineering role in sustainability
SSA 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 development
SSA KPI
 
Competences in sustainability in engineering education
Competences in sustainability in engineering educationCompetences in sustainability in engineering education
Competences in sustainability in engineering education
SSA KPI
 
Introducatio SD for enginers
Introducatio SD for enginersIntroducatio SD for enginers
Introducatio SD for enginers
SSA KPI
 

Mais 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

Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Último (20)

Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptx
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 

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!