> ## Documentation Index
> Fetch the complete documentation index at: https://shapely.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# DBSCAN(Density Clustering)

>  Density Clustering (DBSCAN) groups together points that are closely packed in space and marks points in low-density regions as outliers. It does not require the number of clusters to be specified in advance.

The algorithm discovers clusters automatically and labels isolated points as noise. 

<Note>
  * DBSCAN is the only clustering algorithm in this package that can automatically **detect outliers** and determine the number of clusters on its own.
  * NeighborhoodDistance, Estimated potential neighbor distance
  * MinNeighbors, Estimated potential neighbor count but if there is no estimation, it can be estimated automatically with "Auto" option.
</Note>

### Use Cases

* **Noise detection**: Identify irregular or outlier geometries in a set of building elements.
* **Unknown number of clusters**: When you do not know how many groups exist in your spatial data.

<a href="/images/ML/DBSCAN.png" target="_blank">
  <img src="https://mintcdn.com/shapely/GiFxyBIPYCb4gWwv/images/ML/DBSCAN.png?fit=max&auto=format&n=GiFxyBIPYCb4gWwv&q=85&s=2b6f1a4fd5740bc81afa6f3eb7ad4e44" className="pointer-events-none" style={{ borderRadius: '0.5rem', border: '1px solid rgba(0,0,0,0.1)' }} width="1447" height="645" data-path="images/ML/DBSCAN.png" />
</a>

### An example of test

<Frame>
  <a href="https://github.com/DurmusCesur/docs/releases/download/ML/Machine.Learning.rvt" download="Machine Learning.rvt">
    <button className="bg-gradient-to-r from-blue-600 via-blue-450 to-blue-600 text-white px-6 py-1 rounded-lg shadow-lg hover:bg-gradient-to-l hover:from-blue-500 hover:to-blue-400 transition-all">
      Machine Learning - RVT2026.rvt
    </button>
  </a>
</Frame>

<Frame>
  <a href="https://github.com/DurmusCesur/docs/releases/download/ML-Dyn/DBSCAN.dyn" download="DBSCAN.dyn">
    <button className="bg-[#16A34A] text-white px-5 py-1 rounded-md hover:bg-[#15803D] transition-colors">
      DBSCAN.dyn
    </button>
  </a>
</Frame>
