FLAME clustering

From HandWiki
Revision as of 18:34, 8 February 2024 by JStaso (talk | contribs) (fixing)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Short description: Type of algorithm for data clustering


Fuzzy clustering by Local Approximation of MEmberships (FLAME) is a data clustering algorithm that defines clusters in the dense parts of a dataset and performs cluster assignment solely based on the neighborhood relationships among objects. The key feature of this algorithm is that the neighborhood relationships among neighboring objects in the feature space are used to constrain the memberships of neighboring objects in the fuzzy membership space.

Description of the FLAME algorithm

The FLAME algorithm is mainly divided into three steps:

  1. Extraction of the structure information from the dataset:
    1. Construct a neighborhood graph to connect each object to its K-Nearest Neighbors (KNN);
    2. Estimate a density for each object based on its proximities to its KNN;
    3. Objects are classified into 3 types:
      1. Cluster Supporting Object (CSO): object with density higher than all its neighbors;
      2. Cluster Outliers: object with density lower than all its neighbors, and lower than a predefined threshold;
      3. the rest.
  2. Local/Neighborhood approximation of fuzzy memberships:
    1. Initialization of fuzzy membership:
      1. Each CSO is assigned with fixed and full membership to itself to represent one cluster;
      2. All outliers are assigned with fixed and full membership to the outlier group;
      3. The rest are assigned with equal memberships to all clusters and the outlier group;
    2. Then the fuzzy memberships of all type 3 objects are updated by a converging iterative procedure called Local/Neighborhood Approximation of Fuzzy Memberships, in which the fuzzy membership of each object is updated by a linear combination of the fuzzy memberships of its nearest neighbors.
  3. Cluster construction from fuzzy memberships in two possible ways:
    1. One-to-one object-cluster assignment, to assign each object to the cluster in which it has the highest membership;
    2. One-to-multiple object-clusters assignment, to assign each object to the cluster in which it has a membership higher than a threshold.

The optimization problem in FLAME

The Local/Neighborhood Approximation of Fuzzy Memberships is a procedure to minimize the Local/Neighborhood Approximation Error (LAE/NAE) defined as the following:

[math]\displaystyle{ E(\{\boldsymbol{p}\})=\sum_{\boldsymbol{x}\in\boldsymbol{X}} \bigg\| \boldsymbol{p(x)}-\sum_{ \boldsymbol{y \in \mathcal{N}(x)} } w_{\boldsymbol{xy}} \boldsymbol{p(y)} \bigg\|^2 }[/math]

where [math]\displaystyle{ \boldsymbol{X} }[/math] is the set of all type 3 objects, [math]\displaystyle{ \boldsymbol{p(x)} }[/math] is the fuzzy membership vector of object [math]\displaystyle{ \boldsymbol{x} }[/math], [math]\displaystyle{ \mathcal{N}(x) }[/math] is the set of nearest neighbors of [math]\displaystyle{ \boldsymbol{x} }[/math], and [math]\displaystyle{ w_{\boldsymbol{xy}} }[/math] with [math]\displaystyle{ \sum_{\boldsymbol{y\in \mathcal{N}(x)}}w_{\boldsymbol{xy}}=1 }[/math] are the coefficients reflecting the relative proximities of the nearest neighbors.

The NAE can be minimized by solving the following linear equations with unique solution which is the unique global minimum of NAE with value zero:

[math]\displaystyle{ p_k(\boldsymbol{x})-\sum_{\boldsymbol{y\in \mathcal{N}(x)}} w_{ \boldsymbol{xy} } p_k(\boldsymbol{y}) = 0, \quad\forall{\boldsymbol{x}\in \boldsymbol{X} },\quad k=1,...,M }[/math]

where [math]\displaystyle{ M }[/math] is the number of CSOs plus one (for the outlier group). The following iterative procedure can be used to solve these linear equations:

[math]\displaystyle{ {\boldsymbol{p}^{t+1}(\boldsymbol{x})} = \sum_{ \boldsymbol{y\in \mathcal{N}(x)} } w_{\boldsymbol{xy}} {\boldsymbol{p}^t (\boldsymbol{y})} }[/math]

A simple illustration on a 2-Dimension testing dataset

FLAME Demo.png

See also

External links