Datasets:
event_id stringlengths 36 36 | match_id int64 7.3k 4.02M | season_id int64 1 315 | player_x_norm float64 0 1 | player_y_norm float64 0 1 | is_keeper bool 1
class | is_teammate bool 2
classes |
|---|---|---|---|---|---|---|
470f4adc-38e3-41f2-99d0-f118f8f5647e | 70,270 | 24 | 0.9475 | 0.38375 | false | false |
470f4adc-38e3-41f2-99d0-f118f8f5647e | 70,270 | 24 | 0.989167 | 0.455 | false | false |
470f4adc-38e3-41f2-99d0-f118f8f5647e | 70,270 | 24 | 0.920833 | 0.36 | false | false |
470f4adc-38e3-41f2-99d0-f118f8f5647e | 70,270 | 24 | 0.861667 | 0.2825 | false | true |
470f4adc-38e3-41f2-99d0-f118f8f5647e | 70,270 | 24 | 0.86 | 0.4075 | false | true |
470f4adc-38e3-41f2-99d0-f118f8f5647e | 70,270 | 24 | 0.901667 | 0.51 | false | true |
470f4adc-38e3-41f2-99d0-f118f8f5647e | 70,270 | 24 | 0.8125 | 0.56375 | false | false |
470f4adc-38e3-41f2-99d0-f118f8f5647e | 70,270 | 24 | 0.87 | 0.66125 | false | false |
470f4adc-38e3-41f2-99d0-f118f8f5647e | 70,270 | 24 | 0.86 | 0.4825 | false | false |
470f4adc-38e3-41f2-99d0-f118f8f5647e | 70,270 | 24 | 0.8625 | 0.36125 | false | false |
470f4adc-38e3-41f2-99d0-f118f8f5647e | 70,270 | 24 | 0.919167 | 0.50625 | false | false |
bae6155f-0d95-40e6-adfb-cf5491d5cf3f | 70,270 | 24 | 0.706667 | 0.68625 | false | true |
bae6155f-0d95-40e6-adfb-cf5491d5cf3f | 70,270 | 24 | 0.6975 | 0.48625 | false | false |
bae6155f-0d95-40e6-adfb-cf5491d5cf3f | 70,270 | 24 | 0.684167 | 0.52375 | false | true |
bae6155f-0d95-40e6-adfb-cf5491d5cf3f | 70,270 | 24 | 0.7025 | 0.3 | false | true |
bae6155f-0d95-40e6-adfb-cf5491d5cf3f | 70,270 | 24 | 0.779167 | 0.36875 | false | false |
bae6155f-0d95-40e6-adfb-cf5491d5cf3f | 70,270 | 24 | 0.826667 | 0.44125 | false | false |
bae6155f-0d95-40e6-adfb-cf5491d5cf3f | 70,270 | 24 | 0.8475 | 0.48125 | false | false |
bae6155f-0d95-40e6-adfb-cf5491d5cf3f | 70,270 | 24 | 0.725 | 0.5925 | false | false |
bae6155f-0d95-40e6-adfb-cf5491d5cf3f | 70,270 | 24 | 0.77 | 0.7875 | false | false |
bae6155f-0d95-40e6-adfb-cf5491d5cf3f | 70,270 | 24 | 0.968333 | 0.49375 | false | false |
16203cf8-db3a-4295-bdb6-c991e69f68f2 | 70,270 | 24 | 0.931667 | 0.51875 | false | false |
16203cf8-db3a-4295-bdb6-c991e69f68f2 | 70,270 | 24 | 0.995833 | 0.52375 | false | false |
16203cf8-db3a-4295-bdb6-c991e69f68f2 | 70,270 | 24 | 0.954167 | 0.535 | false | false |
16203cf8-db3a-4295-bdb6-c991e69f68f2 | 70,270 | 24 | 0.946667 | 0.62625 | false | true |
16203cf8-db3a-4295-bdb6-c991e69f68f2 | 70,270 | 24 | 0.948333 | 0.53875 | false | true |
16203cf8-db3a-4295-bdb6-c991e69f68f2 | 70,270 | 24 | 0.950833 | 0.5425 | false | false |
16203cf8-db3a-4295-bdb6-c991e69f68f2 | 70,270 | 24 | 0.975833 | 0.9825 | false | true |
16203cf8-db3a-4295-bdb6-c991e69f68f2 | 70,270 | 24 | 0.790833 | 0.53125 | false | true |
16203cf8-db3a-4295-bdb6-c991e69f68f2 | 70,270 | 24 | 0.804167 | 0.51 | false | false |
16203cf8-db3a-4295-bdb6-c991e69f68f2 | 70,270 | 24 | 0.864167 | 0.7875 | false | false |
16203cf8-db3a-4295-bdb6-c991e69f68f2 | 70,270 | 24 | 0.911667 | 0.64875 | false | false |
16203cf8-db3a-4295-bdb6-c991e69f68f2 | 70,270 | 24 | 0.943333 | 0.455 | false | false |
16203cf8-db3a-4295-bdb6-c991e69f68f2 | 70,270 | 24 | 0.9475 | 0.44875 | false | true |
16203cf8-db3a-4295-bdb6-c991e69f68f2 | 70,270 | 24 | 0.954167 | 0.62 | false | false |
16203cf8-db3a-4295-bdb6-c991e69f68f2 | 70,270 | 24 | 0.955 | 0.625 | false | false |
16203cf8-db3a-4295-bdb6-c991e69f68f2 | 70,270 | 24 | 0.956667 | 0.6725 | false | true |
16203cf8-db3a-4295-bdb6-c991e69f68f2 | 70,270 | 24 | 0.854167 | 0.8725 | false | true |
1ba25096-625f-48f2-86e9-5887a396286f | 70,270 | 24 | 0.7925 | 0.53625 | false | true |
1ba25096-625f-48f2-86e9-5887a396286f | 70,270 | 24 | 0.949167 | 0.565 | false | true |
1ba25096-625f-48f2-86e9-5887a396286f | 70,270 | 24 | 0.89 | 0.5675 | false | true |
1ba25096-625f-48f2-86e9-5887a396286f | 70,270 | 24 | 0.956667 | 0.44625 | false | true |
1ba25096-625f-48f2-86e9-5887a396286f | 70,270 | 24 | 0.8375 | 0.77 | false | true |
1ba25096-625f-48f2-86e9-5887a396286f | 70,270 | 24 | 0.915 | 0.93625 | false | true |
1ba25096-625f-48f2-86e9-5887a396286f | 70,270 | 24 | 0.929167 | 0.665 | false | true |
1ba25096-625f-48f2-86e9-5887a396286f | 70,270 | 24 | 0.9125 | 0.53875 | false | false |
1ba25096-625f-48f2-86e9-5887a396286f | 70,270 | 24 | 0.919167 | 0.48125 | false | false |
1ba25096-625f-48f2-86e9-5887a396286f | 70,270 | 24 | 0.95 | 0.54 | false | false |
1ba25096-625f-48f2-86e9-5887a396286f | 70,270 | 24 | 0.943333 | 0.625 | false | false |
1ba25096-625f-48f2-86e9-5887a396286f | 70,270 | 24 | 0.929167 | 0.58625 | false | false |
1ba25096-625f-48f2-86e9-5887a396286f | 70,270 | 24 | 0.964167 | 0.6075 | false | false |
1ba25096-625f-48f2-86e9-5887a396286f | 70,270 | 24 | 0.9925 | 0.5275 | false | false |
1ba25096-625f-48f2-86e9-5887a396286f | 70,270 | 24 | 0.8025 | 0.4875 | false | false |
1ba25096-625f-48f2-86e9-5887a396286f | 70,270 | 24 | 0.811667 | 0.78875 | false | false |
1ba25096-625f-48f2-86e9-5887a396286f | 70,270 | 24 | 0.885 | 0.605 | false | false |
fd349ade-aced-493f-ac3b-07c1598b5917 | 70,270 | 24 | 0.955 | 0.50125 | false | false |
fd349ade-aced-493f-ac3b-07c1598b5917 | 70,270 | 24 | 0.8175 | 0.1825 | false | true |
fd349ade-aced-493f-ac3b-07c1598b5917 | 70,270 | 24 | 0.739167 | 0.27125 | false | true |
fd349ade-aced-493f-ac3b-07c1598b5917 | 70,270 | 24 | 0.725 | 0.60875 | false | false |
fd349ade-aced-493f-ac3b-07c1598b5917 | 70,270 | 24 | 0.709167 | 0.7675 | false | true |
fd349ade-aced-493f-ac3b-07c1598b5917 | 70,270 | 24 | 0.839167 | 0.76875 | false | false |
fd349ade-aced-493f-ac3b-07c1598b5917 | 70,270 | 24 | 0.79 | 0.6 | false | true |
fd349ade-aced-493f-ac3b-07c1598b5917 | 70,270 | 24 | 0.863333 | 0.6075 | false | true |
fd349ade-aced-493f-ac3b-07c1598b5917 | 70,270 | 24 | 0.900833 | 0.5175 | false | true |
fd349ade-aced-493f-ac3b-07c1598b5917 | 70,270 | 24 | 0.754167 | 0.49625 | false | false |
fd349ade-aced-493f-ac3b-07c1598b5917 | 70,270 | 24 | 0.809167 | 0.5875 | false | false |
fd349ade-aced-493f-ac3b-07c1598b5917 | 70,270 | 24 | 0.828333 | 0.57875 | false | false |
fd349ade-aced-493f-ac3b-07c1598b5917 | 70,270 | 24 | 0.864167 | 0.5675 | false | false |
fd349ade-aced-493f-ac3b-07c1598b5917 | 70,270 | 24 | 0.861667 | 0.51375 | false | false |
fd349ade-aced-493f-ac3b-07c1598b5917 | 70,270 | 24 | 0.863333 | 0.4725 | false | false |
fd349ade-aced-493f-ac3b-07c1598b5917 | 70,270 | 24 | 0.899167 | 0.5075 | false | false |
9fd57b71-1d01-41fd-828b-727d456679cc | 70,270 | 24 | 0.751667 | 0.55625 | false | false |
9fd57b71-1d01-41fd-828b-727d456679cc | 70,270 | 24 | 0.886667 | 0.4475 | false | false |
9fd57b71-1d01-41fd-828b-727d456679cc | 70,270 | 24 | 0.895833 | 0.495 | false | false |
9fd57b71-1d01-41fd-828b-727d456679cc | 70,270 | 24 | 0.875 | 0.56625 | false | false |
9fd57b71-1d01-41fd-828b-727d456679cc | 70,270 | 24 | 0.895833 | 0.6275 | false | false |
9fd57b71-1d01-41fd-828b-727d456679cc | 70,270 | 24 | 0.849167 | 0.6725 | false | false |
9fd57b71-1d01-41fd-828b-727d456679cc | 70,270 | 24 | 0.88 | 0.68125 | false | false |
9fd57b71-1d01-41fd-828b-727d456679cc | 70,270 | 24 | 0.9875 | 0.52625 | false | false |
9fd57b71-1d01-41fd-828b-727d456679cc | 70,270 | 24 | 0.863333 | 0.68375 | false | false |
9fd57b71-1d01-41fd-828b-727d456679cc | 70,270 | 24 | 0.875 | 0.55875 | false | true |
9fd57b71-1d01-41fd-828b-727d456679cc | 70,270 | 24 | 0.8725 | 0.30125 | false | true |
9fd57b71-1d01-41fd-828b-727d456679cc | 70,270 | 24 | 0.851667 | 0.41875 | false | true |
9fd57b71-1d01-41fd-828b-727d456679cc | 70,270 | 24 | 0.79 | 0.77375 | false | true |
9fd57b71-1d01-41fd-828b-727d456679cc | 70,270 | 24 | 0.915 | 0.78875 | false | true |
143595ab-5962-4aa1-8a2c-602b0ebe9475 | 70,270 | 24 | 0.975833 | 0.43375 | false | false |
143595ab-5962-4aa1-8a2c-602b0ebe9475 | 70,270 | 24 | 0.938333 | 0.36375 | false | false |
143595ab-5962-4aa1-8a2c-602b0ebe9475 | 70,270 | 24 | 0.9175 | 0.49375 | false | false |
143595ab-5962-4aa1-8a2c-602b0ebe9475 | 70,270 | 24 | 0.916667 | 0.54125 | false | true |
143595ab-5962-4aa1-8a2c-602b0ebe9475 | 70,270 | 24 | 0.855833 | 0.41875 | false | true |
143595ab-5962-4aa1-8a2c-602b0ebe9475 | 70,270 | 24 | 0.801667 | 0.485 | false | true |
143595ab-5962-4aa1-8a2c-602b0ebe9475 | 70,270 | 24 | 0.833333 | 0.3725 | false | false |
143595ab-5962-4aa1-8a2c-602b0ebe9475 | 70,270 | 24 | 0.809167 | 0.35625 | false | false |
143595ab-5962-4aa1-8a2c-602b0ebe9475 | 70,270 | 24 | 0.8525 | 0.32875 | false | false |
143595ab-5962-4aa1-8a2c-602b0ebe9475 | 70,270 | 24 | 0.799167 | 0.63625 | false | false |
143595ab-5962-4aa1-8a2c-602b0ebe9475 | 70,270 | 24 | 0.864167 | 0.52875 | false | false |
e853a34e-02c7-4361-82ee-112c50b71c74 | 70,270 | 24 | 0.930833 | 0.38625 | false | false |
e853a34e-02c7-4361-82ee-112c50b71c74 | 70,270 | 24 | 0.9125 | 0.37375 | false | false |
e853a34e-02c7-4361-82ee-112c50b71c74 | 70,270 | 24 | 0.909167 | 0.34625 | false | false |
e853a34e-02c7-4361-82ee-112c50b71c74 | 70,270 | 24 | 0.968333 | 0.4425 | false | false |
xG Freeze-Frame Data — StatsBomb 360
~15.58M freeze-frame rows from 323 StatsBomb 360 matches, capturing player positions at the moment of each shot. Each row represents one visible player in one shot event.
Part of the (Right! Luxury!) Lakehouse soccer analytics platform.
Quick Start
from datasets import load_dataset
ds = load_dataset("luxury-lakehouse/xg-freeze-frame-data")
df = ds["train"].to_pandas()
# Average number of visible players per shot
df.groupby("event_id").size().describe()
Explore interactively: Soccer Analytics App
What Is This Dataset?
StatsBomb 360 data includes inline freeze frames for each event — a snapshot of every visible player's position at the instant of the event. This dataset extracts freeze-frame rows specifically for shot events, providing the spatial context that the xG v2 set encoder uses to condition expected goals predictions on defensive positioning.
Each row represents one player visible in one shot. A single shot typically has 10–22 freeze-frame rows (one per visible player). The set encoder aggregates these into a fixed-length context vector using permutation-invariant sum pooling.
Schema
| Column | Type | Description |
|---|---|---|
event_id |
string |
Shot event ID (FK to xG Shot Data) |
match_id |
bigint |
Match identifier |
competition_id |
bigint |
Competition identifier |
season_id |
bigint |
Season identifier |
player_x_norm |
double |
Player x position normalized to [0, 1] from StatsBomb 120-yard pitch |
player_y_norm |
double |
Player y position normalized to [0, 1] from StatsBomb 80-yard pitch |
is_keeper |
boolean |
Whether the player is the goalkeeper |
is_teammate |
boolean |
Whether the player is on the shooting team |
Coordinate System
Raw positions are in the StatsBomb coordinate system (120 × 80 yards, origin at bottom-left, attacking direction left to right). The player_x_norm and player_y_norm columns are normalized:
x_norm = location_x / 120.0
y_norm = location_y / 80.0
Data Sources
| Source | Coverage | License |
|---|---|---|
| StatsBomb Open Data (360 subset) | ~323 matches with inline freeze frames | CC-BY 4.0 |
Only StatsBomb 360 matches include freeze-frame data. Non-360 StatsBomb matches and all Wyscout matches do not contribute to this dataset. The xG v2 model handles missing freeze frames by falling back to a zero context vector.
Companion Resources
| Resource | Type | Description |
|---|---|---|
| xG v2 Set Encoder | Model | Deep Sets encoder + MLP that consumes this dataset as spatial context |
| xG Shot Data | Dataset | Tabular shot features (joins on event_id) |
| xG Model v1 | Model | Tabular-only XGBoost baseline (no freeze-frame context) |
Limitations
- Partial visibility: StatsBomb 360 captures only visible players. Players behind the camera or in crowded areas may be absent. The set encoder handles this gracefully (fewer rows per shot), but predictions may underestimate defensive pressure when defenders are occluded.
- StatsBomb 360 only: Covers ~323 of ~3,000 StatsBomb matches. The majority of shots in the xG Shot Data dataset do not have corresponding freeze-frame rows.
- Shot events only: This dataset extracts freeze frames for shots specifically. Freeze frames for other event types (passes, tackles) are not included.
- No player identity: The dataset includes spatial position and role flags only. Player name, jersey number, height, and other attributes are not captured.
Citation
If you use this dataset, please cite StatsBomb and the Deep Sets architecture:
@misc{statsbomb2024opendata,
title={StatsBomb Open Data},
author={{StatsBomb}},
year={2024},
url={https://github.com/statsbomb/open-data},
note={CC-BY 4.0}
}
@inproceedings{zaheer2017deep,
title={Deep Sets},
author={Zaheer, Manzil and Kottur, Satwik and Ravanbakhsh, Siamak
and P{\'o}czos, Barnab{\'a}s and Salakhutdinov, Ruslan
and Smola, Alexander J.},
booktitle={Advances in Neural Information Processing Systems (NeurIPS)},
volume={30},
year={2017}
}
More Information
- License: CC-BY 4.0
- Publishing script:
scripts/publish_xg_shots_hf.py - Platform: Luxury Lakehouse Soccer Analytics
PR 7 changelog (2026-04-27)
The lineage mart fct_shots now carries Kimball surrogate FKs (team_key, player_key) alongside the existing match_key (PR 3) and the legacy team_id/player_id INT columns during the 2026-07-22 dual-column window per ADR-011. The freeze-frame payload itself is unchanged at this grain; the keys flow through fct_xg_predictions_v2 (the v2 set-encoder mart) via INNER JOIN to fct_shots. PR 8 will sunset legacy IDs post-2026-07-22.
- Downloads last month
- 1,511