Rishiraj SinharayResearch Engineer, Barcelona
Esc All projects
Sports, 2026

CuléVision: game analysis tool for FC Barcelona

Stack
Python, Plotly Dash, pandas, PyArrow, XGBoost, SHAP, scikit-learn, mplsoccer, Selenium Wire, Docker, Google Cloud Run
Data
Opta event data (31 teams, 21 competitions); Wyscout shots for xG training
Date
2026
Context
Master's thesis, Private Master's Degree in Sports Analytics · Escuela Universitaria Real Madrid, Universidad Europea
License
MIT
Code
GitHub repository

My master's thesis. I wanted to build the tool I'd want if I were an analyst at Barça: pick a match or a player and get the full picture in a few clicks, without touching the raw data.

What it does

  • Match report. Pick a game from the calendar and get a full post-match breakdown: line-ups, half-by-half stats, shot maps, pass networks, Zone 14 entries, transitions and goalkeeping. One click turns it into a PDF.
  • Player analysis. Any player in the database gets a radar against the league average for their position, a heatmap of where they add threat, and their shooting, passing, possession and defending numbers.
  • Team analysis. Barça or any of the 30 rivals, through the same lens: build-up, chance creation, transitions, defence and set pieces. Same metrics both ways, so scouting an opponent and reviewing ourselves line up.
  • Season overview. Record per competition, recent form, a points trendline and the top contributors.

Under the hood

  • A pipeline pulls Opta event data for 31 teams across 21 competitions and stores every match as Parquet. Re-running it only fetches new games.
  • xG comes from three XGBoost models, one each for open play, direct free kicks and penalties, trained on historical Wyscout shots.
  • xT is a 16×12 grid model. Opta has no carry events, so it undersells players who dribble the ball forward.
  • Runs on Google Cloud Run with the data in Cloud Storage. The screenshots are from the app running on the 2025–26 season.
CuléVision research poster: overview, feature map of the dashboard, event data schema, data storage, xG and xT models
Research poster, Semana de la Ciencia e Innovación. Click to open the PDF.