Spatio-Temporal Dynamic Inference Network for Group Activity Recognition

Hangjie Yuan, Dong Ni, Mang Wang · DOI

Abstract

Group activity recognition (GAR) aims to understand collective actions performed by multiple individuals. The primary challenge lies in modeling complex spatio-temporal interactions. Traditional methods often rely on predefined, rigid graphs that ignore person-specific interaction contexts and suffer from high computational costs and over-smoothing. This paper introduces the Dynamic Inference Network (DIN), which achieves spatio-temporal person-specific inferences through two novel components: the Dynamic Relation (DR) module and the Dynamic Walk (DW) module. By initializing interaction fields on a primary spatio-temporal graph, DIN predicts relation matrices and dynamic walk offsets to form person-specific interaction graphs. This approach allows individuals to possess global-level interaction fields starting from local initializations. Experimental results demonstrate that DIN significantly outperforms state-of-the-art methods on two major datasets while requiring substantially less computational overhead.

Introduction

Group Activity Recognition (GAR) involves identifying collective behaviors, such as "spiking" in a volleyball match or "waiting" at a crosswalk, from video sequences. The current standard for GAR involves using Graph Neural Networks (GNNs) to model the relationships between actors. However, existing GNN-based approaches face three significant hurdles:

  1. Rigid Structures: Many models use predefined graphs (e.g., fully-connected) that assume uniform interaction patterns, failing to account for the fact that specific actors (like a volleyball setter) interact more intensely with some teammates than others.
  2. Over-smoothing: Dense graph structures can cause the features of different individuals to become indistinguishable after multiple layers of processing.
  3. Computational Complexity: Fully-connected graphs scale poorly as the number of actors or frames increases, leading to high FLOP counts.

To address these issues, we propose the Dynamic Inference Network (DIN), a framework that replaces static graphs with flexible, person-specific interaction models.

Methodology

The Dynamic Inference Network (DIN)

The DIN framework shifts from global, static reasoning to a local-to-global dynamic approach. It begins by initializing a small, local Interaction Field—a neighborhood in space and time—and then expands this field dynamically through two core modules.

Dynamic Relation (DR) Module

Unlike standard GNNs that use fixed weights, the DR module predicts a unique relation matrix for each person. This matrix is based on the individual's specific context within their local neighborhood, allowing the network to capture asymmetric and subjective interactions between actors.

Dynamic Walk (DW) Module

Inspired by deformable convolutions, the DW module predicts spatial and temporal "offsets." These offsets allow a person’s representation to "walk" beyond their initial local neighborhood to identify and link with semantically important actors elsewhere in the video. This mechanism enables global-level reasoning without the computational burden of a fully-connected graph.

Lite DIN

To further enhance efficiency, we introduced "Lite DIN." This variant utilizes pointwise convolutions to reduce feature dimensions before the reasoning stage, drastically cutting down the number of floating-point operations (FLOPs) required for inference.

Experimental Evaluation

Datasets

We evaluated DIN on two prominent benchmarks:

  • Volleyball Dataset (VD): Contains 4,830 clips with 8 group activity labels.
  • Collective Activity Dataset (CAD): Contains 44 videos with 5 group activity labels.

Performance and Efficiency

DIN achieved state-of-the-art (SOTA) results on both datasets. On the Volleyball Dataset, it reached 93.6% Mean Class Accuracy (MCA) using a VGG-16 backbone. On the Collective Activity Dataset, it achieved 95.9% MPCA.

Beyond accuracy, the efficiency gains were substantial. The reasoning module of "Lite DIN" uses only 0.18M parameters and 0.042G FLOPs. In comparison, the Actor Relation Graph (ARG) method—a popular SOTA baseline—requires 25.18M parameters and 5.436G FLOPs for its reasoning component. This represents an orders-of-magnitude reduction in computational cost.

Conclusion and Future Work

The Spatio-Temporal Dynamic Inference Network demonstrates that person-specific, dynamic graph construction is superior to rigid, predefined structures for GAR. By utilizing Dynamic Relation and Dynamic Walk modules, the network achieves higher accuracy with significantly lower computational overhead.

Future research may explore incorporating individual action labels to further refine the interaction graphs or developing dynamic models to better integrate the broader visual background context (e.g., the ball or court boundaries) into the reasoning process.

Summary updated

BibTeX
@inproceedings{yuan2021spatio,
  author = {Hangjie Yuan and Dong Ni and Mang Wang},
  title = {{Spatio-Temporal Dynamic Inference Network for Group Activity Recognition}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2021},
  doi = {10.1109/iccv48922.2021.00738},
}
Figure