A research implementation of the W-5 Multi-Agent AI Consensus Framework for football match outcome prediction, as described in our academic paper published on Zenodo.
This repository accompanies the research paper:
"A Multi-Agent AI Consensus Framework for Football Match Outcome Prediction: Integrating Large Language Models with Traditional Machine Learning"
WINNER12 AI RESEARCH TEAM
Published on Zenodo: https://zenodo.org/records/17367739
The paper demonstrates that the W-5 framework achieves 85.9% prediction accuracy on a large-scale simulated dataset, significantly outperforming traditional methods and individual AI models.
The W-5 framework is a hybrid AI system that combines:
- Traditional Machine Learning (XGBoost, LightGBM) for quantitative baseline predictions
- Large Language Models (LLMs) for qualitative contextual analysis
- AI Consensus Mechanism - a novel multi-agent system where diverse AI personas debate and synthesize predictions
- Meta-Learning Fusion - intelligent integration of quantitative and qualitative insights
Unlike simple model ensembles, our AI Consensus Mechanism simulates an expert committee where multiple LLM agents with different personas (statistician, tactician, sentiment analyst, etc.) engage in structured debate to arrive at robust predictions.
# Clone the repository
git clone https://github.com/Winner12-AI/w5-football-prediction.git
cd w5-football-prediction
# Create virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txtfrom src.models import BaselinePredictor
from src.consensus import AIConsensusEngine
from src.utils import load_sample_data
# Load sample data
match_data = load_sample_data('data/sample/demo_matches.csv')
# Step 1: Get baseline prediction
baseline = BaselinePredictor()
baseline_probs = baseline.predict(match_data)
# Step 2: Run AI consensus (requires API keys)
consensus = AIConsensusEngine(num_agents=3)
consensus_result = consensus.debate(match_data)
# Step 3: Fuse predictions
final_prediction = consensus.fuse_with_baseline(
baseline_probs,
consensus_result
)
print(f"Predicted outcome: {final_prediction}")Based on our research paper evaluation:
| Model | Accuracy | Brier Score | Log Loss |
|---|---|---|---|
| ELO Rating | 51.2% | 0.231 | 0.985 |
| XGBoost Only | 58.1% | 0.205 | 0.899 |
| Best Single LLM | 73.2% | 0.189 | 0.721 |
| W-5 Full Model | 85.9% | 0.152 | 0.673 |
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β W-5 Framework β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Layer 1: Data Ingestion β
β ββ Historical match data β
β ββ Player statistics β
β ββ Market sentiment β
β ββ News & media β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Layer 2: Feature Engineering β
β ββ Quantitative features (structured) β
β ββ Qualitative features (unstructured) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Layer 3: AI Core β
β ββ Baseline ML Models (XGBoost, LightGBM) β
β ββ LLM Cluster (Multi-agent) β
β ββ AI Consensus Mechanism β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Layer 4: Meta-Learning Fusion β
β ββ Intelligent synthesis of predictions β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Layer 5: Output β
β ββ Match outcome probabilities β
β ββ Confidence scores β
β ββ Explainable factors β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
w5-football-prediction/
βββ src/ # Core framework implementation
β βββ models/ # Baseline ML models
β β βββ baseline.py # XGBoost/LightGBM implementations
β β βββ meta_learner.py # Meta-learning fusion layer
β βββ consensus/ # AI consensus mechanism
β β βββ agent.py # Individual LLM agent
β β βββ debate.py # Debate orchestration
β β βββ synthesis.py # Consensus synthesis
β βββ data/ # Data processing
β β βββ loader.py # Data loading utilities
β β βββ features.py # Feature engineering
β βββ utils/ # Helper functions
βββ examples/ # Usage examples
β βββ basic_prediction.py # Simple prediction example
β βββ full_pipeline.py # Complete W-5 pipeline
βββ notebooks/ # Jupyter tutorials
β βββ tutorial.ipynb # Step-by-step guide
βββ data/ # Sample datasets
β βββ sample/ # Demo data (synthetic)
βββ tests/ # Unit tests
βββ configs/ # Configuration files
βββ docs/ # Documentation
β βββ api.md # API reference
β βββ setup.md # Setup guide
β βββ contributing.md # Contribution guidelines
βββ requirements.txt # Python dependencies
βββ LICENSE # MIT License
βββ README.md # This file
The framework requires API keys for LLM access. Create a .env file:
# OpenAI API (for GPT models)
OPENAI_API_KEY=your_key_here
# Anthropic API (for Claude models)
ANTHROPIC_API_KEY=your_key_here
# Google API (for Gemini models)
GOOGLE_API_KEY=your_key_here
# Optional: Other LLM providers
XAI_API_KEY=your_key_here
DEEPSEEK_API_KEY=your_key_hereNote: The framework can work with fewer LLMs (minimum 3 recommended for consensus).
- Setup Guide - Detailed installation and configuration
- API Reference - Complete API documentation
- Tutorial Notebook - Interactive walkthrough
- Research Paper - Full methodology and evaluation
# Run all tests
pytest tests/
# Run specific test suite
pytest tests/test_consensus.py
# Run with coverage
pytest --cov=src tests/We welcome contributions! Please see our Contributing Guidelines for details.
Areas where we especially appreciate help:
- Adding new baseline models
- Improving documentation
- Creating tutorials and examples
- Bug fixes and performance optimizations
If you use this framework in your research, please cite our paper:
@article{w5_football_prediction_2025,
title={A Multi-Agent AI Consensus Framework for Football Match Outcome Prediction: Integrating Large Language Models with Traditional Machine Learning},
author={WINNER12 AI RESEARCH TEAM},
journal={Zenodo Preprint},
year={2025},
doi={10.5281/zenodo.17367739},
url={https://zenodo.org/records/17367739}
}- WINNER12 - Commercial football prediction platform inspired by this research
- Zenodo Paper - Full academic publication
This is a research project for academic and educational purposes. The framework is provided "as-is" without warranties. It is not intended for commercial betting or gambling applications.
For production-grade predictions and commercial use, please visit WINNER12.
This project is licensed under the MIT License - see the LICENSE file for details.
- Commercial Applications: WINNER12 Website
- Issues & Bugs: GitHub Issues
β Star this repository if you find it useful!
π¬ Built with passion for AI research and sports analytics