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

Integrating Co-Occurrence and Spatial Contexts on PatchBased Scene Segmentation

Florent Monay, Pedro Quelhas, Jean-Marc Odobez, Daniel Gatica-PerezWorkshops @ CVPR 2006

Introduction

In computer vision, a significant hurdle is visual polysemy: the phenomenon where a single visual patch—a small fragment of an image—can represent vastly different semantic categories depending on its environment. A grey, textured patch might belong to a concrete wall in an urban setting or a rocky cliff in a wilderness scene. Traditional "Bag-of-Visterms" (BOV) models often fail here because they treat images as unordered collections of features, discarding the vital relationships between them.

Visual polysemy: identical visual patches (visterms) can appear in diverse contexts, requiring surrounding information for correct classification.

This paper proposes a framework that resolves such ambiguities by integrating two types of context: co-occurrence context (global themes within an image) and spatial context (local relationships between neighboring patches).

Methodology

The proposed approach segments scenes through a multi-stage pipeline:

  1. Feature Extraction: Interest points are identified using a Difference-of-Gaussians (DOG) detector and described with SIFT. These descriptors are quantized into a vocabulary of 1,000 "visterms."
  2. Aspect Modeling (The "What"): Using Probabilistic Latent Semantic Analysis (PLSA), the model identifies latent "aspects" or themes. While a standard model might learn global statistics, the authors' Aspect Model 2 incorporates image-specific context. It evaluates the likelihood of a patch's class based on the specific mixture of themes present in that unique image.
  3. Markov Random Field (The "Where"): To ensure spatial consistency, a Markov Random Field (MRF) is applied. This acts as a spatial smoothing layer, correcting isolated misclassifications (e.g., a "natural" patch in the middle of a "man-made" building) by considering the labels of adjacent patches.
The segmentation process: (left) original image, (middle) extracted interest points, and (right) final classification mask where cyan circles indicate 'man-made' patches.

Experimental Results

The model was evaluated on the Corel Stock Photo Library, specifically focusing on a test set of 485 images containing man-made structures within natural landscapes. Performance was measured using the Half Total Recognition Rate (HTRR).

Model HTRR
Baseline (Empirical Distribution) 67.5%
Aspect Model 1 (Global Context) 68.5%
Aspect Model 2 (Image-Specific Context) 72.4%
Aspect Model 2 + MRF (Full Context) 76.3%

The results demonstrate that image-specific context (Aspect Model 2) provides a significant boost over global statistics, even outperforming theoretical "ideal" non-contextual classifiers. The addition of MRF further refines the output, removing "speckle noise" and producing coherent regions that align with human perception.

Conclusion and Future Work

By combining high-level co-occurrence themes with low-level spatial smoothing, the authors successfully bridge the gap between point-wise classification and holistic scene understanding. While the current method produces sparse segmentations due to its reliance on interest point detectors, future work could extend this to dense pixel-wise labeling and incorporate additional cues like color and scale.

Summary updated

BibTeX
@inproceedings{monay2006integrating,
  author = {Florent Monay and Pedro Quelhas and Jean-Marc Odobez and Daniel Gatica-Perez},
  title = {{Integrating Co-Occurrence and Spatial Contexts on PatchBased Scene Segmentation}},
  booktitle = {Workshops @ CVPR},
  year = {2006},
  doi = {10.1109/cvprw.2006.102},
}
Figure