Introduction
Tracking a ball in team sports such as soccer, basketball, or volleyball presents a significant challenge for computer vision systems. The ball is typically small, moves at high velocities—leading to substantial motion blur—and is frequently occluded by players or "lost" during periods of possession.
Traditional approaches often rely on sport-specific heuristics that lack generalizability or focus exclusively on either physical laws or player interactions. Purely physics-based models fail when a player carries the ball, while interaction-centric models struggle during long, high-flying passes. This research introduces a generic, "one-size-fits-all" mathematical framework that bridges this gap by simultaneously modeling ball-player interactions and enforcing physics-based constraints.
Methodology: Mixed Integer Programming
The core of the proposed framework is a Mixed Integer Program (MIP) formulation that optimizes the ball's trajectory globally across an entire sequence.
State-Based Modeling
Rather than treating the ball as a simple 3D coordinate, the system assigns a discrete "state" to the ball at every frame. These states include flying, in possession, rolling, or not present. This allows the model to switch between different governing rules based on the context of the game.
Physics and Interaction Constraints
The model enforces specific physical laws depending on the active state. In the flying state, the ball must adhere to a parabolic trajectory influenced by gravity. In the rolling state, a constant velocity model is applied. These are implemented as second-order constraints within the global optimization.
When the ball enters the possession state, physics constraints are relaxed in favor of interaction constraints: the ball must remain within a predefined distance of a detected player. By looking at the entire sequence globally using the Gurobi optimizer, the MIP finds the most likely path that satisfies all constraints simultaneously, preventing the "drift" common in frame-by-frame trackers.
Experimental Evaluation
The framework's versatility was evaluated across three distinct sports:
- Volleyball (Volley-1 & 2): Characterized by high-speed 60 fps sequences with significant blur and frequent strikes.
- Basketball (Basket-1, 2 & APIDIS): Challenging due to complex player-ball interactions and varying lighting.
- Soccer (Soccer-ISSIA): Large-scale field tracking where the ball often appears as a minimal number of pixels.
The system was compared against established baselines, including RANSAC-based trackers and the InterTrack algorithm, using both manually annotated data and public benchmarks.
Results and Discussion
The proposed method consistently outperformed state-of-the-art baselines in several key metrics.
Precision and Robustness
On the Volley-1 dataset, the system achieved significantly higher precision at low distance thresholds (e.g., within 25cm). In basketball sequences, where the ball is frequently occluded, the MIP formulation maintained a stable, physically plausible trajectory. In contrast, other methods often produced "physically impossible" jumps or lost the ball entirely during scrums.
Event Identification
Beyond spatial tracking, the model proved highly effective at identifying state transitions, such as the exact moment of a pass or a hit. This capability is critical for automated sports analytics and event detection. Furthermore, the research demonstrated that joint tracking—refining player positions based on ball location—provides a mutual boost in accuracy for both entities.
Conclusion and Future Work
The MIP-based approach offers a robust solution for ball tracking by integrating physical constraints with interaction modeling. While computationally more intensive than frame-by-frame methods, its global optimization provides superior stability and accuracy.
Future research directions include optimizing the framework for real-time performance on long sequences and improving robustness in scenarios with extremely poor initial detections. Additionally, the authors suggest extending this framework to higher-level activity recognition, such as distinguishing between different types of volleyball hits (e.g., a "spike" vs. a "set").
Summary updated