Scalable Context-Preserving Model-Aware Deep Clustering for Hyperspectral Images

Xianlu Li, Nicolas Nadisic, Shaoguang Huang, Nikos Deligiannis, Aleksandra Pižurica

Introduction

Hyperspectral imaging (HSI) provides a rich "chemical fingerprint" of a scene by capturing hundreds of narrow spectral bands for every pixel. This high-dimensional data is invaluable for applications ranging from urban planning to environmental monitoring. However, the unsupervised task of clustering these pixels into meaningful land-cover categories—such as asphalt, vegetation, or water—remains a significant challenge.

The current state-of-the-art approach, Deep Subspace Clustering (DSC), utilizes a "self-representation" property where each pixel is modeled as a linear combination of other pixels in the same category. While effective, DSC faces a "complexity wall": it requires calculating an $n \times n$ similarity matrix, where $n$ is the number of pixels. For modern high-resolution satellite imagery, this $O(n^2)$ computational and memory complexity is prohibitive. Furthermore, existing methods often struggle to simultaneously capture local spatial continuity (neighboring pixels are likely the same class) and non-local spectral similarities (pixels far apart may share the same material).

The SCDSC Framework

To address these limitations, researchers have introduced Scalable Context-aware Deep Subspace Clustering (SCDSC). This model-aware deep clustering approach moves beyond the traditional self-representation paradigm to achieve linear scalability while preserving critical structural context.

1. Basis Representation for Scalability

The primary innovation of SCDSC is the shift from self-representation to a basis-representation approach. Instead of comparing every pixel to every other pixel, the model learns a compact set of "basis vectors" or dictionaries for each class. By representing pixels through these learned bases, the computational complexity is reduced from $O(n^2)$ to $O(n)$. This allows the algorithm to scale to massive datasets that were previously inaccessible to deep subspace methods.

2. Dual Context Preservation

SCDSC integrates two distinct mechanisms to maintain the structural integrity of the clustering results:

  • Non-Local Structure Preservation: The model employs the FINCH algorithm to group spectrally similar pixels into "mini-clusters" across the entire image, regardless of their spatial location. A Kullback-Leibler (KL) divergence loss is then used to ensure that pixels within these mini-clusters share consistent category predictions.
  • Local Structure Preservation: To ensure spatial smoothness and reduce "salt-and-pepper" noise, the model applies a spatial mean filter to the soft-assignment map. By minimizing the difference between original predictions and these smoothed versions, the model effectively denoises the classification map during the training process.

Unlike traditional "two-stage" methods that separate representation learning from clustering, SCDSC is an end-to-end framework. The structural constraints directly supervise the training of the deep autoencoder, providing stronger guidance for the latent space representation.

Experimental Evaluation

The performance of SCDSC was evaluated on three standard benchmark HSI datasets:

  • Houston: 144 spectral bands, 7 classes (urban land cover).
  • Trento: 63 spectral bands, 6 classes (rural/urban mix).
  • PaviaU: 103 spectral bands, 9 classes (university campus).

Performance and Efficiency

SCDSC consistently outperformed state-of-the-art methods, including K-means, Spectral Clustering, and Model-Aware Deep Learning (MADL). On the PaviaU dataset, SCDSC achieved an Overall Accuracy (OA) of 69.48%, a significant improvement over the previous best of 65.69%.

Qualitatively, the model produced much cleaner classification maps. In the Houston dataset, SCDSC demonstrated a unique ability to distinguish between spectrally similar classes, such as parking lots and asphalt roads, which often confuse other algorithms. Crucially, the model maintained $O(n)$ complexity across all operations, confirming its efficiency for large-scale remote sensing applications.

Discussion and Future Directions

The research demonstrates that local and non-local constraints are mutually reinforcing; improving local homogeneity assists the model in identifying better non-local mini-clusters, and vice versa. This synergy, combined with the scalability of basis representation, represents a major step forward for HSI analysis.

However, challenges remain. Like many unsupervised methods, SCDSC can struggle with extreme class imbalance, occasionally failing to identify very small, underrepresented classes. Additionally, the model requires the tuning of balancing constants ($\beta_1, \beta_2$) for the loss terms. Future work may focus on automating hyperparameter selection or integrating more sophisticated spatial filters to further enhance the model's robustness.

Summary updated

Abstract

Subspace clustering has become widely adopted for the unsupervised analysis of hyperspectral images (HSIs). Recent model-aware deep subspace clustering methods often use a two-stage framework, involving the calculation of a self-representation matrix with complexity of O(n2), followed by spectral clustering. However, these methods are computationally intensive, generally incorporating only local or non-local structure constraints, and their structural constraints fall short of effectively supervising the entire clustering process. We propose a scalable, context-preserving deep clustering method based on basis representation, which jointly captures local and non-local structures for efficient HSI clustering. To preserve local structure—i.e., spatial continuity within subspaces—we introduce a spatial smoothness constraint that aligns clustering predictions with their spatially filtered versions. For non-local structure—i.e., spectral continuity—we employ a mini-cluster-based scheme that refines predictions at the group level, encouraging spectrally similar pixels to belong to the same subspace. These two constraints are jointly optimized to reinforce each other. Specifically, our model is designed as a one-stage approach, in which the structural constraints are applied to the entire clustering process. The time and space complexity of our method are O(n), making it applicable to large-scale HSI data. Experiments on real-world datasets show that our method outperforms state-of-the-art techniques.
BibTeX
@inproceedings{li2025scalable,
  author = {Xianlu Li and Nicolas Nadisic and Shaoguang Huang and Nikos Deligiannis and Aleksandra Pižurica},
  title = {{Scalable Context-Preserving Model-Aware Deep Clustering for Hyperspectral Images}},
  booktitle = {Remote},
  year = {2025},
  doi = {10.3390/rs17244030},
}
Figure