Abstract
Traditional image clustering algorithms often "flatten" 2D images into 1D vectors, a process that destroys spatial relationships and triggers the "curse of dimensionality." This paper introduces Adaptive Two-Dimensional Embedded Image Clustering (A2DEIC), a novel framework that clusters images directly as 2D matrices. By preserving spatial structure while simultaneously learning a lower-dimensional subspace, A2DEIC achieves superior accuracy and faster convergence compared to traditional vector-based methods.
Introduction
Clustering is a fundamental task in computer vision, essential for organizing and analyzing massive image repositories. However, most classical algorithms, such as k-means, Spectral Clustering (SC), and Sparse Subspace Clustering (SSC), require images to be converted into long 1D vectors. This vectorization process has two major drawbacks. First, it leads to a loss of topology: flattening an image ignores the inherent spatial relationships where a pixel is physically related to its neighbors. Second, it causes computational bloat: high-resolution images become extremely high-dimensional vectors, making distance calculations computationally expensive and often inaccurate due to the "curse of dimensionality."
While some researchers employ dimensionality reduction techniques like Principal Component Analysis (PCA) before clustering, performing these as separate, disjoint steps often leads to sub-optimal results because the reduced features are not specifically optimized for the clustering task. The A2DEIC framework addresses this by unifying clustering and 2D-aware dimensionality reduction into a single, joint optimization problem.
Methodology
The core innovation of A2DEIC is treating an image as a matrix $X \in \mathbb{R}^{w \times h}$ rather than a flattened vector. This approach allows the model to naturally respect the image's topology.
Technical Components
- 2D Projection: Instead of a single large projection matrix, A2DEIC learns two smaller projection matrices, $U$ and $V$. These matrices "sandwich" the image matrix to project it into a lower-dimensional subspace ($U^T X_i V$). This bilinear projection preserves both row and column correlations, which are critical for image data.
- Joint Objective Function: The algorithm optimizes a unified loss function that serves two purposes:
- Clustering Error Minimization: It minimizes the distance between the projected images and their respective cluster centroids in the reduced subspace.
- Discriminative Feature Learning: It maximizes the covariance of the data in the projected space, ensuring that the learned features remain discriminative and well-separated.
- Fast Iterative Optimization: To solve the resulting non-smooth objective function, the authors developed an efficient iterative solver. It sequentially updates the projection matrices, cluster centroids, and cluster assignments. Remarkably, the algorithm typically converges in fewer than 10 iterations, making it highly practical for large-scale applications.
Experimental Evaluation
The researchers evaluated A2DEIC on five diverse benchmark datasets: UUIm (head pose and gaze), CVL (handwritten digits), Pointing’04 (head pose with tilt and pan variations), USPS (handwritten digits), and Coil20 (object images from various angles).
Performance Comparison
A2DEIC was compared against several state-of-the-art baselines, including k-means, Spectral Clustering (SC), Sparse Subspace Clustering (SSC), and Balanced Clustering with Least Square Regression (BCLSR).
As shown in Table 1, A2DEIC achieved the highest NMI scores across all tested datasets. For example, on the Coil20 dataset, it reached an NMI of 56.78%, a significant improvement over the 48.74% achieved by standard k-means. In terms of clustering accuracy (ACC), A2DEIC also dominated, achieving 90.14% on the UUIm dataset compared to 84.49% for k-means and 88.96% for BCLSR.
Parameter Stability and Robustness
A key advantage of A2DEIC is its robustness to parameter selection. Sensitivity analysis focused on the balance parameter $\gamma$ shows that the model maintains high performance across a wide range of values.
This stability, visualized in Figure 1, indicates that the algorithm is easy to tune and reliable across different types of image data.
Conclusion and Future Work
A2DEIC demonstrates that the 2D structure of an image is a vital feature that should be preserved during clustering. By working directly with matrices, the framework achieves higher accuracy, better feature representation, and faster convergence than traditional vector-based methods.
Future research directions include integrating deep neural networks to capture non-linear image features and applying the 2D-embedded approach to more complex tasks such as image segmentation and co-segmentation, where spatial relationships are even more critical.
Summary updated