ASTRA: An Action Spotting TRAnsformer for Soccer Videos

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

Abstract

Action spotting in soccer requires identifying the precise moment an event occurs within an untrimmed video broadcast. This task is hindered by three primary challenges: the long-tail distribution of rare events, the occurrence of actions off-camera (non-visible actions), and the inherent ambiguity in human-provided timestamps. We introduce ASTRA (Action Spotting TRAnsformer), a multimodal architecture that combines hierarchical visual processing with audio signals and an uncertainty-aware displacement head. By modeling temporal displacement as a Gaussian distribution and employing a balanced mixup strategy, ASTRA effectively handles label noise and rare classes. Our model achieved 3rd place in the SoccerNet 2023 challenge with a tight Average-mAP of 70.21, demonstrating robust performance across both visible and non-visible action categories.

Introduction

In sports analytics, Action Spotting (AS) is defined as the identification of a single keyframe representing an event, such as a goal, foul, or substitution. Unlike Temporal Action Localization (TAL), which identifies start and end boundaries, AS focuses on pinpoint accuracy.

Soccer broadcasts present unique difficulties for this task. First, the distribution of events is highly imbalanced; common events like "ball out of play" occur frequently, while "red cards" are rare. Second, many actions are "non-visible," occurring during replays or close-up shots of players or coaches while the live action continues. Finally, human annotators often disagree on the exact frame an action occurs, leading to noisy labels that deterministic regression models struggle to resolve.

Percentage of non-visible actions across different event classes in soccer broadcasts, highlighting the necessity of multimodal analysis.

Methodology

ASTRA utilizes a Transformer-based encoder-decoder framework designed to process multimodal inputs and handle temporal uncertainty.

Hierarchical Transformer Encoder

The model employs a hierarchical approach to feature extraction. Rather than processing a long video clip uniformly, the encoder interacts with tokens progressively. Early layers focus on local, fine-grained details, while deeper layers capture broader temporal context. This hierarchy improves spotting precision while maintaining computational efficiency.

Multimodal Fusion

To address the challenge of non-visible actions, ASTRA integrates audio features with visual data. Visual features are pre-extracted, while audio features are derived from log-mel spectrograms using a VGG-inspired backbone. Audio serves as a critical "safety net"; for instance, the sound of a whistle or a commentator's shout can signal a kick-off even if the camera is focused on the crowd or a replay.

The ASTRA architecture, illustrating the flow from multimodal inputs through the hierarchical encoder-decoder to the spotting (Lambda_s) and displacement (Lambda_d) heads.

Uncertainty-Aware Displacement Head

Standard models often use Mean Squared Error (MSE) to predict the offset from an anchor point to the action frame. ASTRA instead models this displacement as a Gaussian distribution, predicting both a mean (location) and a variance (uncertainty). This allows the model to account for label noise; when a label is ambiguous or subjective, the model can predict a higher variance, which is penalized less severely by the negative log-likelihood loss function.

Balanced Mixup

To mitigate the long-tail problem, a queue-based balanced mixup strategy is used during training. This ensures that rare classes are represented more frequently in synthetic training samples, forcing the network to learn robust features for infrequent but high-impact events like red cards.

Results and Discussion

ASTRA was evaluated on the SoccerNet-v2 dataset, which includes 550 matches and 17 action classes. The model demonstrated state-of-the-art performance, particularly in the SoccerNet 2023 challenge, where it secured 3rd place with a tight Average-mAP (A-mAP) of 70.21.

Ablation studies highlighted the impact of individual components. The uncertainty-aware displacement head improved the tight A-mAP by +0.54, while the balanced mixup strategy provided a significant +0.85 boost, primarily benefiting rare "tail" actions. Furthermore, the integration of audio proved vital for non-visible actions, where ASTRA significantly outperformed visual-only competitors.

Conclusion

ASTRA represents a significant step forward in soccer action spotting by explicitly modeling the uncertainties and multimodal nature of sports broadcasts. While a performance gap remains between visible and non-visible actions (74.40 vs 61.10 A-mAP), the use of audio and Gaussian displacement modeling provides a robust foundation for future work. Potential improvements include the adoption of more advanced audio transformers and the incorporation of higher-level game state reasoning to further refine event predictions.

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