Learning Visual Context for Group Activity Recognition

Hangjie Yuan, Dong Ni

Abstract

Group Activity Recognition (GAR) requires understanding complex interactions between individuals and their environment. Traditional methods often isolate individuals from their global context too early in the processing pipeline by cropping local regions. This paper proposes a novel reasoning paradigm that integrates global scene information with person-specific features. We introduce a Transformer-based Context Encoding (TCE) module for feature alignment and a Spatial-Temporal Bilinear Pooling (STBiP) module for modeling high-rank interactions. Our approach achieves state-of-the-art performance on the Volleyball and Collective Activity datasets using only 2D RGB inputs.

Introduction

Recognizing group activities, such as a "spike" in volleyball or social "waiting," is a challenging computer vision task. It necessitates capturing both individual actions and the collective dynamics of the scene. Most existing models extract global features, perform Region of Interest (RoI) cropping to isolate individuals, and then reason based on these local features. However, this early cropping discards vital "person-specific contextual information"—environmental cues like the positions of non-actors, referees, or the crowd that provide critical context for the group's activity.

Methodology

We propose a dual-branch architecture consisting of a Pose branch and a Global branch, designed to preserve and leverage global context throughout the reasoning process. A unique unilateral connection allows the global branch to feed its feature maps into the pose branch, ensuring fine-grained pose data is enriched by the broader scene context.

Overall architecture of the proposed model featuring Pose and Global branches.

Transformer-based Context Encoding (TCE)

The TCE module addresses the loss of context by using a self-attention mechanism to align individual features with the global feature map. Instead of treating a person crop in isolation, TCE allows the model to refine individual representations by attending to relevant information across the entire frame.

Spatial-Temporal Bilinear Pooling (STBiP)

To model interactions, we construct a spatio-temporal graph where individuals are nodes. The STBiP module employs bilinear pooling to explore exhaustive pairwise relationships between context-aware features. A gated message-passing mechanism is then used to filter noise and aggregate these interactions into a robust group-level representation.

Key Insights: The Spectator Effect

A significant finding of this work is the importance of "non-actors." Visualizations of the TCE module's attention maps reveal that the model frequently attends to spectators and officials to confirm specific activities. For instance, the reaction of a crowd can be a decisive cue for identifying a "winpoint" or a successful "spike."

Attention heatmaps showing the model focusing on contextual cues like the net and spectators.

Experimental Results

The model was evaluated on the Volleyball Dataset (VD) and the Collective Activity Dataset (CAD).

  • Volleyball Dataset: Achieved 94.7% Multi-class Classification Accuracy (MCA), significantly outperforming the Actor Transformer baseline.
  • Collective Activity Dataset: Set a new benchmark with 96.4% Mean Per Class Accuracy (MPCA).

Ablation studies confirmed the necessity of the TCE module; its removal resulted in a ~2% drop in accuracy, validating the hypothesis that global context is a critical component of group activity recognition.

Conclusion

By shifting the reasoning paradigm to treat context as a primary feature, our model demonstrates that sophisticated spatial reasoning can outperform more complex temporal models. Future work will focus on optimizing the computational overhead of bilinear pooling and improving temporal discrimination for visually similar activities.

Summary updated

BibTeX
@inproceedings{yuan2021learning,
  author = {Hangjie Yuan and Dong Ni},
  title = {{Learning Visual Context for Group Activity Recognition}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i4.16437},
}
Figure