Abstract
Traditional correlation clustering often struggles with noise and outliers due to its reliance on standard Principal Component Analysis (PCA) and the sensitive covariance matrix. This paper introduces CODEC (COrrelations in DEnse Clusters), an algorithm that integrates density-based clustering with a robust PCA variant. By utilizing a co-median absolute deviation (coMAD) matrix instead of a standard covariance matrix, CODEC effectively identifies linear trends within dense clusters while remaining resilient to jitter and peripheral noise.
1. Introduction
In the field of data mining, the dual tasks of clustering (grouping similar points) and correlation analysis (understanding variable relationships) are fundamental. However, standard methods often treat these tasks in isolation or fail when data contains significant noise. Standard PCA, the primary tool for finding linear correlations, is highly sensitive to outliers because it relies on means and squared deviations. Even a small number of points distant from the main trend can significantly skew the resulting eigenvectors.
CODEC addresses this by combining the strengths of DBSCAN (Density-Based Spatial Clustering of Applications with Noise) with a robust statistical approach to PCA. This integration allows for the discovery of arbitrarily shaped clusters and the precise identification of internal linear structures without interference from "jitter."
2. Methodology
The CODEC algorithm operates in two distinct stages:
2.1 Density-Based Clustering
The process begins with DBSCAN to identify dense regions within the dataset. DBSCAN is particularly suited for this task as it can discover clusters of any shape and effectively isolates noise points.
2.2 Robust PCA via the coMAD Matrix
To analyze the internal structure of the identified clusters, CODEC replaces standard PCA's covariance matrix with a "comedian" or coMAD (co-median absolute deviation) matrix.
- Median Absolute Deviation (MAD): Used instead of variance, defined as $mad(A_i) = med(|A_i - med(A_i)|)$.
- coMAD: Used instead of covariance, defined as $com(A_i, A_j) = med((A_i - med(A_i))(A_j - med(A_j)))$.
By calculating eigenvectors from this median-based matrix $\Lambda$, CODEC identifies the direction where the majority of points are situated. This approach focuses on the dense core of the cluster, naturally ignoring border points and outliers that would otherwise distort the model.
3. Experimental Evaluation
The authors evaluated CODEC using a synthetic dataset designed to test robustness against noise. The dataset features four distinct clusters with both local and global linear correlations, surrounded by significant "noise" points to simulate real-world data jitter.
4. Results and Discussion
Qualitative comparisons between standard covariance-based PCA and the proposed coMAD-based approach highlight the robustness of CODEC.
As shown in the figure above, standard PCA fails to capture the true linear trend in the presence of noise. The eigenvectors are pulled away from the dense core of the clusters. In contrast, CODEC's median-based approach maintains accuracy across all clusters.
By prioritizing the median over the mean, CODEC ensures that the detected correlations reflect the primary structure of the data rather than the variance of the noise.
5. Conclusion and Future Work
CODEC demonstrates a promising path forward for robust correlation clustering. While the current implementation shows high accuracy on synthetic data, future work will address computational complexity—as median calculations are $O(n \log n)$ compared to the $O(n)$ mean—and evaluate performance on high-dimensional real-world datasets. Additionally, exploring adaptive density-based methods could reduce sensitivity to initial DBSCAN parameters.
Summary updated