Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2022 Sep 29;12(1):16291.
doi: 10.1038/s41598-022-19948-1.

Predicting the in-game status in soccer with machine learning using spatiotemporal player tracking data

Affiliations

Predicting the in-game status in soccer with machine learning using spatiotemporal player tracking data

Steffen Lang et al. Sci Rep. .

Abstract

An important structuring feature of a soccer match is the in-game status, whether a match is interrupted or in play. This is necessary to calculate performance indicators relative to the effective playing time or to find standard situations, ball actions, and other tactical structures in spatiotemporal data. Our study explores the extent to which the in-game status can be determined using time-continuous player positions. Therefore, to determine the in-game status we tested four established machine learning methods: logistic regression, decision trees, random forests, and AdaBoost. The models were trained and evaluated using spatiotemporal data and manually annotated in-game status of 102 matches in the German Bundesliga. Results show up to 92% accuracy in predicting the in-game status in previously unknown matches on frame level. The best performing method, AdaBoost, shows 81% precision for detecting stoppages (longer than 2 s). The absolute time shift error at the start was ≤ 2 s for 77% and 81% at the end for all correctly predicted stoppages. The mean error of the in-game total distance covered per player per match using the AdaBoost in-game status prediction was - 102 ± 273 m, which is 1.3% of the mean value of this performance indicator (7939 m). Conclusively, the prediction quality of our model is high enough to provide merit for performance diagnostics when teams have access to player positions (e.g., from GPS/LPM systems) but no human-annotated in-game status and/or ball position data, such as in amateur or youth soccer.

PubMed Disclaimer

Conflict of interest statement

The authors declare no competing interests.

Figures

Figure 1
Figure 1
Boxplots (left y-axis) and sums (right y-axis) of mean decrease in impurity per feature in the feature class (A) Type of value and (B) Time shift in seconds.
Figure 2
Figure 2
Deviation of time shifts for (A) starting and (B) ending point prediction with AdaBoost model for all stoppages found in 47 test matches. In 77% (start) and 81% (end) the shift is between ± 2 s.

References

    1. Hughes MD, Bartlett RM. The use of performance indicators in performance analysis. J. Sports Sci. 2002;20:739–754. doi: 10.1080/026404102320675602. - DOI - PubMed
    1. Murray AM, Varley MC. Technology in soccer. In: Curtis R, Benjamin C, Huggins R, Casa DJ, editors. Elite Soccer Players Maximizing Performance and Safety. Routledge; 2019.
    1. Frencken WG, Lemmink KA, Delleman NJ. Soccer-specific accuracy and validity of the local position measurement (LPM) system. J. Sci. Med. Sport. 2010;13:641–645. doi: 10.1016/j.jsams.2010.04.003. - DOI - PubMed
    1. Herold M, Kempe M, Bauer P, Meyer T. Attacking key performance indicators in soccer: Current practice and perceptions from the elite to youth academy level. J. Sports Sci. Med. 2021;20:158–169. doi: 10.52082/jssm.2021.158. - DOI - PMC - PubMed
    1. Castellano J, Blanco-Villaseñor A, Álvarez D. contextual variables and time-motion analysis in soccer. Int. J. Sports Med. 2011;32:415–421. doi: 10.1055/s-0031-1271771. - DOI - PubMed

Publication types