Multi-agent statistical discriminative sub-trajectory mining and an application to NBA basketball

Rory P. Bunker, Vo Nguyen Le Duy, Yasuo Tabei, Ichiro Takeuchi, Keisuke FujiiarXiv 2023 · DOI

Abstract

Improvements in tracking technology through optical and computer vision systems have enabled a greater understanding of the movement-based behaviour of multiple agents, including in team sports. In this study, a Multi-Agent Statistically Discriminative Sub-Trajectory Mining (MA-Stat-DSM) method is proposed that takes a set of binary-labelled agent trajectory matrices as input and incorporates Hausdorff distance to identify sub-matrices that statistically significantly discriminate between the two groups of labelled trajectory matrices. Utilizing 2015/16 SportVU NBA tracking data, agent trajectory matrices representing attacks consisting of the trajectories of five agents (the ball, shooter, last passer, shooter defender, and last passer defender), were truncated to correspond to the time interval following the receipt of the ball by the last passer, and labelled as effective or ineffective based on a definition of attack effectiveness that we devise in the current study. After identifying appropriate parameters for MA-Stat-DSM by iteratively applying it to all matches involving the two top- and two bottom-placed teams from the 2015/16 NBA season, the method was then applied to selected matches and could identify and visualize the portions of plays, e.g., involving passing, on-, and/or off-the-ball movements, which were most relevant in rendering attacks effective or ineffective.

Introduction

The rise of high-frequency optical tracking in professional sports has created a data deluge. While analysts can now track every player's movement, identifying the specific moments that determine a play's success remains a challenge. This paper introduces Multi-Agent Statistically Discriminative Sub-Trajectory Mining (MA-Stat-DSM), an algorithm designed to pinpoint the exact segments of a sports play—sub-trajectories—that statistically distinguish "effective" attacks from "ineffective" ones. By focusing on multi-agent interactions, the method offers a more interpretable alternative to black-box deep learning models.

Methods: Multi-Agent Sub-Trajectory Mining

The core of the MA-Stat-DSM approach is the transition from individual trajectories to "trajectory matrices." These matrices represent the coordinated movements of five key agents: the ball, the shooter, the last passer, and their respective primary defenders. To maintain tactical interpretability, the model uses fixed roles (e.g., "shooter defender") rather than raw player IDs.

To compare plays of varying durations, the researchers incorporated Hausdorff distance, which measures similarity between sub-matrices regardless of length. This allows the algorithm to identify recurring tactical patterns even if they unfold at different speeds.

Temporal segmentation of an attack for analysis.

A critical step in the methodology is the temporal truncation of the data. As shown in Figure 1, the analysis focuses on the interval from when the last passer receives the ball ($t2$) until the shot is made ($t0$). This specific window captures the most relevant interactions leading to the scoring attempt, filtering out the non-interpretable initial analysis interval.

The algorithm employs Fisher’s Exact Test to identify sub-trajectories that appear significantly more often in effective plays. To ensure these patterns are not merely coincidental noise, the Westfall-Young permutation method is used to correct for multiple-testing bias.

Datasets and Labeling

The study utilized 2015/16 SportVU NBA tracking data, encompassing over 45,000 attacks sampled at 5Hz. A key innovation is the labeling schema: instead of using the binary outcome of "scored" or "missed," the authors defined "Effective" vs. "Ineffective" based on shot quality. A play is deemed effective if it results in a high-probability shot (e.g., a wide-open look or a high-percentage restricted area attempt), regardless of whether the ball actually goes through the hoop. This approach prioritizes tactical execution over individual shooting luck.

Key Insights and Results

The MA-Stat-DSM method successfully identified "turning points" in plays. In many instances, the discriminative factor was not the shot itself, but rapid off-the-ball movement by the shooter prior to receiving the pass.

  • Tactical Visualization: The model identified distinct patterns among top teams. For example, the Golden State Warriors often created "spread out" sub-trajectories where shooters moved significantly faster than defenders could react.
  • Parameter Sensitivity: The researchers found that a distance threshold ($\epsilon$) of 4 feet was optimal for identifying statistically significant patterns at the match level.
  • Computational Trade-offs: While effective, the use of Hausdorff distance increased computational time significantly—taking nearly five times longer to run with a threshold of 4 compared to 1.5.

Limitations and Future Work

While powerful, the current algorithm is computationally intensive, making full-season analysis slow. Additionally, the reliance on 2D data limits the ability to analyze verticality, such as passes lobbed over defenders. Future work aims to generalize the model to handle a variable number of agents and incorporate 3D coordinates to better capture the nuances of play in sports like basketball, soccer, or rugby.

Summary updated

BibTeX
@misc{bunker2023multi,
  author = {Rory P. Bunker and Vo Nguyen Le Duy and Yasuo Tabei and Ichiro Takeuchi and Keisuke Fujii},
  title = {{Multi-agent statistical discriminative sub-trajectory mining and an application to NBA basketball}},
  year = {2023},
  eprint = {2311.16564},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.16564},
}
Figure