Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Opta] Fix end coordinates of deflected passes #274

Open
probberechts opened this issue Dec 30, 2023 · 0 comments
Open

[Opta] Fix end coordinates of deflected passes #274

probberechts opened this issue Dec 30, 2023 · 0 comments

Comments

@probberechts
Copy link
Contributor

Opta inserts a "unintentional ball touch" event (type_id=61 + outcome=0) after passes that are deflected and sets the end location of the pass to the location where it got deflected. As a consequence, there are gaps in the data. I am not sure what all other providers do, but StatsBomb uses the real end location and tags the pass as "deflected". I propose to set the end location of the deflected pass to the start location of the next action and the outcome to "success" if the deflected pass reached a teammate.


Example

Take this example from Fulham vs Arsenal on 12th March 2023. Trossard provided a cross to Martinelli, who scored a header. However, the cross was touched by Kenny Tete so Opta registered it as a failed cross that ends where Tete touched it.

image

You can watch the video of this phase here: https://youtu.be/fn74_qPjQU4?t=48

And this is a plot of the phase:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant