Abstract
Traditional basketball analytics rely on player centroid tracking, which fails to capture the tactical intent embedded in body posture. We present CourtMotion, a spatiotemporal modeling framework that integrates high-frequency skeletal tracking data with multi-agent transformer architectures. By employing a Graph Neural Network (GNN) skeleton encoder and an event-driven pretraining strategy, CourtMotion achieves a 35% reduction in trajectory prediction error and significantly outperforms state-of-the-art models in identifying complex basketball events like shots and picks before they occur.
Introduction
Automated sports analytics have historically treated players as moving points on a 2D plane. While effective for basic spatial analysis, this "centroid" approach ignores the rich information contained in a player's physical stance. In basketball, a defender’s crouch or a shooter’s pivot provides early signals of intent. CourtMotion addresses this limitation by incorporating 3D skeletal data, enabling the model to understand the biomechanical "how" and tactical "why" behind player movement.
Methods
The CourtMotion architecture is a two-stage pipeline designed to handle both individual biomechanics and multi-agent interactions.
- GNN Skeleton Encoder: The model first processes 3D joint data using a Directed Graph Neural Network. It treats the human skeleton as a graph where joints are nodes and bones are edges. This stage uses "Bi-Temporal Causal Convolutions" to aggregate motion over time, producing a pose embedding that captures nuanced body language.
- Player Embedding Transformer: These pose embeddings are fed into a Transformer architecture that looks at all ten players on the court simultaneously, modeling how one player's posture influences another's decision.
- Event-Driven Pretraining: During training, the model is tasked with predicting basketball events (passes, shots, etc.) across three temporal windows: past, present, and future. This multi-task learning forces the model to learn representations that connect physical movement to tactical outcomes.
Key Results
The framework was evaluated using the NBA SportVU dataset, augmented with skeletal pose information. CourtMotion demonstrated superior performance across multiple benchmarks:
- Trajectory Prediction: The model achieved a 35% reduction in Negative Log-Likelihood error compared to state-of-the-art position-based models like Baller2Vec++. As shown in the comparison by timesteps, the performance gain is consistent and significant.
- Posture Precedes Position: Skeletal data provides "early warning" signals. For shot-taker identification, CourtMotion reaches an Average Precision (AP) of 0.91 just 0.8 seconds before the shot, far outperforming models that only see player locations.
- Pick Detection: The model identifies screening plays with 0.82 AP even 0.6 seconds before the pick occurs.
Discussion and Limitations
CourtMotion is remarkably data-efficient, maintaining stable performance even when training data is reduced exponentially. This suggests the two-stage pretraining effectively captures generalizable "basketball logic."
However, the authors acknowledge that some tasks, like assist prediction, have a performance ceiling. Because an assist label depends on whether the subsequent shot actually goes in—which involves inherent randomness like rim bounces—no motion-based model can ever be 100% accurate. Future work will involve expanding the event vocabulary to include more nuanced actions like off-ball screens and applying the framework to other team sports like soccer or hockey.
Summary updated