_{1}

^{*}

Nowadays, when people want to predict the result of a football match, most of them just refer to their own experience or some specialists’ opinions. However, since artificial intelligence is very good at analyzing big data, it is more and more used to predict the result instead of one’s experience in order to appro ach the accuracy. There are three typical algorithms — c onvolutional neural network (ANN), random forest (RF) and support vector machine (SVM). In this paper, these three algorithms are all applied to predict the result of a football match, and the accuracy of them is also compared.

Since football is becoming more and more popular worldwide, football gambling also develops very fast. Since casinos always want to make the largest benefit in this area, a high performance of football result prediction is required. However, if the prediction is just based on one’s experience, it cannot be very accurate since the workload of analyzing all the data of players in two teams and matches between two teams is too heavy for people and the result is somehow subjective. Under this situation, using artificial intelligence to predict the results becomes a good solution. Artificial intelligence is absolutely objective, and it has a great ability in calculating and analyzing huge amounts of data to generate the best prediction. Havard Rue and Oyvind Salvesen collect the data of all the matches in Premier League during 1997-1998 season, and then they use the Bias dynamic generalized linear model to predict the final rank, which gives very good results. Patrick Lucey studies the relationship between the goals and the shooting position as well as the strength of defense. Artificial Intelligence has been widely applied to predict match outcomes. Shi et al. investigated the usefulness of machine learning for the prediction of college basketball outcomes and found that feature selection is very important when building up machine learning models (Shi et al., 2013) . Loeffelholz et al. applied neural network to predict NBA games and their trained models beat basketball experts on game prediction (Loeffelholz et al., 2009) . Jain et al. integrated fuzzy approach and SVM to develop a hybrid fuzzy-SVM algorithm and applied it to forecast basketball match outcomes (Jain & Kaur, 2017) . Bayesian nets were applied to predict football results in Joseph et al.’s work (Joseph et al., 2006) . Lucey et al. used logistic regression on engineered features and achieved improved expected goal value Lucey et al., 2014 ). Naïve Bayes, compared to multivariate linear regression, was proved to have better performance in predicting basketball matches outcomes (Miljković et al., 2010) . Random forest was studied and applied to estimate the win probability for NFL games (Lock & Nettleton, 2014) . Domain knowledge was incorporated in extreme gradient boosted trees and the investigation showed that domain knowledge is important to improve the prediction accuracies (Berrar et al., 2019) .

Furthermore, Cho et al. proposed a framework combining social network analysis and gradient boosting to predict soccer game outcomes and obtained improved results (Cho et al., 2018) . So far, random forest and support vector machine have not been fully investigated and tested on soccer match outcome prediction. In this paper, the neural network algorithm, the random forest algorithm and the support vector machine algorithm are all used to predict the results of the matches in Spain La Liga. All the data are collected from the FIFA website.

Football is a complex exercise, and many factors are related to the final result. Hence, there always exist some amazing results, which is because of some unpredictable reasons. For example, some players may get injured and have to leave the match, which cannot be predicted before. Hence, we need to focus on the data which is objective and controllable, such as the data of the starters’ ability.

