<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Lifted Relational Team Embeddings for Predictive Sport Analytics</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Ondˇrej Hub´aˇcek</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Gustav Sˇourek</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Filip Zˇelezny´</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Czech Technical University</institution>
          ,
          <addr-line>Prague</addr-line>
          ,
          <country country="CZ">Czech Republic</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>We investigate the use of relational learning in domain of predictive sports analytics, for which we propose a team embedding concept expressed in the language of Lifted relational neural networks, a framework for learning of latent relational structures. On a large dataset of soccer results, we compare different relational learners against strong current methods from the domain to show some very promising results of the relational approach when combined with embedding learning.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        Sport analytics is a popular multi-billion dollar world-wide industry. It is a
natural application domain for mathematical modelling, yet only recently we have
been seeing penetration of modern machine learning methods into the field, with
standard predictive techniques still being geared towards simple statistical
models [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]. We argue that incorporating relational learning techniques might benefit
the field considerably. It only seems natural as the data arising from sport records
possess interesting relational characteristics on many levels of abstraction, from
the matches themselves forming relations between teams, players and seasons,
to the course of the individual matches being driven by the rules of each sport
with game-play patterns stemming from these.
      </p>
      <p>
        We investigate viability of the relational approach to the domain via
experimental evaluation on soccer match outcome predictions based solely on historical
results. We propose simple relational representations, background knowledge and
modelling concepts for which we provide some interpretable insights.
Particularly, we focus on expressing a concept we called “Lifted relational team
embeddings” in the framework of Lifted relational neural networks (LRNNs) [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ],
combining relational fuzzy logic with gradient descend optimization. Finally,
we experimentally compare different relational approaches with strong methods
from the domain for their predictive performance on a large dataset of real soccer
records.
1.1
      </p>
      <p>Predictive Sports Analytics
In predictive sport analytics, the ultimate goal is to predict results of future
matches. Given the stochastic nature of sports, the goal translates to correctly
estimating probabilities of the corresponding outcomes. Particularly for a game
of soccer, the aim is to estimate the probabilities of the three possible outcomes
loss, draw, win.</p>
      <p>
        The task of predicting soccer results is well established in the literature.
Typical approaches include statistical models based on Poisson distribution and
its variations [
        <xref ref-type="bibr" rid="ref10 ref5">5,10</xref>
        ], as well as rating systems [
        <xref ref-type="bibr" rid="ref2 ref7">2,7</xref>
        ]. An example of relational
learning approach was also introduced in [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ], however the literature remains
very scarce with these.
2
      </p>
    </sec>
    <sec id="sec-2">
      <title>Predictive Models</title>
      <p>
        We compare the proposed relational team embedding concept against a
