NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Sporthesia: Augmenting Sports Videos Using Natural Language

Chen Zhu-Tian, Qisen Yang, Xiao Xie, Johanna Beyer, Haijun Xia, Yingcai Wu, Hanspeter Pfister

TL;DR

Sporthesia is a novel system that automatically generates augmented sports videos by translating natural language commentary into embedded visualizations. By leveraging a three-step pipeline—detecting entities, mapping them to visual marks, and scheduling them based on video events—it allows analysts to create data-rich content simply by describing their insights.

What Problem Does This Paper Address?

Augmented sports videos—think of the player spotlights, ball trajectories, and heatmaps seen on ESPN—are highly effective for communicating complex tactical insights. However, creating them is a bottleneck. It currently requires professional video editing skills and significant time to manually "translate" a high-level insight (e.g., "Federer covers the crosscourt") into low-level graphical elements (e.g., drawing a shaded area on a specific court coordinate at a specific timestamp).

Sports analysts typically express their findings in natural language, yet existing tools require them to manipulate raw data or graphical marks. The authors aim to bridge this gap, enabling a "language-driven authoring" workflow where the text itself drives the visualization.

Methods

The authors propose a three-step approach to transform text into video augmentations:

  1. Entity Detection: Using Natural Language Processing (NLP) tools like SpaCy and BERT, the system identifies four categories of visualizable entities: Objects (players, court areas), Actions (hits, runs), Data (speed, percentages), and Emotional Cues (subjective praise). Crucially, it uses Semantic Role Labeling (SRL) to understand the relationships between these entities (e.g., who is performing the action and where).
  2. Visual Mapping: The system maps detected entities to specific visual effects. While objects map to spotlights and data maps to labels, complex sports jargon is handled via a "glossary-driven" approach. For instance, the term "crosscourt" is looked up in a sports glossary, decomposed into "hitting the ball into the diagonal court," and then mapped to a ball trajectory visualization.
  3. Visualization Scheduling: To ensure the visuals appear at the right time, the system uses a dual-calibration method. It first estimates timing based on the reading speed of the text (via Text-to-Speech alignment). It then refines this "initial schedule" by aligning it with physical events detected in the video (e.g., a ball bounce or a racket stroke) using computer vision models like TTNet.
The Sporthesia pipeline: from raw video and text to an augmented output.

The underlying video processing relies on Detectron2 for player/ball segmentation and court line detection, providing the spatial context needed to anchor the visualizations.

Datasets

The researchers curated a new dataset to inform their design and evaluate the system:

  • Formative Dataset: 155 sports video clips (approx. 92 minutes) across six sports (tennis, badminton, table tennis, basketball, soccer, and American football).
  • Commentary Corpus: 12,545 words of transcribed English audio commentary, manually labeled for entity recognition training and evaluation.

Key Insights and Ideas

  • Implicit vs. Explicit NLI: Unlike traditional Natural Language Interfaces (NLI) that treat text as a command (e.g., "Show me a bar chart"), Sporthesia treats text as an information source. It assumes the commentary already contains the insights and seeks to visualize them implicitly.
  • The Power of SRL: Simply identifying keywords isn't enough. By using Semantic Role Labeling, the system can distinguish between "Federer hits the ball" and "The ball hits Federer," ensuring the spotlight or trajectory is attached to the correct subject.
  • Jargon Decomposition: One of the "aha moments" is the use of external glossaries to handle domain-specific language. This allows the system to remain generalizable without needing a hard-coded visual rule for every possible sports term.
  • Dual Modes of Delivery: The authors identified two distinct styles: Play-by-play (visuals appear in real-time as the action unfolds) and Analyst mode (the video pauses to allow for a deeper dive into a specific moment).

Key Results

  • Technical Accuracy: The Entity Detector achieved a high F1-score of 0.90 overall. It was particularly strong at identifying Objects (0.93) and Actions (0.92).
  • Expert Validation: In a study with eight sports analysts, the system received high scores for usefulness ($\mu=4.88/5$) and effectiveness ($\mu=4.65/5$). Analysts noted that it "significantly lowers the entry barriers" for creating professional-looking content.
  • Historical Augmentation: The authors demonstrated that the system could successfully augment archive footage (like the 2019 Wimbledon finals) by simply processing the existing broadcast audio through a Speech-to-Text engine.
A three-step approach to augment sports videos with embedded visualizations based on text commentary.

Limitations and Future Work

  • Semantic Complexity: The SRL model can struggle with long, complex sentences or deep semantic relationships (e.g., "He takes a swatting backhand after this forehand").
  • Computer Vision Dependencies: The system is only as good as its tracking. If the ball or player is occluded or the CV model fails, the visualizations will be misplaced.
  • Generalizability: While the framework is designed for all ball sports, the current implementation is optimized for racket sports. Expanding to team sports like soccer would require handling much higher entity density and more frequent occlusions.
  • Multimodal Interaction: Experts suggested a hybrid approach where they could type a sentence and then use a mouse to precisely click a location in the video that might be hard to describe in words.

Summary updated

BibTeX
@article{zhutian2023sporthesia,
  author = {Chen Zhu-Tian and Qisen Yang and Xiao Xie and Johanna Beyer and Haijun Xia and Yingcai Wu and Hanspeter Pfister},
  title = {{Sporthesia: Augmenting Sports Videos Using Natural Language}},
  journal = {IEEE Trans. Vis. Comput. Graph.},
  year = {2023},
  doi = {10.1109/tvcg.2022.3209497},
}
Figure