Action rate models for predicting actions in soccer
Abstract
EconStor is a publication server for scholarly economic literature, provided as a non-commercial public service by the ZBW.
Full text
Dick, Uwe; Brefeld, Ulf Article — Published Version Action rate models for predicting actions in soccer AStA Advances in Statistical Analysis Provided in Cooperation with: Springer Nature Suggested Citation: Dick, Uwe; Brefeld, Ulf (2022) : Action rate models for predicting actions in soccer, AStA Advances in Statistical Analysis, ISSN 1863-818X, Springer, Berlin, Heidelberg, Vol. 107, Iss. 1, pp. 29-49, https://doi.org/10.1007/s10182-022-00435-x This Version is available at: https://hdl.handle.net/10419/310999 Standard-Nutzungsbedingungen: Die Dokumente auf EconStor dürfen zu eigenen wissenschaftlichen Zwecken und zum Privatgebrauch gespeichert und kopiert werden. Sie dürfen die Dokumente nicht für öffentliche oder kommerzielle Zwecke vervielfältigen, öffentlich ausstellen, öffentlich zugänglich machen, vertreiben oder anderweitig nutzen. Sofern die Verfasser die Dokumente unter Open-Content-Lizenzen (insbesondere CC-Lizenzen) zur Verfügung gestellt haben sollten, gelten abweichend von diesen Nutzungsbedingungen die in der dort genannten Lizenz gewährten Nutzungsrechte. Terms of use: Documents in EconStor may be saved and copied for your personal and scholarly purposes. You are not to copy documents for public or commercial purposes, to exhibit the documents publicly, to make them publicly available on the internet, or to distribute or otherwise use the documents in public. If the documents have been made available under an Open Content Licence (especially Creative Commons Licences), you may exercise further usage rights as specified in the indicated licence. https://creativecommons.org/licenses/by/4.0/
Vol.:(0123456789) AStA Advances in Statistical Analysis (2023) 107:29–49 https://doi.org/10.1007/s10182-022-00435-x 1 3 ORIGINAL PAPER Action rate models forpredicting actions insoccer UweDick1· UlfBrefeld1 Received: 17 December 2020 / Accepted: 7 February 2022 / Published online: 2 March 2022 © The Author(s) 2022 Abstract We present a data-driven approach to predict the next action in soccer. We focus on passing actions of the ball possessing player and aim to forecast the pass itself and when, in time, the pass will be played. At the same time, our model estimates the probability that the player loses possession of the ball before she can perform the action. Our approach consists of parameterized exponential rate models for all possible actions that are adapted to historic data with graph recurrent neural networks to account for inter-dependencies of the output space (i.e., the possible actions). We report on empirical results. Keywords Soccer analytics· Football· Elite sports· Actions· Rate models· Game flow· GRNNs 1 Introduction In team sports, the coordination of players is often of utmost interest as unorganized teams expose weaknesses and open spaces that can be exploited by the opponents. However, viewed from an action-centric perspective, everything depends on the decisions of the player who is currently in ball possession. Depending on whether she decides on a safe pass, risks a through ball or continues to dribble onwards, changes the future of the game. Obviously, her decision is not independent of the overall coordination of her team, including their actual positions, velocities, roles and tasks in the game, etc. Passes have been frequently studied in the literature (Spearman etal. 2017; PeraltaAlguacil etal. 2020), for instance focusing on effectiveness (Goes etal. 2019) or in risk vs reward analyses (Power etal. 2017). Additionally, since football is a dynamic game, there has been a lot of research on predicting players movements * Ulf Brefeld bref[email protected] Uwe Dick dic[email protected] 1 Machine Learning Group, Leuphana University ofLüneburg, Lüneburg, Germany
30 U.Dick, U.Brefeld 1 3 (Brefeld etal. 2019) and rating collective movements (Dick and Brefeld 2019). In this paper we focus on the player in ball possession and propose a model that simultaneously predicts (i) the player’s next action, (ii) the point in time of that action, and (iii) the player’s position at the time of action. To the best of our knowledge, this is the first approach that integrates player and ball movement models with predictions over player actions to address the flow of the game. Our model grounds on parameterized exponential distributions and assigns positive rates to all future player actions. The proposed action rate model (ARM) allows to not only predict the next ball action but also when it will be performed. Since decision making of the ball possessing player depends on the positions and trajectories of all other players and the ball, we propose to represent the three learning tasks (i–iii) as a joint optimization problem using graph recurrent neural networks (GRNNs) to account for inter-dependencies between players. We empirically evaluate our approach on trajectory data from 54 professional soccer matches recorded at 25 frames per second. The remainder is organized as follows. Section2 reviews related work. We present our graph recurrent action rate models in Sect.3. Section4 reports on empirical results and Sect.5 concludes. 2 Related work There is a wide variety on previous work on data-driven analysis of sports and, in particular, on soccer. The analysis of passes is the topic of several papers in soccer analytics and different aspects of passes are investigated in depth. For example, Spearman etal. (2017) present a model to compute the likelihood of successful passes. They make use of a physics-inspired movement model that predicts whether a player can reach a certain position in time and augment ball dynamics to estimate probabilities that possible receiving players can reach a ball or whether it can be intercepted by a defending player. Power etal. (2017) compare the probability of an interception (the risk of a pass) versus its reward. The latter is given by the likelihood that the attacking team will take a shot at goal within 10s after the pass. The effectiveness of passes is studied by Goes etal. (2019) who propose to quantify how defensive players move and coordinate to intercept passes. Other publications rate general game states according to different measures and can also be used to rate the effectiveness of passes. For example, Link etal. (2016) propose to estimate the dangerousity of a situation by combining positions, pressure, control, and a predicted density of future positions. Other interesting metrics deal with the quantification of space and its correlation with scoring opportunities (Spearman 2018) and defensive strategies (Fernández etal. 2019). Combining these concepts with Spearman etal. (2017) and Fujimura and Sugihara (2005) allows to identify potential runs of attacking players by maximizing a combination of pass probability, pitch impact and pitch control (Peralta Alguacil et al. 2020). Their approach also allows to compute optimal positions for attacking players and to compare these predictions to historic data.
31 1 3 Action rate models forpredicting actions insoccer Estimating future positions of soccer players is another aspect that has been widely investigated. A general problem when learning coordinated movements of several agents, like players in a team, is that trajectories come as unordered sets of individuals. When learning from several games, there is a need to incorporate different teams and players and, consequentially, the model has to work without a natural ordering of the players. Le etal. (2017b, 2017a) learn future positions of players by estimating their roles in a given episode and then use these role assignments to predict future movements given the role. A similar approach has been taken by Zhan etal. (2019, 2018) who also use role assignments to predict future positions. Their results for basketball players are computed using a variational recurrent neural network that allows for the inclusion of macro goals. Similarly, Felsen etal. (2018) compute tree-based role assignment to predict trajectories using a conditional variational autoencoder. In general, graph representations suggest themselves to model interactions of players and ball. In one way or another, players and ball are identified with nodes in a fully connected graph, where edge weights correspond to their interaction and are learned in the training process. For example, Yeh etal. (2019) propose to leverage graph neural networks (GNN) which are naturally suited to model coordinated behavior because of their invariance to permutations in the input. The authors propose a graph variational recurrent neural network to predict future positions of soccer and basketball players. Similarly, Hoshen (2017) and Kipf etal. (2018) propose graph-related attention mechanisms to learn player trajectories. Graph neural networks have been widely used to model structured or relational data, see (Battaglia etal. 2018) for an overview. In cases where data is sequential in nature, graph recurrent neural networks (GRNN) have been widely deployed, for example to mix graph representations with recurrent layers (Sanchez-Gonzalez etal. 2018), such as gaited recurrent units (GRU, Cho etal. 2014). Due to the complex nature of movements in soccer, a natural assumption on the distribution of future positions is its multi-modality. Trivially, any probabilistic model that aims to predict future positions in team sports needs to reflect the multimodal nature in some sense. Hence, the previously mentioned contributions (Zhan etal. 2019, 2018; Yeh et al. 2019; Felsen et al. 2018) make use of (conditional) variational models (CVM) with Gaussian emission functions to account for multimodality in the data. However, Graves (2013) has shown that combining recurrent neural networks (RNNs) with mixture density networks (MDNs) (Bishop 1994) that learn a Gaussian mixture model (GMM) as output distribution, yields good results for spatiotemporal tasks. In fact, Rudolph etal. (2020) recently showed that combining GMM emissions with recurrent graph networks performs on par with more complex conditional variational models. 3 Graph recurrent action rate models 3.1 Preliminaries In this paper, we focus on two-dimensional representations of players and ball, given by their x/y positions on the pitch at a given time t. We enumerate players by the set
32 U.Dick, U.Brefeld 1 3 I={1, ..., 22} and reserve index 0 for the ball such that the position and additional attributes of player i∈I and the ball at time t are given by x i t ∈ℝ d and x0 t ∈ℝ d , respectively. Dimensionality d≥2 depends on the number of additional attributes such as whether the player is currently in ball possession. The set containing positions of all players and ball at time t is denoted by xt ={x 0 t ,x 1 t , ..., x 22 t} . Since soccer is not a static game, we furthermore focus on consecutive timesteps (episodes) and write xi ∶t =x i 0 …x i t to denote the trajectory of positions of player i until time t. Analogously to xt , we denote the set of trajectories of all players and the ball until time t by x ∶t ={x 0 ∶t ,x 1 ∶t , ..., x 22 ∶t} . Additionally, we distinguish the ball possessing player by a superscript b and denote her position by xb t . We aim to devise a model that predicts (i) the next action of the ball possessing player b as well as (ii) the time to that action. Since these outcomes are not independent, the model needs to simultaneously predict all possible futures and requires a ground-truth that differentiates between action ( yA t ) and time to this action ( y T t ). Every episode x∶t in the training set is therefore annotated with label pair yt =(y T t ,y A t) that is defined as follows. The label yT t ≥ 0 encodes the time until the player b loses control of the ball, either by playing a pass, losing the ball to another player, or because the referee interrupts the game, e.g. due to a foul. The label yA t ∈ℝ 11 distinguishes between passes to teammates and loss of ball. Note that there are several reasons for a loss of ball, including tackles, failed dribbles, and sheer bad luck. Thus, yA t is represented as an 11-dimensional vector where every element corresponds to one outcome. If the ball is successfully passed to teammate k∈{1, ..., 10} , we have yA t [k]= 1 and yA t [i]= 0 for all i≠k . In case of an unsuccessful pass attempt, the notation allows for yA t [k]∈[0, 1 ] to quantify the probability that teammate k∈{1, ..., 10} was the intended receiver of that pass.1 If the player loses the ball, the action is indicated by yA t [11]= 1 and yA t [i]= 0 for 1≤i≤10 . It follows that 𝟏⊤ y A t = 1 whenever a pass is played or the ball is lost. In case the referee interrupts the game, e.g. due to a foul, none of the above actions can be performed and the action label is yA t = 𝟎 . 3.2 Player action rate models We now present our main contribution, a graph recurrent action rate model (ARM) that predicts the next action and simultaneously estimates the time to this action. To account for the complex nature of the problem, we pursue a model that ranks all possible futures and commits to the most likely one. We begin by assuming that the time T to an action follows an exponential distribution with rate parameter f. To be able to contextualize the distribution of time to an actual situation on the pitch, we employ a positive-valued 𝜃 -parameterized rate function f(x∶t;𝜃)∈ ℝ+ instead of a constant rate. The rate function thus forecasts 1 We elaborate on how to quantify these probabilties in AppendixA.
33 1 3 Action rate models forpredicting actions insoccer the rate of an action at time t for an episode x∶t and changes the distribution of time to an event to We deploy a dedicated rate model for every player action k, where k ranges from a pass to one of the k∈{1, ..., 10} teammates to a loss of the ball k=11 . We indicate the respective action by a superscript and call the action rate model. Accordingly, the time to an action k is governed by an exponential distribution with pdf and the expected time until action k is given by E [T k ]=1∕f k (x ∶t ; 𝜃) . Our approach assumes that the rates of actions are mutually independent given the parameters 𝜃 . This is a sensible assumption since an open player k in a game situation xt should receive a high rate f k (x ∶t ; 𝜃) and this rate should be independent of whether she is the only available open player or not. However, the likelihood that player k actually receives the pass depends on other available pass options and hence the likelihood of the next action being action k is the probability that action k occurs before all other actions i≠k Note that the r.h.s. of Eqn.2 is the softmax function of log f1∶11 . It follows that our model reduces to standard softmax classification of the next action if we ignore the time to the next action. The time until the next action depends on all action rates and is given by the expectation of the exponential distribution with rate parameter ∑11 i=1 fi(x ∶t ;𝜃 ) , 3.3 Deriving theloss function To finally learn the parameters 𝜃 of the action rate models, we need to derive appropriate loss functions that allow for a meaningful training process. In the following, we differentiate three cases and show that all three give rise to the same loss. p( T;f(x ∶t ;𝜃) ) =f(x ∶t ;𝜃)exp { −f(x ∶t ;𝜃)T }. f 1∶11 =(f 1 , ..., f 11 ) ⊤ =ARM (x ∶t) (1) p ( T k ;f k (x ∶t ;𝜃) ) =f k (x ∶t ;𝜃)exp { −f k (x ∶t ;𝜃)T k}. (2) p � k � � f1∶11(x∶t;𝜃) � =p � Tk<Ti≠k � � f1∶11(x∶t;𝜃) � =f k (x∶t;𝜃) ∑ 11 i=1 fi(x ∶t ;𝜃) . (3) E �Tmin =min{T1∶11}��f1∶11(x∶t;𝜃)�=E � p�Tmin ; 11 � i=1 fi(x∶t;𝜃)� � =1 ∑ 11 i=1 fi(x ∶t ;𝜃) .
34 U.Dick, U.Brefeld 1 3 Case I: The first case ignores bad passes and non-actions such as stop of play and focuses on well-defined actions. Let x∶t be an episode that ends in action k, i.e. we have yA t [k]= 1 and yA t [i]=0, ∀i≠ k . Recall that the second label yT t denotes the observed time until action. Using the results from the previous section and exploiting the memorylessness of the exponential distribution shows that the negative log-likelihood of event k can be written as Thus, the log-likelihood of an action k being performed exactly T time steps into the future scales linearly with the log-rate of action k. On the other hand, the rates of all actions are penalized proportionally to the time it takes until the action is observed. This is an important characteristic of the score function and implies that low scores of all actions also lower the likelihood of a quick pass. Case II: We now consider the case of interrupted or bad passes where the ground truth contains a distribution of likely pass receivers with yA t [k]∈[0, 1];k∈{1, ..., 10 } and ∑k=1,...,10 y A t [k]= 1 , rather than a one-hot encoded true receiver. It follows that turnovers are ignored, so that yA t [11]= 0 . Thus, the target y A t is a probability distribution over the teammates and instead of minimizing the negative likelihood of the observed action as above, we propose to minimize the Kullback–Leibler-divergence between the ground-truth likelihood for receivers and the action distribution p. Focusing on a single trajectory-label pair (x∶t,yt) , the corresponding loss is given by (4) −log � p � yA t,yT t��f1∶11(x∶t;𝜃) �� =− log �p�k��yT t;f1∶11(x∶t;𝜃)�×p�yT t��f1∶11(x∶t;𝜃)�� =− log �fk(x∶t;𝜃) ∑11 j=1fj(x∶t;𝜃)�−log �11 � j=1 fj(x∶t;𝜃)exp �− 11 � i=1 fi(x∶t;𝜃)yT t �� =− log fk(x∶t;𝜃)+ 11 � i=1 fi(x∶t;𝜃)yT t. KL ( yA t ‖ ‖ p ) = ∑ k yA t[k]log [ yA t[k]∕p ( k || f1∶11(x∶t;𝜃) )]
35 1 3 Action rate models forpredicting actions insoccer The constant c (y A t )= ∑k y A t [k]log y A t [k ] is not affected by parameters 𝜃 and can be dropped from the final equation as it does not change the optimum. Interestingly, for an action k, where yA t [k]= 1 and yA t [i]= 0 for i≠k , the loss functions in Eq. (4) and (5) agree. Case III: Finally, ball possession phases may end without a defined action, e.g. because the referee interrupts the game due to a foul. In these cases, the play stops at time yT t before any action could be performed. The likelihood of such a non-action is the likelihood that the expected time of each action happens only after yT t . Since the complementary cumulative distribution of the exponential distribution is given by it follows that the negative log-likelihood of such an event can be written as which is again identical to the previous results in Eq. (4) and (5) for y A t = 0 . Loss function LA : To sum up, the losses in Eqs. (4), (5), and (6) are identical. We thus define the loss function for the next action which is given by 3.4 Movement model To accurately predict the next action on the pitch, the model needs to predict the position of the player in ball possession in the near future. Since it can be beneficial (5) KL� yA t��p � −log p � yT t��f1∶11(x∶t;𝜃) � =� k�yA t[k]log yA t[k]−yA t[k]log p�yT t��f1∶11(x∶t;𝜃) �� −log �11 � j=1 fj(x∶t;𝜃)exp �− 11 � i=1 fi(x∶t;𝜃)yT t�� =c(yA t)+� k −yA t[k]log fk(x∶t;𝜃) ∑jfj(x∶t;𝜃) −log �11 � j=1 fj(x∶t;𝜃)exp �− 11 � i=1 fi(x∶t;𝜃)yT t�� =c(yA t)+ � k −yA t[k]log fk(x∶t;𝜃)+fk(x∶t;𝜃)yT t p ( Tk>yL t || fk ) =exp { −fkyT t }, (6) − log [ p ( T1>yT t∧... ∧T11 >yT t )] = 11 ∑ k=1 fk(x∶t;𝜃)yT t , (7) L A= ∑ (x ∶t ,y t ) ∑ k −yA t[k]log fk(x∶t;𝜃)+fk(x∶t;𝜃)yT t .
36 U.Dick, U.Brefeld 1 3 to run with the ball instead of passing the ball immediately, either to open up new passing lanes or to simply gain space, our model estimates where the player runs to in the near future. This way, in addition to predicting which action will be observed next and when it will be performed, we also predict where it will take place. We assume that the distribution p M (x b t+T| T,x ∶t) of the future position of the ball possessing player b can be expressed by a mixture density network (MDN, Bishop 1994; Rudolph etal. 2020) for time horizons T>0 seconds. Due to the spatial setup, we deploy a mixture of G two-dimensional Gaussians, leading to the density with mixing weights 𝜋(g|T,x∶t;𝜃)∈[0, 1] , means 𝜇g(T,x∶t;𝜃) and variances 𝜎g(T,x∶t;𝜃) ⋅ 𝕀 of the 1≤g≤G Gaussians, where 𝕀 denotes the two-dimensional unit matrix. Figure2 (right) shows a graphical representation. Loss function LM : The distribution in Eq. (8) can be learned by minimizing the negative log-likelihood of the trajectory data w.r.t the MDN model. Let again ( x ∶t ,(y T t ,y A t)) be a trajectory-label pair where a ball possession phase x∶t ends after yT t time steps with action yA t . The log-likelihood of that sample is given by and, consequentially, the loss function for the movement model that is to be minimized using the entire training set is given by 3.5 Joint optimization The previous sections introduced loss functions for the next action and player movement, respectively. Naturally, the tasks could be learned separately from one another. However, since the tasks are clearly correlated, it will prove beneficial to address them simultaneously. Thus, we propose to jointly minimize the losses LA in Eq. (7) and LM in Eq. (10). The joint loss is given by (8) p M ( xb t+T | T,x∶t;𝜃 ) = G ∑ g=1 𝜋 ( g | T,x∶t;𝜃 ) N ( xb t+T | 𝜇g(T,x∶t;𝜃),𝜎g(T,x∶t;𝜃)⋅𝕀 ) (9) log pM ( xb t + y T t| yT t,x∶t;𝜃 ), (10) L M=− ∑ ( x∶t,yt ) log pM ( xb t+yT t | yT t,x∶t;𝜃 ). (11) min 𝜃 ∑ (x∶t,yt) (∑ k −yA t[k]log fk(x∶t;𝜃)+fk(x∶t;𝜃)yT t ⏟⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏟⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏟ L A −log pM ( xb t+yT t|yT t,x∶t;𝜃 ) ⏟⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏟⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏟ LM ).
43 1 3 Action rate models forpredicting actions insoccer that the data only comprises a limited amount of games where some teams are overrepresented. The results ignore players from underrepresented teams and hence do not reflect the full picture of passing behavior German Bundesliga. In the remainder, we focus on 73 players who had at least 70 ball possessions in the 54 games. These players are affiliated with FC Bayern Munich, TSG 1899 Hoffenheim, Hamburger SV, Borussia Mönchengladbach, FC Schalke 04, and Eintracht Frankfurt. Table1 shows the top 20 ranked players with respect to their turnover difference. The latter is given by the difference between predicted turnover probabilities and actually observed turnovers. Larger differences are thus realized by players who often manage to retain the ball insituations where the model predicts a loss of ball.2 Note that we only take turnovers into account that end with the opponent team in ball possession. Bayern Munich clearly dominates the ranking with players like Robert Lewandowski, who ranked 9th in the 2017 Fifa Ballon d’Or vote, Arjen Robben, Kingsley Fig. 7 Exemplary ball possession phase. See text for details 2 Predictions are recorded one second before the end of the ball possession phase.
44 U.Dick, U.Brefeld 1 3 Coman, and James Rodriguez. Bayern also won the championship in the 2017/18 season with Schalke being runner-up and Hoffenheim placed third. The remarkable rankings of their youngsters Max Meyer, Dennis Geiger, and Steven Zuber may be surprising at first sight. However, Max Meyer actually became a Germany international in the end of 2016 and Steven Zuber became a regular in the Swiss national team during the 2017/18 season. Dennis Geiger played in the Under19-EuroCup for Germany before the season. Also, Lars Stindl became a Germany international in 2017 and was a starter during their successful 2017 Confederations Cup campaign. We also like to note that Robert Lewandowski has the highest expected turnovers of all players in the top 20, with Kingsley Coman and Lars Stindl also having values over 0.3. Recall that expected turnover describes the likelihood that the average player will lose the ball and, hence, players who usually operate in tight spaces are expected to rank on top. Table3 in the AppendixB verifies this assumption. Table 1 Turnovers Rank Player Turnover difference Expected turnovers Observed effective turnovers Team 1 Max Meyer 0.061 0.131 0.070 FC Schalke 04 2 Robert Lewandowski 0.059 0.389 0.330 FC Bayern Munich 3 Dennis Geiger 0.052 0.142 0.090 TSG 1899 Hoffenheim 4 Lars Stindl 0.048 0.318 0.270 Borussia Mönchengladbach 5 Arjen Robben 0.035 0.283 0.248 FC Bayern Munich 6 Kingsley Coman 0.027 0.325 0.298 FC Bayern Munich 7 Steven Zuber 0.015 0.220 0.206 TSG 1899 Hoffenheim 8 James Rodriguez 0.010 0.202 0.192 FC Bayern Munich 9 Rafinha 0.005 0.124 0.120 FC Bayern Munich 10 Thiago 0.003 0.144 0.140 FC Bayern Munich 11 Javier Martinez 0.002 0.056 0.054 FC Bayern Munich 12 Niklas Süle 0.001 0.041 0.041 FC Bayern Munich 13 Sebastian Rudy − 0.002 0.118 0.120 FC Bayern Munich 14 Corentin Tolisso − 0.002 0.127 0.129 FC Bayern Munich 15 David Alaba − 0.004 0.149 0.153 FC Bayern Munich 16 Arturo Vidal − 0.007 0.119 0.126 FC Bayern Munich 17 Lewis Holtby − 0.019 0.213 0.232 Hamburger SV 18 Franck Ribery − 0.021 0.278 0.299 FC Bayern Munich 19 Joshua Kimmich − 0.028 0.136 0.164 FC Bayern Munich 20 Denis Zakaria − 0.030 0.226 0.256 Borussia Mönchengladbach
45 1 3 Action rate models forpredicting actions insoccer 4.4.2 Passing Analogously to turnovers, we could deploy the approach with respect to new metrics for passing behavior. To showcase the idea, we locate the true receiver of a pass in the predicted ranking of all possible receivers, computed 1.5s before the pass happened. From the viewpoint of the model, likely pass actions have been seen many times in the training data and are distinguished accordingly by high likelihoods. By contrast, surprising passes are rarely observed in the data and consequentially range in lower likelihood scores. Thus, averaging the predicted ranks of the true receiving players may serve as a proxy for passing behavior of players: Players with small average ranks usually pass to an obvious team member as predicted by the model while players with large averages include many surprising passes that have not been foreseen by our approach. Table2 shows the results. The ranking shows that unexpected passes mainly come from forwards and midfielders. Defenders generally take less risks when playing passes and usually choose a simpler pass over a more risky one. A special mention may go to Kevin-Prince Boateng who, according to our model on limited data, shows a distinguished passing behavior. 5 Conclusion/discussion We presented an action rate model to predict the next action of football players. The approach consisted of parameterized exponential rate models where parameters are shared across different actions and optimized with a graph network. Empirical results showed that the model reliably predicts future actions. Additional empirical evidence supported the inclusion of movement models in the network architecture. Table 2 Unexpected passes Rank Player Pass receiver (avg. rank) Team Position 1 Kevin-Prince Boateng 2.730 Eintracht Frankfurt Forward/Midfield 2 Mark Uth 2.152 TSG 1899 Hoffenheim Forward 3 Max Meyer 1.946 FC Schalke 04 Midfield 4 Guido Burgstaller 1.946 FC Schalke 04 Forward 5 Robert Lewandowski 1.914 FC Bayern Munich Forward 6 Matti Steinmann 1.907 Hamburger SV Midfield 7 Sebastian Rudy 1.856 FC Bayern Munich Midfield 8 Lewis Holtby 1.850 Hamburger SV Midfield 9 Andrej Kramaric 1.785 TSG 1899 Hoffenheim Forward 10 Florian Grillitsch 1.755 TSG 1899 Hoffenheim Midfield 11 Thiago 1.721 FC Bayern Munich Midfield
46 U.Dick, U.Brefeld 1 3 The model also allowed to analyze and compare playing styles and behavior of players and teams. While over the last few years the amount of per-player and perteam statistics that are collected and curated skyrocketed, those statistics often only tell half the story. For instance, the number of committed turnovers per possession3 is certainly an interesting statistic, however, it may not show the full picture. Consider a striker that usually gets the ball in tight spaces. Unsurprisingly, this players loses the ball more often due to a failed dribble or an unsuccessful pass under pressure, than, for example, a defending player who usually has more time and an open lane for a simple pass. But even among strikers different team tactics and player positions influence the likelihood of a player to lose the ball. Our model may help to better assess the individual behavior and characteristics traits of players by comparing their observed actions4 to the expected action of the average player in the same situation. Thus, a player who concedes ball possession in 30% should be considered better than average at retaining ball control if the average player would concede the ball in 40% of the time. Other possible applications of the model include assessments of how quickly a player or team passes the ball in comparison to others in the same game situations and how ”unconventional” or ”surprising” a player passes the ball, i.e. how well the model can predict the player’s next action in the future. Predicting intended receivers Throughout the manuscript, we have assumed that (soft) labels of observed actions are available in the training set. However, this may not necessarily be the case and even currently available commercial data, such as the data we use in our experiments, does not provide information about the most probable receiver of an intercepted pass. Annotating this information by hand is very time-consuming and expensive and raises the question whether intended receivers of passes can be predicted on the basis of tracking data. As a solution, we present a data-driven approach for automatically identifying the intended receiver. Although the architecture is very similar to the one presented in Sect.3.6, this model is not part of the main contribution and cannot be incorporated into Fig.2 as another output layer as the parameters of the GRNN layer of this network will be very different from the ones of the GRNN in Sect.3.6. Consequentially, the model proposed in this section needs to be trained before the GRNN in Sect.3.6 to provide estimates for the missing variables in the training data. Instead of singling out the one most likely receiving player, we aim to predict soft assignments as follows. We define a bad pass to have two possible outcomes: It can either be intercepted by an opposing player or the ball can go out of bounds. To be able to observe the initial trajectory of the ball, we focus on passes where the ball travels for at least 6/25s (6 frames) before it is intercepted or out of bounds. 4 We consider losing the ball an ”action”, like passing the ball. 3 https:// stats bomb. com/ 2018/ 08/ newdata- newstats bombradars/.
47 1 3 Action rate models forpredicting actions insoccer Training data consists of successful passes, where the intended receiver is the actually observed one. Consider a pass at time tp and let yA t p be the real receiver of that pass as described in Sect. 3.1. This pass is turned into a training instance ( x∶tp+0.2sec,y A t p ) and added to the training set. Thus, we consider examples of successful passes where positions and trajectories of players and ball are sampled 0.2s after the ball carrier hit the ball. By doing so, the model learns to predict the receiving player by the initial ball trajectory and the positioning of all other players. Figure8 shows an overview of the model. Analogously to the ARM model of Sect.3.6, let 𝜙I (v k t ,v b t) be a score function of outputs of potential receiver k and passer b. The model minimizes the cross-entropy loss between real labels and scores. Note that this is identical to the ARM model, as noted in the remark in Sect.3.2, when we ignore the time of the pass (which lies in the past according to the data generation process described above). To determine optimal hyperparameters (e.g., number and width of layers) we perform a 5 fold cross-validation where data is split along games. The final model constitutes of 2 graph layers of width 256 and predicts the real receiver with an average accuracy of 0.89 ±0.03 . As an out-of-sample test, we manually annotated all unsuccessful passes in one game (100 passes) with the intended receiver using video footage. On these 100 bad passes, the model performed similarly and achieved an accuracy of 0.87 ±0.1 . Expected turnover andplayer position Table 3 shows expected turnover and the main position of the player. The table shows that large expected turnover values are generally predicted for forwards as they usually operate in tight spaces. Hence, defenders naturally realize smaller values. Fig. 8 Model for predicting intended receivers
48 U.Dick, U.Brefeld 1 3 Acknowledgements We would like to thank Hendrik Weber as well as DFL and Sportec Solutions for providing the data for this study. Funding Open Access funding enabled and organized by Projekt DEAL. Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/ licenses/by/4.0/. References Battaglia, P.W., Hamrick, J.B., Bapst, V., Sanchez-Gonzalez, A., Zambaldi, V., Malinowski, M., Tacchetti, A., Raposo, D., Santoro, A., Faulkner, R., etal.: Relational Inductive Biases, Deep Learning, and Graph Networks. arXiv preprint arXiv: 1806. 01261 (2018) Bishop, C.M.: Mixture Density Networks. Tech. Rep. NCRG_94_004, Aston University (1994), https:// publi catio ns. aston. ac. uk/ id/ eprint/ 373/1/ NCRG_ 94_ 004. pdf Brefeld, U., Lasek, J., Mair, S.: Probabilistic movement models and zones of control. Machine Learning, Special Issue on Soccer Analytics 108, 127–147 (2019) Cho, K., van Merriënboer, B., Gulcehre, C., Bahdanau, D., Bougares, F., Schwenk, H., Bengio, Y.: Learning phrase representations using RNN encoder–decoder for statistical machine translation. In: Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP). Table 3 Expected turnover and player position Rank Player Expected Turnovers Team PlayingPosition 1 Guido Burgstaller 0.429 FC Schalke 04 Forward 2 Filip Kostic 0.412 Hamburger SV Forward 3 Robert Lewandowski 0.389 FC Bayern Munich Forward 4 Mark Uth 0.373 TSG 1899 Hoffenheim Forward 5 Raffael 0.350 Borussia Mönchengladbach Forward 6 Thomas Müller 0.338 FC Bayern Munich Forward 7 Tatsuya Ito 0.332 Hamburger SV Forward/Midfield 8 Thorgan Hazard 0.331 Borussia Mönchengladbach Forward 9 Amine Harit 0.330 FC Schalke 04 Forward 10 Kingsley Coman 0.325 FC Bayern Munich Forward 11 Lars Stindl 0.318 Borussia Mönchengladbach Forward 12 Aaron Hunt 0.310 Hamburger SV Forward 13 Andrej Kramaric 0.299 TSG 1899 Hoffenheim Forward 14 Marius Wolf 0.286 Eintracht Frankfurt Forward/Midfield 15 Arjen Robben 0.283 FC Bayern Munich Forward 16 Franck Ribery 0.278 FC Bayern Munich Forward
49 1 3 Action rate models forpredicting actions insoccer pp. 1724–1734. Association for Computational Linguistics, Doha, Qatar (Oct 2014). https:// doi. org/ 10. 3115/ v1/ D14- 1179, https:// www. aclweb. org/ antho logy/ D14- 1179 Dick, U., Brefeld, U.: Learning to rate player positioning in soccer. Big Data, Special Issue on Sports Analytics 7(1), 71–82 (2019) Felsen, P., Lucey, P., Ganguly, S.: Where Will They Go? Predicting Fine-Grained Adversarial Multi- Agent Motion using Conditional Variational Autoencoders. In: European Conference on Computer Vision, pp. 732–747 (2018) Fernández, J., Bornn, L., Cervone, D.: Decomposing the Immeasurable Sport: A Deep Learning Expected Possession Value Framework for Soccer. In: MIT Sloan Sports Analytics Conference (2019) Fujimura, A., Sugihara, K.: Geometric analysis and quantitative evaluation of sport teamwork. Systems and Computers in Japan 36(6), 49–58 (2005). https:// doi. org/ 10. 1002/ scj. 20254, https:// onlin elibr ary. wiley. com/ doi/ abs/ 10. 1002/ scj. 20254, _eprint: https:// onlin elibr ary. wiley. com/ doi/ pdf/ 10. 1002/ scj. 20254 Goes, F.R., Kempe, M., Meerhoff, L.A., Lemmink, K.A.: Not every pass can be an assist: a data-driven model to measure pass effectiveness in professional soccer matches. Big data 7(1), 57–70 (2019) Graves, A.: Generating Sequences With Recurrent Neural Networks. arXiv preprint arXiv: 1308. 0850 (2013) Hoshen, Y.: Vain: Attentional Multi-Agent Predictive Modeling. In: Advances in Neural Information Processing Systems, pp. 2701–2711 (2017) Kipf, T., Fetaya, E., Wang, K.C., Welling, M., Zemel, R.: Neural Relational Inference for Interacting Systems. In: International Conference on Machine Learning, pp. 2693–2702 (2018) Le, H.M., Carr, P., Yue, Y., Lucey, P.: Data-Driven Ghosting Using Deep Imitation Learning. In: MIT Sloan Sports Analytics Conference (2017) Le, H.M., Yue, Y., Carr, P.: Coordinated Multi-Agent Imitation Learning. In: International Conference on Machine Learning, pp. 1995–2003 (2017) Link, D., Lang, S., Seidenschwarz, P.: Real time quantification of dangerousity in football using spatiotemporal tracking data. PloS one 11(12), e0168768 (2016) PeraltaAlguacil, F., Fernandez, J., Piñones Arce, P., Sumpter, D.: Seeing in to the future: using selfpropelled particle models to aid player decision-making in soccer. In: Proceedings of the 14th MIT sloan sports analytics conference (2020) Power, P., Ruiz, H., Wei, X., Lucey, P.: Not all passes are created equal: Objectively measuring the risk and reward of passes in soccer from tracking data. In: Proceedings of the 23rd ACM SIGKDD international conference on knowledge discovery and data mining, pp. 1605–1613 (2017) Rudolph, Y., Brefeld, U., Dick, U.: Graph conditional variational models: Too complex for multiagent trajectories? In: ICBINB@NeurIPS workshop (2020) Sanchez-Gonzalez, A., Heess, N., Springenberg, J.T., Merel, J., Riedmiller, M., Hadsell, R., Battaglia, P.: Graph networks as learnable physics engines for inference and control. In: ICML (Jun 2018), http:// arxiv. org/ abs/ 1806. 01242, arXiv: 1806. 01242 Spearman, W.: Beyond expected goals. In: Proceedings of the 12th MIT sloan sports analytics conference, pp. 1–17 (2018) Spearman, W., Basye, A., Dick, G., Hotovy, R., Pop, P.: Physics-based modeling of pass probabilities in soccer. In: Proceeding of the 11th MIT Sloan Sports Analytics Conference (2017) Yeh, R.A., Schwing, A.G., Huang, J., Murphy, K.: Diverse Generation for Multi-Agent Sports Games. In: IEEE Conference on Computer Vision and Pattern Recognition (2019) Zhan, E., Zheng, S., Yue, Y., Lucey, P.: Generative Multi-Agent Behavioral Cloning, p.10 (2018) Zhan, E., Zheng, S., Yue, Y., Sha, L., Lucey, P.: Generating Multi-Agent Trajectories using Programmatic Weak Supervision. In: International Conference on Learning Representations (2019) Publisher’s Note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.