Skip to content
itzmore-mphPublic

About

Blind-side pressing from broadcast body pose, with measurement uncertainty. SkillCorner X PySport Analytics Cup 2.0.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

blindside

Who is pressed from the blind side? Broadcast body pose against the XY proxy, with honest uncertainty.

Entry for the SkillCorner X PySport Analytics Cup 2.0, theme Defensive Positioning. Video: Blind-Side Pressing from Broadcast Body Pose.

What I did

I measured where a ball carrier faces from SkillCorner's broadcast body pose (29 joints, 25 fps, two matches), with its measurement error, and asked of 1,875 on-ball engagements whether the presser came from outside the carrier's visual field.

  • The XY proxy (presser more than 100 degrees off the direction of travel) calls 45.5% of engagements blind. Head pose calls 20.5%, torso pose 23.2%.
  • The two agree beyond chance only when the carrier runs. Cohen's kappa against the head label is 0.09 below 2 m/s, 0.31 at 2 to 4, 0.54 at 4 to 6 and 0.58 above 6 m/s (overall 0.28, 95% interval 0.24 to 0.31).
  • A pre-registered test found no detectable increment of pose over XY for possession loss.

XY proxy against the pose blind-side label by carrier speed

Exploratory, no outcome used. Kappa measures agreement, not accuracy: without ground truth, "pose carries orientation that XY lacks" and "one of the labels is noisy" cannot be separated.

Why this problem matters

Pressing a ball carrier from outside their visual field is a coaching staple, but XY tracking has no body orientation. Analysts fall back on a proxy: the presser comes from behind the carrier's direction of travel. Body pose lets me check whom that proxy labels. One press on the pitch shows the labels parting: a carrier backs away at 1.5 m/s while facing the presser.

How I solved it, with uncertainty bounds

  1. Orientation with uncertainty. Torso, hip and head facing come from the shoulder, hip and ear pairs in the ground plane. Every joint ships with a predicted error (p90_mae_cm). I treat it as an isotropic Gaussian (sigma = p90 / 2.5, an assumption, varied from 2.0 to 3.0) and propagate it by Monte Carlo into a circular standard deviation.
  2. A bracket, not a number. Independent joint errors overstate the angular noise if they are correlated. The Monte Carlo SD is therefore the upper bound and the frame-to-frame jitter the lower: torso 1.4 to 5.1 degrees, hips 2.0 to 12.0, head 2.0 to 13.2. The true error lies between.
  3. Reliability map. Above 6 m/s the hip facing lies within 90 degrees of the direction of travel in 99.7% of poses. The published joint error is flat across the pitch, the jitter grows by up to 55% towards the far touchline.
  4. p_blind_side. The share of facing samples for which the presser lies outside a visual field of 100 degrees to each side, under both bounds.

Reliability of pose-derived orientation

Prior art: SkillCorner's reference helper (MIT) gates shoulder orientation with a hard 15 cm threshold. This package propagates the error instead.

The pre-registered test: what 217 events can resolve. Before any outcome was joined to pose, docs/PREREGISTRATION.md fixed the outcome (loss of the pressed possession), an XY baseline from the 18 matches without pose, four pose features, the model and the resampling by possession.

  • Result: adding the pose features changes the out-of-sample log loss by minus 0.0002 (95% intervals within minus 0.0004 to 0.0000) under both bounds, and none of ten robustness checks changes that. The blind-side metric is implemented and geometrically verified, not validated as an explanatory variable.
  • Resolution: with 217 possession losses, the unpenalised coefficient of p_blind_side has an odds ratio interval of 0.84 to 1.47 per standard deviation (standard error 0.14). A moderate effect is neither shown nor excluded.
  • Rerun: for an odds ratio of 1.25 (assumed for planning, not found), about 700 possession losses, seven matches, give 80% power (calculation). The frozen design reruns unchanged once SkillCorner publishes more pose matches.

Implications and open-source reuse

Installs on its own (pip install .):

import numpy as np
from blindside import blind_side_probability, bound_correlation, sample_facing_angles

# Carrier facing +x, presser behind the left shoulder.
ears = dict(left_xy=[[0.0, 0.09]], right_xy=[[0.0, -0.09]], left_p90_cm=[6.0], right_p90_cm=[6.0])
for bound in ("lower", "upper"):
    rho = bound_correlation("head", bound)
    facing = sample_facing_angles(**ears, correlation=rho, rng=np.random.default_rng(0))
    p = blind_side_probability(facing, carrier_xy=[[0.0, 0.0]], presser_xy=[[-1.0, 3.0]])
    print(f"p_blind_side, {bound} bound: {p[0]:.2f}")  # 1.00 and 0.73

Tactical and scouting takeaways

Descriptive, no outcome used (details). "Confidently blind": head p_blind_side above 0.8 under both bounds, 296 of 1,875 engagements.

  • When to trust XY. Carrier below 2 m/s (35% of engagements): do not count blind-side presses from XY alone. From 4 m/s the proxy is a workable stand-in (kappa 0.54 to 0.77). classify_xy_reliability(carrier_speed) encodes this for matches without pose.
  • Where. Confidently blind: 19.2% of presses in the middle third, 10.9% in the opponent's build-up third. The XY proxy sees no difference (50.6%, 48.2%).
  • Who. Central midfielders lead both lists: E. Alagich presses this way most (20 of 83), J. O'Shea is pressed this way most (29 of 100).

Reproduce and quick look

Without installing: examples/walkthrough.ipynb is stored with its outputs. Script: examples/quickstart.py.

Requires uv. Data comes from SkillCorner's open data (GitHub, Hugging Face), pinned and verified by sha256.

uv sync
uv run blindside reproduce --fast        # sample phase, 1 minute, 100 MB
uv run blindside reproduce               # both figures, 13 minutes, 1.4 GB
uv run blindside reproduce --with-test   # plus pre-registered test, 3 GB
uv run pytest

--fast writes stamped stand-ins to outputs/fast/, --with-scene adds the pitch scene.

Limitations

  • Two matches. The intervals describe the sampling of possessions inside them.
  • No ground truth for orientation. The ear axis stands in for gaze, and a carrier who scanned half a second earlier counts as blind.
  • The error model and the visual field are assumptions, each with a sensitivity check.

Details: feasibility, reliability, baseline, incremental value, exploratory.

Libraries and licence

numpy, pandas, scikit-learn and scipy (BSD-3-Clause), pyarrow (Apache-2.0), matplotlib (Matplotlib licence), mplsoccer, pytest, ruff and hatchling (MIT). All analysis code is new for this entry. Licence: MIT, see LICENSE.md.

About

Blind-side pressing from broadcast body pose, with measurement uncertainty. SkillCorner X PySport Analytics Cup 2.0.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Contributors

Languages