SportMamba: Adaptive Non-Linear Multi-Object Tracking with State Space Models for Team Sports

Dheeraj Khanna, Jerrin Bright, Yuhao Chen, John S. Zelek

TL;DR

SportMamba introduces a hybrid multi-object tracking (MOT) framework designed specifically for the chaotic, non-linear environment of team sports. By combining Mamba state-space models with self-attention and a novel height-adaptive spatial association metric, it achieves state-of-the-art tracking accuracy while running at a real-time 30 FPS.

What Problem Does This Paper Address?

Multi-Object Tracking (MOT) in team sports is notoriously difficult. Players move fast, change directions unpredictably (highly non-linear motion), look identical due to team uniforms, and frequently occlude one another, causing severe motion blur and identity switches.

Traditional tracking methods rely heavily on Kalman Filters, which assume linear velocity and fail during sudden cuts, turns, or skates. Modern Transformer-based models can handle non-linear motion but are too computationally heavy for real-time deployment. While State Space Models (SSMs) like Mamba offer efficient linear-time sequence modeling, they tend to lose track during prolonged occlusions because they compress historical information too aggressively. SportMamba bridges this gap by providing an accurate, real-time tracking solution tailored for fast-paced sports analytics.

Methods

The authors propose SportMamba, an online tracking-by-detection pipeline consisting of four main stages:

  1. Detection: A fine-tuned YOLOX detector identifies players in each frame.
  2. Mamba-Attention Motion Prediction: To capture non-linear player trajectories without the heavy overhead of full transformers, the authors inject a Multi-Head Self-Attention (MHSA) block directly into a Mamba encoder architecture. This allows the model to implicitly focus on relevant historical dependencies during complex maneuvers.
  3. Height-Adaptive Spatial Association (HA-EIoU): Standard Intersection-over-Union (IoU) metrics fail when fast-moving players shift slightly between frames or change scale due to depth changes relative to the camera. SportMamba introduces a Height-Adaptive Extended IoU (HA-EIoU) that applies an expansion buffer to the bounding boxes and explicitly scales the match cost based on vertical overlap.
  4. Two-Stage Data Association & Dynamic EMA: High-confidence detections are matched using a hybrid cost matrix combining HA-EIoU and Re-ID appearance features. Low-confidence detections are matched using spatial constraints alone. To prevent blurred or occluded frames from corrupting a player's appearance profile, the tracklet embeddings are updated using a dynamic Exponential Moving Average (EMA) weighted by detection confidence.

The overall architecture and motion prediction pipeline are detailed in the figures below:

Figure 2. Overview of SportMamba. The architecture follows a four-stage process: (1) A fine-tuned object detector detects players; (2) A motion predictor estimates future player positions based on past tracklets; (3) A high-confidence association using a hybrid matching metric integrating appearance modeling and a hybrid cost estimated by a height-adaptive IoU with extended buffers. (4) Low-confidence and unmatched matches from (3) are reassociated using a relaxed IoU without appearance matching. SportMamba concludes with tracklet management- update, create, delete operations and dynamic EMA of the updated tracklets.
Figure 3. Overview of the Motion Prediction Model. The model first encodes past object trajectories (Tin) using a Token Embedding Layer, followed by a Mamba-Attention Encoder that models long-range motion dependencies using a discretized state-space representation. An MHSA Block refines the Mamba-encoded features followed by FFN for feature transformation. After passing through M stacked Mamba-Attention blocks, the final representation is fed to a prediction head (MLP) to output the bounding box for the next frame.

Datasets

  • SportsMOT: A large-scale benchmark consisting of 240 video sequences across basketball, soccer, and volleyball. It features complex, non-linear player movements and frequent occlusions.
  • VIP-HTD: An ice hockey dataset containing 22 broadcast sequences characterized by extreme motion blur and rapid, unpredictable skating trajectories. The authors use this dataset exclusively for zero-shot generalization testing.

Key Insights and Ideas

  • Mamba + Attention Hybridization: Pure SSMs struggle with long-term occlusions because their hidden state compresses past information uniformly. Adding a self-attention mechanism specifically targeting the Mamba features allows the network to selectively recall critical trajectory points during non-linear turns.
  • Height Matters in Sports Depth: In broadcast sports footage, depth changes translate directly to bounding box height variations. By multiplying EIoU with a dedicated Height IoU (HIoU) factor, the model penalizes physically impossible depth jumps, drastically reducing identity switches during partial player overlaps.
Figure 4. Visual Representation of HIoU against EIoU. (a) Vi- sualizes the detection with groundtruth (in blue) and prediction (in red); (b) Representation of the HIoU metric; which is the height overlap by the total height; (c) Extended bounding box represented with dotted lines based on a buffer b; and (d) Representation of EIoU using the extended bounding boxes.
  • Confidence-Gated Memory: Instead of updating player appearance features uniformly, scaling the EMA smoothing factor based on detection confidence ensures that motion-blurred or poorly detected frames don't overwrite clean historical appearance data.

Key Results

  • SportsMOT Benchmark: SportMamba achieved state-of-the-art performance among learning-based methods, scoring 77.3 HOTA, 77.7 IDF1, and 96.9 MOTA. It outperformed the diffusion-based DiffMOT by 1.06 HOTA and 1.6 IDF1.
HOTA vs IDF1 comparison
  • Zero-Shot Generalization: When transferred directly to the challenging VIP-HTD ice hockey dataset without any fine-tuning, SportMamba achieved the top HOTA score of 65.1, demonstrating robust out-of-distribution generalization.
  • Efficiency: The entire pipeline operates at approximately 30 FPS during inference, making it highly viable for real-time sports analytics.

Limitations and Future Work

The authors note that severe motion blur remains a bottleneck. When a player's movement is fast enough to completely degrade the object detector's performance or wipe out distinct appearance cues, the pipeline can still suffer from broken tracklets. Future work will likely focus on making the detection and appearance modeling stages more robust to extreme motion blur.

Summary updated

BibTeX
@inproceedings{khanna2025sportmamba,
  author = {Dheeraj Khanna and Jerrin Bright and Yuhao Chen and John S. Zelek},
  title = {{SportMamba: Adaptive Non-Linear Multi-Object Tracking with State Space Models for Team Sports}},
  booktitle = {Workshops @ CVPR},
  year = {2025},
}
Figure