MCMSTClustering: Minimum Spanning Tree and Micro-Cluster based Clustering Algorithm
Project description
Motivation
MCMSTClustering is an MST-based clustering algorithm designed to handle high-dimensional, imbalanced, varying-density, and arbitrary-shaped datasets. It first forms micro-clusters using KD-Tree range search, then builds a Minimum Spanning Tree over these micro-clusters to detect non-spherical macro-clusters. A final cluster-regulation step refines boundaries and improves clustering quality. Experiments show that MCMSTClustering outperforms several state-of-the-art methods with strong accuracy and efficient runtime.
Installation
pip install mcmst-clust
Usage
from mcmst_clust import MCMSTClustering
from sklearn.datasets import load_wine
from sklearn.metrics import adjusted_rand_score
data = load_wine()
X = data.data
y = data.target
model = MCMSTClustering(N=19, r=0.49, n_micro=3, random_state=42)
labels = model.fit_predict(X)
print("n_micro:", model.n_micro_clusters_, "n_macro:", model.n_macro_clusters_)
print("ARI:", adjusted_rand_score(y, labels))
Oerview
MCMSTClustering (Defining Non-Spherical Clusters by using Minimum Spanning Tree over KD-Tree-based Micro-Clusters) is designed to overcome limitations of conventional clustering algorithms when handling:
- High-dimensional data
- Imbalanced datasets
- Clusters with varying densities
- Noisy data/outliers
- Arbitrary-shaped clusters
The algorithm consists of three main steps:
1. Micro-cluster Formation: Defines micro-clusters using a KD-Tree data structure with range search.
2. Macro-cluster Construction: Builds a minimum spanning tree (MST) over the micro-clusters to form macro-clusters.
3. Cluster Regulation: Refines the clusters to improve accuracy and overall clustering quality.
Extensive experiments against state-of-the-art algorithms show that MCMSTClustering achieves high-quality clustering results with acceptable runtime.
Key Features
- Clusters datasets with high quality
- Detects arbitrary-shaped clusters
- Robust against outliers/noisy data
- Handles clusters with varying densities
- Efficient on imbalanced datasets
Cite
If you use the code in your works, please cite the paper given below:
Şenol, A. MCMSTClustering: defining non-spherical clusters by using minimum
spanning tree over KD-tree-based micro-clusters. Neural Comput & Applic 35,
13239–13259 (2023). https://doi.org/10.1007/s00521-023-08386-3
BibTeX
@article{csenol2023mcmstclustering,
title={MCMSTClustering: defining non-spherical clusters by using minimum spanning tree over KD-tree-based micro-clusters},
author={{\c{S}}enol, Ali},
journal={Neural Computing and Applications},
volume={35},
number={18},
pages={13239--13259},
year={2023},
publisher={Springer}
}
License
This project is licensed under the MIT License. See the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcmst_clust-1.0.9.tar.gz.
File metadata
- Download URL: mcmst_clust-1.0.9.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d34d7326e4efadc422ef17d95742a9b23ef777c3fa6e7e4e245f5deb6abca42
|
|
| MD5 |
14597e39094a36a1c236d22db0619451
|
|
| BLAKE2b-256 |
c0c8053a305a98cc4a48661b1077069c19527da97f71d20230dd7f30703d7f6c
|
File details
Details for the file mcmst_clust-1.0.9-py3-none-any.whl.
File metadata
- Download URL: mcmst_clust-1.0.9-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4408f906b31518adcc9a89995f1e3b2f46d982bbf43b71b87a9cd3dafdcd86e
|
|
| MD5 |
82603d27d57a442b4962ea6cfa79cdfe
|
|
| BLAKE2b-256 |
722e4d75d3c9d04219e94ee81746b4d33cd1d6b7b1c7bb00bc94294ddaa530e8
|