Generating Live Soccer-Match Commentary from Play Data

Yasufumi Taniguchi, Yukun Feng, Hiroya Takamura, Manabu Okumura

Abstract

Automating the generation of live sports commentary from structured play-by-play data remains a significant challenge in the field of natural language processing. This paper presents a neural framework designed to transform raw soccer event streams—comprising categorical IDs and continuous coordinates—into coherent, natural language descriptions. By employing a gated Multi-Layer Perceptron (MLP) encoder and a novel "placeholder reconstruction" mechanism, the proposed model effectively identifies salient match events and accurately attributes actions to specific players. Experimental results on English Premier League data demonstrate that the model significantly outperforms baseline methods in both BLEU scores and human evaluation of grammaticality and informativeness.

Introduction

Generating live sports commentary is a classic "data-to-text" problem, yet soccer presents unique hurdles that distinguish it from summarizing static box scores. Live play data is a high-frequency stream of attributes (e.g., "Player X performed a shot at coordinates Y, Z"). Researchers identify three primary difficulties in this domain: partial alignment, where only a fraction of events warrant commentary; data complexity, involving a mix of discrete and continuous values; and entity handling, where the sheer number of unique player names makes standard vocabulary learning impractical.

Methodology

To address these challenges, the authors propose an encoder-decoder architecture with several specialized modifications designed for the sports domain.

Gated MLP Encoder

While Recurrent Neural Networks (RNNs) are standard for sequential data, the authors found they performed poorly as encoders for soccer events. They argue that play events often behave more like a "set" than a strict sequence for the purpose of generating a single comment. Consequently, they utilize a Multi-Layer Perceptron (MLP) to encode events, augmented by a gate mechanism. This mechanism calculates an "importance score" for each event, allowing the model to filter out noise and focus on significant actions before the decoding stage.

Overview of the gated MLP encoder and placeholder-based decoder architecture.

Placeholder Reconstruction

To manage the thousands of unique player and team names, the model utilizes placeholders (e.g., player_1, team_1). This abstraction allows the decoder to focus on the linguistic structure of the commentary rather than memorizing specific entities. During the final stage of decoding, a reconstruction mechanism uses an attention-based pointer to map these placeholders back to the original entities found in the input data. To ensure accuracy, a reconstruction loss term is added to the objective function, penalizing the model if its attention fails to align with the actual player mentioned in the ground-truth commentary.

Dataset and Experimental Setup

The study utilizes play event data from the 2015/16 English Premier League season, provided by OptaSports. The raw dataset contains over 660,000 events but only approximately 26,000 human-written commentaries. Through preprocessing, the authors associated each commentary with the five temporally closest events, resulting in 17,140 training and test pairs. Each event includes rich metadata, such as x-y coordinates, timestamps, and subcategories like "big chance" or "keeper touched."

Results and Evaluation

The performance of the proposed framework was evaluated against several baseline configurations (Models 1–7) using both automated metrics and human judgment.

BLEU scores and human evaluation results across different model variants.

Quantitative Performance

The full model (Model 7) achieved a BLEU score of 7.46 for short sentences (length ≤ 10), representing a massive improvement over the baseline (Model 1), which scored only 0.45. The data indicates that while placeholders provided the most significant performance jump, the gate mechanism and reconstruction error provided incremental but statistically significant gains.

Qualitative and Human Evaluation

Human evaluators on Amazon Mechanical Turk rated the generated text on a scale of 1 to 3. The full model scored significantly higher in both grammaticality (2.07) and informativeness (1.69) compared to the baseline. These results suggest that the reconstruction loss effectively reduced "hallucinations," where the model might otherwise attribute a goal or foul to the wrong player.

Conclusion

This research demonstrates that a gated encoder combined with entity placeholders can effectively bridge the gap between structured sports data and natural language. While the model shows great promise, limitations remain regarding temporal alignment and the decision-making process for content selection (i.e., deciding when an event is worthy of a comment). Future work may explore multimodal inputs, such as video feeds, to resolve ambiguities that raw coordinate data cannot fully capture.

Summary updated

BibTeX
@inproceedings{taniguchi2019generating,
  author = {Yasufumi Taniguchi and Yukun Feng and Hiroya Takamura and Manabu Okumura},
  title = {{Generating Live Soccer-Match Commentary from Play Data}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.33017096},
}
Figure