RepositoryPythonBEBelgium
ML

ML-KULeuven/socceraction

Convert soccer event stream data to SPADL and value player actions using VAEP or xT

832stars
159forks
24issues
2views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: soccer

#1 Repository of the week

2
TINIX TRENDING·Topic: soccer-analytics

#2 Repository of the week

2
TINIX TRENDING·Topic: sports-analytics

#2 Repository of the week

Convert soccer event stream data to the SPADL format
and value on-the-ball player actions


PyPi Python Version: 3.9+ Downloads License: MIT

Build Status Read the Docs Code coverage



Socceraction is a Python package for objectively quantifying the impact of the individual actions performed by soccer players using event stream data. The general idea is to assign a value to each on-the-ball action based on the action's impact on the game outcome, while accounting for the context in which the action happened. The video below gives a quick two-minute introduction to action values.

Features

Socceraction contains the following components:

  • A set of API clients for loading event stream data from StatsBomb, Opta, Wyscout, Stats Perform and WhoScored as Pandas DataFrames using a unified data model. Read more »
  • Converters for each of these provider's proprietary data format to the SPADL and atomic-SPADL formats, which are unified and expressive languages for on-the-ball player actions. Read more »
  • An implementation of the Expected Threat (xT) possession value framework. Read more »
  • An implementation of the VAEP and Atomic-VAEP possession value frameworks. Read more »

Installation / Getting started

The recommended way to install socceraction is to simply use pip. The latest version officially supports Python 3.9 - 3.12.

$ pip install socceraction

The folder public-notebooks provides a demo of the full pipeline from raw StatsBomb event stream data to action values and player ratings. More detailed installation/usage instructions can be found in the Documentation.

Contributing

All contributions, bug reports, bug fixes, documentation improvements, enhancements, and ideas are welcome. However, be aware that socceraction is not actively developed. It's primary use is to enable reproducibility of our research. If you believe there is a feature missing, feel free to raise a feature request, but please do be aware that the overwhelming likelihood is that your feature request will not be accepted. To learn more on how to contribute, see the Contributor Guide.

Research

If you make use of this package in your research, please consider citing the following papers:

  • Tom Decroos, Lotte Bransen, Jan Van Haaren, and Jesse Davis. Actions speak louder than goals: Valuing player actions in soccer. In Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pp. 1851-1861. 2019.
    [ pdf | bibtex ]

  • Maaike Van Roy, Pieter Robberechts, Tom Decroos, and Jesse Davis. Valuing on-the-ball actions in soccer: a critical comparison of XT and VAEP. In Proceedings of the AAAI-20 Workshop on Artifical Intelligence in Team Sports. AI in Team Sports Organising Committee, 2020.
    [ pdf | bibtex ]

The Expected Threat (xT) framework was originally introduced by Karun Singh on his blog in 2019.

License

Distributed under the terms of the MIT license, socceraction is free and open source software. Although not strictly required, we appreciate it if you include a link to this repo or cite our research in your work if you make use of socceraction.

Acknowledgments

Funding for this project has been provided by the Flemish Government under the "Onderzoeksprogramma Artificiële Intelligentie (AI) Vlaanderen" programme.

Similar Projects

Discover other similar projects and AI models.

RepositoryPython
probberechts/soccerdata

⛏⚽ Scrape soccer data from Club Elo, ESPN, FBref, Football-Data.co.uk, Sofascore, SoFIFA, Understat and WhoScored.

2.1k
Nov 21, 2026
RepositoryPython
UnravelSports/unravelsports

The unravelsports package aims to aid researchers, analysts and enthusiasts by providing intermediary steps in the complex process of turning raw sports data into meaningful information and actionable insights.

251
Jan 16, 2026
RepositoryTypeScript
withqwerty/reep

The football entity register. Maps player, team, and coach identities across Transfermarkt, FBref, UEFA, Sofascore, and 25+ data providers.

246
Aug 20, 2026
RepositoryJupyter Notebook
eddwebster/football_analytics

📊⚽ A collection of football analytics projects, data, and analysis by Edd Webster (@eddwebster), including a curated list of publicly available resources published by the football analytics community.

2.9k
Oct 9, 2025
Repository
matiasmascioto/awesome-soccer-analytics

:soccer::chart_with_upwards_trend: A curated list of awesome resources related to Soccer Analytics.

633
Nov 17, 2020
Repository
martj42/international_results

No description provided.

534
Nov 23, 2026
Dataset
atomscott/soccertrack-v2

SoccerTrack v2 Ten university-level soccer matches (934 minutes) recorded by fixed panoramic camera systems whose field of view spans the entire pitch, released together with frame-level game state annotations and player-linked ball action events on the same footage. Contents Folder Contents videos/ 20 panoramic half-match videos (two 45-minute periods per match) gsr/ Game state annotations: one JSON per half (pitch coordinates, jersey-derived… See the full description on the dataset page: https://huggingface.co/datasets/atomscott/soccertrack-v2.

♥0
9.0k
Sep 24, 2026
RepositoryHTML
jfjelstul/worldcup

A Comprehensive Database on the FIFA World Cup (Men's and Women's)

343
Jun 11, 2026
Dataset
OpenSportsLab/SoccerNet-GAR

SoccerNet-GAR: Pixels or Positions? Benchmarking Modalities in Group Activity Recognition SoccerNet-GAR is a large-scale multimodal dataset for Group Activity Recognition (GAR) built from all 64 matches of the FIFA World Cup 2022 tournament. It provides synchronized broadcast video and player tracking data for 87,939 annotated group activities across 10 action classes, enabling direct comparison between video-based and tracking-based approaches. Dataset Details… See the full description on the dataset page: https://huggingface.co/datasets/OpenSportsLab/SoccerNet-GAR.

♥0
5.2k
Oct 7, 2026