How PitWall AI works
A strategy engine built the way a team's would be — a transparent physical lap-time model, calibrated with uncertainty, solved exactly, stress-tested by simulation — and evaluated honestly on races it had not seen.
Lap-time model
Fuel burn is identified from race data because tyre age resets at each stop while lap number does not (fitted ≈ 0.04–0.07 s/lap in 2026).
Pipeline
- 1Ingest
FastF1 timing for every 2026 session (practice, sprint, qualifying, race). Live: OpenF1 or F1's live-timing feed.
- 2Season prior
Fit the lap-time model to every earlier race: driver pace, compound offset, wear rate, fuel burn. Between-race spread = prior uncertainty.
- 3Weekend evidence
Detect long runs in FP/sprint (robust Theil–Sen slopes), short-run compound gaps, then map practice → race with transfer ratios learned on earlier weekends.
- 4Bayesian blend
Conjugate Gaussian update per compound; team effects shrunk toward the field (hierarchical); compound order enforced by isotonic projection.
- 5Revealed preference
Inverse optimisation: learn soft-tyre penalty, fuel-wear sensitivity and per-stop track-position cost that best reproduce teams' past choices.
- 6Optimise
Exact dynamic programming over every 0–3 stop compound sequence and every pit lap, with FIA two-compound rule and stint-life limits.
- 7Simulate risk
Monte Carlo over Safety Cars / VSCs (per-lap hazards) and posterior parameter draws, with a reactive pit-wall policy. Reports P(best), regret, CVaR.
- 8Live loop
Every lap: update wear from all cars' green laps, re-estimate pit loss, re-optimise from the car's tyre state, check undercuts, rejoin slot and model drift.
Machine-learning techniques, and why each is here
Validation
Known limitations
- Track position is modelled only as a per-stop cost plus live rejoin/undercut checks — there is no full multi-car race simulation with overtaking probabilities.
- Pre-race prediction of team behaviour is only modestly better than a naive baseline on some metrics and worse on others (see the table) — e.g. the first-stop lap is still predicted less accurately than the season median. Team orders, incidents and strategic covering are not observable in public timing data.
- Wet races are excluded from dry-strategy metrics; intermediate/wet tyre strategy is not modelled.
- Tyre wear is linear-plus-quadratic with a fuel-load interaction; real thermal degradation and cliffs are approximated through stint-life limits and the soft-tyre penalty.
- Sepang (Round 16) has no recent F1 data; pit loss falls back to the 2026 season median until stops are observed live.