Predicting Football Player Cooperation Using Transformer Models: A Comparative Study with Traditional Machine Learning Approaches
Abstract
Accurately predicting whether football players can work well together on the field is essential for optimizing team strategies, improving match outcomes, and making decisions in player transfers. This is not an easy task, player interactions are complex, constantly shifting based on roles, tactics, the opposing team’s strategies, and the changing dynamics within the squad over time. However, in football, there are many data and statistics; there must be a hidden relationship that lies below them; this exactly falls within the scope of machine learning. This paper introduces a Transformer-based model designed to capture these temporal interactions between players. Using the self-attention mechanism, the model is able to focus on key moments of cooperation. Our approach combines player performance data with custom cooperation metrics to predict which players are likely to work well together in upcoming seasons. Extensive experiments were conducted, comparing the Transformer to traditional methods such as Support Vector Machine (SVM), Random Forest, and Logistic Regression, using real-world football datasets that include player statistics, season ratings, and positional information. While the Transformer achieved a validation accuracy of 75.31%, it was slightly outperformed by the Random Forest model, which reached an accuracy of 77.78%. Nevertheless, the Transformer model demonstrates the ability to model temporal interactions effectively, indicating potential for further improvements.
References
- Gudmundsson, J., & Horton, M. (2017). “Spatio-temporal analysis of team sports.” ACM Computing Surveys, 50(2), 1-34. doi: 10.1145/3054132
- Karpathy, A., et al. (2015). “Deep Recurrent Neural Networks for Sequential Data Modeling in Sports.” Proceedings of Neural Information Processing Systems.
- Vaswani, A., et al. (2017). “Attention Is All You Need.” Advances in Neural Information Processing Systems, 30, 5998-6008.
- Müller, O., Simons, A., & Weinmann, M. (2017). “Beyond crowd judgments: Data-driven estimation of market value in association football.” European Journal of Operational Research, 263(2), 611-624. doi: 10.1016/j.ejor.2017.05.005
- MacKinlay, A., & Pandit, A. (2018). “Estimating football player values with machine learning: A case study on transfermarkt.” Journal of Sports Economics, 19(5), 618-630.
- Duch, J., et al. (2013). “Quantifying performance in football using spatiotemporal and event-based data.” Journal of Sports Analytics, 1(1), 79-87. doi: 10.3233/JSA-130001