Group Activity Detection from Trajectory and Video Data in Soccer

Ryan Sanford, Siavash Gorji, Luiz G. Hafemann, Bahareh Pourbabaee, Mehrsan JavanWorkshops @ CVPR 2020

Introduction

In the domain of computer vision and sports analytics, activity detection typically focuses on actions with distinct durations, such as walking or running. However, soccer is defined by "atomic" events—near-instantaneous actions like passes, shots, and receptions that occur at specific timestamps. Detecting these events requires high temporal precision and an understanding of complex spatial relationships between players and the ball. Researchers from Sportlogiq have developed a framework to address this by evaluating two primary data modalities: broadcast video and 2D player/ball trajectories.

Methodology

The study explores two distinct pipelines for event localization and classification:

1. Trajectory-Based Models

These models process the (x, y) coordinates of the ball and all players on the pitch. The researchers evaluated three architectures:

  • Temporal Convolutional Network (TCN): Utilizing dilated 1D convolutions (WaveNet-style) to capture temporal patterns over a sequence of coordinates.
  • Transformer: Leveraging self-attention mechanisms to dynamically model interactions between players without the need for a fixed graph structure.
  • Hybrid TCN + Transformer: A combined approach where the TCN extracts temporal features that are subsequently refined by a Transformer to capture the broader group context.
Architecture of trajectory-based models using Temporal Convolutional Networks (WaveNet) and Transformers to process player and ball coordinates.

2. Vision-Based Models

These models operate directly on raw broadcast video frames:

  • I3D (Inflated 3D ConvNet): A standard architecture for video processing that analyzes spatio-temporal volumes.
  • Tubelets with GCN/Transformers: This approach extracts localized video crops (tubelets) around individual players, using Graph Convolutional Networks (GCN) or Transformers to model their relative movements and interactions.

To convert continuous probability outputs into discrete event detections, the framework employs a Non-Maximum Suppression (NMS) process, identifying the peaks of confidence curves to pinpoint the exact moment of an action.

Key Insights and Ideas

  • The Power of Interaction Modeling: Transformers proved highly effective as "interaction engines." Unlike GCNs, which require predefined connectivity (often based on proximity), Transformers learn dynamic relationships through self-attention, mirroring the fluid nature of soccer tactics.
  • The Ball as a Critical Signal: For trajectory models, the inclusion of ball data was essential. Without it, models struggled to differentiate between a player performing an action and a player simply running near the play.
  • Modality Trade-offs: Vision models excel at identifying action types through "body language" but often lack spatial context. Conversely, trajectory models provide superior spatial logic but lack the nuanced detail of human motion.
  • Temporal Precision: The framework achieved remarkable accuracy, with most events localized within 0.5 seconds of the ground truth, and some as close as 0.01 seconds.
Visualization of event detection showing broadcast video, 2D trajectories, and the resulting probability curves for passes, receptions, and shots.

Results and Performance

The study utilized a proprietary dataset of 74 English Premier League (EPL) games, encompassing over 2,000 events per match.

  • Trajectory Performance: The TCN + Transformer hybrid emerged as the leader for trajectory data, achieving F-scores of 0.87 for passes and 0.83 for receptions.
  • Vision Performance: Surprisingly, the simpler I3D model trained on the entire frame outperformed more complex player-centric tubelet models, reaching an F-score of 0.84 for passes.
  • The Challenge of Rare Events: Shot detection remains difficult due to data imbalance (shots are far rarer than passes). Both the best trajectory and vision models achieved an F-score of 0.71 for shots.

Conclusion and Future Directions

While the current framework provides a robust baseline for atomic event detection, several areas for improvement remain. The models currently operate on short context windows (1-2 seconds), which can lead to false positives during complex maneuvers like dribbling. Future research aims to explore multi-modal fusion—combining the visual nuance of video with the spatial logic of trajectories—and investigating the use of high-resolution tactical cameras to further enhance detection accuracy.

Summary updated

BibTeX
@inproceedings{sanford2020group,
  author = {Ryan Sanford and Siavash Gorji and Luiz G. Hafemann and Bahareh Pourbabaee and Mehrsan Javan},
  title = {{Group Activity Detection from Trajectory and Video Data in Soccer}},
  booktitle = {Workshops @ CVPR},
  year = {2020},
  doi = {10.1109/cvprw50498.2020.00457},
}
Figure