Technical Specifications & System Architecture

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 System

The 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:

📱
Tier 1

Android Mobile Client

Native Java Application

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.
Java Android SDK Eclipse / Android Studio SQLite
⚙️
Tier 2

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.
PHP HTML5 / CSS3 HTTPS / SSL Hostinger Web Hosting
🗄️
Tier 3

Relational Database

MySQL & Mega-Fixture Table

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.
MySQL Relational SQL CSV Data Ingestion
🧠
Tier 4

On-Premise AI Engine

Dedicated Local Workstation

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.
AMD Ryzen 5 9600X NVIDIA RTX 5050 (8GB VRAM) LM Studio Local LLMs (Gemma, Qwen, DeepSeek)

2. Data Flow, Communication & Automation Roadmap

Data Flow Architecture & Continuous Optimization

The 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 Methodology

The 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):

$$ \lambda_{\text{final}} = \lambda_{\text{base}} \times (1 + \text{Boost}_{\%}) $$
⚖️

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.

$$ P(X, Y) = \tau_{\lambda_H, \lambda_A}(x, y) \cdot P(X) P(Y) $$
🎯

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.

$$ BS = \frac{1}{N} \sum_{t=1}^N (f_t - o_t)^2 $$
👨‍💻 Author & Lead Developer

Roberto Costa

Software Developer & IT Systems Specialist

"BetSoccerAI is the practical demonstration of how a complete software ecosystem — from a native mobile application to a local AI inference engine — can be architected, developed, and maintained while entirely eliminating reliance on cloud services or third-party APIs."

The entire project is the direct result of cross-disciplinary engineering competencies: native Android development in Java, creation of the web platform (HTML/CSS) and PHP/MySQL bridging scripts, and the deployment of an on-premise AI compute node leveraging LM Studio and quantized LLMs for autonomous quantitative football intelligence.

Actual Integrated Project Tech Stack

Java (Android SDK) PHP MySQL HTML5 / CSS3 LM Studio Local LLMs (Gemma, Qwen, DeepSeek) CSV Data Pipeline Stochastic Modeling (Poisson / Dixon-Coles)

Key Infrastructure Highlights

8 GB VRAM
Local quantized LLM inference running on NVIDIA RTX 5050
100%
Autonomous architecture with zero third-party API reliance
Native Java
Responsive Android client with local SQLite cache & persistence
Agile and transparent software architecture engineered for computational efficiency and ongoing evolution toward end-to-end automation.