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, fuel burn, and wear measured as the drop-off within stints. Between-race spread = prior uncertainty.
- 3Weekend evidence
Classify every practice stint (race sim, lighter-fuel run, qualifying simulation, sprint stint, other); measure the drop-off of race sims only, then map practice → race with a ratio learned on earlier weekends.
- 4Tyre sets
Count each driver's new and used sets left for the race from every session before it; a stop takes a new set while any are left, then the freshest used one.
- 5Bayesian blend
Conjugate Gaussian update per compound; compound order enforced by isotonic projection.
- 6Revealed preference
Inverse optimisation: learn fuel-wear sensitivity, per-stop track-position cost and a hard-start cost that best reproduce teams' past choices. Tyre wear is measured, never tuned.
- 7Optimise
Exact dynamic programming over every 0–3 stop compound sequence and every pit lap, with FIA two-compound rule and stint-life limits.
- 8Simulate risk
Monte Carlo over Safety Cars / VSCs (per-lap hazards, blended with each circuit's 2024–25 record) and posterior parameter draws, with a reactive pit-wall policy. Reports P(best), regret, CVaR.
- 9Race simulation
Simulate the whole field lap by lap: race pace per driver, tyres, traffic, overtaking learned per circuit, pit-stop times, SC/VSC. Each driver's candidate plans are ranked by expected finishing position against rivals' predicted plans.
- 10Live 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
- The race simulation picks the starting tyre far better than the physics optimiser and the stop count somewhat better; on compounds the two are level and the optimiser times the first stop slightly better (see the table). Rivals do not react to each other's green-flag stops (no undercut-covering game), and a second round of best responses did not improve the backtest.
- The race simulation does not model retirements, lapped-car traffic or DRS trains beyond the overtaking model; overtaking depends only on pace difference and the circuit.
- Which compounds a driver uses is the weakest prediction (about one in three right for the race simulation, like the naive baseline; 40% for the hybrid). Most 2026 races were run on one compound pair by nearly the whole field, but neither the pre-race physics, the circuit's 2024–25 strategies nor Pirelli's nominations tell which pair; the soft's race pace varies from 0.9 s/lap faster than the medium to 0.7 s/lap slower between races.
- 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 starting tyre is still predicted less accurately than 'start on what most teams started on'. Team orders, incidents and strategic covering are not observable in public timing data.
- Tyre sets are counted from timing data, which does not identify individual sets: a used set's age is taken as the freshest used set of that compound, and OpenF1 (the source from Singapore on) sometimes flags a used set as new, which can only under-count what a driver has left.
- Wet races, and cars that raced intermediates in a dry race, 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. Wear is linear within a stint, so a fresh-tyre peak in the first laps of a stint is not modelled separately.
- Sepang (Round 16) has no recent F1 data; pit loss falls back to the 2026 season median until stops are observed live.

