Capturing Spatial Interdependence in Image Features: The Counting Grid, an Epitomic Representation for Bags of Features.

Alessandro Perina, Nebojsa Jojic

TL;DR

This paper introduces the "counting grid" model, a novel generative approach for representing images as bags of features. It captures spatial relationships between features, outperforming traditional bag-of-words models by better modeling the inherent constraints in image feature distributions, especially for scenes with varying viewpoints.

What Problem Does This Paper Address?

Traditional image recognition often treats images as "bags of features," ignoring their spatial arrangement. This is analogous to treating text as just a collection of words without considering sentence structure. While effective for some tasks, this simplification misses crucial information. For instance, as a camera pans up a building, features like "door" might decrease while "window" and then "sky" features increase. Existing models, borrowed from text analysis, struggle to capture these spatially dependent feature count variations. The challenge is to develop a model that can learn from these feature counts while implicitly understanding their spatial relationships, even when the exact spatial layout within an image is not provided.

Methods

The core contribution is the Counting Grid (CG) model. It represents the "space" of all possible feature count combinations as a large grid. Each image is then mapped to a specific window within this grid, where the feature counts in that window mimic the image's feature distribution.

Key aspects of the method:

  • Generative Model: The CG model is a generative approach, meaning it learns a probabilistic model of how images are formed.
  • Counting Grid: A large, pre-defined grid (π) stores normalized feature counts. This grid is much larger than individual images but smaller than the entire scene.
  • Window Mapping: Each image is associated with a window (W) within the counting grid. The feature counts within this window are used to represent the image.
  • Joint Learning: The model learns to simultaneously map all training images to the counting grid and estimate the feature counts within the grid itself. This is achieved through an Expectation-Maximization (EM) algorithm.
  • Tessellated Counting Grids: An extension that partitions an image into multiple sections (tessellations) and uses bags of features from these sections. This allows for better spatial reasoning by considering multiple local feature distributions.
  • CG-Epitome: A hybrid approach that combines the CG's E-step (mapping image bags to the grid) with the Epitome's M-step (using known feature layouts).

Datasets

The paper evaluates its methods on several datasets:

  • Synthetic Train Station Example: Used for illustrative purposes to demonstrate the core concepts.
  • SenseCam Dataset: Images captured by a wearable camera, representing diverse scenes and viewpoints.
  • MIT 67 Indoor Scenes Dataset: A standard dataset for indoor scene classification.
  • 15-Scenes Dataset: A well-known dataset for scene classification.
  • Torralba Dataset: Video sequences from a wearable camera, suitable for capturing panoramic structures.

Key Insights and Ideas

  • Spatial Constraints Matter: The paper strongly argues that image feature counts are not independent and are constrained by spatial relationships, a fact often overlooked by traditional bag-of-words models.
  • Counting Grid as a "Scene Space": The counting grid acts as a latent representation of the "space" of possible feature combinations for a category of scenes, allowing for interpolation and generalization.
  • Implicit Spatial Reasoning: The CG model can infer spatial relationships and constraints without explicit spatial information from individual images, relying on the joint distribution of features across multiple images.
  • Tessellation for Improved Spatial Awareness: Partitioning images into smaller sections (tessellation) significantly improves the model's ability to capture spatial layout and leads to better performance.
  • Data Efficiency: The CG model, especially with tessellation, demonstrates remarkable data efficiency, achieving good results with fewer training samples compared to some other methods.

Key Results

  • Improved Accuracy: The counting grid model consistently outperforms traditional bag-of-words approaches (like LDA and Mixture Models) on various scene classification tasks, often by a significant margin. For example, on the 15-Scenes dataset, the tessellated counting grid achieved up to 82.79% accuracy, outperforming LDA (65.12%) and other methods.
  • Generalization: The model generalizes well to new images, even those with different viewpoints or from different scenes within the same category.
  • Reconstruction Quality: The CG model can reconstruct a plausible spatial layout of features from a collection of unordered feature bags, as demonstrated in Figure 7.
  • Hybrid CG-Epitome Success: The hybrid approach combining CG's E-step and Epitome's M-step showed strong performance, particularly on datasets with abundant training data.

Limitations and Future Work

  • Sensitivity to Ratio of E and W: While the model is not highly sensitive to the absolute values of grid size (E) and window size (W), their ratio (capacity κ) is important. Finding the optimal ratio might require cross-validation.
  • Local Minima: Like many EM-based algorithms, the CG model can be susceptible to local minima, especially with large capacities. The paper suggests using a toroidal grid and considering the prior P(l) to mitigate this.
  • Computational Complexity: While efficient, some updates (especially those involving feature layouts like in the CG-Epitome) can involve convolution operations, which can be computationally intensive for very large images.
  • Future Work: The paper suggests extending the model to incorporate more sophisticated spatial reasoning, potentially by using more complex priors or integrating with other generative models. The authors also hint at further improvements in computational efficiency.

Summary updated

BibTeX
@article{perina2015capturing,
  author = {Alessandro Perina and Nebojsa Jojic},
  title = {{Capturing Spatial Interdependence in Image Features: The Counting Grid, an Epitomic Representation for Bags of Features.}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2015},
  url = {https://openreview.net/forum?id=B7bOCrlO6H},
}
Figure