The data (From FIFA Official Website) of the starters’ ability are given on FIFA website, which is calculated according to their historical performance, including success rate of passing, the success rate of shooting, the success of controlling and so on (

According to this graph of a player’s ability, FIFA concludes that his final ability point is 94. In the matches recorded by FIFA, the data of all the starters’ ability can be found. There are 22 players in a match, so we search the data of all of

them, and then use this data to predict the result of the match by artificial intelligence.

The ability of players’ is just a part of the factors which influence the result of the match. As

The lack of such data will not affect the prediction a lot. In fact, if a result is mainly due to the coach or the team’s morale, it will be an outlier, and such outliers will be considered in the program.

Besides the players’ ability and the teams’ ability, there are still some other factors, such as the weather. The performance of the players in sunny weather and rainy weather are different, since the football may be more slippery and more difficult to control. However, the weather is difficult to predict before the match, and it has the same influence on both teams. In addition, many playgrounds have roof to reduce such influence as much as possible. For example, the Champions League Final in 2016/2017 season is launched in the Millennium Stadium which has roof to prevent the influence of the rain. Hence, the weather factor

will not be considered in this paper. What’s more, whether the match is a home game is also a important factor. There are 19 teams in La Liga, and each team will fight with others twice in one season—one home game and one away game. If a team play at home, the environment is familiar and most audience will cheer and applause for them, which will excite the players and boost their morale; if a team play as guest, the situation will be opposite—their stress will increase a lot and their morale will decrease. Hence, in this paper, the data of the players’ ability already include this factor—we will both consider a player’s ability when he plays at home and as guest. The program will also distinguish if a team is playing at home or as guest. The rate of win and draw in home games during 2008/2009 season to 2015/2016 season in La Liga is shown in

There is still a lack of data of some players in La Liga. However, the number of players is less than 15, so it will not affect the prediction a lot. We will use the average ability point 72.6 for them.

For each model, we input the data of 22 players in two teams in one match. The output is “win”, “draw” and “lose”.

First, we set the kernel as polynomial. However, the correct rate is only 0.503, which is below our expectation.

( γ 〈 x , x ′ 〉 + r ) d (1)

Then we set the kernel as linear, the correct rate increases to 0.542, which is acceptable.

〈 x , x ′ 〉 (2)

In the random forest algorithm, each “tree” in the random forest analyze different

factors and vote for the result, which will decrease the bias. We try different numbers of trees, and then we find that when the number is between 400 and 800, the result is the best, and the correct rate will reach 0.520.

Then we set the largest depth of each tree as 3, and the correct rate increases to 0.545.

For the neural network algorithm, we choose the convolution neural network to predict the result.

Firstly, traditional convolution neural network has six layers to process the data, but we only use four layers in this paper—two convolution layers, one pooling layer and one full connection layer. The purpose is to avoid overfitness. Since convolution neural network is better at processing one-hot problem than pure classification problem, we will write “win” as (0, 0, 1), “draw” as (0, 1, 0) and “lose” as (0, 0, 1). However, we should notice that this method is not suitable for random forest algorithm. The reason is that each tree will determine whether the result is 0 or 1 for all three points, and the output may be (0, 0, 0) or (1, 1, 1), which is meaningless. In convolution neural network algorithm, we set batch size as 80, learning rate base as 0.30, learning rate decay as 0.999 and regulization rate as 0.0020, training steps as 400, and moving average decay as 0.85. This will give the best result, and the correct rate is floating between 0.533 and 0.574, which means the prediction is not very stable. However, in this paper, we do not discuss the stability of the correct rate, so we just take 0.574 as the final result.

Generally, we choose the best correct rate of the prediction results generated by these three algorithms as their accuracy, and then we compare them, which is shown in

The accuracy of these three methods is all between 54% and 58%. They are all acceptable since they are all higher than the prediction accuracy of the famous football analyst of BBC, Mark Lawrenson, which is only 52%. In addition, the accuracy of the convolution neural network is higher than the prediction accuracy of the authoritative football gambling organization Pinnacle Sports, which is only 55%. In these three algorithms, convolution neural network performs the best.

However, in all three algorithms, they seldom predict “draw”. This is because the number of “draw” games is much less than that of “win” games or “lose” games. The match between a stronger team and a weaker team seldom results in “draw”, so we may attribute a draw game mostly to strategy and morale factors, which will not be considered in this paper. This is also mentioned in Ben Ulmer’s paper. We can also see that the “lose” prediction is less than the “win” prediction, and this is because the “lose” games are less than the “win” games in the training model (Tables 1-3).

In addition, we can also see that these three algorithms have different prediction ability for “win”, “draw” and “lose”. Random forest has the best ability to predict “win” and convolution neural network has the best ability to predict “lose”. All three algorithms are not able to predict “draw” correctly (

Although the accuracy of these three methods is acceptable, it can be more approved since we only consider the data of players’ ability. In the future, the data of teams (the coaches’’ ability and the teams’ morale) can be also considered. For example, if a team has consecutive wins recently, its morale may be increased a lot. To quantify a team’s morale, considering its recent match results is a good idea. More inputs will deepen the analysis of the data and thus improve accuracy.

In this paper, we only consider three popular algorithms of machine learning. In the future, we may consider more algorithms and we can compare the accuracy of them. For example, the DNN algorithm constructed by Andrew Carter

Number of Predicted Wins | Number of Predicted Lose | Number of Predicted Draws |
---|---|---|

307 | 73 | 0 |

Number of Actual Wins | Number of Actual Lose | Number of Actual Draws |

183 | 105 | 92 |

Number of Predicted Wins | Number of Predicted Lose | Number of Predicted Draws |
---|---|---|

291 | 89 | 0 |

Number of Actual Wins | Number of Actual Lose | Number of Actual Draws |

183 | 105 | 92 |

Number of Predicted Wins | Number of Predicted Lose | Number of Predicted Draws |
---|---|---|

268 | 112 | 0 |

Number of Actual Wins | Number of Actual Lose | Number of Actual Draws |

183 | 105 | 92 |

also achieves good prediction accuracy. Studying and comparing more algorithms will let us find the best algorithm to predict the results of football matches.

The authors declare no conflicts of interest regarding the publication of this paper.

Chen, H. Z. (2019). Neural Network Algorithm in Predicting Football Match Outcome Based on Player Ability Index. Advances in Physical Education, 9, 215-222. https://doi.org/10.4236/ape.2019.94015