Football result prediction using machine learning
Project links
Skills
About this project
Duration: Jan 2024 – Sept 2024
Institution: University of Essex (MSc Dissertation Project)
Tools & Technologies: Python, Pandas, Scikit-learn, XGBoost, SMOTE, Matplotlib, Seaborn
This project focused on developing machine learning models to predict outcomes in English Premier League (EPL) football matches using historical performance data from the 2014–2024 seasons. Two distinct models were built:
Model 1: Predict the outcome of a single match (Win vs. Not Win).
Model 2: Predict the end-of-season league rankings to identify top-performing teams.
Data Extraction & Cleaning: Scraped match-level data from FBref.com for 10 seasons (7600+ rows, 59 features). Handled extensive missing values using median imputation by team.
Feature Engineering:
Constructed match-level rolling features based on a team's last 10 games.
Built over 350 performance metrics including xG, SCA, GCA, assists, and defensive stats.
Applied binary labeling for classification: Win (1), Not Win (0).
Exploratory Data Analysis:
Visualized trends with bar charts, box plots, scatter plots, and heatmaps.
Identified patterns in team performance and match outcomes.
Model Development:
Implemented and tuned Random Forest, SVC, and XGBoost classifiers for Model 1.
Applied SMOTE and SMOTEENN to address class imbalance.
Model 2 used Random Forest, XGBoost, and Logistic Regression for season ranking predictions.
Model Evaluation:
Assessed models using Accuracy, Precision, Recall, F1-Score, and ROC AUC.
Compared performance across raw, undersampled, and oversampled datasets.
Achieved high AUC scores, particularly in Model 2 for end-of-season rank prediction.
Built scalable, interpretable pipelines for sports prediction tasks using real-world data.
Demonstrated improved model performance through ensemble methods and oversampling.
Highlighted practical implications for sports analytics, betting markets, and club strategy.
Successfully balanced predictive power and model interpretability by evaluating stochastic behavior and class imbalance.
Imbalanced match outcomes (more losses than wins).
Missing values and inconsistent team data across seasons.
Choosing appropriate ML algorithms and avoiding overfitting.
Capturing the stochastic nature of football through recent match history and trends.
Integration of live match data for real-time prediction.
Exploration of deep learning architectures (e.g., RNNs, LSTMs) to capture temporal patterns.
Player-level performance modeling to improve team-level prediction accuracy.