Introduction
Standard Bayesian nonparametric clustering models, such as the Dirichlet Process (DP) or the Chinese Restaurant Process (CRP), rely heavily on the assumption of exchangeability. This means the order or spatial location of data points does not affect their prior probability of clustering together. However, for natural image segmentation, this assumption is fundamentally flawed. A pixel’s identity is inextricably linked to its neighbors; adjacent pixels are highly likely to belong to the same object.
While previous attempts to bake spatial information into these models (using Markov Random Fields or complex Gaussian Processes) have succeeded in theory, they often result in mathematically heavy, slow, and complex inference. This paper introduces a spatial application of the distance dependent Chinese restaurant process (ddCRP) to image segmentation. By moving away from exchangeability, the authors develop a simpler, faster, and more intuitive hierarchical model—the rddCRP—that produces human-like image segmentations with guaranteed spatial connectivity.
Methods: The ddCRP and rddCRP
The authors build upon the ddCRP, which fundamentally changes how data points group together.
1. The Linking Mechanism Instead of customers choosing a "table" (cluster) based on how many people are already seated there, customers in a ddCRP choose to "link" to specific other customers. The probability of linking to another customer depends on a distance function and a decay function. If you can reach customer B from customer A by following these links, they belong to the same cluster.
2. Spatial Distance and Connectivity Applied to images, the "customers" are superpixels (small, coherent blocks of pixels). Distance is defined as the number of "hops" between neighbors on the image grid. By setting the window size to 1, a superpixel can only link to its immediate neighbors. This mathematically guarantees that every resulting segment is a single, connected component—a crucial property for physical objects that many other models lack.
3. The Hierarchical rddCRP To mimic how humans segment images—grouping multiple small, similar patches into one large "sky" or "road" region—the authors propose a hierarchical extension called the Region-based ddCRP (rddCRP). The base ddCRP first creates small, contiguous patches. Then, a second-level standard CRP groups these patches into larger, potentially non-contiguous "regions" based on shared appearance features like color and texture.
Key Results
The authors evaluated their models on 800 images from the LabelMe database, comparing performance against manual human segmentations using the Rand Index.
- Simplicity and Speed: The rddCRP achieves performance comparable to state-of-the-art spatial models (like the Spatial Pitman-Yor model) but is significantly easier to implement. Because it avoids complex covariance functions, inference via Gibbs sampling is fast. The Matlab implementation took about 1 minute per iteration per image, compared to roughly 12 minutes for competing spatial models.
- Qualitative Quality: By separating spatial grouping (contiguous patches) from semantic grouping (regions with similar textures/colors), the rddCRP avoids the noisy, fragmented boundaries typical of non-spatial models.
- Connectivity by Design: Restricting the link distance to immediate neighbors successfully enforces that segments cannot be arbitrarily scattered across the image, aligning with the physical reality of objects.
Limitations and Future Work
While powerful, the model is sensitive to its hyperparameters. If the window size is set too large, the connectivity guarantee vanishes, leading to fragmented clusters. Additionally, the model currently relies on pre-defined features (HSV color and texton histograms). Incorporating sophisticated edge detection could further refine boundaries. Finally, the authors suggest extending the model to share region parameters across entire datasets, enabling joint segmentation and object discovery.
Summary updated