Localization of Ice-Rink for Broadcast Hockey Videos

Mehrnaz Fani, Pascale Berunelle Walters, David A. Clausi, John S. Zelek, Alexander WongarXiv 2021

Introduction

In the domain of sports analytics, localization is a fundamental task that involves determining the precise camera view relative to the playing field. For ice hockey, this is typically achieved by calculating a homography—a projective transformation mapping 2D video coordinates to a 2D top-view model of the rink. Accurate localization enables downstream applications such as player tracking, automated statistics, and the placement of augmented reality (AR) advertisements.

However, hockey presents unique challenges. The featureless white ice surface makes traditional feature-tracking algorithms unreliable. Furthermore, frame-by-frame deep learning predictions often suffer from "jitter"—high-frequency noise that causes the projected rink to vibrate, reducing the quality of tracking data and visual presentation.

The Localization Framework

Researchers at the University of Waterloo have introduced an automatic framework designed to achieve high-accuracy localization while ensuring temporal stability. The system integrates deep learning for spatial prediction with classical signal processing for temporal smoothing.

The proposed three-stage pipeline for ice-rink localization, integrating Shot Boundary Detection (SBD), deep regression via ResNet-18, and Hann window smoothing.

1. Shot Boundary Detection (SBD)

To ensure that temporal smoothing is only applied within continuous camera shots, the framework first performs SBD. It utilizes a hierarchical partitioning method that divides the video into "mega-groups," "groups," and "segments." By analyzing block histograms and applying specific thresholds, the system identifies camera cuts and transitions to prevent smoothing across discontinuous shots.

2. Deep Regression

The core spatial localization is handled by a ResNet-18 architecture, pre-trained on ImageNet. For each input frame (resized to 180x320), the network regresses the coordinates of four specific control points ($p_{i1}$ to $p_{i4}$) on the ice-rink model. These points serve as the basis for the homography calculation.

Visualization of the four control points mapped onto the top-view rink model to define the homography.

3. Hann Window Smoothing

To eliminate jitter, the authors exploit the physical constraint that broadcast cameras move smoothly. Instead of using complex temporal models like Recurrent Neural Networks (RNNs), they apply a Hann window convolution to the predicted trajectories of the control points. This signal processing technique acts as a sophisticated moving average, filtering out high-frequency noise without compromising the underlying camera motion.

Experimental Results

The authors curated a custom dataset consisting of 72 hockey video-shots from 24 NHL games, with ground-truth homography matrices generated through manual annotation of key-frames every 20 frames.

  • Accuracy: The framework achieved a Mean Intersection over Union (IOU) of 94.65%, significantly outperforming the previous Single Feed Forward (SFF) benchmark of 90.1%.
  • Stability: The smoothing process drastically improved stability. The "smoothness score" (based on the standard deviation of coordinate differences) improved from 140.02 to 107.15, representing a 23% reduction in jitter.

Conclusion

This research demonstrates that combining deep learning with classical signal processing can solve complex computer vision problems more effectively than deep learning alone. By leveraging the physical reality of camera movement through Hann window smoothing, the framework achieves professional-grade stability and accuracy in hockey rink localization, providing a robust foundation for advanced sports analytics.

Summary updated

BibTeX
@misc{fani2021localization,
  author = {Mehrnaz Fani and Pascale Berunelle Walters and David A. Clausi and John S. Zelek and Alexander Wong},
  title = {{Localization of Ice-Rink for Broadcast Hockey Videos}},
  year = {2021},
  eprint = {2104.10847},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2104.10847},
}
Figure