multitude of diverse learners. These consist of a simple prior probability baseline
predictor, RDN-boost, a powerful SRL method for boosting Relational Dependency
Networks [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ], and an actual state-of-the-art model that won the mentioned
Soccer Prediction Challenge [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. Note that each of these learners has been actually
selected for being a strong performer in the given task.
      </p>
      <p>Baseline predictor is a simple model aggregating the prior probabilities of the
individual home and away outcomes in each league. Being often surprisingly
hard to beat, we include it as a baseline to serve as a natural lower bound for
other learners’ performance.</p>
      <p>
        RDN boost learner follows a functional gradient boosting strategy on top
of Relational Dependency Networks [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ], powerful lifted graphical models
designed to learn from data with relational dependencies using pseudo-likelihood
estimation techniques. Similarly to LRNNs, RDN-boost learns from Herbrand
interpretations for which it utilizes fragment of relational logic for
representation, where the inner nodes of the individual regression trees of the resulting
ensemble model represent conjunctions of the original predicates.
State-of-the-art model is the actual winning solution [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] from the mentioned
2017 Soccer Prediction Challenge. It is an ensemble, gradient boosted trees-based
model utilizing expert-designed features. Some of these features are derived from
other, already sophisticated, models from literature, such as the pi-ratings [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] or
page-rank [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]. Other features are statistics based on expert insights incorporating
the home advantage, historical strength, current form, or match importance.
These are further aggregated in different ways w.r.t. seasons and leagues, to
finally form an input into a carefully tuned XGBoost algorithm [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ].
2.1
      </p>
      <p>
        Lifted Relational Neural Networks
LRNNs [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ] is a relational learning framework utilizing a parametrized fragment
of relational fuzzy logic as a language for representation of various models and a
home(T id) Team T id is home team w.r.t. prediction match.
away(T id) Team T id is away team w.r.t. prediction match.
team(T id, name) Team T id has name name.
win(M id, T id1, T id2) Win of home team T id1 over away team T id2 in match M id.
draw(M id, T id1, T id2) Draw between home team T id1 and T id2 in match M id.
loss(M id, T id1, T id2) Loss of home team T id1 to team T id2 in match M id.
scored(M id, T id, n) The team T id scored more than n goals in match M id.
conceded(M id, T id, n) The team T id conceded more than n goals in match M id.
goal diff(M id, n) Difference in goals scored by the teams is greater than n.
recency(M id, n) The match M id was played more than n rounds ago (w.r.t.
      </p>
      <p>prediction match).
gradient descend technique for their parameter training. The model
representation can be viewed as a lifted template for neural networks, as it enables neural
computations to be performed upon relational data by constructing a different
computational graph, or neural network, for each of the differently structured
relational examples.</p>
      <p>For a regular training of an LRNN, as we do in experiments reported in this
paper, one firstly needs to manually create the template, which may encode some
background knowledge, or intuition, together with various modelling constructs.
Secondly, one needs learning examples encoded in relational logic together with
corresponding target predicate labels. Subsequently in the learning process, the
LRNN engine grounds the template w.r.t. the different examples to create the
corresponding neural networks, which are then jointly trained w.r.t. the labels,
in a manner similar to that of standard deep learning frameworks.
2.2</p>
      <p>
        Knowledge Representation
In its raw form, the match records contain merely the team names and the
result, hence we tried to extract as much useful information as possible for each
of the models. For the baseline this was straightforward, and for the SotA model
this was already done [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. For the approaches of RDN-boost and LRNNs we
had to derive appropriate relational representation. Since they both learn from
Herbrand interpretations, we encoded the records with numerical outcomes into
predicates, which we describe in Table 1.
3
      </p>
    </sec>
    <sec id="sec-3">
      <title>Lifted Relational Team Embeddings</title>
      <p>
        Here we describe the proposed relational embedding model as expressed in the
language of LRNNs. Firstly, we tested the hypothesis that there exists some
predictive latent space embedding the teams. This is based on an intuition from
various rating systems, such as the pi-ratings [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], where each team is assigned
one or more parameters denoting its particular strength, possibly within different
areas, such as when playing at home stadium and when playing away. However,
opposite to the existing rating systems, the idea of the embedding approach is
to explore meaning of these latent parameters automatically by the means of
regular learning from data. We can encode this scenario in LRNNs as follows.
w1(0) : type1(T ) ← team(T,chelsea)
w2(0) : type1(T ) ← team(T,arsenal)
. . .
      </p>
      <p>wj(0) : type3(T ) ← team(T,everton)
where the types type1 . . . type3 denote individual embedding dimensions of the
teams. We may directly use aggregation of such embeddings for prediction of
outcome of home vs. away team matches using the following rules.
w((11;)1) : outcome ← home(T 1) ∧ type1(T 1) ∧ away(T 2) ∧ type1(T 2)
w((11;)2) : outcome ← home(T 1) ∧ type1(T 1) ∧ away(T 2) ∧ type2(T 2)
. . .</p>
      <p>
        w((31;)3) : outcome ← home(T 1) ∧ type3(T 1) ∧ away(T 2) ∧ type3(T 2)
This construct in principle creates a fully connected neural network with one
hidden embedding layer, such as e.g. in the famous word2vec embedding
architecture [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ]. For all the historical matches we then jointly perform corresponding
gradient updates of the weights to reflect the actual values of the outcome labels.
We further denote this architecture as embeddings.
      </p>
      <p>In theory, the embeddings possibly capture some information on the
relational interplay between the matches as they are jointly optimized on the whole
match history. However, we find this approach quite limited as it is rather naive
to expect the flat, fixed-size embeddings to reflect all the possible nuances of
the complex relational structure stemming from the different outcomes of
different historical matches played between different teams in different orders.
Fortunately with LRNNs, we can easily capture the relational structures explicitly
while keeping the benefits of embedding learning. For that we first extend the
template with a predicate capturing the different outcomes of historical matches
(w.r.t. prediction match) through a learnable transformation as
w1(2) :
w2(2) :
w3(2) :
outcome(M, H, A)
outcome(M, H, A)
outcome(M, H, A)
←
←
←</p>
      <p>win(M, H, A)
draw(M, H, A)
2
1
0
1
2
3
with which we accordingly extend the predictive rules as
wh(1−)h(1;1) : outcome ← home(T 1) ∧ type1(T 1) ∧ outcome(M, T 1, T 2) ∧ type1(T 2).
wh(1−)a(1;1) : outcome ← home(T 1) ∧ type1(T 1) ∧ outcome(M, T 2, T 1) ∧ type1(T 2).
wh(1−)h(1;2) : outcome ← home(T 1) ∧ type1(T 1) ∧ outcome(M, T 1, T 2) ∧ type2(T 2).
wa(1−)a(3;3) : outcome ← away(T 1) ∧ type3(T 1) ∧ outcome(M, T 2, T 1) ∧ type3(T 2).
reflecting the possible settings of historical home and away positions of the
actual home and away teams in all historical matches played. By grounding
this template, the LRNN engine assures to create the corresponding relational
histories transformed into respective, differently structured, neural networks. We
denote this architecture as relational embeddings. These embeddings of teams
extracted from the model learned to predict home team win can be seen in Fig. 1.
4</p>
    </sec>
    <sec id="sec-4">
      <title>Experiments</title>
      <p>
        We compared approaches discussed in this paper on data from the 2017 Soccer
Prediction Challenge [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], organized in conjunction with the MLJ’s special issue
on Machine Learning for Soccer. Particularly for this paper, we selected the
0.23
0.22
0.21
0.20
0.19
Baseline
SotA
RDN-Boost
Relational Embeddings
Embeddings
2006
2008
2010
2012
2014
      </p>
      <p>2016</p>
      <p>
        Season
world’s most prestigious English Premier League over the seasons 2006-2016. In
the dataset, for each historical match there is merely a record of the team names
and the resulting score. Contestants’ models were evaluated using Ranked
Probability Score (RPS) [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ], an evaluation metric designed for the ordinal outcomes.
      </p>
      <p>For each of the historical matches, we extract 3 learning examples for each
respective outcome (loss, draw, win), and learn one corresponding model for
each of the latter. For each learner we then normalize the three outputs from
the three models to obtain the final predictions that form input to the RPS
metric.</p>
      <p>
        Calculation of the baseline involved no setup and for setting of the SotA
and RDN-boost models we refer to the Prediction Challenge submission [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ].
For LRNNs we set the learning rate (0.1) and number of learning steps (50),
and we utilized just a subset of the predicates (Section 3). LRNNs were trained
sequentially with a history span of 5 years.
      </p>
      <p>We display the final results in Fig. 2. All the learners easily pass the
natural baseline (mean RPS 0.2260), with LRNNs (0.1976) performing significantly
better than RDN-boost (0.2175), while trailing just closely behind the
stateof-the-art model (0.1961). We also see that the relational embeddings generally
dominate the standard embeddings (0.2027).
5</p>
    </sec>
    <sec id="sec-5">
      <title>Conclusion</title>
      <p>We discussed how the domain of predictive sports analytics might benefit from
relational learning approaches, and experimentally proved that even simple
relational templates with latent structures may lead to surprisingly strong,
competitive results in predicting soccer game outcomes.
Acknowledgements Authors acknowledge support by “Deep Relational
Learning” project no. 17-26999S granted by the Czech Science Foundation.
Computational resources were provided by the CESNET LM2015042 and the CERIT
Scientific Cloud LM2015085, provided under the programme “Projects of Large
Research, Development, and Innovations Infrastructures”.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <given-names>Tianqi</given-names>
            <surname>Chen</surname>
          </string-name>
          and
          <string-name>
            <given-names>Carlos</given-names>
            <surname>Guestrin</surname>
          </string-name>
          .
          <article-title>Xgboost: A scalable tree boosting system</article-title>
          .
          <source>In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining</source>
          , pages
          <fpage>785</fpage>
          -
          <lpage>794</lpage>
          . ACM,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <given-names>Anthony</given-names>
            <surname>Costa</surname>
          </string-name>
          <article-title>Constantinou and Norman Elliott Fenton. Determining the level of ability of football teams by dynamic ratings based on the relative discrepancies in scores between adversaries</article-title>
          .
          <source>Journal of Quantitative Analysis in Sports</source>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <given-names>Werner</given-names>
            <surname>Dubitzky</surname>
          </string-name>
          , Philippe Lopes, Jesse Davis, and
          <string-name>
            <given-names>Daniel</given-names>
            <surname>Berrar</surname>
          </string-name>
          . Open international soccer database,
          <year>Aug 2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Edward S Epstein</surname>
          </string-name>
          .
          <article-title>A scoring system for probability forecasts of ranked categories</article-title>
          .
          <source>Journal of Applied Meteorology</source>
          ,
          <volume>8</volume>
          (
          <issue>6</issue>
          ):
          <fpage>985</fpage>
          -
          <lpage>987</lpage>
          ,
          <year>1969</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <given-names>John</given-names>
            <surname>Goddard</surname>
          </string-name>
          .
          <article-title>Regression models for forecasting goals and match results in association football</article-title>
          .
          <source>International Journal of Forecasting</source>
          ,
          <volume>21</volume>
          (
          <issue>2</issue>
          ):
          <fpage>331</fpage>
          -
          <lpage>340</lpage>
          ,
          <year>2005</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6. Ondˇrej Hub´aˇcek,
          <string-name>
            <surname>Gustav</surname>
            <given-names>Sˇourek</given-names>
          </string-name>
          , and Filip Zˇelezny´.
          <article-title>Learning to predict soccer results from relational data with gradient boosted trees</article-title>
          .
          <source>Machine Learning</source>
          ,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <given-names>Lars</given-names>
            <surname>Magnus</surname>
          </string-name>
          Hvattum and
          <string-name>
            <given-names>Halvard</given-names>
            <surname>Arntzen</surname>
          </string-name>
          .
          <article-title>Using ELO ratings for match result prediction in association football</article-title>
          .
          <source>International Journal of Forecasting</source>
          ,
          <volume>26</volume>
          (
          <issue>3</issue>
          ),
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <given-names>Verica</given-names>
            <surname>Lazova</surname>
          </string-name>
          and
          <string-name>
            <given-names>Lasko</given-names>
            <surname>Basnarkov</surname>
          </string-name>
          .
          <article-title>PageRank approach to ranking national football teams</article-title>
          .
          <source>arXiv preprint arXiv:1503.01331</source>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Christophe</surname>
            <given-names>Ley</given-names>
          </string-name>
          , Tom Van de Wiele, and Hans Van Eetvelde.
          <article-title>Ranking soccer teams on basis of their current strength: a comparison of maximum likelihood approaches</article-title>
          .
          <source>arXiv preprint arXiv:1705.09575</source>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Ian</surname>
            <given-names>McHale</given-names>
          </string-name>
          and
          <string-name>
            <given-names>Phil</given-names>
            <surname>Scarf</surname>
          </string-name>
          .
          <article-title>Modelling soccer matches using bivariate discrete distributions with general dependence structure</article-title>
          .
          <source>Statistica Neerlandica</source>
          ,
          <year>2007</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Tomas</surname>
            <given-names>Mikolov</given-names>
          </string-name>
          , Ilya Sutskever, Kai Chen, Greg S Corrado, and
          <string-name>
            <given-names>Jeff</given-names>
            <surname>Dean</surname>
          </string-name>
          .
          <article-title>Distributed representations of words and phrases and their compositionality</article-title>
          .
          <source>In Advances in neural information processing systems</source>
          , pages
          <fpage>3111</fpage>
          -
          <lpage>3119</lpage>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Sriraam</surname>
            <given-names>Natarajan</given-names>
          </string-name>
          , Tushar Khot, Kristian Kersting, Bernd Gutmann, and
          <string-name>
            <given-names>Jude</given-names>
            <surname>Shavlik</surname>
          </string-name>
          .
          <article-title>Boosting relational dependency networks</article-title>
          .
          <source>In Online Proceedings of the International Conference on Inductive Logic Programming</source>
          <year>2010</year>
          , pages
          <fpage>1</fpage>
          -
          <lpage>8</lpage>
          ,
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>Gustav</surname>
            <given-names>Sˇourek</given-names>
          </string-name>
          , Vojtˇech Aschenbrenner, Filip Zˇelezny´, Steven Schockaert, and Ondˇrej Kuˇzelka.
          <article-title>Lifted relational neural networks: Efficient learning of latent relational structures</article-title>
          .
          <source>Journal of Artificial Intelligence Research</source>
          ,
          <volume>62</volume>
          :
          <fpage>69</fpage>
          -
          <lpage>100</lpage>
          ,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <surname>Jan Van</surname>
          </string-name>
          Haaren and
          <string-name>
            <surname>Guy Van</surname>
          </string-name>
          den Broeck.
          <article-title>Relational learning for football-related predictions</article-title>
          .
          <source>In Latest Advances in Inductive Logic Programming. World Scientific</source>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>