Predicting sport event outcomes using deep learning

Jianxiong Gao, Yi Cheng, Jianwei GaoPeerJ Comput. Sci 2025 · DOI

TL;DR

This paper introduces a novel hybrid deep learning model that combines 1D Convolutional Neural Networks (CNNs) with Transformer architectures to predict sports event outcomes. By effectively capturing both local patterns and long-range dependencies in sports data, this approach significantly outperforms traditional machine learning and existing deep learning models in accuracy and robustness.

What Problem Does This Paper Address?

Predicting the outcome of sports events is a notoriously challenging task due to the inherent unpredictability of gameplay and the complex interplay of numerous influencing factors. These factors range from player condition, team strategies, and psychological states to external elements like weather and game location. While traditional statistical methods and machine learning have been applied, they often struggle to capture the intricate, sequential, and long-range dependencies present in sports data. This paper aims to bridge this gap by developing a more sophisticated deep learning framework capable of handling these complexities for improved prediction accuracy.

Methods

The core of this research lies in a hybrid deep learning architecture that combines two powerful neural network components:

  • 1D Convolutional Neural Network (1D CNN): This component is adept at processing sequential data and is used here to capture local spatial patterns and short-term dependencies within continuous features of the sports data.
  • Transformer Architecture: Leveraging self-attention mechanisms, the Transformer excels at modeling long-range dependencies and complex feature interactions. This is crucial for understanding how events or player states from different points in time might influence the final outcome.

These two components work in tandem. Continuous features are processed by the 1D CNN, while categorical features are encoded using embeddings. The outputs from both are then fed into the Transformer layers. Finally, the combined representations are passed through a fully connected layer and a softmax activation to produce the final outcome predictions (Win, Draw, or Defeat). This hybrid approach aims to harness the strengths of both convolutional and attention-based mechanisms for enhanced predictive power.

Datasets

The study utilizes the European Soccer Database from Kaggle. This dataset is comprehensive, containing information on European football matches, teams, and players from the 2008-2016 seasons, covering over 25,000 matches and 10,000 players. Key features include:

  • Match results, team formations, player line-ups, and detailed in-game events (goals, assists, fouls, possession).
  • Player and team attributes extracted from EA Sports' FIFA series.
  • Betting odds from multiple providers.
  • Event-level match data.

The dataset was split into training, validation, and test sets, maintaining temporal order to prevent data leakage.

Key Insights and Ideas

  • Hybrid Architecture Synergy: The combination of 1D CNNs and Transformers is more effective than either architecture alone, demonstrating that capturing both local patterns and long-range dependencies is critical for sports outcome prediction.
  • Self-Attention for Context: The Transformer's self-attention mechanism is vital for understanding complex relationships between categorical features, leading to better generalization.
  • Embeddings Outperform One-Hot Encoding: Learned embeddings for categorical features provide a more compact and informative representation than traditional one-hot encoding, significantly improving model performance.
  • Residual Connections Aid Training: The use of residual connections in the 1D CNN block helps preserve original information and mitigates the vanishing gradient problem, allowing for deeper and more effective feature extraction.

Key Results

The proposed hybrid model achieved the highest performance across various metrics on the test set:

  • Accuracy (ACC): 54.73%
  • Matthews Correlation Coefficient (MCC): 0.2666

This performance surpassed all baseline machine learning models (Decision Tree, Random Forest, k-NN, Gradient Boost, XGBoost, CatBoost) and other deep learning models (MLP, RNN, LSTM, TabNet, TabTransformer, TabPFN). For instance, compared to the best-performing traditional machine learning model (Gradient Boost with 53.76% ACC), the proposed model showed a notable improvement. Similarly, it outperformed advanced deep learning models like TabNet (51.52% ACC) and TabPFN (51.83% ACC). The ablation study also confirmed the significant contribution of each component (Transformer, 1D CNN, and embeddings) to the overall performance.

Limitations and Future Work

The authors acknowledge several limitations and suggest future research directions:

  • Rare/Unexpected Events: The model struggles with predicting rare or unexpected events (e.g., major upsets, last-minute plays), which are inherently difficult to capture from historical data alone.
  • Real-time Variables: Sports outcomes are influenced by numerous real-time variables not always present in structured datasets, which can limit predictive accuracy.
  • Computational Complexity: Transformer and 1D CNN models require significant computational resources, posing a challenge for organizations with limited infrastructure.

Future work could explore:

  • Dual-channel or Collaborative Transformers: For enhanced continual learning and adaptation to evolving sports data.
  • Text-Assisted Networks: Integrating textual data (match reports, commentary) alongside numerical inputs using frameworks like TASTA for richer predictions.
  • Multilevel Distribution Alignment: To improve generalization across diverse sports and seasons.
  • Hybrid Models: Combining deep learning with classical approaches for increased robustness and interpretability.
  • Pretrained Transformer Representations: To leverage powerful sequence encoding strategies, especially for heterogeneous data.

Summary updated

BibTeX
@article{gao2025predicting,
  author = {Jianxiong Gao and Yi Cheng and Jianwei Gao},
  title = {{Predicting sport event outcomes using deep learning}},
  journal = {PeerJ Comput. Sci.},
  year = {2025},
  doi = {10.7717/peerj-cs.3011},
}
Figure