Representing Pairwise Spatial and Temporal Relations for Action Recognition

Pyry Matikainen, Martial Hebert, Rahul Sukthankar

This research, originally presented at ECCV 2010, addresses a fundamental weakness in the "bag-of-words" (BoW) models that dominated action recognition for years: the loss of spatial and temporal context. By introducing an efficient way to model pairwise relationships, the authors significantly improved the state-of-the-art for video understanding.

The Problem: Spatially and Temporally "Blind" Models

In the early 2010s, the BoW paradigm was the gold standard. It involved extracting local features (like interest points), quantizing them into "visual words," and building a histogram of their frequencies. However, BoW is context-blind. It might recognize a "hand" and a "phone" in a video, but it cannot distinguish if the hand is moving toward the phone (answering) or away from it.

While researchers knew these relationships were crucial, adding them typically led to a "combinatorial explosion." Modeling all possible pairs of 100 visual words with 10 spatial relationships creates 100,000 features—far too many for the small datasets of the time to handle without massive overfitting.

Methodology: Efficient Pairwise Modeling

Visualization of pairwise relations between local features in a video frame.

The authors proposed a compact representation for these relationships using Relative Location Probability Tables (RLPTs). Instead of counting every possible pair, they estimated the probability of seeing specific visual words at a relative displacement $(dx, dy, dt)$ for every action class.

To keep the geometry manageable, they used Relative Location Maps to bin the spatial data. These maps divided the space around a feature into discrete regions, such as angular wedges or grids, allowing the model to capture direction and distance without excessive complexity.

Relative Location Maps: (Left) 8 angular wedges; (Right) a 4x4 spatial grid.

The Hybrid Pipeline

  1. Feature Extraction: The method was tested on both appearance-based features (STIP-HOG) and a new, simplified trajectory-based feature called SCM-Traj.
  2. Aggregation: Using the RLPTs, each feature "votes" for an action class in a Naïve Bayes fashion. This aggregates noisy evidence into a compact vector.
  3. Classification: This reduced vector is fed into a linear Support Vector Machine (SVM). By combining this pairwise vector with standard BoW histograms, the model achieves a "best of both worlds" result.

Key Results and Insights

The addition of pairwise relationships consistently outperformed base BoW models across different benchmarks:

  • UCF YouTube (UCF-YT): Accuracy for STIP-HOG features rose from 55.0% to 59.0%.
  • Rochester ADL: Accuracy rose from 56.7% to 64.0%. The trajectory-based SCM-Traj features saw an even larger jump, moving from 37.3% to 50.0%.
  • Robustness to Noise: The success of SCM-Traj suggests that even if individual visual words are "noisy" or non-clustered, the relationships between them remain stable enough to drive recognition.
  • Temporal Importance: Extending the model from 2D $(dx, dy)$ to 3D $(dx, dy, dt)$ was critical for appearance-based features, where the timing of visual changes is a key discriminative factor.

Conclusion

This work demonstrated that complex global models aren't always necessary to capture geometry. Simple pairwise relationships, when aggregated correctly through a generative-to-discriminative pipeline, provide a massive boost in recognition power while remaining computationally tractable. Future work suggested that more sophisticated, data-driven binnings of these relative locations could further enhance the model's performance.

Summary updated

BibTeX
@inproceedings{matikainen2010representing,
  author = {Pyry Matikainen and Martial Hebert and Rahul Sukthankar},
  title = {{Representing Pairwise Spatial and Temporal Relations for Action Recognition}},
  booktitle = {European Conference on Computer Vision},
  year = {2010},
  doi = {10.1007/978-3-642-15549-9\_37},
}
Figure