NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Superpixel Segmentation Based on Spatially Constrained Subspace Clustering

Hua Li, Yuheng Jia, Runmin Cong, Wenhui Wu, Sam Tak-Wu Kwong, Chuanbo Chen

TL;DR

This paper proposes a novel superpixel segmentation method that frames the problem as a subspace clustering task. By incorporating spatial regularization, it effectively preserves fine-grained object boundaries, a common challenge for existing methods, leading to more accurate and detailed superpixels.

What Problem Does This Paper Address?

Superpixel segmentation aims to divide an image into meaningful regions (superpixels) that share similar intrinsic properties like color, texture, and spatial proximity. While many methods exist, a significant limitation, especially for practical industrial applications, is the difficulty in preserving detailed object boundaries. Existing approaches often struggle to maintain these fine details, leading to over-segmentation or blurred edges. This paper addresses this by proposing a method that leverages subspace clustering to represent each superpixel as a distinct subspace and introduces spatial constraints to ensure that spatially adjacent pixels with similar attributes are grouped together, thereby preserving local image details more effectively.

Methods

The core of the proposed method lies in formulating superpixel segmentation as a spatially constrained subspace clustering problem.

  1. Naive Subspace Clustering: Initially, the authors explore a direct application of subspace clustering. They represent the image as a feature matrix $X$ and aim to find a coding matrix $Z$ such that $X \approx XZ + E$, where $E$ is an error matrix. The objective is to minimize the error and enforce sparsity in $Z$ (using $l_1$-norm relaxation). However, this naive approach fails to account for the inherent spatial correlation of pixels in an image, leading to boundary confusion.
  2. Spatial Regularization: To address the spatial correlation issue, a spatial regularization term $f(Z) = ||ZW||_{2,1}$ is introduced. This term encourages spatially adjacent pixels (represented by columns in $Z$) to have similar representations. The matrix $W$ is derived from a spatial adjacency matrix that captures neighbor relationships between pixel units.
  3. Locality-Constrained Subspace Clustering Model: The final model combines the original subspace clustering objective with the spatial regularization term: $$ \min ||X – XZ||_F^2 + \lambda_1||Z||_1 + \lambda_2||ZW||_{2,1} $$ subject to $diag(Z) = 0_n$. Here, $\lambda_1$ and $\lambda_2$ are trade-off parameters.

  4. Optimization: The objective function is solved using the Alternating Direction Method of Multipliers (ADMM), which breaks down the optimization into smaller, manageable subproblems that can be solved efficiently.

  5. Superpixel Generation: After obtaining the coding matrix $Z$, an affinity graph $G$ is constructed from $Z$. This graph is then segmented using the Normalized Cuts (Ncut) algorithm to generate the final superpixels. Isolated pixels are merged with their nearest neighbors.

Datasets

The paper evaluates its method on the following datasets:

  • BSDS500 (Berkeley Segmentation Dataset): A standard dataset for superpixel segmentation, containing natural images with ground truth segmentations.
  • DAVIS (Densely Annotated Video Segmentation): Used for evaluation.
  • Cityscapes: Used for evaluation.
  • NYUv2: A dataset of indoor-scene images, used for further comparison.

The paper does not introduce any new benchmarks.

Key Insights and Ideas

  • Superpixels as Subspaces: The core idea of framing superpixel segmentation as a subspace clustering problem is novel. It allows leveraging powerful subspace clustering techniques to group pixels based on their intrinsic properties.
  • Spatial Correlation is Crucial: The paper highlights that ignoring the spatial correlation of pixels is a major drawback of directly applying conventional subspace clustering to images. This spatial coherence is key to preserving fine details.
  • Spatial Regularization for Boundary Preservation: The proposed spatial regularization term effectively enforces that neighboring pixels with similar attributes are clustered together, directly leading to better boundary adherence.
  • Trade-off Between Detail and Number of Superpixels: The method aims to balance preserving detailed content boundaries with minimizing the number of superpixels, which is important for practical applications.

Key Results

  • Qualitative Improvements: Visual comparisons show that the proposed method preserves significantly more detailed object boundaries compared to state-of-the-art methods (SLIC, FLIC, LSC, LRW, TPS, etc.) and even recent deep learning methods (FCN, SSN, SEAL). For instance, fine details like spots on a butterfly's wing are clearly segmented.
  • Quantitative Performance: The method achieves superior performance on standard metrics like Boundary Recall (BR), Under-Segmentation Error (USE), and Achievable Segmentation Accuracy (ASA) across BSDS500, DAVIS, and Cityscapes datasets.
  • Efficiency: While slightly slower than SLIC and LSC, the proposed method is faster than many other compared methods, offering a good balance between performance and speed.
  • Parameter Sensitivity: Ablation studies show that both global and spatial regularization are important, with spatial regularization being particularly impactful. Optimal parameters ($\lambda_1=10^{-6}, \lambda_2=10^{-4}$) were found to yield the best results.

Limitations and Future Work

  • Computational Complexity: While ADMM provides an efficient optimization, the overall computational complexity is dominated by K-means initialization and the optimization process, which is $O(N + k^3)$, where $N$ is the number of pixels and $k$ is the initial number of pixel units. This might still be a bottleneck for very large images or real-time applications.
  • Parameter Tuning: The performance is sensitive to the regularization parameters $\lambda_1$ and $\lambda_2$, requiring careful tuning.
  • Future Work: The paper does not explicitly detail future work, but potential directions could include exploring more advanced feature extraction techniques, investigating adaptive parameter selection, or extending the method to video superpixel segmentation.

Summary updated

BibTeX
@article{li2020superpixel,
  author = {Hua Li and Yuheng Jia and Runmin Cong and Wenhui Wu and Sam Tak-Wu Kwong and Chuanbo Chen},
  title = {{Superpixel Segmentation Based on Spatially Constrained Subspace Clustering}},
  journal = {IEEE Trans. Industrial Informatics},
  year = {2020},
  doi = {10.1109/tii.2020.3044068},
}
Figure