TempoLens labels every frame of FC Barcelona vs Athletic Club with who has the ball (H / A /
D / X). A 10-member ensemble of bidirectional GRUs reads 149 identity-free features of the
automatic tracking. Its members were trained only on open football data (Metrica's 3 sample games
and 7 DFL/Sportec matches), with tracking noise simulated to match the competition's. Viterbi then
decodes the ensemble's output into whole possessions, the unit that spellF1 scores. Test-time
feature normalisation and a Smart Tagging prior adjust it to the match without labels; no weight
is trained or updated on the match. Every
setting was chosen on open data only: no hand labels, no checks against the video, nothing tuned
on the provided match.
No ground truth, label or video of the provided match was used to train the submitted models, and none of their weights was fitted or updated on the match. Every submitted setting was finally chosen without the match's ground truth: by experiments on open data, or set by hand for a few tag-prior constants. Since the organisers' rules mail of 3 Nov, the public five minutes of ground truth have been scored only to check that the pipeline is correct and working. Disclosed in the technical document, section 6: before that mail, exploration also used the public window and video reviews of our output (the restart-spot features were designed that way and later re-decided on open data); the pipeline check of 7 Nov preceded a change to an adoption rule; and the simulator was calibrated to aggregate statistics of the match's tracking and to the organisers' published baseline scores. At inference the pipeline reads the match's tracking and Smart Tagging without labels; test-time normalisation and the tag prior change no weights.
Documents: the short technical document docs/Coding United.md · the long appendix docs/technical_document.md · every experiment and decision rule docs/plan_of_action.md · pipeline and commands README_Tempolens.md · the official challenge README, unchanged: README_challenge.md.
pip install -r requirements-tempolens.txt # or requirements-predict.txt: the submission only
# Linux: add --extra-index-url https://download.pytorch.org/whl/cpu to get the CPU torch wheel
# instead of the much larger CUDA one (the Linux rebuild below used the CPU wheel)
# unpack the organisers' data bundle into data/ (data/tactical/..., see data/README.md)
python -m tempolens.predict --data-root data --output "Coding United.csv"
python evaluation/validate_submission.py "Coding United.csv"- Expected output: 199,319 rows plus the header. sha256
9cc22752a2e280cb782823134b1209fa44be8a81228d607f8799b95e7878a61c(TTA-only,eata_steps0). - Runtime: 4 to 12 minutes on a CPU with the 10 members and TTA: 263–698 s across the recorded fresh-clone rebuilds on a laptop (Intel Core i7-12700H, 14 cores, 16 GB RAM, often sharing the CPU with another job), and 531 s on Linux with 2 CPUs. With EATA it took 14–24 minutes.
- Environment: Python 3.11 or 3.12 (tested on 3.11.3 and 3.12.3), the pinned versions in the requirements file. Only CPU is needed: inference runs in float64 in a fixed order, so the same data gives the same file byte for byte. A GPU is not used even if one is present. Byte identity was verified from fresh clones in fresh environments on Windows 11 (Python 3.11.3) and on Linux (Ubuntu 24.04 under WSL2, Python 3.12.3, the CPU torch wheel, 2 CPUs and 1 GB of memory: 531 s, peak memory 0.66 GB), both x86-64. macOS and ARM have not been checked.
- Inputs: the tactical tracking (
data/tactical/BAR-ATH_tactical_atd.*) and the Smart Tagging file. No video, no homography, no broadcast feed, no open data, no network access. - The weights (
models/tempolens_rnd4_m*.pt,models/tempolens_ms50_m*.pt) and every decoder setting (models/decoder.json) are committed. GPU training is not bit-reproducible, so retraining gives close but different weights; the code also now simulates noise with simulator version 3 (each half's stoppages lost separately, plan row AUD4), while the committed weights were trained under version 2 (tagphase1-submission). See README_Tempolens.md.
The repository holds no competition tracking, video or tags: data/ ships with its README only.
The only match-derived files are the organisers' own public five-minute ground truth and baseline
files in evaluation/, as shipped by the challenge repository; the submission file the README's
command writes is git-ignored.
Point MTAH_OPEN_DATA_DIR at a folder holding these:
| dataset | folder | use | licence / terms |
|---|---|---|---|
Metrica Sports sample data, games 1–3: git clone https://github.com/metrica-sports/sample-data metrica_sample_data |
metrica_sample_data/ |
training and cross-validation | public sample data; Metrica asks that public use acknowledge the source (this README and the documents do) |
DFL/Sportec open tracking and event data, 7 matches (2 Bundesliga, 5 2. Bundesliga): Bassek, M., Rein, R., Weber, H. & Memmert, D. (2025), "An integrated dataset of spatiotemporal and event data in elite soccer", Scientific Data 12, 195. figshare article 28196177: the positions_raw, matchinformation and events_raw files |
dfl_idsse/ |
training and cross-validation | CC-BY 4.0, used with this attribution |
SkillCorner open data, 20 A-League matches, broadcast tracking: git clone https://github.com/SkillCorner/opendata skillcorner |
skillcorner/ |
test only (real-tracking condition), never in the submitted models' training | MIT |
| PFF FC World Cup 2022 tracking and events (16 of 64 matches scored) | pff_wc2022/ |
test only (one extra check), never in training | PFF FC's terms of use, accepted at download |
export MTAH_OPEN_DATA_DIR=/path/to/external_data # PowerShell: $env:MTAH_OPEN_DATA_DIR = "..."
python -m tempolens.train --member 0 --draws 4 --out models/retrained_m0.pt # ENS5 recipe
python -m tempolens.train --member 0 --draws 4 --min-spell 50 --out models/retrained_ms50_m0.pt # ms50 recipepip install pytest
python -m pytest -q tests # skips the one slow end-to-end test
MTAH_E2E=1 python -m pytest -q tests # all of them; PowerShell: $env:MTAH_E2E = "1" firstThe tests run on synthetic files: they need neither the match data nor the open data. The
end-to-end test runs tempolens.predict on a fake bundle in the real file formats and checks that
two runs write the same bytes; it is the only test of the path from the tracking files to the CSV.
LICENSE is the challenge repository's MIT licence (copyright Metrica Sports), kept unchanged from the fork. As its scope note says, it does not cover the match data, which is licensed for the competition only and is not in this repository.