Technical Specifications & End-to-End Architecture
Detailed description of the software architecture, application modules, infrastructure, and data flows governing the entire BetSoccerAI ecosystem, engineered to operate in complete independence from public or third-party APIs.
1. End-to-End System Architecture
4-Tier Independent SystemThe infrastructure operates through a structured four-tier data flow, engineered to guarantee computational sovereignty, zero recurring cloud license costs, and complete autonomy from external data providers:
Android Mobile Client
Developed entirely in Java (using Eclipse / Android Studio). The architecture is designed to deliver smooth navigation and high responsiveness on mobile devices.
- 🔹 Asynchronous Handling: Execution of network I/O requests off the Main Thread to keep the UI consistently responsive.
- 🔹 Persistence & Local Cache: Local data management for rapid lookup of fixture rounds and standings.
- 🔹 Optimized Parsing: Fast reading and structured parsing of payloads from the web server for instantaneous rendering of fair odds.
Web Server & Data Bridge
Web hosting environment configured to host the public portal and act as a reliable communication bridge between the database and the Android mobile app via server-side scripts.
- 🔹 Dedicated PHP Scripts: Tailored internal PHP endpoints created to query the database and serve structured datasets to both the Android app and the website.
- 🔹 Zero External API Dependencies: No outbound calls to public or third-party APIs; the complete information pipeline is governed internally.
- 🔹 Transport Security: Encrypted communication over HTTPS/SSL protocol to safeguard client-server data exchanges.
Relational Database
Dedicated MySQL instance designed for structured storage of schedules, statistical parameters, and calculated fair odds.
- 🔹 Mega-Fixture Table: Central fixed-schema table optimized to aggregate logistical match metadata, expected goal parameters (λH, λA), fair odds, and validation metrics.
- 🔹 CSV Data Ingestion: Controlled database updates via loading rigorously formatted CSV files validated against the Mega-Fixture Table schema.
- 🔹 Optimized Queries: Indexed relational structure guaranteeing rapid query response times for requests originating from PHP scripts.
On-Premise AI Engine
Local computational node equipped with an AMD Ryzen 5 9600X CPU, NVIDIA RTX 5050 (8 GB VRAM) GPU, and 32 GB RAM on Windows 11.
- 🔹 Local LLM Execution (LM Studio): Inference and data generation powered by language models hosted entirely on-premise (including Gemma 4-4B, Qwen 8B, DeepSeek), optimized to run within the 8 GB VRAM hardware boundary.
- 🔹 Stochastic Processing & CSV Generation: Computation of match probabilities and fair odds, followed by direct export of results into database-compatible CSV formats.
- 🔹 Zero Cloud Reliance: Total sovereignty over prompts, computational parameters, and runtime cycles, free from third-party rate limits or API outages.
2. Data Flow, Communication & Automation Roadmap
Data Flow Architecture & Continuous OptimizationThe operational core of BetSoccerAI lies in transforming raw football statistics into quantitative outputs without reliance on external providers:
📡 Client-Server Communication (Android App ↔ MySQL)
The Android application never queries the database directly nor contacts third-party services; it communicates exclusively with proprietary PHP scripts hosted on the domain www.bet-soccerai.com. This decoupling protects database credentials, maintains full control over the transmission schema, and minimizes mobile bandwidth consumption.
⚙️ Operational Workflow & Optimization Roadmap
Current State (Human-in-the-Loop): Predictive modeling runs on the local AI workstation with swift compute cycles due to the focused computational complexity of individual mathematical routines, even across broad fixture sets. The resulting CSV output is then loaded manually into the MySQL database to populate the Mega-Fixture Table.
Evolution & Automation: Because local hardware compute capacity is already more than sufficient within the 8 GB VRAM envelope, the primary engineering opportunity lies in end-to-end data ingestion automation (phasing out manual CSV imports) and refining prompt/inference pipelines to further streamline generation turnaround.
3. AI Algorithm & Stochastic Modeling
Quantitative MethodologyThe mathematical and statistical principles embedded in the computational pipeline to derive true event probabilities and fair market odds:
1. Poisson Distribution & Form Factor Boost
Discrete probability calculations for home and away goal scoring derived from expected rates $\lambda_H$ and $\lambda_A$, dynamically modulated by recent 5-match team trajectory (Form Index):
2. Bivariate Correction (Dixon-Coles Model)
Low-margin scoreline adjustments (0-0, 1-1, 1-0, 0-1) to relax the standard independence assumption between competing teams' goal-scoring events.
3. Probabilistic Validation (Brier Score & BSS)
Continuous mean squared error benchmarking between estimated outcome probabilities and actual post-match results, ensuring scientific rigor and traceable calibration over time.