Inspiration
As a collegiate Apex Legends player at UC San Diego, I spend a lot of time reviewing matches. The hardest question usually comes after a loss: what should we have done differently?
A scoreboard shows placement and kills, but understanding whether we should have regrouped, held a position, or rotated earlier requires context. I built Apex WinLab to help players find moments worth reviewing and turn those moments into concrete practice discussions.
What it does
Apex WinLab combines an interactive replay explorer, a trained win-probability model and a Gemini-powered tactical coach.
Players can: Explore player positions and rings on a zoomable map. Select a squad or individual player to inspect health, shields and status. Navigate a timeline of ring events, knocks, kills and deaths. Find key moments where the model’s win estimate rises or falls. Request a concise recommendation supported by timestamped replay evidence. Compare team and player performance across collected matches. Open supported public Overstat URLs to analyze additional games.
The catalog contains 100 matches. Matches with quality scores of at least 7.0 can be saved after validation; other usable matches remain temporary previews.
How we built it
I built Apex WinLab with a Python/Flask backend and a JavaScript frontend for interactive replay exploration.
I decoded Overstat’s incremental telemetry into timestamped game states. Tiger Data stores 6,522,932 player-frame rows across 100 matches, alongside 1,823 team-result rows and 5,330 player-result rows. Each player-frame row captures one player’s recorded state at a replay second. These records power replay navigation, player inspection, and performance comparisons, with in-memory caching keeping repeated seeks responsive.
I trained a conditional-logit win-probability model using squad-state features from the original 51-game dataset. It estimates each squad’s chance of winning and identifies large probability changes as moments worth reviewing. Additional matches use the existing model without retraining.
Gemini provides tactical coaching from structured, timestamped evidence, including teammate separation, recent damage, relative elevation, and revealed ring information. It compares possible actions and returns a concise recommendation. Validation checks reject invalid evidence references, unsupported timestamps, and ungrounded terrain claims. Decision reviews keep pre-decision evidence separate from later events used for retrospective explanation.
Throughout development, I used Cursor, Claude Code, and Codex for implementation and testing, and Grok Bot for automated repository reviews.
Challenges we ran into
Reconstructing incomplete telemetry. Replay fields can update only when values change. I had to distinguish unchanged information from missing data and handle incomplete final-ring records without inventing geometry.
Keeping the interface synchronized. Rapid seeking could return requests out of order, leaving the map, ring, or roster at different moments. I added request coordination and caching.
Making coaching concise and grounded. Early reviews were verbose and sometimes asserted cover or sightlines that the data could not verify. I refined the evidence format, prompts, and validation while keeping the recommendation readable.
Evaluating honestly. Games from the same session share teams and conditions. I separated sessions during evaluation and kept the original evaluation frozen as the catalog expanded.
Accomplishments that we're proud of
- Built an interactive replay and coaching workflow around 100 validated matches.
- Integrated real Tiger Data storage and real Gemini-generated reviews.
- Connected probability changes to replay navigation and decision review.
- Enabled predictions on new matches using an unchanged trained model.
- Preserved clear distinctions between predictions, recorded outcomes and coaching interpretations. On the original six test games from four unseen sessions, the raw model achieved game-weighted log loss of 2.345, compared with 2.419 for equal probabilities among squads still in contention. This is a modest improvement on a small test set, rather than a claim of production-level accuracy.
What we learned
A falling/rising win estimate identifies a review opportunity, not necessarily a mistake. Events elsewhere in the lobby can change a squad’s prospects.
I also learned that intuitive features need testing. My initial elevation, pressure, and ring-access measurements did not reliably improve predictions beyond squad condition. Relative height alone does not establish useful high ground, cover, or visibility.
Most importantly, a useful coaching interface should lead with an understandable action while keeping evidence and uncertainty accessible.
What's next for Apex WinLab
My next priority is evaluating coaching usefulness with experienced players. I want reviewers to assess unfamiliar decision moments without seeing the outcome first, then judge whether the recommendations are supported, actionable, and tactically sensible.
I also plan to expand the dataset across more independent sessions, reserve a fresh test set, and investigate richer representations of movement and team positioning.
Longer term, I want to personalize feedback around a team’s recurring habits and measure whether replay coaching leads to better decisions in subsequent matches.
Built With
- claudecode
- codex
- css3
- cursor
- flask
- gemini-api
- github
- grok-bot
- grokbot
- html5
- javascript
- machine-learning
- postgresql
- python
- tigerdata
- timescaledb