ASTRA: An Action Spotting TRAnsformer for Soccer Videos

Artur Xarles, Sergio Escalera, Thomas B. Moeslund, Albert Clapés

TL;DR

ASTRA (Action Spotting TRAnsformer) is a multimodal, encoder-decoder model designed to pinpoint specific events in soccer matches, such as goals or fouls. By combining hierarchical visual processing with audio signals and a novel uncertainty-aware displacement head, ASTRA effectively handles the "long-tail" problem of rare events and the inherent noise in human-labeled timestamps, securing 3rd place in the SoccerNet 2023 challenge.

What Problem Does This Paper Address?

In the world of sports analytics, Action Spotting (AS) is the task of identifying the exact moment (a single keyframe) an event occurs in an untrimmed video. This differs from Temporal Action Localization (TAL), which looks for start-and-end intervals.

Soccer presents three major hurdles for AS:

  1. The Long-Tail Distribution: Common events like "ball out of play" happen thousands of times, while "red cards" are extremely rare. Standard models often ignore the rare events to maximize overall accuracy.
  2. Non-Visible Actions: Often, the broadcast cuts to a replay or a coach's reaction just as a kick-off or clearance happens. The action occurs, but it isn't on screen.
  3. Label Noise: Humans are subjective. Two annotators might mark a "foul" a few frames apart. Standard regression models struggle with this ambiguity.

Methods

ASTRA adopts a Transformer encoder-decoder architecture, drawing inspiration from DETR (Detection Transformer).

  • Hierarchical Transformer Encoder: Instead of looking at the whole 50-second clip at once, the encoder progressively interacts with tokens. Early layers focus on local, fine-grained details, while later layers incorporate broader context. This improves precision while reducing computational costs.
  • Multimodal Fusion: The model doesn't just "see"; it "listens." It integrates visual features (pre-extracted from Baidu Research) with audio features extracted from log-mel spectrograms using a VGG-inspired backbone.
  • Uncertainty-Aware Displacement Head: Instead of predicting a single "offset" from an anchor point using Mean Squared Error, ASTRA models the displacement as a Gaussian distribution. It predicts both a mean (the location) and a variance (the uncertainty). This allows the model to "admit" when a label is ambiguous.
  • Balanced Mixup: To tackle the long-tail problem, the authors use a queue-based mixup strategy. When creating synthetic training data, the model ensures that rare classes (the "tail") are paired with other samples more frequently, forcing the network to learn their features.

Datasets

The study primarily uses SoccerNet-v2, the gold standard for soccer video analysis.

  • Scale: 550 soccer matches (500 for training/testing, 50 for the "hidden" challenge set).
  • Scope: 17 distinct action classes, ranging from "Toss-in" to "Yellow Card."
  • Complexity: Includes "non-visible" labels where actions occur during replays or occlusions.

Key Insights and Ideas

  • Audio as a "Safety Net": The integration of audio was particularly effective for non-visible actions. While the camera might be on a cheering crowd, the sound of a whistle or a commentator's shout provides the necessary "spotting" cue.
  • Embracing Ambiguity: The "aha moment" for handling noisy labels was moving away from deterministic regression. By modeling temporal displacement as a Gaussian distribution, the loss function (negative log-likelihood) naturally penalizes the model less when it encounters high-variance, subjective labels.
  • The Power of Ensembling: The authors found that while ASTRA is strong, an ensemble of models—some without audio, some without focal loss—provided the best results. This suggests that different architectural components specialize in different types of soccer actions.

Key Results

ASTRA achieved state-of-the-art performance on several metrics:

  • SoccerNet 2023 Challenge: Secured 3rd place with a "tight" Average-mAP (mean Average Precision) of 70.21.
  • Test Set Performance: Achieved a tight A-mAP of 66.82.
  • Ablation Success: Adding the uncertainty head alone improved the tight A-mAP by +0.54, while the balanced mixup strategy provided a significant +0.85 boost, particularly helping rare "tail" actions like red cards.
  • Non-Visible Actions: ASTRA outperformed many competitors on actions that were not visually present, proving the value of the audio modality.

Limitations and Future Work

While ASTRA performs admirably, the authors note a performance gap between "visible" and "non-visible" actions (74.40 vs 61.10 A-mAP). Even with audio, predicting what you cannot see remains a significant challenge.

Future work might involve:

  • Stronger Audio Backbones: Moving beyond VGG-inspired models to more modern audio transformers.
  • Contextual Reasoning: Better modeling of the "game state" (e.g., knowing a goal is more likely after a corner) to further refine predictions.
  • End-to-End Training: Currently, the model relies on some pre-extracted visual features; a fully end-to-end approach might capture even more nuance.

Summary updated

BibTeX
@inproceedings{xarles2023astra,
  author = {Artur Xarles and Sergio Escalera and Thomas B. Moeslund and Albert Clapés},
  title = {{ASTRA: An Action Spotting TRAnsformer for Soccer Videos}},
  booktitle = {MMSports@MM},
  year = {2023},
  doi = {10.1145/3606038.3616153},
}
Figure